gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
[pspp] / ChangeLog
1 2010-03-28  Bruno Haible  <bruno@clisp.org>
2
3         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
4         * gnulib-tool (func_exists_module): New function, extracted from
5         func_verify_module.
6         (func_verify_module): Use it.
7         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8         'foo' only if 'foo' exists.
9         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10         module.
11
12 2010-03-28  Bruno Haible  <bruno@clisp.org>
13
14         gnulib-tool: Add support for special categories of tests.
15         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17         (func_usage): Document them.
18         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19         inc_unportable_tests, inc_all_tests): New variables.
20         (func_acceptable): Consider these variables.
21         (func_modules_transitive_closure): Make it work when the 'Status' field
22         consists of multiple words.
23         (func_import): Store and restore the values of inc_cxx_tests,
24         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25         inc_all_tests in gnulib-comp.m4.
26         (func_create_testdir): Set inc_all_tests to true.
27         * doc/gnulib.texi (Extra tests modules): New section.
28         Suggested by Jim Meyering.
29
30 2010-03-28  Bruno Haible  <bruno@clisp.org>
31
32         ansi-c++-opt: Allow turning off the C++ build by default.
33         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34         gl_CXX_CHOICE_DEFAULT_NO is defined.
35         Requested by Eric Blake.
36
37 2010-03-28  Bruno Haible  <bruno@clisp.org>
38
39         unistd: Avoid #define replacements in C++ mode.
40         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
41         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
42         setsockopt, shutdown, select): In C++, attach a warning to the function
43         if possible, rather than #defining the symbol to a dysfunctional alias.
44         Reported by John W. Eaton <jwe@gnu.org>.
45
46 2010-03-28  Bruno Haible  <bruno@clisp.org>
47
48         Fix link errors on mingw.
49         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
50         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
51         $(LIBSOCKET).
52         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
53         $(LIBSOCKET).
54
55 2010-03-28  Bruno Haible  <bruno@clisp.org>
56             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57
58         lib-ignore: Determine different options for different compilers.
59         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
60         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
61         Add comments.
62         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
63         * NEWS: Mention the change.
64
65 2010-03-27  Bruno Haible  <bruno@clisp.org>
66
67         Remove unused GNULIB_XYZ macro definitions.
68         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69         * modules/fseek (configure.ac): Likewise.
70         * modules/ioctl (configure.ac): Likewise.
71         * modules/open (configure.ac): Likewise.
72         * modules/stdlib-safer (configure.ac): Likewise.
73
74 2010-03-27  Bruno Haible  <bruno@clisp.org>
75
76         Add a remark about certain modules.
77         * modules/malloc (Comment): New section.
78         * modules/realloc (Comment): Likewise.
79         * modules/sigpipe (Comment): Likewise.
80
81 2010-03-27  Bruno Haible  <bruno@clisp.org>
82
83         Resolve conflict between the two kinds of module indicators.
84         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
85         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
86         * modules/canonicalize (configure.ac): Invoke
87         gl_MODULE_INDICATOR_FOR_TESTS.
88         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
89         GNULIB_XYZ.
90         * tests/test-dirent-c++.cc: Likewise.
91         * tests/test-dirent-safer.c: Likewise.
92         * tests/test-dup2.c: Likewise.
93         * tests/test-fchdir.c: Likewise.
94         * tests/test-fcntl-h-c++.cc: Likewise.
95         * tests/test-getopt.c: Likewise.
96         * tests/test-getopt.h: Likewise.
97         * tests/test-langinfo-c++.cc: Likewise.
98         * tests/test-locale-c++.cc: Likewise.
99         * tests/test-math-c++.cc: Likewise.
100         * tests/test-pty-c++.cc: Likewise.
101         * tests/test-search-c++.cc: Likewise.
102         * tests/test-signal-c++.cc: Likewise.
103         * tests/test-spawn-c++.cc: Likewise.
104         * tests/test-stdio-c++.cc: Likewise.
105         * tests/test-stdlib-c++.cc: Likewise.
106         * tests/test-string-c++.cc: Likewise.
107         * tests/test-sys_ioctl-c++.cc: Likewise.
108         * tests/test-sys_select-c++.cc: Likewise.
109         * tests/test-sys_socket-c++.cc: Likewise.
110         * tests/test-sys_stat-c++.cc: Likewise.
111         * tests/test-sys_time-c++.cc: Likewise.
112         * tests/test-time-c++.cc: Likewise.
113         * tests/test-unistd-c++.cc: Likewise.
114         * tests/test-wchar-c++.cc: Likewise.
115         * tests/uninorm/test-u8-nfc.c: Likewise.
116         * tests/uninorm/test-u8-nfd.c: Likewise.
117         * tests/uninorm/test-u8-nfkc.c: Likewise.
118         * tests/uninorm/test-u8-nfkd.c: Likewise.
119         * tests/uninorm/test-u16-nfc.c: Likewise.
120         * tests/uninorm/test-u16-nfd.c: Likewise.
121         * tests/uninorm/test-u16-nfkc.c: Likewise.
122         * tests/uninorm/test-u16-nfkd.c: Likewise.
123         * tests/uninorm/test-u32-nfc.c: Likewise.
124         * tests/uninorm/test-u32-nfc-big.c: Likewise.
125         * tests/uninorm/test-u32-nfd.c: Likewise.
126         * tests/uninorm/test-u32-nfd-big.c: Likewise.
127         * tests/uninorm/test-u32-nfkc.c: Likewise.
128         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
129         * tests/uninorm/test-u32-nfkd.c: Likewise.
130         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
131         * tests/uninorm/test-u32-normalize-big.c: Likewise.
132
133 2010-03-27  Bruno Haible  <bruno@clisp.org>
134
135         Distinguish two kinds of module indicators.
136         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
137         gl_MODULE_INDICATOR.
138         (gl_MODULE_INDICATOR): New macro.
139         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
140         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
141         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
142         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
143         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
144         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
145         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
146         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
147         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
148         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
149         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
150         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
151         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
152         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
153         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
154         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
155         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
156         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
157         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
158         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
159         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
160         * modules/cloexec (configure.ac): Likewise.
161         * modules/getopt-gnu (configure.ac): Likewise.
162         * modules/uninorm/u8-normalize (configure.ac): Likewise.
163         * modules/uninorm/u16-normalize (configure.ac): Likewise.
164         * modules/uninorm/u32-normalize (configure.ac): Likewise.
165         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
166
167 2010-03-27  Bruno Haible  <bruno@clisp.org>
168
169         New module description field 'Comment'.
170         * gnulib-tool: New option --extract-comment.
171         (func_usage): Document it.
172         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
173         (func_get_comment): New function.
174         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
175
176 2010-03-27  Bruno Haible  <bruno@clisp.org>
177
178         Addendum to 2010-02-07 commit.
179         * gnulib-tool (func_usage): Document --extract-applicability option.
180
181 2010-03-27  Bruno Haible  <bruno@clisp.org>
182
183         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
184         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
185         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
186         rather than link errors.
187
188 2010-03-27  Bruno Haible  <bruno@clisp.org>
189
190         Avoid side effects from tests-related modules on the compilation of lib.
191         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
192         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
193         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
194         parameter. Emit into AM_CPPFLAGS a definition of the designated C
195         macro.
196         (func_import): Define a witness macro. Assign it a value that depends
197         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
198         tests-related modules.
199         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
200         Reported by Jim Meyering.
201
202 2010-03-27  Bruno Haible  <bruno@clisp.org>
203
204         Factorize common .m4 code.
205         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
206         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
207         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
208         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
209         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
210         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
211         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
212         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
213         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
214         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
215         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
216         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
217         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
218         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
219         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
220         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
221         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
222         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
224         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
225         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
227         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
228         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
229         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
230         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
231         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
232         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
233         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
234         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
235         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
236         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
237
238 2010-03-27  Bruno Haible  <bruno@clisp.org>
239
240         Fix a compilation error on Cygwin with g++ >= 4.3.
241         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
242         if it is undefined or if we alias it to chmod.
243         (lstat): Don't warn about the use of this function if it is undefined
244         or if we alias it to stat.
245         Reported by Simon Josefsson.
246
247 2010-03-27  Bruno Haible  <bruno@clisp.org>
248
249         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
250         * modules/getlogin (configure.ac): Update.
251
252         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
253         * modules/getlogin_r (configure.ac): Update.
254
255         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
257         * modules/inet_ntop (configure.ac): Update.
258
259         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
260         * modules/inet_pton (configure.ac): Update.
261
262         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
263         * modules/mbslen (configure.ac): Update.
264
265         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
266         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
267         * modules/forkpty (configure.ac): Update.
268         * modules/openpty (configure.ac): Update.
269
270 2010-03-26  Simon Josefsson  <simon@josefsson.org>
271
272         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
273         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
274
275 2010-03-25  Eric Blake  <eblake@redhat.com>
276
277         maint: use pragma consistently across replacement headers
278         * lib/ctype.in.h (system_header): Hoist for consistent placement.
279         * lib/dirent.in.h (system_header): Likewise.
280         * lib/errno.in.h (system_header): Likewise.
281         * lib/float.in.h (system_header): Likewise.
282         * lib/getopt.in.h (system_header): Likewise.
283         * lib/iconv.in.h (system_header): Likewise.
284         * lib/inttypes.in.h (system_header): Likewise.
285         * lib/langinfo.in.h (system_header): Likewise.
286         * lib/locale.in.h (system_header): Likewise.
287         * lib/math.in.h (system_header): Likewise.
288         * lib/netdb.in.h (system_header): Likewise.
289         * lib/netinet_in.in.h (system_header): Likewise.
290         * lib/pty.in.h (system_header): Likewise.
291         * lib/sched.in.h (system_header): Likewise.
292         * lib/se-selinux.in.h (system_header): Likewise.
293         * lib/search.in.h (system_header): Likewise.
294         * lib/spawn.in.h (system_header): Likewise.
295         * lib/stdarg.in.h (system_header): Likewise.
296         * lib/stdint.in.h (system_header): Likewise.
297         * lib/string.in.h (system_header): Likewise.
298         * lib/strings.in.h (system_header): Likewise.
299         * lib/sys_file.in.h (system_header): Likewise.
300         * lib/sys_ioctl.in.h (system_header): Likewise.
301         * lib/sys_socket.in.h (system_header): Likewise.
302         * lib/sys_times.in.h (system_header): Likewise.
303         * lib/sys_utsname.in.h (system_header): Likewise.
304         * lib/sys_wait.in.h (system_header): Likewise.
305         * lib/sysexits.in.h (system_header): Likewise.
306         * lib/unistd.in.h (system_header): Likewise.
307         * lib/wctype.in.h (system_header): Likewise.
308
309         arpa/inet: fix mingw compilation warning
310         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
311         Reported by Matthew Bolte.
312
313 2010-03-25  Bruno Haible  <bruno@clisp.org>
314
315         Avoid collision between gnulib wrapper and libintl wrapper.
316         * lib/printf.c (printf): Don't define if a printf wrapper is already
317         defined in intl/printf.c.
318         Reported by Michel Boaventura <michel@michelboaventura.com>.
319
320 2010-03-25  Bruno Haible  <bruno@clisp.org>
321
322         Use ANSI C.
323         * lib/readutmp.h (getutent): Provide ANSI C prototype.
324
325 2010-03-25  Bruno Haible  <bruno@clisp.org>
326
327         Minor formatting changes.
328         * lib/acosl.c: Insert space before function argument list.
329         * lib/argz.c: Likewise.
330         * lib/asinl.c: Likewise.
331         * lib/expl.c: Likewise.
332         * lib/gen-uni-tables.c: Likewise.
333         * lib/gettext.h: Likewise.
334         * lib/glthread/lock.h: Likewise.
335         * lib/tanl.c: Likewise.
336         * lib/uniname/uniname.c: Likewise.
337         * tests/test-idpriv-drop.c: Likewise.
338         * tests/test-idpriv-droptemp.c: Likewise.
339         * tests/test-lock.c: Likewise.
340         * tests/test-tls.c: Likewise.
341         * lib/argp-help.c: Insert space before function-like macro argument
342         list.
343         * lib/memcmp.c: Likewise.
344         * tests/test-base64.c: Likewise.
345         * lib/localename.c: Insert space before sizeof's argument list.
346         * lib/safe-alloc.h: Likewise.
347         * lib/file-set.h: Insert space before macro argument list.
348         * tests/test-argp.c: Likewise.
349         * lib/argp-namefrob.h: Insert space before function parameter list.
350         * lib/getaddrinfo.c: Likewise.
351         * lib/netdb.in.h: Likewise.
352         * lib/parse-duration.h: Likewise.
353         * lib/parse-duration.c: Likewise.
354         * lib/poll.c: Likewise.
355         * lib/select.c: Likewise.
356         * lib/trim.h: Likewise.
357         * tests/test-usleep.c: Likewise.
358         * lib/ldexpl.c: Insert space before function parameter list and before
359         function argument list.
360         * lib/logl.c: Likewise.
361         * lib/sqrtl.c: Likewise.
362         * lib/trim.c: Likewise.
363         * lib/cosl.c: Use GNU style indentation. Insert space before function
364         argument list.
365         * lib/sinl.c: Likewise.
366         * lib/tsearch.c: Insert space after 'for'.
367         Reported by Jim Meyering.
368
369 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
370
371         * maint.mk (sc_Wundef_boolean): Check for the presence of the
372         config header before grepping, as it's not present before
373         autoreconf/configure are run.  Reported by Simon Josefsson.
374
375 2010-03-23  Bruno Haible  <bruno@clisp.org>
376
377         pt_chown: Make it work with automake < 1.11.
378         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
379         Reported by Simon Josefsson.
380
381 2010-03-23  Bruno Haible  <bruno@clisp.org>
382
383         pt_chown: Don't depend on GPLed modules.
384         * lib/pt_chown.c: Don't include idpriv.h.
385         (main): Don't drop privileges.
386         * modules/pt_chown (Depends-on): Remove idpriv-drop.
387         Reported by Simon Josefsson.
388
389 2010-03-24  Simon Josefsson  <simon@josefsson.org>
390
391         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
392         suggestions from karl@freefriends.org (Karl Berry).
393
394 2010-03-22  Eric Blake  <eblake@redhat.com>
395
396         gethostname: further tweaks
397         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
398         are overriding gethostname.
399         Suggested by Bruno Haible.
400
401 2010-03-21  Bruno Haible  <bruno@clisp.org>
402
403         Fix comments.
404         * lib/forkpty.c (rpl_forkpty): Fix comment.
405         * lib/openpty.c (rpl_openpty): Likewise.
406         Reported by Eric Blake.
407
408 2010-03-22  Eric Blake  <eblake@redhat.com>
409
410         gethostname: fix build on mingw
411         * lib/unistd.in.h (includes): Work around fact that mingw
412         <winsock2.h> re-includes <unistd.h>, by avoiding any
413         redeclarations if we are being included by <winsock2.h>.
414         Reported by Matthias Bolte.
415
416 2010-03-21  Bruno Haible  <bruno@clisp.org>
417
418         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
419         * lib/forkpty.c (forkpty): New replacement function, from glibc with
420         modifications.
421         * lib/pty.in.h (forkpty): Update declaration. Add comments.
422         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
423         provide the replacement.
424         * modules/forkpty (Depends-on): Add openpty, login_tty.
425         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
426         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
427         * doc/glibc-functions/forkpty.texi: More supported platforms.
428         * config/srclist.txt: Add forkpty.c (commented).
429
430 2010-03-21  Bruno Haible  <bruno@clisp.org>
431
432         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
433         (Makefile.am): Verify that PTY_LIB is defined.
434
435         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
436
437 2010-03-21  Bruno Haible  <bruno@clisp.org>
438
439         Tests for module 'login_tty'.
440         * modules/login_tty-tests: New file.
441         * tests/test-login_tty.c: New file.
442
443         New module 'login_tty'.
444         * lib/login_tty.c: New file.
445         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
446         * modules/login_tty: New file.
447         * doc/glibc-functions/login_tty.texi: Mention the new module.
448
449 2010-03-21  Bruno Haible  <bruno@clisp.org>
450
451         login_tty: Documentation.
452         * doc/glibc-functions/login_tty.texi: New file.
453         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
454
455 2010-03-21  Bruno Haible  <bruno@clisp.org>
456
457         pty: Consistent macro naming.
458         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
459         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
460         * modules/pty (configure.ac): Update.
461
462 2010-03-21  Bruno Haible  <bruno@clisp.org>
463
464         Tests for openpty: Make stricter.
465         * tests/test-openpty.c (main): Add test of canonical processing and
466         erase.
467         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
468
469         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
470         * lib/openpty.c (openpty): New replacement function.
471         * lib/pty.in.h: Include <termios.h>.
472         (openpty): Update declaration. Add comments.
473         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
474         is not declared, arrange to provide the replacement. Check for _getpty
475         and posix_openpt.
476         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
477         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
478         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
479         * modules/pty-tests (test_pty_c___LDADD): New variable.
480         * doc/glibc-functions/openpty.texi: More supported platforms.
481
482 2010-03-21  Bruno Haible  <bruno@clisp.org>
483
484         setenv: Tweaks.
485         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
486         the test program.
487         * doc/posix-functions/setenv.texi: Update platforms list.
488
489 2010-03-21  Bruno Haible  <bruno@clisp.org>
490
491         New module 'unlockpt'.
492         * lib/unlockpt.c: New file, from glibc with modifications.
493         * m4/unlockpt.m4: New file.
494         * modules/unlockpt: New file.
495         * lib/stdlib.in.h (unlockpt): New declaration.
496         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
497         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
498         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
499         HAVE_UNLOCKPT.
500         * doc/posix-functions/unlockpt.texi: Mention the new module.
501         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
502         * config/srclist.txt: Add unlockpt.c (commented).
503
504 2010-03-21  Jim Meyering  <meyering@redhat.com>
505
506         maint.mk: prohibit inclusion of "intprops.h" without use
507         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
508
509 2010-03-21  Bruno Haible  <bruno@clisp.org>
510
511         New module 'grantpt'.
512         * lib/grantpt.c: New file, from glibc with modifications.
513         * m4/grantpt.m4: New file.
514         * modules/grantpt: New file.
515         * lib/stdlib.in.h (grantpt): New declaration.
516         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
517         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
518         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
519         HAVE_GRANTPT.
520         * doc/posix-functions/grantpt.texi: Mention the new module.
521         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
522         * config/srclist.txt: Add grantpt.c (commented).
523
524 2010-03-21  Bruno Haible  <bruno@clisp.org>
525
526         New module 'pt_chown'.
527         * lib/pt_chown.c: New file, from glibc with modifications.
528         * lib/pty-private.h: New file, from glibc with modifications.
529         * modules/pt_chown: New file.
530         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
531
532 2010-03-21  Bruno Haible  <bruno@clisp.org>
533
534         Tests for module 'ptsname'.
535         * modules/ptsname-tests: New file.
536         * tests/test-ptsname.c: New file.
537
538         New module 'ptsname'.
539         * lib/ptsname.c: New file, from glibc with modifications.
540         * m4/ptsname.m4: New file.
541         * modules/ptsname: New file.
542         * lib/stdlib.in.h (ptsname): New declaration.
543         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
544         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
545         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
546         HAVE_PTSNAME.
547         * doc/posix-functions/ptsname.texi: Mention the new module.
548         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
549         * config/srclist.txt: Add ptsname.c (commented).
550
551 2010-03-21  Bruno Haible  <bruno@clisp.org>
552
553         Tests for module 'ttyname_r'.
554         * modules/ttyname_r-tests: New file.
555         * tests/test-ttyname_r.c: New file.
556
557         New module 'ttyname_r'.
558         * lib/ttyname_r.c: New file.
559         * m4/ttyname_r.m4: New file.
560         * modules/ttyname_r: New file.
561         * lib/unistd.in.h (ttyname_r): New declaration.
562         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
563         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
564         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
565         HAVE_TTYNAME_R.
566         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
567         * doc/posix-functions/ttyname_r.texi: Mention the new module.
568
569 2010-03-20  Bruno Haible  <bruno@clisp.org>
570
571         signal: Undefine macro definitions in C++ mode.
572         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
573         sigfillset): Undefine macro definitions from the system header in C++
574         mode.
575         Reported by John W. Eaton <jwe@gnu.org>.
576
577 2010-03-20  Bruno Haible  <bruno@clisp.org>
578
579         Ensure no #include statements inside extern "C" { ... }.
580         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
581         contain #include statements.
582         * lib/time.in.h: Likewise.
583
584 2010-03-20  Bruno Haible  <bruno@clisp.org>
585
586         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
587         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
588         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
589         Reported by John W. Eaton <jwe@gnu.org>.
590
591 2010-03-20  Bruno Haible  <bruno@clisp.org>
592
593         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
594         Reported by Jim Meyering.
595
596 2010-03-20  Bruno Haible  <bruno@clisp.org>
597
598         pipe: Set errno upon failure.
599         * lib/pipe.h: Specify that when -1 is returned, errno is set.
600         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
601         errno value in error message.
602
603 2010-03-20  Bruno Haible  <bruno@clisp.org>
604             Jim Meyering  <meyering@redhat.com>
605
606         lchown: Avoid "unused variable" warning.
607         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
608
609 2010-03-20  Bruno Haible  <bruno@clisp.org>
610
611         Work around unlink() bug on MacOS X 10.5.6.
612         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
613         attempting to unlink a parent directory.
614         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
615         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
616         activate for the replacement function.
617         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
618
619 2010-03-20  Bruno Haible  <bruno@clisp.org>
620
621         Fix link errors on Solaris 8.
622         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
623         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
624
625 2010-03-19  Jim Meyering  <meyering@redhat.com>
626
627         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
628         The _LIBC implementation of build_range_exp correctly honors the
629         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
630         However, the non-_LIBC implementation would ignore that syntax-bit
631         flag and return REG_ERANGE unconditionally.
632         This change makes it honor that flag.
633         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
634         Make two pointer parameters "const".
635         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
636         (parse_bracket_exp): Update caller.
637
638         regex.m4: correct the reversed range endpoint ([b-a]) test
639         * m4/regex.m4: When requiring that [b-a] evoke failure,
640         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
641         test pass once again for x86-based systems.
642
643 2010-03-19  Bruno Haible  <bruno@clisp.org>
644
645         scandir: Fix link error on Solaris 8.
646         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
647         macros.
648
649 2010-03-19  Bruno Haible  <bruno@clisp.org>
650
651         getusershell: Fix documentation.
652         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
653         module.
654         * doc/glibc-functions/setusershell.texi: Likewise.
655
656         getusershell: Provide declaration, missing on Solaris 9.
657         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
658         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
659         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
660         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
662         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
663         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
664         HAVE_GETUSERSHELL.
665         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
666
667 2010-03-19  Bruno Haible  <bruno@clisp.org>
668
669         wctype: Provide iswblank function.
670         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
671         exists and is fine.
672         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
673         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
674         * tests/test-wctype.c (main): Re-enable the iswblank tests.
675         * doc/posix-functions/iswblank.texi: Update.
676
677 2010-03-19  Bruno Haible  <bruno@clisp.org>
678
679         Tests of module 'pty' in C++ mode.
680         * modules/pty-tests: New file.
681         * tests/test-pty-c++.cc: New file.
682         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
683
684 2010-03-19  Eric Blake  <eblake@redhat.com>
685
686         logb: fix documentation
687         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
688         1.5 declaration bug.
689
690         forkpty, openpty: prefer glibc's const-safe prototype
691         * lib/forkpty.c (rpl_forkpty): New file.
692         * lib/openpty.c (rpl_openpty): Likewise.
693         * modules/forkpty (Files): Distribute it.
694         * modules/openpty (Files): Likewise.
695         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
696         check...
697         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
698         replacement for for non-const BSD signature.
699         * modules/pty (Makefile.am): Substitute witnesses.
700         * lib/pty.in.h (forkpty, openpty): Declare replacements.
701         * tests/test-forkpty.c: Update signature check.
702         * tests/test-openpty.c: Likewise.
703         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
704         * doc/glibc-functions/openpty.texi (openpty): Likewise.
705
706         forkpty, openpty: split functions into new modules
707         * modules/pty (Makefile.am): Substitute new witnesses.
708         (Libraries): Move library detection...
709         * modules/forkpty: ...into new module.
710         * modules/openpty: Another new module.
711         * modules/pty-tests: Rename and split...
712         * modules/forkpty-tests: ...to this...
713         * modules/openpty-tests: ...and this.
714         * tests/test-pty.c: Rename and split...
715         * tests/test-forkpty.c: ...to this...
716         * tests/test-openpty.c: ...and this.
717         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
718         (gl_PTY): Split library searching...
719         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
720         (gl_FORKPTY, gl_OPENPTY): New macros.
721         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
722         * NEWS: Mention the split.
723         * MODULES.html.sh (Misc): Document the modules.
724         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
725         * doc/glibc-functions/openpty.texi (openpty): Likewise.
726
727         pty: improve replacement header
728         * lib/pty.in.h: New file.
729         * modules/pty (Files): Ship it.
730         (Makefile.am): Always build replacement.
731         * m4/pty.m4: Rename...
732         * m4/pty_h.m4: ...to this.
733         (gl_PTY): Modernize setting of witness macros; update check of
734         forkpty to take proper advantage of cache.
735         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
736
737         getopt: avoid compiler warning
738         * lib/getopt.c (attribute_hidden): Remove unused macro.
739
740 2010-03-18  Bruno Haible  <bruno@clisp.org>
741
742         Fix link errors on Solaris 8.
743         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
744         * modules/search-tests (test_search_c___LDADD): Likewise.
745         * modules/signal-tests (test_signal_c___LDADD): Likewise.
746         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
747         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
748         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
749         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
750         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
751         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
752
753 2010-03-18  Bruno Haible  <bruno@clisp.org>
754
755         Fix bug introduced on 2010-03-14.
756         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
757         (gl_SPAWN_H): Require it.
758         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
759         Reported by Simon Josefsson.
760
761 2010-03-18  Bruno Haible  <bruno@clisp.org>
762
763         Fix typo introduced on 2009-12-31.
764         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
765         posix_spawn_file_actions_adddup2.
766
767 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
768         and Eric Blake  <eblake@redhat.com>
769
770         test-vc-list-files-git: make more robust
771         * tests/test-vc-list-files-git.sh: Unset problematic environment
772         variables.  Chain commands together.
773
774 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
775
776         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
777         `AC_CHECK_DECL' invocation.
778
779 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
780
781         * lib/inttostr.c (inttostr): Make sure the invocation of verify
782         appears before executable statements. Suggested by Petr Sumbera
783         <Petr.Sumbera@Sun.COM>.
784
785 2010-03-14  Bruno Haible  <bruno@clisp.org>
786
787         * tests/test-flock.c (test_exclusive): Comment out a test that causes
788         portability problems. Instead use a simpler test.
789         (main): Check that invalid arguments are rejected only on Linux.
790
791 2010-03-14  Bruno Haible  <bruno@clisp.org>
792
793         Fix bug introduced on 2009-12-31.
794         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
795         gl_PREREQ_SYS_H_WINSOCK2 always.
796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
797         SYS_SOCKET_H variable.
798         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
799         Update comments.
800         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
801         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
802         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
803         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
804         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
805
806 2010-03-14  Bruno Haible  <bruno@clisp.org>
807
808         Fix values returned by sinl, cosl.
809         * lib/trigl.h: Add specification comments.
810         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
811         that combines the values from the precomputed table with the values of
812         the Chebyshev polynomials.
813
814 2010-03-14  Bruno Haible  <bruno@clisp.org>
815
816         Fix compilation error when modules 'posix_spawn[p]' are not used.
817         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
818         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
819
820 2010-03-14  Bruno Haible  <bruno@clisp.org>
821
822         Fix compilation error on mingw when module 'time_r' is not used.
823         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
824         is 1.
825         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
826         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
827         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
828         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
829
830 2010-03-14  Bruno Haible  <bruno@clisp.org>
831
832         Fix compilation error with Sun C.
833         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
834         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
835         instead of GCC specific ULONG_LONG_MAX.
836         * lib/xstrtoll.c: Likewise.
837         * lib/xstrtoull.c: Likewise.
838
839 2010-03-13  Bruno Haible  <bruno@clisp.org>
840
841         Allow the user to disable C++ code and tests.
842         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
843         (gl_PROG_ANSI_CXX): Require it.
844
845 2010-03-13  Bruno Haible  <bruno@clisp.org>
846
847         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
848         cases.
849
850 2010-03-13  Bruno Haible  <bruno@clisp.org>
851
852         Test that gnulib does not break the standard C++ headers.
853         * tests/test-locale-c++2.cc: New file.
854         * modules/locale-tests (Files): Add it.
855         (Makefile.am): Compile it for test-locale-c++.
856         * tests/test-math-c++2.cc: New file.
857         * modules/math-tests (Files): Add it.
858         (Makefile.am): Compile it for test-math-c++.
859         * tests/test-signal-c++2.cc: New file.
860         * modules/signal-tests (Files): Add it.
861         (Makefile.am): Compile it for test-signal-c++.
862         * tests/test-stdio-c++2.cc: New file.
863         * modules/stdio-tests (Files): Add it.
864         (Makefile.am): Compile it for test-stdio-c++.
865         * tests/test-stdlib-c++2.cc: New file.
866         * modules/stdlib-tests (Files): Add it.
867         (Makefile.am): Compile it for test-stdlib-c++.
868         * tests/test-string-c++2.cc: New file.
869         * modules/string-tests (Files): Add it.
870         (Makefile.am): Compile it for test-string-c++.
871         * tests/test-time-c++2.cc: New file.
872         * modules/time-tests (Files): Add it.
873         (Makefile.am): Compile it for test-time-c++.
874         Reported by John W. Eaton <jwe@gnu.org>.
875
876 2010-03-13  Bruno Haible  <bruno@clisp.org>
877
878         * gnulib-tool (func_usage): Clarify which options are available for
879         --create-testdir and --create-megatestdir.
880
881 2010-03-13  Bruno Haible  <bruno@clisp.org>
882
883         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
884         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
885         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
886         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
887         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
888         when appropriate.
889         Reported by Jim Meyering.
890
891 2010-03-12  Simon Josefsson  <simon@josefsson.org>
892
893         * gnulib-tool (func_import): Explain origin of code.
894
895 2010-03-12  Bruno Haible  <bruno@clisp.org>
896
897         Fix problem with automake's definition of CXXLINK.
898         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
899         Reported by Simon Josefsson and Ludovic Courtès.
900
901 2010-03-12  Bruno Haible  <bruno@clisp.org>
902
903         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
904         stable releases.
905
906 2010-03-11  Bruno Haible  <bruno@clisp.org>
907
908         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
909         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
910         whether the system provides one variant or multiple variants of the
911         function.
912         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
913         C++ compilers.
914         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
915         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
916         Reported by Jim Meyering.
917
918 2010-03-09  Simon Josefsson  <simon@josefsson.org>
919
920         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
921
922 2010-03-08  Bruno Haible  <bruno@clisp.org>
923
924         gnulib-tool: Add support for --libtool in --create-testdir.
925         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
926         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
927
928 2010-03-08  Eric Blake  <eblake@redhat.com>
929
930         gnulib-tool.texi: mention possibility of git submodule
931         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
932         submodules.
933         * doc/.gitignore: Ignore another generated file.
934
935 2010-03-08  Karl Berry  <karl@gnu.org>
936
937         * doc/gnulib-tool.texi (VCS Issues): Mention third option
938         of committing gnulib files while skipping others.
939
940 2010-03-07  Bruno Haible  <bruno@clisp.org>
941
942         Tests of module 'wctype' in C++ mode.
943         * tests/test-wctype-c++.cc: New file.
944         * modules/wctype-tests (Files): Add it and tests/signature.h.
945         (Depends-on): Add ansi-c++-opt.
946         (Makefile.am): Arrange to compile and run test-wctype-c++.
947
948         Tests of module 'wchar' in C++ mode.
949         * tests/test-wchar-c++.cc: New file.
950         * modules/wchar-tests (Files): Add it and tests/signature.h.
951         (Depends-on): Add ansi-c++-opt.
952         (Makefile.am): Arrange to compile and run test-wchar-c++.
953         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
954         gl_MODULE_INDICATOR.
955
956         Tests of module 'unistd' in C++ mode.
957         * tests/test-unistd-c++.cc: New file.
958         * modules/unistd-tests (Files): Add it and tests/signature.h.
959         (Depends-on): Add ansi-c++-opt.
960         (Makefile.am): Arrange to compile and run test-unistd-c++.
961         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
962         gl_MODULE_INDICATOR.
963
964         Tests of module 'time' in C++ mode.
965         * tests/test-time-c++.cc: New file.
966         * modules/time-tests (Files): Add it and tests/signature.h.
967         (Depends-on): Add ansi-c++-opt.
968         (Makefile.am): Arrange to compile and run test-time-c++.
969         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
970
971         Tests of module 'sys_time' in C++ mode.
972         * tests/test-sys_time-c++.cc: New file.
973         * modules/sys_time-tests (Files): Add it and tests/signature.h.
974         (Depends-on): Add ansi-c++-opt.
975         (Makefile.am): Arrange to compile and run test-sys_time-c++.
976         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
977         gl_MODULE_INDICATOR.
978
979         Tests of module 'sys_stat' in C++ mode.
980         * tests/test-sys_stat-c++.cc: New file.
981         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
982         (Depends-on): Add ansi-c++-opt.
983         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
984         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
985         gl_MODULE_INDICATOR.
986
987         Tests of module 'sys_socket' in C++ mode.
988         * tests/test-sys_socket-c++.cc: New file.
989         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
990         (Depends-on): Add ansi-c++-opt.
991         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
992         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
993         gl_MODULE_INDICATOR.
994
995         Tests of module 'sys_select' in C++ mode.
996         * tests/test-sys_select-c++.cc: New file.
997         * modules/sys_select-tests (Files): Add it and tests/signature.h.
998         (Depends-on): Add ansi-c++-opt.
999         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1000         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1001         gl_MODULE_INDICATOR.
1002
1003         Tests of module 'sys_ioctl' in C++ mode.
1004         * tests/test-sys_ioctl-c++.cc: New file.
1005         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1006         (Depends-on): Add ansi-c++-opt.
1007         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1008         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1009         gl_MODULE_INDICATOR.
1010
1011         Tests of module 'string' in C++ mode.
1012         * tests/test-string-c++.cc: New file.
1013         * modules/string-tests (Files): Add it and tests/signature.h.
1014         (Depends-on): Add ansi-c++-opt.
1015         (Makefile.am): Arrange to compile and run test-string-c++.
1016         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1017         gl_MODULE_INDICATOR.
1018
1019         Tests of module 'stdlib' in C++ mode.
1020         * tests/test-stdlib-c++.cc: New file.
1021         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1022         (Depends-on): Add ansi-c++-opt.
1023         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1024         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1025         gl_MODULE_INDICATOR.
1026
1027         Tests of module 'stdio' in C++ mode.
1028         * tests/test-stdio-c++.cc: New file.
1029         * modules/stdio-tests (Files): Add it and tests/signature.h.
1030         (Depends-on): Add ansi-c++-opt.
1031         (Makefile.am): Arrange to compile and run test-stdio-c++.
1032         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1033         gl_MODULE_INDICATOR.
1034
1035         Tests of module 'spawn' in C++ mode.
1036         * tests/test-spawn-c++.cc: New file.
1037         * modules/spawn-tests (Files): Add it and tests/signature.h.
1038         (Depends-on): Add ansi-c++-opt.
1039         (Makefile.am): Arrange to compile and run test-spawn-c++.
1040         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1041         gl_MODULE_INDICATOR.
1042
1043         Tests of module 'signal' in C++ mode.
1044         * tests/test-signal-c++.cc: New file.
1045         * modules/signal-tests (Files): Add it and tests/signature.h.
1046         (Depends-on): Add ansi-c++-opt.
1047         (Makefile.am): Arrange to compile and run test-signal-c++.
1048         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1049         gl_MODULE_INDICATOR.
1050
1051         Tests of module 'search' in C++ mode.
1052         * tests/test-search-c++.cc: New file.
1053         * modules/search-tests (Files): Add it and tests/signature.h.
1054         (Depends-on): Add ansi-c++-opt.
1055         (Makefile.am): Arrange to compile and run test-search-c++.
1056         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1057         gl_MODULE_INDICATOR.
1058
1059         Tests of module 'math' in C++ mode.
1060         * tests/test-math-c++.cc: New file.
1061         * modules/math-tests (Files): Add it and tests/signature.h.
1062         (Depends-on): Add ansi-c++-opt.
1063         (Makefile.am): Arrange to compile and run test-math-c++.
1064         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1065
1066         Tests of module 'locale' in C++ mode.
1067         * tests/test-locale-c++.cc: New file.
1068         * modules/locale-tests (Files): Add it and tests/signature.h.
1069         (Depends-on): Add ansi-c++-opt.
1070         (Makefile.am): Arrange to compile and run test-locale-c++.
1071         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1072         gl_MODULE_INDICATOR.
1073
1074         Tests of module 'langinfo' in C++ mode.
1075         * tests/test-langinfo-c++.cc: New file.
1076         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1077         (Depends-on): Add ansi-c++-opt.
1078         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1079         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1080         gl_MODULE_INDICATOR.
1081
1082         Tests of module 'iconv-h' in C++ mode.
1083         * tests/test-iconv-h-c++.cc: New file.
1084         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1085         (Depends-on): Add ansi-c++-opt.
1086         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1087
1088         Tests of module 'glob' in C++ mode.
1089         * tests/test-glob-c++.cc: New file.
1090         * modules/glob-tests (Files): Add it.
1091         (Depends-on): Add ansi-c++-opt.
1092         (Makefile.am): Arrange to compile and run test-glob-c++.
1093
1094         Tests of module 'fcntl-h' in C++ mode.
1095         * tests/test-fcntl-h-c++.cc: New file.
1096         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1097         (Depends-on): Add ansi-c++-opt.
1098         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1099         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1100         gl_MODULE_INDICATOR.
1101
1102         Tests of module 'dirent' in C++ mode.
1103         * tests/test-dirent-c++.cc: New file.
1104         * modules/dirent-tests (Files): Add it and tests/signature.h.
1105         (Depends-on): Add ansi-c++-opt.
1106         (Makefile.am): Arrange to compile and run test-dirent-c++.
1107         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1108         gl_MODULE_INDICATOR.
1109
1110         New module 'ansi-c++-opt'.
1111         * modules/ansi-c++-opt: New file.
1112         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1113
1114         Document C++ namespace mode.
1115         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1116
1117         wctype: Avoid #define replacements in C++ mode.
1118         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1119         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1120         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1121         In C++, define a namespaced alias symbol.
1122         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1123         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1124         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1125         rule.
1126
1127         wchar: Avoid #define replacements in C++ mode.
1128         * lib/wchar.in.h: Include c++defs.h.
1129         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1130         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1131         symbol.
1132         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1133         * modules/wchar (Depends-on): Add c++defs.
1134         (Makefile.am): Update wchar.h rule.
1135
1136         unistd: Avoid #define replacements in C++ mode.
1137         * lib/unistd.in.h: Include c++defs.h.
1138         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1139         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1140         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1141         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1142         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1143         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1144         symbol.
1145         (environ): Update.
1146         * modules/unistd (Depends-on): Add c++defs.
1147         (Makefile.am): Update unistd.h rule.
1148
1149         time: Avoid #define replacements in C++ mode.
1150         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1151         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1152         define a namespaced alias symbol.
1153         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1154         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1155         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1156         * modules/time (Depends-on): Add c++defs, warn-on-use.
1157         (Makefile.am): Update time.h rule.
1158         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1159         * modules/nanosleep (configure.ac): Likewise.
1160         * modules/strptime (configure.ac): Likewise.
1161         * modules/timegm (configure.ac): Likewise.
1162
1163         sys_time: Avoid #define replacements in C++ mode.
1164         * lib/sys_time.in.h: Include c++defs.h.
1165         (gettimeofday): In C++, define a namespaced alias symbol.
1166         * modules/sys_time (Depends-on): Add c++defs.
1167         (Makefile.am): Update sys/time.h rule.
1168
1169         sys_stat: Avoid #define replacements in C++ mode.
1170         * lib/sys_stat.in.h: Include c++defs.h.
1171         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1172         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1173         namespaced alias symbol.
1174         In C++, define a namespaced alias symbol.
1175         * modules/sys_stat (Depends-on): Add c++defs.
1176         (Makefile.am): Update sys/stat.h rule.
1177
1178         sys_socket: Avoid #define replacements in C++ mode.
1179         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1180         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1181         definitions also when the system has a <sys/socket.h>.
1182         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1183         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1184         In C++, define a namespaced alias symbol.
1185         * modules/sys_socket (Depends-on): Add c++defs.
1186         (Makefile.am): Update sys/socket.h rule.
1187
1188         sys_select: Avoid #define replacements in C++ mode.
1189         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1190         definitions also when the system has a <sys/select.h>.
1191         (select): In C++, define a namespaced alias symbol.
1192         * modules/sys_select (Depends-on): Add c++defs.
1193         (Makefile.am): Update sys/select.h rule.
1194
1195         sys_ioctl: Avoid #define replacements in C++ mode.
1196         * lib/sys_ioctl.in.h: Include c++defs.h.
1197         (ioctl): In C++, define a namespaced alias symbol.
1198         * modules/sys_ioctl (Depends-on): Add c++defs.
1199         (Makefile.am): Update sys/ioctl.h rule.
1200
1201         string: Avoid #define replacements in C++ mode.
1202         * lib/string.in.h: Include c++defs.h.
1203         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1204         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1205         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1206         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1207         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1208         * modules/string (Depends-on): Add c++defs.
1209         (Makefile.am): Update string.h rule.
1210
1211         stdlib: Avoid #define replacements in C++ mode.
1212         * lib/stdlib.in.h: Include c++defs.h.
1213         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1214         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1215         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1216         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1217         symbol.
1218         * modules/stdlib (Depends-on): Add c++defs.
1219         (Makefile.am): Update stdlib.h rule.
1220
1221         stdio: Avoid #define replacements in C++ mode.
1222         * lib/stdio.in.h: Include c++defs.h.
1223         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1224         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1225         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1226         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1227         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1228         namespaced alias symbol.
1229         * modules/stdio (Depends-on): Add c++defs.
1230         (Makefile.am): Update stdio.h rule.
1231
1232         spawn: Avoid #define replacements in C++ mode.
1233         * lib/spawn.in.h: Include c++defs.h.
1234         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1235         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1236         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1237         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1238         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1239         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1240         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1241         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1242         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1243         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1244         In C++, define a namespaced alias symbol.
1245         * modules/spawn (Depends-on): Add c++defs.
1246         (Makefile.am): Update spawn.h rule.
1247
1248         signal: Avoid #define replacements in C++ mode.
1249         * lib/signal.in.h: Include c++defs.h.
1250         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1251         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1252         namespaced alias symbol.
1253         * modules/signal (Depends-on): Add c++defs.
1254         (Makefile.am): Update signal.h rule.
1255
1256         search: Avoid #define replacements in C++ mode.
1257         * lib/search.in.h: Include c++defs.h.
1258         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1259         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1260         symbol.
1261         * modules/search (Depends-on): Add c++defs.
1262         (Makefile.am): Update search.h rule.
1263
1264         math: Avoid #define replacements in C++ mode.
1265         * lib/math.in.h: Include c++defs.h.
1266         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1267         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1268         trunc, truncl): In C++, define a namespaced alias symbol.
1269         * modules/math (Depends-on): Add c++defs.
1270         (Makefile.am): Update math.h rule.
1271
1272         locale: Avoid #define replacements in C++ mode.
1273         * lib/locale.in.h: Include c++defs.h.
1274         (duplocale): In C++, define a namespaced alias symbol.
1275         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1277         * modules/locale (Depends-on): Add c++defs.
1278         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1279
1280         langinfo: Avoid #define replacements in C++ mode.
1281         * lib/langinfo.in.h: Include c++defs.h.
1282         (nl_langinfo): In C++, define a namespaced alias symbol.
1283         * modules/langinfo (Depends-on): Add c++defs.
1284         (Makefile.am): Update langinfo.h rule.
1285
1286         iconv-h: Avoid #define replacements in C++ mode.
1287         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1288         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1289         symbol.
1290         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1291         whenever iconv is present.
1292         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1293         (Makefile.am): Update iconv.h rule.
1294
1295         glob: Avoid #define replacements in C++ mode.
1296         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1297         (_gl_glob_errfunc_fn): New type.
1298         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1299         symbol.
1300         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1301         (Makefile.am): Update glob.h rule.
1302
1303         fcntl-h: Avoid #define replacements in C++ mode.
1304         * lib/fcntl.in.h: Include c++defs.h.
1305         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1306         * modules/fcntl-h (Depends-on): Add c++defs.
1307         (Makefile.am): Update fcntl.h rule.
1308
1309         dirent: Avoid #define replacements in C++ mode.
1310         * lib/dirent.in.h: Include c++defs.h.
1311         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1312         namespaced alias symbol.
1313         (dirfd): Update declaration.
1314         * modules/dirent (Depends-on): Add c++defs.
1315         (Makefile.am): Update dirent.h rule.
1316
1317         ctype: Make it usable in C++ code.
1318         * lib/ctype.in.h: Include c++defs.h.
1319         (isblank): Declare as extern "C".
1320         * modules/ctype (Depends-on): Add c++defs.
1321         (Makefile.am): Update ctype.h rule.
1322
1323         New module 'c++defs'.
1324         * modules/c++defs: New file.
1325         * build-aux/c++defs.h: New file.
1326         Reported by John W. Eaton <jwe@gnu.org>.
1327
1328 2010-03-07  Bruno Haible  <bruno@clisp.org>
1329
1330         logb: Provide missing declaration for Cygwin.
1331         * lib/math.in.h (logb): New declaration.
1332         * m4/logb.m4: New file.
1333         * modules/logb (Files): Add m4/logb.m4.
1334         (Depends-on): Add math.
1335         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1336         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1338         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1339         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1340
1341 2010-03-07  Bruno Haible  <bruno@clisp.org>
1342
1343         Fix test-cond link error.
1344         * tests/test-cond.c: Include <stdio.h>.
1345
1346 2010-03-07  Bruno Haible  <bruno@clisp.org>
1347
1348         Fix test-dirent-safer link error.
1349         * modules/dirent-safer-tests (Makefile.am): Define
1350         test_dirent_safer_LDADD.
1351
1352 2010-03-07  Bruno Haible  <bruno@clisp.org>
1353
1354         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1355         among default module list.
1356
1357 2010-03-07  Bruno Haible  <bruno@clisp.org>
1358
1359         Fix link error on platforms with GNU libiconv.
1360         * modules/unistr/u8-strcoll-tests (Makefile): Define
1361         test_u8_strcoll_LDADD.
1362         * modules/unistr/u16-strcoll-tests (Makefile): Define
1363         test_u16_strcoll_LDADD.
1364         * modules/unistr/u32-strcoll-tests (Makefile): Define
1365         test_u32_strcoll_LDADD.
1366
1367 2010-03-07  Bruno Haible  <bruno@clisp.org>
1368
1369         Use POSIX declarations for socket functions.
1370         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1371         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1372         rpl_sendto): Change declaration to match POSIX.
1373         * lib/connect.c (rpl_connect): Likewise.
1374         * lib/accept.c (rpl_accept): Likewise.
1375         * lib/bind.c (rpl_bind): Likewise.
1376         * lib/getpeername.c (rpl_getpeername): Likewise.
1377         * lib/getsockname.c (rpl_getsockname): Likewise.
1378         * lib/recv.c (rpl_recv): Likewise.
1379         * lib/send.c (rpl_send): Likewise.
1380         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1381         * lib/sendto.c (rpl_sendto): Likewise.
1382
1383 2010-03-06  Bruno Haible  <bruno@clisp.org>
1384
1385         Clarify access, euidaccess, faccessat.
1386         * doc/posix-functions/faccessat.texi: Mention security problem under
1387         "Other problems", not "Portability problems".
1388         * doc/posix-functions/access.texi: Likewise. Mention a related security
1389         problem.
1390         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1391         * lib/euidaccess.c: Add comments about platforms.
1392         * lib/unistd.in.h (access, euidaccess): Add warnings.
1393
1394 2010-03-07  Bruno Haible  <bruno@clisp.org>
1395
1396         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1397         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1398         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1399         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1400         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1401         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1402         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1403         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1404         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1405         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1406         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1407         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1408         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1409         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1410         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1411         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1412         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1413         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1414         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1415         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1416         Likewise.
1417         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1418         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1419         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1420         Likewise.
1421         * tests/test-spawn.c (main): Make it work when
1422         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1423
1424 2010-03-07  Bruno Haible  <bruno@clisp.org>
1425
1426         Fix incorrect Makefile.am generation in German locale.
1427         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1428         Execute sed command with character range in C locale.
1429
1430 2010-03-06  Bruno Haible  <bruno@clisp.org>
1431
1432         Tests for module 'iconv-h'.
1433         * modules/iconv-h-tests: New file.
1434         * tests/test-iconv-h.c: New file.
1435
1436         New module 'iconv-h'.
1437         * modules/iconv-h: New file.
1438         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1439         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1440         (configure.ac): Remove gl_ICONV_H.
1441         (Makefile.am): Remove rule for iconv.h.
1442
1443 2010-03-06  Bruno Haible  <bruno@clisp.org>
1444
1445         More consistent naming of *.m4 files.
1446         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1447         * modules/wctype (Files): Update.
1448
1449         More consistent naming of *.m4 files.
1450         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1451         * modules/wchar (Files): Update.
1452
1453 2010-03-06  Jim Meyering  <meyering@redhat.com>
1454
1455         euidaccess: relax license to LGPLv2+
1456         * modules/euidaccess (License): Relax to LGPLv2+.
1457
1458 2010-03-06  Bruno Haible  <bruno@clisp.org>
1459
1460         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1461         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1462         (Makefile.am): Augment lib_SOURCES instead.
1463
1464 2010-03-04  Jim Meyering  <meyering@redhat.com>
1465
1466         utime: remove obsolete module
1467         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1468         unnecessary for years, and has been marked as obsolete for 10 months.
1469         * modules/utime: Remove file.
1470         * lib/utime.c: Remove file.
1471         * m4/utime.m4: Remove file.
1472         * m4/utimes-null.m4: Remove file.
1473         * doc/posix-functions/utime.texi (utime): Remove reference to
1474         the module.  Move the sole "fixed by gnulib" item into the
1475         "problems not fixed by Gnulib" list.
1476         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1477
1478 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1479
1480         * modules/exit (License): Relax license to LGPLv2+.
1481         (Status): Mark as obsolete.
1482         * NEWS: Mention deprecated 'exit' module.
1483         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1484         of now obsolete 'exit'.
1485
1486 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1487
1488         fts-lgpl: remove unused module
1489         * modules/fts-lgpl: Remove.
1490         * MODULES.html.sh (func_all_modules): Adjust.
1491         * check-module (find_included_lib_files): Adjust.
1492         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1493
1494 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1495
1496         copy-acl: enhance Solaris ACL error handling
1497         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1498         * lib/set-mode-acl.c (qset_acl): Likewise.
1499
1500 2010-03-02  Bruno Haible  <bruno@clisp.org>
1501
1502         spawn: Don't override the system defined values on FreeBSD 8.
1503         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1504         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1505         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1506         if HAVE_POSIX_SPAWN is 1.
1507         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1508
1509 2010-03-01  Bruno Haible  <bruno@clisp.org>
1510
1511         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1512         regarding Automake.
1513
1514 2010-02-25  Bruno Haible  <bruno@clisp.org>
1515
1516         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1517         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1518         setting, not afterwards.
1519         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1520
1521 2010-02-24  Eric Blake  <eblake@redhat.com>
1522
1523         bootstrap, git-version-gen: use timestamp
1524         * build-aux/git-version-gen (scriptversion): Force UTC.
1525         * build-aux/bootstrap (scriptversion): New variable.
1526
1527         bootstrap: allow older git
1528         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1529         older than 1.6.4.  Requested by the libvirt project.
1530
1531 2010-02-23  Eric Blake  <eblake@redhat.com>
1532
1533         warn-on-use: work with old autoconf
1534         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1535         AS_VAR semantics of autoconf 2.60.
1536         Reported by Bruno Haible.
1537
1538         bootstrap: improve some comments
1539         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1540         clarification comments.
1541
1542         gettimeofday: provide correct function
1543         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1544         when replacement is declared, otherwise provide gettimeofday.
1545         Reported by Michael Goffioul.
1546
1547 2010-02-23  Jim Meyering  <meyering@redhat.com>
1548
1549         lib-ignore: relax license to "unlimited", not LGPLv2+
1550         * modules/lib-ignore (License): Relax to "unlimited".
1551
1552 2010-02-23  Jim Meyering  <meyering@redhat.com>
1553
1554         lib-ignore: relax license to LGPLv2+
1555         * modules/lib-ignore (License): Relax to LGPLv2+.
1556
1557 2010-02-22  Eric Blake  <eblake@redhat.com>
1558
1559         lseek: avoid bash 3.2 broken pipe bug
1560         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1561         warning from bash 3.2.
1562         Reported by Ben Pfaff, with analysis from Bruno Haible.
1563
1564         bootstrap: support non-FSF copyright holder
1565         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1566         bootstrap.conf override of COPYRIGHT_HOLDER.
1567         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1568
1569         bootstrap: interoperate with gettext 0.14.1
1570         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1571
1572         bootstrap: allow for alternate submodule location
1573         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1574         hardcoding submodule location.
1575         (gnulib_mk): Allow direct use of Makefile.am.
1576
1577         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1578         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1579         rather than reconfiguring where the submodule points.
1580
1581         gettimeofday: restore support for platforms that lack function
1582         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1583         replacement if function is missing.
1584         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1585         * modules/sys_time (Makefile.am): Substitute it.
1586         * lib/sys_time.in.h (gettimeofday): Check it.
1587         Reported by Michael Goffioul.
1588
1589 2010-02-21  Bruno Haible  <bruno@clisp.org>
1590
1591         * lib/stdio.in.h (obstack_printf): Fix typo.
1592
1593 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1594
1595         vc-list-files: use bzr ls's -R option
1596         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1597         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1598
1599 2010-02-21  Jim Meyering  <meyering@redhat.com>
1600
1601         init.sh: fix EXEEXT shims to work also for names like test-prog
1602         * tests/init.sh: Re-exec a better shell, when needed.
1603         If the current shell lacks support for posix $(...), an init.sh-using
1604         test will now try to find a shell that supports that.  If EXEEXT is
1605         nonempty, we also require support for hyphen-in-alias-name and shell
1606         substitutions like ${var#glob}.  Failure to find such a shell results
1607         in a skipped test.
1608
1609 2010-02-21  Bruno Haible  <bruno@clisp.org>
1610
1611         Really work around around "broken pipe" error message from bash 3.2.
1612         * gnulib-tool (func_reset_sigpipe): Remove function.
1613         (echo): In bash 3.2, define to a function that uses printf.
1614         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1615
1616 2010-02-20  Bruno Haible  <bruno@clisp.org>
1617
1618         Restore support for automake 1.9.6 with autoconf 2.61.
1619         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1620         Reported by James Youngman <jay@gnu.org>.
1621
1622 2010-02-20  Bruno Haible  <bruno@clisp.org>
1623
1624         Improve *printf warning condition.
1625         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1626         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1627         and the function is overridden due to SIGPIPE emulation.
1628
1629 2010-02-20  Bruno Haible  <bruno@clisp.org>
1630
1631         * lib/stdio.in.h: Tweak comments.
1632
1633 2010-02-19  Bruno Haible  <bruno@clisp.org>
1634
1635         Make it easier to find modules. New gnulib-tool option '--find'.
1636         * gnulib-tool: New option --find.
1637         (func_usage): Document it.
1638         (func_sanitize_modulelist): New function, extracted from
1639         func_all_modules.
1640         (func_all_modules): Invoke it.
1641         * doc/gnulib-tool.texi (Which modules?): New node.
1642
1643 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1644
1645         * lib/sys_select.in.h: Provide select replacement even if
1646         sys/select.h exists on a system, for Interix.
1647
1648 2010-02-18  Jim Meyering  <meyering@redhat.com>
1649
1650         init.sh: don't use $(...) just yet
1651         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1652         to accommodate e.g., Solaris' /bin/sh.
1653
1654 2010-02-17  Bruno Haible  <bruno@clisp.org>
1655
1656         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1657         Reported by Ludovic Courtès <ludo@gnu.org>.
1658
1659 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1660
1661         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1662         linking with -lintl.
1663
1664 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1665
1666         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1667         if not provided by the system's netdb.h.  Reported by
1668         ludo@gnu.org (Ludovic Courtès).
1669
1670 2010-02-15  Jim Meyering  <meyering@redhat.com>
1671
1672         init.sh: improve portability and efficiency
1673         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1674         "dummy" in a for loop.
1675         Use '!', not '^' to select the complement of a character set used
1676         in a "case" statement.
1677         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1678         Suggestions from Eric Blake.
1679
1680         init.sh: automatically accommodate programs with the .exe suffix
1681         Automatically arrange for an invocation of "prog" to execute the
1682         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1683         may use the simpler "prog", yet still work when built on a system
1684         that requires specifying the added suffix.
1685         Do this by constructing a function named "prog" that invokes
1686         "prog.exe" for each .exe file in selected directories.
1687         * tests/init.sh (find_exe_basenames_): New function.
1688         (create_exe_shim_functions_): New function.
1689         (path_prepend_): Use it.
1690
1691         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1692         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1693         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1694
1695 2010-02-14  Jim Meyering  <meyering@redhat.com>
1696
1697         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1698         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1699         (sc_prohibit_hash_pjw_without_use): New rule.
1700
1701         maint.mk: allow the default upload destination dir to be overridden
1702         * top/maint.mk (upload_dest_dir_): Define with a default that
1703         preserves the status quo.
1704         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1705         Reported by Peter Simons.
1706
1707         maint.mk: prohibit inclusion of "hash.h" without_use
1708         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1709
1710 2010-02-10  Jim Meyering  <meyering@redhat.com>
1711
1712         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1713         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1714
1715 2010-02-09  Eric Blake  <ebb9@byu.net>
1716         and Bruno Haible  <bruno@clisp.org>
1717
1718         obstack-printf-posix: ensure declaration
1719         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1720         extracted from gl_FUNC_OBSTACK_PRINTF.
1721         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1722         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1723         Likewise.
1724         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1725         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1726         0.
1727
1728 2010-02-08  Bruno Haible  <bruno@clisp.org>
1729
1730         gnulib-tool: Fix typo in 2010-02-07 commit.
1731         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1732         Reported by Eric Blake.
1733
1734 2010-02-07  Bruno Haible  <bruno@clisp.org>
1735
1736         gnulib-tool: Fix up caching patches.
1737         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1738         option --no-cache. Use associative arrays when supported by the shell.
1739         (sed_comments): New variable.
1740         (modcache): Renamed from do_cache.
1741         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1742         abbreviate unnecessarily.
1743         (have_associative): New variable.
1744         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1745         way also for ksh and zsh.
1746         (func_init_sed_convert_to_cache_statements): New function, extracted
1747         from func_cache_lookup_module. Add support for associative arrays.
1748         Don't set the c_MODULE_cached variable here. Ignore all lines before
1749         the first field header. Remove only the final newline, not all trailing
1750         newlines. Support empty fields correctly. Limit the use of 'eval' to
1751         assignments.
1752         (func_get_description, func_get_status, func_get_notice,
1753         func_get_applicability, func_get_filelist, func_get_dependencies,
1754         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1755         func_get_automake_snippet, func_get_include_directive,
1756         func_get_link_directive, func_get_license, func_get_maintainer):
1757         Update documentation. List the unoptimized code first. Add support for
1758         associative arrays. Limit the use of 'eval' to assignments.
1759         (func_get_applicability): Undo stylistic pessimisations.
1760         (func_get_automake_snippet, func_get_include_directive): Reduce code
1761         duplication.
1762         (func_modules_transitive_closure, func_modules_add_dummy,
1763         func_modules_notice, func_modules_to_filelist, func_add_file,
1764         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1765         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1766         func_create_testdir, func_create_megatestdir): Update documentation.
1767
1768 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1769
1770         * gnulib-tool (func_cache_lookup_module): Store the module name
1771         belonging to the cache variable; error out if two different
1772         module names map to the same cache variable name.
1773
1774 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1775
1776         gnulib-tool: Make caching optional.
1777         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1778         Update matching short versions of --no-changelog.
1779         (func_usage): Update.
1780         (sed_extract_cache_prog): Renamed from ...
1781         (sed_extract_prog): ... this; revert to old extraction script.
1782         (func_get_description, func_get_status)
1783         (func_get_notice, func_get_applicability, func_get_filelist)
1784         (func_get_dependencies, func_get_autoconf_early_snippet)
1785         (func_get_autoconf_snippet, func_get_automake_snippet)
1786         (func_get_include_directive, func_get_link_directive)
1787         (func_get_license, func_get_maintainer): If $do_cache is false,
1788         use old, non-caching extraction scripts.
1789         Suggestion by Bruno Haible.
1790
1791 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1792
1793         gnulib-tool: cache module metainformation.
1794         * gnulib-tool (sed_extract_prog): Match newline before each
1795         header, and rewrite header to a shell variable suffix.
1796         (func_cache_var, func_cache_lookup_module): New functions,
1797         to turn a module name into a cache variable prefix, and to
1798         look up and cache module metainformation.
1799         (func_get_description, func_get_status)
1800         (func_get_notice, func_get_applicability, func_get_filelist)
1801         (func_get_dependencies, func_get_autoconf_early_snippet)
1802         (func_get_autoconf_snippet, func_get_automake_snippet)
1803         (func_get_include_directive, func_get_link_directive)
1804         (func_get_license, func_get_maintainer): Use
1805         func_cache_lookup_module.
1806
1807 2010-02-07  Bruno Haible  <bruno@clisp.org>
1808
1809         fnctl: Fix missing dependency.
1810         * modules/fcntl (Depends-on): Add getdtablesize.
1811         Reported by John W. Eaton <jwe@gnu.org>.
1812
1813 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1814
1815         Argp: fix recognition of short alias options.
1816
1817         * lib/argp-parse.c (convert_options): Fix improper use of
1818         `|' between character values.
1819         * tests/test-argp.c (group1_option): New alias option
1820         --read (-r).
1821         (group1_parser): Special handling for 'r'.
1822         (test15): New test case.
1823         (test_fun): Add test15.
1824         * tests/test-argp-2.sh: Update expected --help and --usage
1825         outputs.
1826
1827 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1828
1829         * tests/test-argp.c: Fix indentation.
1830
1831 2010-02-04  Eric Blake  <ebb9@byu.net>
1832
1833         gettimeofday: expose type of second argument
1834         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1835         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1836         * tests/test-gettimeofday.c: Use it to silence warning.
1837         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1838         the issue.
1839
1840 2010-02-03  Jim Meyering  <meyering@redhat.com>
1841
1842         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1843         * lib/regcomp.c (TYPE_SIGNED): Define.
1844         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1845
1846         regcomp.c: avoid a new -Wshadow warning
1847         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1848
1849 2010-02-01  Jim Meyering  <meyering@redhat.com>
1850
1851         removing useless parentheses in cpp #define directives
1852         For motivation, see commit c0221df4, "define STREQ(a,b)
1853         consistently, removing useless parentheses"
1854         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1855         * lib/mountlist.c (MNT_IGNORE): Likewise.
1856         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1857
1858 2010-02-01  Eric Blake  <ebb9@byu.net>
1859
1860         sys_time: use link-warning
1861         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1862         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1863         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1864         * modules/sys_time (Depends-on): Add warn-on-use.
1865         (Makefile.am): Always build replacement.
1866         (configure.ac): Update substitutions.
1867         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1868         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1869         bother with SYS_TIME_H.
1870         * modules/gettimeofday (configure.ac): Declare indicator.
1871         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1872         in use.
1873
1874         closein-tests: silence compiler warning
1875         * tests/test-closein.c (main): Ignore fread result.
1876         * modules/closein-tests (Depends-on): Add ignore-value.
1877
1878         tests: silence warning about system return
1879         * tests/test-areadlink-with-size.c (main): Ignore system result.
1880         * tests/test-areadlink.c (main): Likewise.
1881         * tests/test-areadlinkat-with-size.c (main): Likewise.
1882         * tests/test-areadlinkat.c (main): Likewise.
1883         * tests/test-canonicalize-lgpl.c (main): Likewise.
1884         * tests/test-canonicalize.c (main): Likewise.
1885         * tests/test-chown.c (main): Likewise.
1886         * tests/test-fchownat.c (main): Likewise.
1887         * tests/test-fdutimensat.c (main): Likewise.
1888         * tests/test-fstatat.c (main): Likewise.
1889         * tests/test-futimens.c (main): Likewise.
1890         * tests/test-lchown.c (main): Likewise.
1891         * tests/test-link.c (main): Likewise.
1892         * tests/test-linkat.c (main): Likewise.
1893         * tests/test-lstat.c (main): Likewise.
1894         * tests/test-mkdir.c (main): Likewise.
1895         * tests/test-mkdirat.c (main): Likewise.
1896         * tests/test-mkfifo.c (main): Likewise.
1897         * tests/test-mkfifoat.c (main): Likewise.
1898         * tests/test-mknod.c (main): Likewise.
1899         * tests/test-readlink.c (main): Likewise.
1900         * tests/test-remove.c (main): Likewise.
1901         * tests/test-rename.c (main): Likewise.
1902         * tests/test-renameat.c (main): Likewise.
1903         * tests/test-rmdir.c (main): Likewise.
1904         * tests/test-symlink.c (main): Likewise.
1905         * tests/test-symlinkat.c (main): Likewise.
1906         * tests/test-unlink.c (main): Likewise.
1907         * tests/test-unlinkat.c (main): Likewise.
1908         * tests/test-utimens.c (main): Likewise.
1909         * tests/test-utimensat.c (main): Likewise.
1910         * modules/areadlink-tests (Depends-on): Add ignore-value.
1911         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1912         * modules/areadlinkat-tests (Depends-on): Likewise.
1913         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1914         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1915         * modules/canonicalize-tests (Depends-on): Likewise.
1916         * modules/chown-tests (Depends-on): Likewise.
1917         * modules/fdutimensat-tests (Depends-on): Likewise.
1918         * modules/futimens-tests (Depends-on): Likewise.
1919         * modules/lchown-tests (Depends-on): Likewise.
1920         * modules/link-tests (Depends-on): Likewise.
1921         * modules/linkat-tests (Depends-on): Likewise.
1922         * modules/lstat-tests (Depends-on): Likewise.
1923         * modules/mkdir-tests (Depends-on): Likewise.
1924         * modules/mkfifo-tests (Depends-on): Likewise.
1925         * modules/mkfifoat-tests (Depends-on): Likewise.
1926         * modules/mknod-tests (Depends-on): Likewise.
1927         * modules/openat-tests (Depends-on): Likewise.
1928         * modules/readlink-tests (Depends-on): Likewise.
1929         * modules/remove-tests (Depends-on): Likewise.
1930         * modules/rename-tests (Depends-on): Likewise.
1931         * modules/renameat-tests (Depends-on): Likewise.
1932         * modules/rmdir-tests (Depends-on): Likewise.
1933         * modules/symlink-tests (Depends-on): Likewise.
1934         * modules/symlinkat-tests (Depends-on): Likewise.
1935         * modules/unlink-tests (Depends-on): Likewise.
1936         * modules/utimens-tests (Depends-on): Likewise.
1937         * modules/utimensat-tests (Depends-on): Likewise.
1938
1939 2010-01-31  Bruno Haible  <bruno@clisp.org>
1940
1941         Perform the same test for many <math.h> functions.
1942         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1943         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1944         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1945         of gl_MATHFUNC.
1946         * modules/acos (configure.ac): Likewise.
1947         * modules/asin (configure.ac): Likewise.
1948         * modules/atan (configure.ac): Likewise.
1949         * modules/atan2 (configure.ac): Likewise.
1950         * modules/cbrt (configure.ac): Likewise.
1951         * modules/copysign (configure.ac): Likewise.
1952         * modules/cos (configure.ac): Likewise.
1953         * modules/cosh (configure.ac): Likewise.
1954         * modules/erf (configure.ac): Likewise.
1955         * modules/erfc (configure.ac): Likewise.
1956         * modules/exp (configure.ac): Likewise.
1957         * modules/fmod (configure.ac): Likewise.
1958         * modules/hypot (configure.ac): Likewise.
1959         * modules/j0 (configure.ac): Likewise.
1960         * modules/j1 (configure.ac): Likewise.
1961         * modules/jn (configure.ac): Likewise.
1962         * modules/lgamma (configure.ac): Likewise.
1963         * modules/log (configure.ac): Likewise.
1964         * modules/log10 (configure.ac): Likewise.
1965         * modules/log1p (configure.ac): Likewise.
1966         * modules/pow (configure.ac): Likewise.
1967         * modules/remainder (configure.ac): Likewise.
1968         * modules/sin (configure.ac): Likewise.
1969         * modules/sinh (configure.ac): Likewise.
1970         * modules/tan (configure.ac): Likewise.
1971         * modules/tanh (configure.ac): Likewise.
1972         * modules/y0 (configure.ac): Likewise.
1973         * modules/y1 (configure.ac): Likewise.
1974         * modules/yn (configure.ac): Likewise.
1975         Suggested by Paolo Bonzini.
1976
1977 2010-01-31  Bruno Haible  <bruno@clisp.org>
1978
1979         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1980
1981 2010-01-31  Bruno Haible  <bruno@clisp.org>
1982
1983         Work around getdelim() bug on FreeBSD 8.0.
1984         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1985         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1986         not work.
1987         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1988         is 1.
1989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1990         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1991         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1992         a non-zero size.
1993         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1994
1995 2010-01-31  Bruno Haible  <bruno@clisp.org>
1996
1997         Work around getline() bug on FreeBSD 8.0.
1998         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1999         and a non-zero size.
2000         * tests/test-getline.c (main): Likewise.
2001         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2002         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2003
2004 2010-01-28  Eric Blake  <ebb9@byu.net>
2005
2006         regex: fix build failure
2007         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2008         platforms.
2009
2010 2010-01-28  Jim Meyering  <meyering@redhat.com>
2011
2012         regex: do not ignore memory allocation failure
2013         * lib/regex_internal.c (create_cd_newstate): Detect
2014         re_node_set_init_copy failure.   Extracted from glibc commit
2015         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2016
2017         regex: sync more white-space changes from libc
2018         * lib/regex_internal.c: White-space only changes.
2019         * lib/regexec.c: Likewise.
2020
2021         regex: add many uses of __attribute_warn_unused_result__
2022         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2023         * lib/regexec.c: Likewise.
2024         Extracted from a messy glibc commit.
2025
2026         regcomp.c: spelling and merge-artifact from glibc
2027         * lib/regcomp.c: Merge remainder of glibc's
2028         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2029
2030         regcomp.c: sync white-space changes from glibc
2031         * lib/regcomp.c: Merge to accommodate white space
2032         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2033
2034         regcomp.c: do not ignore internal return values
2035         * lib/regcomp.c: Do not ignore internal return values.
2036         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2037         but without its white-space changes and spelling fixes.
2038
2039         regex_internal.h: define __attribute_warn_unused_result__
2040         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2041
2042         maint: add a syntax-check rule to check for vulnerable Makefile.in
2043         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2044
2045 2010-01-27  Jim Meyering  <meyering@redhat.com>
2046
2047         ncftpput-ftp: clean up spaces
2048         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2049         Remove trailing blanks.
2050
2051 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2052
2053         * build-aux/git-version-gen: Fix copyright statement.
2054         * build-aux/gnupload: Likewise.
2055         * tests/test-arcfour.c: Likewise.
2056         * tests/test-arctwo.c: Likewise.
2057         * tests/test-count-one-bits.c: Likewise.
2058         * tests/test-crc.c: Likewise.
2059         * tests/test-des.c: Likewise.
2060         * tests/test-gc-arcfour.c: Likewise.
2061         * tests/test-gc-arctwo.c: Likewise.
2062         * tests/test-gc-des.c: Likewise.
2063         * tests/test-gc-hmac-md5.c: Likewise.
2064         * tests/test-gc-hmac-sha1.c: Likewise.
2065         * tests/test-gc-md2.c: Likewise.
2066         * tests/test-gc-md4.c: Likewise.
2067         * tests/test-gc-md5.c: Likewise.
2068         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2069         * tests/test-gc-rijndael.c: Likewise.
2070         * tests/test-gc-sha1.c: Likewise.
2071         * tests/test-gc.c: Likewise.
2072         * tests/test-gethostname.c: Likewise.
2073         * tests/test-gettimeofday.c: Likewise.
2074         * tests/test-hash.c: Likewise.
2075         * tests/test-hmac-md5.c: Likewise.
2076         * tests/test-hmac-sha1.c: Likewise.
2077         * tests/test-md2.c: Likewise.
2078         * tests/test-md4.c: Likewise.
2079         * tests/test-md5.c: Likewise.
2080         * tests/test-memchr.c: Likewise.
2081         * tests/test-memchr2.c: Likewise.
2082         * tests/test-memcmp.c: Likewise.
2083         * tests/test-memmem.c: Likewise.
2084         * tests/test-memrchr.c: Likewise.
2085         * tests/test-rawmemchr.c: Likewise.
2086         * tests/test-read-file.c: Likewise.
2087         * tests/test-rijndael.c: Likewise.
2088         * tests/test-sockets.c: Likewise.
2089         * tests/test-strchrnul.c: Likewise.
2090         * tests/test-strstr.c: Likewise.
2091         * tests/test-strtod.c: Likewise.
2092         * build-aux/ncftpput-ftp: Likewise.
2093
2094 2010-01-26  Eric Blake  <ebb9@byu.net>
2095
2096         ignore-value: update recommended header name
2097         * modules/ignore-value (Include): Only use <> for headers that
2098         exist in glibc.
2099
2100 2010-01-26  Jim Meyering  <meyering@redhat.com>
2101
2102         test-userspec.c: avoid compiler warnings
2103         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2104         and "initialization discards qualifiers..." warnings.
2105         Put the first "uid" in its own scope, and make char* members "const".
2106
2107 2010-01-25  Bruno Haible  <bruno@clisp.org>
2108
2109         gnulib-tool: Make warning diagnostics consistent.
2110         * gnulib-tool (func_warning): New function.
2111         Use it everywhere where gnulib-tool produces output to stderr and it is
2112         not a fatal error.
2113
2114 2010-01-25  Bruno Haible  <bruno@clisp.org>
2115
2116         Fix test dependencies.
2117         * modules/xstrtol-tests (Depends-on): Add inttypes.
2118         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2119
2120 2010-01-25 Pádraig Brady <P@draigBrady.com>
2121
2122         syntax-check: detect incorrect boolean macro values in config.h
2123         * modules/maintainer-makefile (configure.ac): Parameterize the location
2124         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2125         The logic is from Eric Blake and the location indicated by Jim Meyering.
2126         Note the more natural CONFIG_HEADER name is prohibited by automake
2127         for backwards compatibility reasons.
2128         * top/maint.mk (sc_Wundef_boolean): New rule.
2129
2130 2010-01-25  Jim Meyering  <meyering@redhat.com>
2131
2132         bootstrap: detect MacOS 10.6's shasum, too
2133         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2134         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2135
2136 2010-01-23  Jim Meyering  <meyering@redhat.com>
2137
2138         xstrtoll: new module
2139         * modules/xstrtoll: New file.
2140         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2141         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2142         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2143         ./configure fails if you use this module and lack "long long".
2144         * modules/xstrtoll-tests: New module.
2145         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2146         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2147         new init.sh-based test framework.
2148
2149 2010-01-24  Bruno Haible  <bruno@clisp.org>
2150
2151         Tests for module 'yn'.
2152         * modules/yn-tests: New file.
2153         * tests/test-yn.c: New file.
2154
2155         Tests for module 'y1'.
2156         * modules/y1-tests: New file.
2157         * tests/test-y1.c: New file.
2158
2159         Tests for module 'y0'.
2160         * modules/y0-tests: New file.
2161         * tests/test-y0.c: New file.
2162
2163         Tests for module 'tanh'.
2164         * modules/tanh-tests: New file.
2165         * tests/test-tanh.c: New file.
2166
2167         Tests for module 'tan'.
2168         * modules/tan-tests: New file.
2169         * tests/test-tan.c: New file.
2170
2171         Tests for module 'sqrt'.
2172         * modules/sqrt-tests: New file.
2173         * tests/test-sqrt.c: New file.
2174
2175         Tests for module 'sinh'.
2176         * modules/sinh-tests: New file.
2177         * tests/test-sinh.c: New file.
2178
2179         Tests for module 'sin'.
2180         * modules/sin-tests: New file.
2181         * tests/test-sin.c: New file.
2182
2183         Tests for module 'rint'.
2184         * modules/rint-tests: New file.
2185         * tests/test-rint.c: New file.
2186
2187         Tests for module 'remainder'.
2188         * modules/remainder-tests: New file.
2189         * tests/test-remainder.c: New file.
2190
2191         Tests for module 'pow'.
2192         * modules/pow-tests: New file.
2193         * tests/test-pow.c: New file.
2194
2195         Tests for module 'nextafter'.
2196         * modules/nextafter-tests: New file.
2197         * tests/test-nextafter.c: New file.
2198
2199         Tests for module 'modf'.
2200         * modules/modf-tests: New file.
2201         * tests/test-modf.c: New file.
2202
2203         Tests for module 'logb'.
2204         * modules/logb-tests: New file.
2205         * tests/test-logb.c: New file.
2206
2207         Tests for module 'log1p'.
2208         * modules/log1p-tests: New file.
2209         * tests/test-log1p.c: New file.
2210
2211         Tests for module 'log10'.
2212         * modules/log10-tests: New file.
2213         * tests/test-log10.c: New file.
2214
2215         Tests for module 'log'.
2216         * modules/log-tests: New file.
2217         * tests/test-log.c: New file.
2218
2219         Tests for module 'lgamma'.
2220         * modules/lgamma-tests: New file.
2221         * tests/test-lgamma.c: New file.
2222
2223         Tests for module 'ldexp'.
2224         * modules/ldexp-tests: New file.
2225         * tests/test-ldexp.c: New file.
2226
2227         Tests for module 'jn'.
2228         * modules/jn-tests: New file.
2229         * tests/test-jn.c: New file.
2230
2231         Tests for module 'j1'.
2232         * modules/j1-tests: New file.
2233         * tests/test-j1.c: New file.
2234
2235         Tests for module 'j0'.
2236         * modules/j0-tests: New file.
2237         * tests/test-j0.c: New file.
2238
2239         Tests for module 'hypot'.
2240         * modules/hypot-tests: New file.
2241         * tests/test-hypot.c: New file.
2242
2243         Tests for module 'fmod'.
2244         * modules/fmod-tests: New file.
2245         * tests/test-fmod.c: New file.
2246
2247         Tests for module 'fabs'.
2248         * modules/fabs-tests: New file.
2249         * tests/test-fabs.c: New file.
2250
2251         Tests for module 'exp'.
2252         * modules/exp-tests: New file.
2253         * tests/test-exp.c: New file.
2254
2255         Tests for module 'erfc'.
2256         * modules/erfc-tests: New file.
2257         * tests/test-erfc.c: New file.
2258
2259         Tests for module 'erf'.
2260         * modules/erf-tests: New file.
2261         * tests/test-erf.c: New file.
2262
2263         Tests for module 'cosh'.
2264         * modules/cosh-tests: New file.
2265         * tests/test-cosh.c: New file.
2266
2267         Tests for module 'cos'.
2268         * modules/cos-tests: New file.
2269         * tests/test-cos.c: New file.
2270
2271         Tests for module 'copysign'.
2272         * modules/copysign-tests: New file.
2273         * tests/test-copysign.c: New file.
2274
2275         Tests for module 'cbrt'.
2276         * modules/cbrt-tests: New file.
2277         * tests/test-cbrt.c: New file.
2278
2279         Tests for module 'atan2'.
2280         * modules/atan2-tests: New file.
2281         * tests/test-atan2.c: New file.
2282
2283         Tests for module 'atan'.
2284         * modules/atan-tests: New file.
2285         * tests/test-atan.c: New file.
2286
2287         Tests for module 'asin'.
2288         * modules/asin-tests: New file.
2289         * tests/test-asin.c: New file.
2290
2291         Tests for module 'acos'.
2292         * modules/acos-tests: New file.
2293         * tests/test-acos.c: New file.
2294
2295 2010-01-24  Bruno Haible  <bruno@clisp.org>
2296
2297         Fix tests for common <math.h> functions.
2298         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2299         code snippet that references the function pointer, rather than merely
2300         calling the function. Substitute the FUNC_LIBM variable.
2301         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2302         * modules/acos (configure.ac): Likewise.
2303         * modules/asin (configure.ac): Likewise.
2304         * modules/atan (configure.ac): Likewise.
2305         * modules/atan2 (configure.ac): Likewise.
2306         * modules/cbrt (configure.ac): Likewise.
2307         * modules/copysign (configure.ac): Likewise.
2308         * modules/cos (configure.ac): Likewise.
2309         * modules/cosh (configure.ac): Likewise.
2310         * modules/erf (configure.ac): Likewise.
2311         * modules/erfc (configure.ac): Likewise.
2312         * modules/exp (configure.ac): Likewise.
2313         * modules/fabs (configure.ac): Likewise.
2314         * modules/fmod (configure.ac): Likewise.
2315         * modules/hypot (configure.ac): Likewise.
2316         * modules/j0 (configure.ac): Likewise.
2317         * modules/j1 (configure.ac): Likewise.
2318         * modules/jn (configure.ac): Likewise.
2319         * modules/ldexp (configure.ac): Likewise.
2320         * modules/lgamma (configure.ac): Likewise.
2321         * modules/log (configure.ac): Likewise.
2322         * modules/log10 (configure.ac): Likewise.
2323         * modules/log1p (configure.ac): Likewise.
2324         * modules/logb (configure.ac): Likewise.
2325         * modules/modf (configure.ac): Likewise.
2326         * modules/nextafter (configure.ac): Likewise.
2327         * modules/pow (configure.ac): Likewise.
2328         * modules/remainder (configure.ac): Likewise.
2329         * modules/rint (configure.ac): Likewise.
2330         * modules/sin (configure.ac): Likewise.
2331         * modules/sinh (configure.ac): Likewise.
2332         * modules/tan (configure.ac): Likewise.
2333         * modules/tanh (configure.ac): Likewise.
2334         * modules/y0 (configure.ac): Likewise.
2335         * modules/y1 (configure.ac): Likewise.
2336         * modules/yn (configure.ac): Likewise.
2337
2338 2010-01-24  Bruno Haible  <bruno@clisp.org>
2339
2340         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2341         * tests/test-acosl.c (x): New variable.
2342         (main): Store argument in x and fetch it from x.
2343         * tests/test-asinl.c (x): New variable.
2344         (main): Store argument in x and fetch it from x.
2345         * tests/test-atanl.c (x): New variable.
2346         (main): Store argument in x and fetch it from x.
2347         * tests/test-cosl.c (x): New variable.
2348         (main): Store argument in x and fetch it from x.
2349         * tests/test-expl.c (x): New variable.
2350         (main): Store argument in x and fetch it from x.
2351         * tests/test-logl.c (x): New variable.
2352         (main): Store argument in x and fetch it from x.
2353         * tests/test-sinl.c (x): New variable.
2354         (main): Store argument in x and fetch it from x.
2355         * tests/test-sqrtl.c (x): New variable.
2356         (main): Store argument in x and fetch it from x.
2357         * tests/test-tanl.c (x): New variable.
2358         (main): Store argument in x and fetch it from x.
2359
2360 2010-01-24  Bruno Haible  <bruno@clisp.org>
2361
2362         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2363         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2364         assignments to the initial TESTS_ENVIRONMENT.
2365         * doc/gnulib.texi (Unit test modules): Document it.
2366         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2367         TESTS_ENVIRONMENT.
2368         * modules/btowc-tests (Makefile.am): Likewise.
2369         * modules/c-stack-tests (Makefile.am): Likewise.
2370         * modules/c-strcase-tests (Makefile.am): Likewise.
2371         * modules/copy-file-tests (Makefile.am): Likewise.
2372         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2373         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2374         * modules/mbrtowc-tests (Makefile.am): Likewise.
2375         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2376         * modules/mbscasestr-tests (Makefile.am): Likewise.
2377         * modules/mbschr-tests (Makefile.am): Likewise.
2378         * modules/mbscspn-tests (Makefile.am): Likewise.
2379         * modules/mbsinit-tests (Makefile.am): Likewise.
2380         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2381         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2382         * modules/mbspbrk-tests (Makefile.am): Likewise.
2383         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2384         * modules/mbsrchr-tests (Makefile.am): Likewise.
2385         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2386         * modules/mbsspn-tests (Makefile.am): Likewise.
2387         * modules/mbsstr-tests (Makefile.am): Likewise.
2388         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2389         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2390         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2391         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2392         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2393         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2394         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2395         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2396         * modules/wcrtomb-tests (Makefile.am): Likewise.
2397         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2398         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2399         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2400         assignments from TESTS_ENVIRONMENT.
2401         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2402         augmentation.
2403         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2404         * modules/atexit-tests (Makefile.am): Likewise.
2405         * modules/binary-io-tests (Makefile.am): Likewise.
2406         * modules/closein-tests (Makefile.am): Likewise.
2407         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2408         * modules/exclude-tests (Makefile.am): Likewise.
2409         * modules/fflush-tests (Makefile.am): Likewise.
2410         * modules/fpending-tests (Makefile.am): Likewise.
2411         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2412         * modules/freadahead-tests (Makefile.am): Likewise.
2413         * modules/freadptr-tests (Makefile.am): Likewise.
2414         * modules/freadseek-tests (Makefile.am): Likewise.
2415         * modules/fseek-tests (Makefile.am): Likewise.
2416         * modules/fseeko-tests (Makefile.am): Likewise.
2417         * modules/ftell-tests (Makefile.am): Likewise.
2418         * modules/ftello-tests (Makefile.am): Likewise.
2419         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2420         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2421         * modules/lseek-tests (Makefile.am): Likewise.
2422         * modules/parse-duration-tests (Makefile.am): Likewise.
2423         * modules/perror-tests (Makefile.am): Likewise.
2424         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2425         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2426         * modules/pipe-tests (Makefile.am): Likewise.
2427         * modules/pread-tests (Makefile.am): Likewise.
2428         * modules/printf-posix-tests (Makefile.am): Likewise.
2429         * modules/select-tests (Makefile.am): Likewise.
2430         * modules/sigpipe-tests (Makefile.am): Likewise.
2431         * modules/tsearch-tests (Makefile.am): Likewise.
2432         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2433         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2434         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2435         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2436         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2437         * modules/version-etc-tests (Makefile.am): Likewise.
2438         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2439         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2440         * modules/xalloc-die-tests (Makefile.am): Likewise.
2441         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2442         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2443         * modules/xstrtol-tests (Makefile.am): Likewise.
2444         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2445         * modules/yesno-tests (Makefile.am): Likewise.
2446         Suggested by Jim Meyering.
2447
2448 2010-01-24  Bruno Haible  <bruno@clisp.org>
2449
2450         More documentation.
2451         * doc/gnulib.texi (Writing modules): New chapter.
2452         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2453         the new chapter.
2454
2455 2010-01-24  Jim Meyering  <meyering@redhat.com>
2456
2457         maint.mk: do not prepend "./" after filtering
2458         * top/maint.mk (_prepend_srcdir_prefix): New variable
2459         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2460         "./" when $(srcdir) is ".".
2461
2462         define STREQ(a,b) consistently, removing useless parentheses
2463         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2464         since the only risk is that "a" or "b" contains an unparenthesized
2465         comma, but if either did that, STREQ would have 3 or more arguments.
2466         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2467         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2468         * lib/hash-triple.c (STREQ): Likewise.
2469         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2470         * lib/getugroups.c (STREQ): Likewise.
2471
2472 2010-01-23  Jim Meyering  <meyering@redhat.com>
2473
2474         maint.mk: fix syntax-check in a non-srcdir build directory
2475         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2476         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2477
2478 2010-01-22  Jim Meyering  <meyering@redhat.com>
2479
2480         userspec: add unit tests
2481         * tests/test-userspec.c: New file.
2482         * modules/userspec-tests: Likewise.
2483
2484 2010-01-21  Jim Meyering  <meyering@redhat.com>
2485
2486         maint.mk: handle source file names containing "." robustly
2487         * top/maint.mk (_dot_escaped_srcdir): Define.
2488         (VC_LIST): Use it in LHS of sed substitution.
2489
2490 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2491
2492         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2493         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2494         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2495         from a non-srcdir build.
2496
2497 2010-01-20  Eric Blake  <ebb9@byu.net>
2498
2499         warn-on-use: use instead of link-warning
2500         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2501         * modules/unistd (Depends-on, Makefile.am): Likewise.
2502         * modules/arpa_inet (Depends-on): Replace link-warning with
2503         warn-on-use.
2504         (Makefile.am): Update rules accordingly.
2505         * modules/ctype (Depends-on, Makefile.am): Likewise.
2506         * modules/dirent (Depends-on, Makefile.am): Likewise.
2507         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2508         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2509         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2510         * modules/locale (Depends-on, Makefile.am): Likewise.
2511         * modules/math (Depends-on, Makefile.am): Likewise.
2512         * modules/search (Depends-on, Makefile.am): Likewise.
2513         * modules/signal (Depends-on, Makefile.am): Likewise.
2514         * modules/spawn (Depends-on, Makefile.am): Likewise.
2515         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2516         * modules/string (Depends-on, Makefile.am): Likewise.
2517         * modules/strings (Depends-on, Makefile.am): Likewise.
2518         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2519         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2520         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2521         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2522         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2523         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2524         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2525         * modules/wchar (Depends-on, Makefile.am): Likewise.
2526         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2527         should be poisoned.
2528         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2529         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2530         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2531         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2532         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2533         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2534         * m4/math_h.m4 (gl_MATH_H): Likewise.
2535         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2536         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2537         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2538         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2539         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2540         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2541         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2542         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2543         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2545         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2547         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2548         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2549         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2550         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2551         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2552         GL_LINK_WARNING.
2553         * lib/ctype.in.h: Likewise.
2554         * lib/dirent.in.h: Likewise.
2555         * lib/fcntl.in.h: Likewise.
2556         * lib/inttypes.in.h: Likewise.
2557         * lib/langinfo.in.h: Likewise.
2558         * lib/locale.in.h: Likewise.
2559         * lib/math.in.h: Likewise.
2560         * lib/search.in.h: Likewise.
2561         * lib/signal.in.h: Likewise.
2562         * lib/spawn.in.h: Likewise.
2563         * lib/stdio.in.h: Likewise.
2564         * lib/stdlib.in.h: Likewise.
2565         * lib/string.in.h: Likewise.
2566         * lib/strings.in.h: Likewise.
2567         * lib/sys_file.in.h: Likewise.
2568         * lib/sys_ioctl.in.h: Likewise.
2569         * lib/sys_select.in.h: Likewise.
2570         * lib/sys_socket.in.h: Likewise.
2571         * lib/sys_stat.in.h: Likewise.
2572         * lib/sys_times.in.h: Likewise.
2573         * lib/sys_utsname.in.h: Likewise.
2574         * lib/unistd.in.h: Likewise.
2575         * lib/wchar.in.h: Likewise.
2576
2577 2010-01-20  Bruno Haible  <bruno@clisp.org>
2578
2579         Avoid duplicate -lm.
2580         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2581         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2582         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2583         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2584         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2585         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2586         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2587         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2588         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2589         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2590         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2591         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2592         Reported by Paolo Bonzini.
2593
2594 2010-01-19  Bruno Haible  <bruno@clisp.org>
2595
2596         langinfo, nl_langinfo: Relicense under LGPLv2+.
2597         * modules/langinfo (License): Change to LGPLv2+.
2598         * modules/nl_langinfo (License): Likewise.
2599         Patch by David Lutterkort <lutter@redhat.com>.
2600
2601 2010-01-19  Bruno Haible  <bruno@clisp.org>
2602
2603         Avoid compilation error with cc on OSF/1 5.1.
2604         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2605         statement, not before.
2606         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2607
2608 2010-01-18  Bruno Haible  <bruno@clisp.org>
2609
2610         Avoid a link error due to the __printf__ symbol.
2611         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2612         and 2.6.x.
2613         (__format__, __printf__): Remove definitions.
2614         * lib/argp-fmtstream.h: Likewise.
2615         * lib/argp.h: Likewise.
2616         * lib/error.h: Likewise.
2617         * lib/vasnprintf.h: Likewise.
2618         * lib/xprintf.h: Likewise.
2619         * lib/xvasprintf.h: Likewise.
2620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2621
2622 2010-01-18  Bruno Haible  <bruno@clisp.org>
2623
2624         Tests for module 'tanl'.
2625         * modules/tanl-tests: New file.
2626         * tests/test-tanl.c: New file.
2627
2628         Tests for module 'sqrtl'.
2629         * modules/sqrtl-tests: New file.
2630         * tests/test-sqrtl.c: New file.
2631
2632         Tests for module 'sinl'.
2633         * modules/sinl-tests: New file.
2634         * tests/test-sinl.c: New file.
2635
2636         Tests for module 'logl'.
2637         * modules/logl-tests: New file.
2638         * tests/test-logl.c: New file.
2639
2640         Tests for module 'expl'.
2641         * modules/expl-tests: New file.
2642         * tests/test-expl.c: New file.
2643
2644         Tests for module 'cosl'.
2645         * modules/cosl-tests: New file.
2646         * tests/test-cosl.c: New file.
2647
2648         Tests for module 'atanl'.
2649         * modules/atanl-tests: New file.
2650         * tests/test-atanl.c: New file.
2651
2652         Tests for module 'asinl'.
2653         * modules/asinl-tests: New file.
2654         * tests/test-asinl.c: New file.
2655
2656         Tests for module 'acosl'.
2657         * modules/acosl-tests: New file.
2658         * tests/test-acosl.c: New file.
2659
2660         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2661         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2662         tanl): Use the standard gnulib idiom.
2663         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2664         * lib/sinl.c: Likewise.
2665         * lib/tanl.c: Don't include trigl.c.
2666         (kernel_tanl): Make static.
2667         * lib/sincosl.c: Include trigl.h first.
2668         * lib/trigl.c: Likewise.
2669         * m4/acosl.m4: New file.
2670         * m4/asinl.m4: New file.
2671         * m4/atanl.m4: New file.
2672         * m4/cosl.m4: New file.
2673         * m4/expl.m4: New file.
2674         * m4/logl.m4: New file.
2675         * m4/sinl.m4: New file.
2676         * m4/sqrtl.m4: New file.
2677         * m4/tanl.m4: New file.
2678         * m4/mathl.m4: Remove file.
2679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2680         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2681         Don't initialize GNULIB_MATHL.
2682         * modules/acosl: New file.
2683         * modules/asinl: New file.
2684         * modules/atanl: New file.
2685         * modules/cosl: New file.
2686         * modules/expl: New file.
2687         * modules/logl: New file.
2688         * modules/sinl: New file.
2689         * modules/sqrtl: New file.
2690         * modules/tanl: New file.
2691         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2692         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2693         substitute GNULIB_MATHL.
2694         * modules/mathl: Rewritten.
2695         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2696         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2697         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2698         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2699         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2700         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2701         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2702         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2703         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2704
2705 2010-01-18  Bruno Haible  <bruno@clisp.org>
2706
2707         sqrt: Make gl_FUNC_SQRT requirable.
2708         * m4/sqrt.m4: New file.
2709         * modules/sqrt (Files): Add it.
2710         (configure.ac): Invoke gl_FUNC_SQRT.
2711
2712 2010-01-18  Bruno Haible  <bruno@clisp.org>
2713
2714         New modules for common <math.h> functions.
2715         * m4/mathfunc.m4: New file.
2716         * modules/acos: New file.
2717         * modules/asin: New file.
2718         * modules/atan: New file.
2719         * modules/atan2: New file.
2720         * modules/cbrt: New file.
2721         * modules/copysign: New file.
2722         * modules/cos: New file.
2723         * modules/cosh: New file.
2724         * modules/erf: New file.
2725         * modules/erfc: New file.
2726         * modules/exp: New file.
2727         * modules/fabs: New file.
2728         * modules/fmod: New file.
2729         * modules/hypot: New file.
2730         * modules/j0: New file.
2731         * modules/j1: New file.
2732         * modules/jn: New file.
2733         * modules/ldexp: New file.
2734         * modules/lgamma: New file.
2735         * modules/log: New file.
2736         * modules/log10: New file.
2737         * modules/log1p: New file.
2738         * modules/logb: New file.
2739         * modules/modf: New file.
2740         * modules/nextafter: New file.
2741         * modules/pow: New file.
2742         * modules/remainder: New file.
2743         * modules/rint: New file.
2744         * modules/sin: New file.
2745         * modules/sinh: New file.
2746         * modules/sqrt: New file.
2747         * modules/tan: New file.
2748         * modules/tanh: New file.
2749         * modules/y0: New file.
2750         * modules/y1: New file.
2751         * modules/yn: New file.
2752         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2753         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2754         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2755         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2756         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2757         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2758         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2759         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2760         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2761         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2762         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2763         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2764         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2765         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2766         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2767         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2768         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2769         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2770         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2771         * doc/posix-functions/log.texi: Mention the 'log' module.
2772         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2773         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2774         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2775         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2776         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2777         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2778         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2779         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2780         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2781         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2782         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2783         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2784         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2785         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2786         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2787         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2788
2789 2010-01-18  Jim Meyering  <meyering@redhat.com>
2790
2791         ignore-value: relax license to LGPLv2+
2792         * modules/ignore-value (License): Relax to LGPLv2+.
2793
2794         getdate: don't leak when TZ contains two or more '"'s
2795         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2796         double quote in TZ after the first one.
2797
2798         readtokens: do not leak internal token_lengths buffer
2799         * lib/readtokens.c (readtokens): Free the local, lengths,
2800         when the supplied "token_lengths" parameter is NULL.
2801
2802 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2803
2804         Fix a couple of missing LIBTHREAD link failures on AIX.
2805         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2806         $(LIBTHREAD).
2807         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2808
2809         Link test-poll against INET_PTON_LIB.
2810         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2811         for inet_pton on Solaris 10.
2812
2813 2010-01-17  Bruno Haible  <bruno@clisp.org>
2814
2815         unistdio/*-sprintf: Fix typo in module description.
2816         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2817         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2818         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2819         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2820         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2821         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2822         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2824
2825 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2826
2827         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2828         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2829         variables in shell case patterns, for AIX and HP-UX ksh.
2830
2831         Split large sed scripts, for HP-UX sed.
2832         * modules/stdio: Split sed scripts around 50 sed commands,
2833         to avoid HP-UX limit of 99 commands, in the near future.
2834         * modules/string: Likewise.
2835         * modules/unistd: Likewise.
2836
2837         gnulib-tool: avoid writing in the current directory.
2838         * gnulib-tool (func_emit_lib_Makefile_am)
2839         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2840         not in the current directory, so concurrent gnulib-tool
2841         instances do not interfere.
2842
2843 2010-01-16  Jim Meyering  <meyering@redhat.com>
2844
2845         doc: update users.txt
2846         * users.txt: Add grep.
2847         (diffutils, gzip): Update URLs.
2848
2849 2010-01-12  Bruno Haible  <bruno@clisp.org>
2850
2851         posix_spawn: Avoid test failure on Cygwin.
2852         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2853         characters.
2854         Reported by Simon Josefsson.
2855
2856 2010-01-12  Bruno Haible  <bruno@clisp.org>
2857
2858         * tests/test-cond.c (main): When skipping the test, show the reason.
2859
2860 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2861
2862         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2863
2864 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2865
2866         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2867         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2868
2869 2010-01-12  Eric Blake  <ebb9@byu.net>
2870
2871         build: guarantee AS_VAR_IF
2872         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2873         (gl_AS_VAR_IF): Move...
2874         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2875         Reported by Simon Josefsson.
2876
2877 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2878
2879         * lib/stdio.in.h: Fix typo.
2880
2881 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2882
2883         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2884         libgpg-error.
2885
2886 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2887
2888         * tests/test-xalloc-die.sh: Use $EXEEXT.
2889
2890 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2891             Bruno Haible  <bruno@clisp.org>
2892
2893         getlogin, getlogin_r: Avoid test failure.
2894         * tests/test-getlogin.c: Include <stdio.h>.
2895         (main): Skip the test when the function fails because stdin is not a
2896         tty.
2897         * tests/test-getlogin_r.c: Include <stdio.h>.
2898         (main): Skip the test when the function fails because stdin is not a
2899         tty.
2900
2901 2010-01-11  Eric Blake  <ebb9@byu.net>
2902
2903         tests: avoid more large file warnings
2904         * tests/test-fflush.c: Avoid warning about ftell use.
2905         * tests/test-fseek.c: Avoid warning about fseek use.
2906
2907 2010-01-10  Bruno Haible  <bruno@clisp.org>
2908
2909         nproc: Work better on Linux when /proc and /sys are not mounted.
2910         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2911         as lower bound when, on glibc/Linux systems,
2912         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2913         Suggested by Pádraig Brady <P@draigbrady.com>.
2914         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2915
2916         nproc: Refactor.
2917         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2918         extracted from num_processors.
2919         (num_processors): Call it.
2920
2921 2010-01-11  Jim Meyering  <meyering@redhat.com>
2922
2923         utimecmp: avoid new warning from upcoming gcc-4.5.0
2924         * lib/utimecmp.c (BILLION): Define using #define rather than an
2925         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2926
2927 2010-01-11  Eric Blake  <ebb9@byu.net>
2928
2929         math: add portability warnings for classification macros
2930         * modules/math (Depends-on): Add warn-on-use.
2931         (Makefile.am): Provide new substitutions.
2932         * m4/math_h.m4 (gl_MATH_H): Require inline.
2933         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2934         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2935         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2936         implement warnings.
2937
2938         unistd: warn on use of environ without module
2939         * modules/unistd (Depends-on): Add warn-on-use.
2940         (Makefile.am): Provide new substitutions.
2941         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2942         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2943
2944         stdio: warn on suspicious uses
2945         * modules/stdio (Depends-on): Add warn-on-use.
2946         (Makefile.am): Provide new substitutions.
2947         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2948         fseeko.
2949         * lib/stdio.in.h (gets): Always warn on use.
2950         (fseek, ftell): Adjust when warnings are issued, and honor
2951         _GL_NO_LARGE_FILES as a way to silence the warning.
2952         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2953         any warning about large file offsets.
2954         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2955         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2956         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2957         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2958         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2959         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2960         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2961         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2962
2963         warn-on-use: new module
2964         * modules/warn-on-use: New file.
2965         * build-aux/warn-on-use.h: Likewise.
2966         * m4/warn-on-use.m4: Likewise.
2967         * MODULES.html.sh (Support for building): Mention it.
2968
2969 2010-01-10  Bruno Haible  <bruno@clisp.org>
2970
2971         Tests for module 'unistr/u32-strdup'.
2972         * modules/unistr/u32-strdup-tests: New file.
2973         * tests/unistr/test-u32-strdup.c: New file.
2974
2975         Tests for module 'unistr/u16-strdup'.
2976         * modules/unistr/u16-strdup-tests: New file.
2977         * tests/unistr/test-u16-strdup.c: New file.
2978
2979         Tests for module 'unistr/u8-strdup'.
2980         * modules/unistr/u8-strdup-tests: New file.
2981         * tests/unistr/test-u8-strdup.c: New file.
2982         * tests/unistr/test-strdup.h: New file.
2983
2984         Tests for module 'unistr/u32-strncmp'.
2985         * modules/unistr/u32-strncmp-tests: New file.
2986         * tests/unistr/test-u32-strncmp.c: New file.
2987
2988         Tests for module 'unistr/u16-strncmp'.
2989         * modules/unistr/u16-strncmp-tests: New file.
2990         * tests/unistr/test-u16-strncmp.c: New file.
2991
2992         Tests for module 'unistr/u8-strncmp'.
2993         * modules/unistr/u8-strncmp-tests: New file.
2994         * tests/unistr/test-u8-strncmp.c: New file.
2995         * tests/unistr/test-strncmp.h: New file.
2996
2997         Tests for module 'unistr/u32-strcoll'.
2998         * modules/unistr/u32-strcoll-tests: New file.
2999         * tests/unistr/test-u32-strcoll.c: New file.
3000
3001         Tests for module 'unistr/u16-strcoll'.
3002         * modules/unistr/u16-strcoll-tests: New file.
3003         * tests/unistr/test-u16-strcoll.c: New file.
3004
3005         Tests for module 'unistr/u8-strcoll'.
3006         * modules/unistr/u8-strcoll-tests: New file.
3007         * tests/unistr/test-u8-strcoll.c: New file.
3008
3009         Tests for module 'unistr/u32-strcmp'.
3010         * modules/unistr/u32-strcmp-tests: New file.
3011         * tests/unistr/test-u32-strcmp.c: New file.
3012         * tests/unistr/test-u32-strcmp.h: New file.
3013
3014         Tests for module 'unistr/u16-strcmp'.
3015         * modules/unistr/u16-strcmp-tests: New file.
3016         * tests/unistr/test-u16-strcmp.c: New file.
3017         * tests/unistr/test-u16-strcmp.h: New file.
3018
3019         Tests for module 'unistr/u8-strcmp'.
3020         * modules/unistr/u8-strcmp-tests: New file.
3021         * tests/unistr/test-u8-strcmp.c: New file.
3022         * tests/unistr/test-u8-strcmp.h: New file.
3023         * tests/unistr/test-strcmp.h: New file.
3024
3025         Tests for module 'unistr/u32-strncat'.
3026         * modules/unistr/u32-strncat-tests: New file.
3027         * tests/unistr/test-u32-strncat.c: New file.
3028
3029         Tests for module 'unistr/u16-strncat'.
3030         * modules/unistr/u16-strncat-tests: New file.
3031         * tests/unistr/test-u16-strncat.c: New file.
3032
3033         Tests for module 'unistr/u8-strncat'.
3034         * modules/unistr/u8-strncat-tests: New file.
3035         * tests/unistr/test-u8-strncat.c: New file.
3036         * tests/unistr/test-strncat.h: New file.
3037
3038         Tests for module 'unistr/u32-strcat'.
3039         * modules/unistr/u32-strcat-tests: New file.
3040         * tests/unistr/test-u32-strcat.c: New file.
3041
3042         Tests for module 'unistr/u16-strcat'.
3043         * modules/unistr/u16-strcat-tests: New file.
3044         * tests/unistr/test-u16-strcat.c: New file.
3045
3046         Tests for module 'unistr/u8-strcat'.
3047         * modules/unistr/u8-strcat-tests: New file.
3048         * tests/unistr/test-u8-strcat.c: New file.
3049         * tests/unistr/test-strcat.h: New file.
3050
3051         Tests for module 'unistr/u32-stpncpy'.
3052         * modules/unistr/u32-stpncpy-tests: New file.
3053         * tests/unistr/test-u32-stpncpy.c: New file.
3054
3055         Tests for module 'unistr/u16-stpncpy'.
3056         * modules/unistr/u16-stpncpy-tests: New file.
3057         * tests/unistr/test-u16-stpncpy.c: New file.
3058
3059         Tests for module 'unistr/u8-stpncpy'.
3060         * modules/unistr/u8-stpncpy-tests: New file.
3061         * tests/unistr/test-u8-stpncpy.c: New file.
3062         * tests/unistr/test-stpncpy.h: New file.
3063
3064         Tests for module 'unistr/u32-strncpy'.
3065         * modules/unistr/u32-strncpy-tests: New file.
3066         * tests/unistr/test-u32-strncpy.c: New file.
3067
3068         Tests for module 'unistr/u16-strncpy'.
3069         * modules/unistr/u16-strncpy-tests: New file.
3070         * tests/unistr/test-u16-strncpy.c: New file.
3071
3072         Tests for module 'unistr/u8-strncpy'.
3073         * modules/unistr/u8-strncpy-tests: New file.
3074         * tests/unistr/test-u8-strncpy.c: New file.
3075         * tests/unistr/test-strncpy.h: New file.
3076
3077         Tests for module 'unistr/u32-stpcpy'.
3078         * modules/unistr/u32-stpcpy-tests: New file.
3079         * tests/unistr/test-u32-stpcpy.c: New file.
3080
3081         Tests for module 'unistr/u16-stpcpy'.
3082         * modules/unistr/u16-stpcpy-tests: New file.
3083         * tests/unistr/test-u16-stpcpy.c: New file.
3084
3085         Tests for module 'unistr/u8-stpcpy'.
3086         * modules/unistr/u8-stpcpy-tests: New file.
3087         * tests/unistr/test-u8-stpcpy.c: New file.
3088         * tests/unistr/test-stpcpy.h: New file.
3089
3090         Tests for module 'unistr/u32-strcpy'.
3091         * modules/unistr/u32-strcpy-tests: New file.
3092         * tests/unistr/test-u32-strcpy.c: New file.
3093
3094         Tests for module 'unistr/u16-strcpy'.
3095         * modules/unistr/u16-strcpy-tests: New file.
3096         * tests/unistr/test-u16-strcpy.c: New file.
3097
3098         Tests for module 'unistr/u8-strcpy'.
3099         * modules/unistr/u8-strcpy-tests: New file.
3100         * tests/unistr/test-u8-strcpy.c: New file.
3101         * tests/unistr/test-strcpy.h: New file.
3102
3103         Tests for module 'unistr/u32-strnlen'.
3104         * modules/unistr/u32-strnlen-tests: New file.
3105         * tests/unistr/test-u32-strnlen.c: New file.
3106
3107         Tests for module 'unistr/u16-strnlen'.
3108         * modules/unistr/u16-strnlen-tests: New file.
3109         * tests/unistr/test-u16-strnlen.c: New file.
3110
3111         Tests for module 'unistr/u8-strnlen'.
3112         * modules/unistr/u8-strnlen-tests: New file.
3113         * tests/unistr/test-u8-strnlen.c: New file.
3114         * tests/unistr/test-strnlen.h: New file.
3115
3116         Tests for module 'unistr/u32-strlen'.
3117         * modules/unistr/u32-strlen-tests: New file.
3118         * tests/unistr/test-u32-strlen.c: New file.
3119
3120         Tests for module 'unistr/u16-strlen'.
3121         * modules/unistr/u16-strlen-tests: New file.
3122         * tests/unistr/test-u16-strlen.c: New file.
3123
3124         Tests for module 'unistr/u8-strlen'.
3125         * modules/unistr/u8-strlen-tests: New file.
3126         * tests/unistr/test-u8-strlen.c: New file.
3127
3128         Tests for module 'unistr/u32-prev'.
3129         * modules/unistr/u32-prev-tests: New file.
3130         * tests/unistr/test-u32-prev.c: New file.
3131
3132         Tests for module 'unistr/u16-prev'.
3133         * modules/unistr/u16-prev-tests: New file.
3134         * tests/unistr/test-u16-prev.c: New file.
3135
3136         Tests for module 'unistr/u8-prev'.
3137         * modules/unistr/u8-prev-tests: New file.
3138         * tests/unistr/test-u8-prev.c: New file.
3139
3140         Tests for module 'unistr/u32-next'.
3141         * modules/unistr/u32-next-tests: New file.
3142         * tests/unistr/test-u32-next.c: New file.
3143
3144         Tests for module 'unistr/u16-next'.
3145         * modules/unistr/u16-next-tests: New file.
3146         * tests/unistr/test-u16-next.c: New file.
3147
3148         Tests for module 'unistr/u8-next'.
3149         * modules/unistr/u8-next-tests: New file.
3150         * tests/unistr/test-u8-next.c: New file.
3151
3152         Tests for module 'unistr/u32-strmbtouc'.
3153         * modules/unistr/u32-strmbtouc-tests: New file.
3154         * tests/unistr/test-u32-strmbtouc.c: New file.
3155
3156         Tests for module 'unistr/u16-strmbtouc'.
3157         * modules/unistr/u16-strmbtouc-tests: New file.
3158         * tests/unistr/test-u16-strmbtouc.c: New file.
3159
3160         Tests for module 'unistr/u8-strmbtouc'.
3161         * modules/unistr/u8-strmbtouc-tests: New file.
3162         * tests/unistr/test-u8-strmbtouc.c: New file.
3163
3164         Tests for module 'unistr/u32-strmblen'.
3165         * modules/unistr/u32-strmblen-tests: New file.
3166         * tests/unistr/test-u32-strmblen.c: New file.
3167
3168         Tests for module 'unistr/u16-strmblen'.
3169         * modules/unistr/u16-strmblen-tests: New file.
3170         * tests/unistr/test-u16-strmblen.c: New file.
3171
3172         Tests for module 'unistr/u8-strmblen'.
3173         * modules/unistr/u8-strmblen-tests: New file.
3174         * tests/unistr/test-u8-strmblen.c: New file.
3175
3176         Tests for module 'unistr/u32-cpy-alloc'.
3177         * modules/unistr/u32-cpy-alloc-tests: New file.
3178         * tests/unistr/test-u32-cpy-alloc.c: New file.
3179
3180         Tests for module 'unistr/u16-cpy-alloc'.
3181         * modules/unistr/u16-cpy-alloc-tests: New file.
3182         * tests/unistr/test-u16-cpy-alloc.c: New file.
3183
3184         Tests for module 'unistr/u8-cpy-alloc'.
3185         * modules/unistr/u8-cpy-alloc-tests: New file.
3186         * tests/unistr/test-u8-cpy-alloc.c: New file.
3187         * tests/unistr/test-cpy-alloc.h: New file.
3188
3189         Tests for module 'unistr/u32-mbsnlen'.
3190         * modules/unistr/u32-mbsnlen-tests: New file.
3191         * tests/unistr/test-u32-mbsnlen.c: New file.
3192
3193         Tests for module 'unistr/u16-mbsnlen'.
3194         * modules/unistr/u16-mbsnlen-tests: New file.
3195         * tests/unistr/test-u16-mbsnlen.c: New file.
3196
3197         Tests for module 'unistr/u8-mbsnlen'.
3198         * modules/unistr/u8-mbsnlen-tests: New file.
3199         * tests/unistr/test-u8-mbsnlen.c: New file.
3200
3201         Tests for module 'unistr/u32-chr'.
3202         * modules/unistr/u32-chr-tests: New file.
3203         * tests/unistr/test-u32-chr.c: New file.
3204
3205         Tests for module 'unistr/u16-chr'.
3206         * modules/unistr/u16-chr-tests: New file.
3207         * tests/unistr/test-u16-chr.c: New file.
3208
3209         Tests for module 'unistr/u8-chr'.
3210         * modules/unistr/u8-chr-tests: New file.
3211         * tests/unistr/test-u8-chr.c: New file.
3212         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3213
3214         Tests for module 'unistr/u32-cmp2'.
3215         * modules/unistr/u32-cmp2-tests: New file.
3216         * tests/unistr/test-u32-cmp2.c: New file.
3217
3218         Tests for module 'unistr/u16-cmp2'.
3219         * modules/unistr/u16-cmp2-tests: New file.
3220         * tests/unistr/test-u16-cmp2.c: New file.
3221
3222         Tests for module 'unistr/u8-cmp2'.
3223         * modules/unistr/u8-cmp2-tests: New file.
3224         * tests/unistr/test-u8-cmp2.c: New file.
3225         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3226
3227         Tests for module 'unistr/u32-cmp'.
3228         * modules/unistr/u32-cmp-tests: New file.
3229         * tests/unistr/test-u32-cmp.c: New file.
3230
3231         Tests for module 'unistr/u16-cmp'.
3232         * modules/unistr/u16-cmp-tests: New file.
3233         * tests/unistr/test-u16-cmp.c: New file.
3234
3235         Tests for module 'unistr/u8-cmp'.
3236         * modules/unistr/u8-cmp-tests: New file.
3237         * tests/unistr/test-u8-cmp.c: New file.
3238         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3239
3240         Tests for module 'unistr/u32-set'.
3241         * modules/unistr/u32-set-tests: New file.
3242         * tests/unistr/test-u32-set.c: New file.
3243
3244         Tests for module 'unistr/u16-set'.
3245         * modules/unistr/u16-set-tests: New file.
3246         * tests/unistr/test-u16-set.c: New file.
3247
3248         Tests for module 'unistr/u8-set'.
3249         * modules/unistr/u8-set-tests: New file.
3250         * tests/unistr/test-u8-set.c: New file.
3251         * tests/unistr/test-set.h: New file.
3252
3253         Tests for module 'unistr/u32-move'.
3254         * modules/unistr/u32-move-tests: New file.
3255         * tests/unistr/test-u32-move.c: New file.
3256
3257         Tests for module 'unistr/u16-move'.
3258         * modules/unistr/u16-move-tests: New file.
3259         * tests/unistr/test-u16-move.c: New file.
3260
3261         Tests for module 'unistr/u8-move'.
3262         * modules/unistr/u8-move-tests: New file.
3263         * tests/unistr/test-u8-move.c: New file.
3264         * tests/unistr/test-move.h: New file.
3265
3266         Tests for module 'unistr/u32-cpy'.
3267         * modules/unistr/u32-cpy-tests: New file.
3268         * tests/unistr/test-u32-cpy.c: New file.
3269
3270         Tests for module 'unistr/u16-cpy'.
3271         * modules/unistr/u16-cpy-tests: New file.
3272         * tests/unistr/test-u16-cpy.c: New file.
3273
3274         Tests for module 'unistr/u8-cpy'.
3275         * modules/unistr/u8-cpy-tests: New file.
3276         * tests/unistr/test-u8-cpy.c: New file.
3277         * tests/unistr/test-cpy.h: New file.
3278
3279 2010-01-09  Bruno Haible  <bruno@clisp.org>
3280
3281         Tests for module 'unistr/u32-uctomb'.
3282         * modules/unistr/u32-uctomb-tests: New file.
3283         * tests/unistr/test-u32-uctomb.c: New file.
3284
3285         Tests for module 'unistr/u16-uctomb'.
3286         * modules/unistr/u16-uctomb-tests: New file.
3287         * tests/unistr/test-u16-uctomb.c: New file.
3288
3289         Tests for module 'unistr/u8-uctomb'.
3290         * modules/unistr/u8-uctomb-tests: New file.
3291         * tests/unistr/test-u8-uctomb.c: New file.
3292
3293         Tests for module 'unistr/u32-mbtoucr'.
3294         * modules/unistr/u32-mbtoucr-tests: New file.
3295         * tests/unistr/test-u32-mbtoucr.c: New file.
3296
3297         Tests for module 'unistr/u16-mbtoucr'.
3298         * modules/unistr/u16-mbtoucr-tests: New file.
3299         * tests/unistr/test-u16-mbtoucr.c: New file.
3300
3301         Tests for module 'unistr/u8-mbtoucr'.
3302         * modules/unistr/u8-mbtoucr-tests: New file.
3303         * tests/unistr/test-u8-mbtoucr.c: New file.
3304
3305         Tests for module 'unistr/u32-mbtouc'.
3306         * modules/unistr/u32-mbtouc-tests: New file.
3307         * tests/unistr/test-u32-mbtouc.c: New file.
3308
3309         Tests for module 'unistr/u16-mbtouc'.
3310         * modules/unistr/u16-mbtouc-tests: New file.
3311         * tests/unistr/test-u16-mbtouc.c: New file.
3312
3313         Tests for module 'unistr/u8-mbtouc'.
3314         * modules/unistr/u8-mbtouc-tests: New file.
3315         * tests/unistr/test-u8-mbtouc.c: New file.
3316
3317         Tests for module 'unistr/u32-mbtouc-unsafe'.
3318         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3319         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3320         * tests/unistr/test-u32-mbtouc.h: New file.
3321
3322         Tests for module 'unistr/u16-mbtouc-unsafe'.
3323         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3324         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3325         * tests/unistr/test-u16-mbtouc.h: New file.
3326
3327         Tests for module 'unistr/u8-mbtouc-unsafe'.
3328         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3329         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3330         * tests/unistr/test-u8-mbtouc.h: New file.
3331
3332         Tests for module 'unistr/u32-mblen'.
3333         * modules/unistr/u32-mblen-tests: New file.
3334         * tests/unistr/test-u32-mblen.c: New file.
3335
3336         Tests for module 'unistr/u16-mblen'.
3337         * modules/unistr/u16-mblen-tests: New file.
3338         * tests/unistr/test-u16-mblen.c: New file.
3339
3340         Tests for module 'unistr/u8-mblen'.
3341         * modules/unistr/u8-mblen-tests: New file.
3342         * tests/unistr/test-u8-mblen.c: New file.
3343
3344         Tests for module 'unistr/u32-to-u16'.
3345         * modules/unistr/u32-to-u16-tests: New file.
3346         * tests/unistr/test-u32-to-u16.c: New file.
3347
3348         Tests for module 'unistr/u32-to-u8'.
3349         * modules/unistr/u32-to-u8-tests: New file.
3350         * tests/unistr/test-u32-to-u8.c: New file.
3351
3352         Tests for module 'unistr/u16-to-u32'.
3353         * modules/unistr/u16-to-u32-tests: New file.
3354         * tests/unistr/test-u16-to-u32.c: New file.
3355
3356         Tests for module 'unistr/u16-to-u8'.
3357         * modules/unistr/u16-to-u8-tests: New file.
3358         * tests/unistr/test-u16-to-u8.c: New file.
3359
3360         Tests for module 'unistr/u8-to-u32'.
3361         * modules/unistr/u8-to-u32-tests: New file.
3362         * tests/unistr/test-u8-to-u32.c: New file.
3363
3364         Tests for module 'unistr/u8-to-u16'.
3365         * modules/unistr/u8-to-u16-tests: New file.
3366         * tests/unistr/test-u8-to-u16.c: New file.
3367
3368         Tests for module 'unistr/u32-check'.
3369         * modules/unistr/u32-check-tests: New file.
3370         * tests/unistr/test-u32-check.c: New file.
3371
3372         Tests for module 'unistr/u16-check'.
3373         * modules/unistr/u16-check-tests: New file.
3374         * tests/unistr/test-u16-check.c: New file.
3375
3376         Tests for module 'unistr/u8-check'.
3377         * modules/unistr/u8-check-tests: New file.
3378         * tests/unistr/test-u8-check.c: New file.
3379
3380         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3381         (category_equals): New function.
3382         (main): Add more tests.
3383         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3384
3385         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3386
3387 2010-01-10  Bruno Haible  <bruno@clisp.org>
3388
3389         unistr/u*-strcoll: Try harder to distinguish different strings.
3390         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3391         compare s1 and s2 to see if they are different.
3392
3393 2010-01-10  Bruno Haible  <bruno@clisp.org>
3394
3395         unistr/u*-stpncpy: Fix the return value.
3396         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3397         description of the return value consistent with stpncpy in glibc.
3398         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3399         written non-NUL unit.
3400
3401 2010-01-10  Bruno Haible  <bruno@clisp.org>
3402
3403         unistr/u*-next: Add missing dependencies.
3404         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3405         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3406         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3407
3408 2010-01-10  Bruno Haible  <bruno@clisp.org>
3409
3410         unistr/u8-mbsnlen: Fix return value for incomplete character.
3411         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3412         u8_mblen.
3413         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3414         Remove unistr/u8-mblen.
3415         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3416         u16_mblen.
3417         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3418         Remove unistr/u16-mblen.
3419
3420 2010-01-10  Bruno Haible  <bruno@clisp.org>
3421
3422         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3423         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3424         Reported by Brian Gough <bjg@gnu.org> and
3425         Chris Clayton <chris2553@googlemail.com> via
3426         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3427
3428 2010-01-09  Bruno Haible  <bruno@clisp.org>
3429
3430         unistr/u16-to-u32: Reject invalid input.
3431         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3432         u16_mbtouc.
3433         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3434         Remove unistr/u16-mbtouc.
3435
3436         unistr/u16-to-u8: Reject invalid input.
3437         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3438         u16_mbtouc.
3439         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3440         Remove unistr/u16-mbtouc.
3441
3442         unistr/u8-to-u32: Reject invalid input.
3443         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3444         u8_mbtouc.
3445         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3446         Remove unistr/u8-mbtouc.
3447
3448         unistr/u8-to-u16: Reject invalid input.
3449         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3450         u8_mbtouc.
3451         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3452         Remove unistr/u8-mbtouc.
3453
3454 2010-01-09  Bruno Haible  <bruno@clisp.org>
3455
3456         Tests for module 'getlogin'.
3457         * modules/getlogin-tests: New file.
3458         * tests/test-getlogin.c: New file.
3459
3460         New module 'getlogin'.
3461         * lib/unistd.in.h (getlogin): New declaration.
3462         * lib/getlogin.c: New file.
3463         * m4/getlogin.m4: New file.
3464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3465         HAVE_GETLOGIN.
3466         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3467         HAVE_GETLOGIN.
3468         * modules/getlogin: New file.
3469         * doc/posix-functions/getlogin.texi: Mention the new module.
3470         Reported by John W. Eaton <jwe@gnu.org>.
3471
3472 2010-01-09  Bruno Haible  <bruno@clisp.org>
3473
3474         getlogin_r: Support for native Windows.
3475         * lib/getlogin_r.c: Include <windows.h>
3476         (getlogin_r): Implement for native Windows.
3477         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3478         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3479         via John W. Eaton <jwe@gnu.org>.
3480
3481 2010-01-09  Bruno Haible  <bruno@clisp.org>
3482
3483         getlogin_r: Small fixes.
3484         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3485         succeeds.
3486         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3487         before testing whether getlogin_r is declared. No need to set
3488         HAVE_DECL_GETLOGIN_R to 1.
3489         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3490
3491 2010-01-09  Bruno Haible  <bruno@clisp.org>
3492
3493         * lib/unistd.in.h (getlogin_r): Add comment.
3494
3495 2010-01-09  Bruno Haible  <bruno@clisp.org>
3496
3497         Tests for module 'getlogin_r'.
3498         * modules/getlogin_r-tests: New file.
3499         * tests/test-getlogin_r.c: New file.
3500
3501 2010-01-09  Jim Meyering  <meyering@redhat.com>
3502
3503         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3504         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3505         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3506
3507 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3508
3509         * lib/dup2.c (rpl_dup2): Improve comment.
3510
3511 2010-01-08  Eric Blake  <ebb9@byu.net>
3512
3513         maint.mk: allow packages to add makefile @@ exceptions
3514         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3515         (sc_makefile_check): Rename...
3516         (sc_makefile_at_at_check): ...to this, and use hook.
3517
3518         dup2: work around mingw bug
3519         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3520         Reported by Simon Josefsson.
3521
3522 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3523
3524         glob: Fix C++ compilation.
3525         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3526         C++.
3527
3528 2010-01-07  Bruno Haible  <bruno@clisp.org>
3529
3530         Fix indentation of wctype.in.h, broken since 2007-01-06.
3531         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3532
3533 2010-01-07  Bruno Haible  <bruno@clisp.org>
3534
3535         mbslen: Avoid collision with system function.
3536         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3537         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3538         * m4/mbslen.m4: New file.
3539         * modules/mbslen (Files): Add it.
3540         (configure.ac): Invoke gl_MBSLEN.
3541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3542         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3544         via Ian Beckwith <ianb@erislabs.net>.
3545
3546 2010-01-07  Bruno Haible  <bruno@clisp.org>
3547
3548         dirent: Document the last fix.
3549         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3550
3551 2010-01-07  Bruno Haible  <bruno@clisp.org>
3552
3553         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3554         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3555         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3556         va_list are defined.
3557         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3558         Reported by Eric Blake.
3559
3560 2010-01-07  Bruno Haible  <bruno@clisp.org>
3561
3562         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3563         * modules/xlist (Depends-on): Add 'list',
3564         * modules/xoset (Depends-on): Add 'oset'.
3565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3566
3567 2010-01-07  Bruno Haible  <bruno@clisp.org>
3568
3569         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3570         * doc/posix-functions/strncasecmp.texi: Likewise.
3571
3572 2010-01-07  Bruno Haible  <bruno@clisp.org>
3573
3574         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3575
3576 2010-01-07  John W. Eaton  <jwe@octave.org>
3577
3578         wctype: allow C++ use
3579         * lib/wctype.in.h: Add extern "C" block for C++.
3580
3581 2010-01-06  Eric Blake  <ebb9@byu.net>
3582
3583         maint.mk: detect incorrect GFDL usage
3584         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3585
3586 2010-01-06  Jim Meyering  <meyering@redhat.com>
3587         and Eric Blake  <ebb9@byu.net>
3588
3589         maint.mk: ignore multi-line copyright in NEWS
3590         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3591
3592 2010-01-06  Eric Blake  <ebb9@byu.net>
3593
3594         select: add missing dependency
3595         * modules/select-tests (Depends-on): Move sockets dependency...
3596         * modules/select (Depends-on): ...here.
3597         Reported by Ian Beckwith.
3598
3599         doc: regenerate INSTALL
3600         * doc/INSTALL: Reflect recent autoconf update.
3601         * doc/INSTALL.ISO: Likewise.
3602         * doc/INSTALL.UTF-8: Likewise.
3603
3604         pread: fix compilation on glibc
3605         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3606         Reported by Ralf Wildenhues.
3607
3608         dirent: fix test failure
3609         * lib/dirent.in.h (includes): Guarantee ino_t.
3610         Reported by Ralf Wildenhues.
3611
3612 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3613
3614         linkat, renameat: avoid bad free
3615         * lib/at-func2.c (at_func2): Fix typo.
3616         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3617
3618 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3619
3620         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3621         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3622         to avoid failure of symlink test later.
3623
3624 2010-01-06  Eric Blake  <ebb9@byu.net>
3625
3626         stdio, unistd: guarantee ssize_t
3627         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3628         2008 are exposed when needed.
3629         * lib/stdio.in.h (includes): Likewise.
3630         Reported by Ralf Wildenhues.
3631
3632 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3633
3634         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3635         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3636         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3637
3638 2010-01-06  Jim Meyering  <meyering@redhat.com>
3639
3640         readtokens: this module *does* require xalloc.h
3641         It uses only functions that were omitted by the old syntax-check rule.
3642         * lib/readtokens.c: Include "xalloc.h" once again.
3643         * modules/readtokens (Depends-on): Add xalloc.
3644         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3645
3646 2010-01-05  Eric Blake  <ebb9@byu.net>
3647
3648         maint: support 'make announcement' from a VPATH build
3649         * top/maint.mk (announcement): Look for correct NEWS file.
3650
3651 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3652
3653         utimens (fdutimens): ignore a negative FD, per contract
3654         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3655         when we have a valid file descriptor.  Otherwise, using a brand
3656         new glibc (with just-patched futimens that now fails with EBADF)
3657         would cause this function to fail with ENOSYS.
3658         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3659         See also http://bugzilla.redhat.com/552320.
3660
3661 2010-01-05  Eric Blake  <ebb9@byu.net>
3662
3663         strcase: document what it provides
3664         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3665         gnulib module.
3666         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3667         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3668
3669 2010-01-05  Jim Meyering  <meyering@redhat.com>
3670
3671         maint: remove useless inclusions of "xalloc.h"
3672         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3673         * lib/readtokens.c: Likewise.
3674         * lib/same.c: Likewise.
3675         * modules/getloadavg (Depends-on): Remove xalloc.
3676         * modules/readtokens: Likewise.
3677         * modules/same: Likewise.
3678
3679         maint.mk: include 4 more function names in alloca.h-checking regexp
3680         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3681         regexp.  Before, we would give a false-positive (saying alloca.h
3682         is included unnecessarily) when the only uses involved omitted symbols.
3683
3684         xalloc.h: use consistent formatting
3685         * lib/xalloc.h: Move declarations to start in the first column.
3686
3687 2010-01-05  Eric Blake  <ebb9@byu.net>
3688
3689         mkdir: avoid xalloc
3690         * lib/mkdir.c (includes): Drop unused header.
3691         Reported by John W. Eaton.
3692
3693 2010-01-04  Jim Meyering  <meyering@redhat.com>
3694
3695         nl_langinfo: avoid configure-time syntax error
3696         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3697         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3698         the empty string.  Don't let that provoke a shell syntax error.
3699
3700         regcomp, regexec, fnmatch: avoid array bounds read error
3701         * lib/regcomp.c (build_equiv_class): From glibc:
3702         Use only the low 24 bits of a findidx return value as an index
3703         into the weights array.  Patch by Ulrich Drepper:
3704         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3705         * lib/regexec.c (check_node_accept_bytes): Likewise.
3706         * lib/fnmatch_loop.c (FCT): Likewise.
3707
3708         regcomp: skip collseq lookup when there are no rules
3709         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3710         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3711
3712         regcomp: recognize ill-formed { } expressions
3713         * lib/regcomp.c (parse_dup_op): From glibc:
3714         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3715
3716         regcomp: fix typo in comment
3717         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3718         s/satisfy/satisfies/.
3719
3720         regcomp: sync from glibc: remove dead store
3721         * lib/regcomp.c (duplicate_node_closure): Remove useless
3722         search_duplicated_node call and dead store.
3723
3724         regcomp: sync from glibc; always use nl_langinfo
3725         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3726         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3727         * modules/regex (Depends-on): Add nl_langinfo.
3728
3729 2010-01-04  Eric Blake  <ebb9@byu.net>
3730
3731         fdopendir: fix configure test
3732         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3733
3734 2010-01-01  Bruno Haible  <bruno@clisp.org>
3735
3736         wchar: Remove unused configure check.
3737         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3738
3739 2010-01-01  Eric Blake  <ebb9@byu.net>
3740
3741         headers: make check of system header explicit
3742         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3743         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3744         ourselves.
3745         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3747         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3748         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3749         internals.
3750         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3751         missing.
3752         Suggested by Bruno Haible.
3753
3754 2010-01-01  Jim Meyering  <meyering@redhat.com>
3755
3756         ChangeLog: tweak to eliminate unnecessary copyright line
3757         * ChangeLog: Remove a copyright line that was mistakenly updated
3758         by today's update-copyright run.  Reported by Eric Blake.
3759
3760         test-update-copyright: don't let envvar setting cause test failure
3761         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3762
3763 2010-01-01  Bruno Haible  <bruno@clisp.org>
3764
3765         localename: Avoid gcc warning.
3766         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3767         function if it is not used.
3768
3769 2010-01-01  Jim Meyering  <meyering@redhat.com>
3770
3771         update nearly all FSF copyright year lists to include 2010
3772         Use the same procedure as for 2009, outlined in
3773         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3774
3775         version-etc: set COPYRIGHT_YEAR to 2010
3776         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3777
3778 2009-12-31  Eric Blake  <ebb9@byu.net>
3779
3780         doc: correct availability of cygwin 1.5.x getopt
3781         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3782         variables.
3783         * doc/posix-functions/opterr.texi (opterr): Likewise.
3784         * doc/posix-functions/optind.texi (optind): Likewise.
3785         * doc/posix-functions/optopt.texi (optopt): Likewise.
3786         * doc/posix-functions/tzname.texi (tzname): Likewise.
3787
3788         openat: update maintainer
3789         * modules/openat (Maintainer): Add myself.
3790
3791         utimens: avoid shadowing warning
3792         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3793         buffers into one, to avoid shadowing, as well as avoiding a
3794         redundant stat.
3795         Reported by Jim Meyering.
3796
3797         test-dup2: avoid compiler warning
3798         * tests/test-dup2.c (is_inheritable): Only define if used.
3799
3800 2010-01-01  Bruno Haible  <bruno@clisp.org>
3801
3802         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3803         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3804         defined, use wctomb instead of wcrtomb.
3805
3806 2010-01-01  Bruno Haible  <bruno@clisp.org>
3807
3808         iconv: Reject native Solaris iconv.
3809         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3810         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3811
3812 2009-12-31  Bruno Haible  <bruno@clisp.org>
3813
3814         * tests/test-signal.c (main): Remove test of 'SIG'.
3815
3816 2009-12-31  Bruno Haible  <bruno@clisp.org>
3817
3818         spawn: Fix incomplete fix.
3819         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3820         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3821         warnings for GNULIB_POSIXCHECK again.
3822         Reported by Eric Blake.
3823
3824 2009-12-31  Bruno Haible  <bruno@clisp.org>
3825
3826         Avoid namespace pollution on glibc systems.
3827         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3828         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3829         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3830         glibc systems.
3831
3832 2009-12-31  Bruno Haible  <bruno@clisp.org>
3833
3834         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3835         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3836         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3837         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3838         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3839         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3840         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3841
3842 2009-12-31  Bruno Haible  <bruno@clisp.org>
3843
3844         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3845         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3846         afterwards.
3847
3848 2009-12-31  Bruno Haible  <bruno@clisp.org>
3849
3850         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3851         SYS_UTSNAME_H.
3852
3853 2009-12-31  Bruno Haible  <bruno@clisp.org>
3854
3855         spawn: Fix misapplied patch.
3856         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3857         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3858         warnings for GNULIB_POSIXCHECK.
3859
3860 2009-12-31  Bruno Haible  <bruno@clisp.org>
3861
3862         times: Update after sys_times changed.
3863         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3864         * modules/times (Files): Add it.
3865         (configure.ac): Invoke gl_FUNC_TIMES.
3866
3867 2009-12-31  Bruno Haible  <bruno@clisp.org>
3868
3869         Use AC_C_INLINE where necessary.
3870         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3871         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3872         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3873         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3874         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3875         * m4/mbiter.m4 (gl_MBITER): Likewise.
3876         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3877         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3878         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3879         * modules/u64 (configure.ac): Likewise.
3880
3881 2009-12-31  Bruno Haible  <bruno@clisp.org>
3882
3883         Use AC_C_INLINE instead of module 'inline' where possible.
3884         * modules/inline (Description): Clarify purpose.
3885         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3886         * modules/count-one-bits (Depends-on): Remove inline.
3887         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3888         * modules/openat (Depends-on): Remove inline.
3889         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3890         instead of depending on module 'inline'.
3891         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3892         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3893         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3894         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3895         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3896         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3897         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3898         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3899         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3900         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3901         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3902         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3903         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3904         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3905         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3906         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3907         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3908         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3909         Likewise.
3910         * modules/unictype/property-ascii-hex-digit (Depends-on,
3911         configure.ac): Likewise.
3912         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3913         configure.ac): Likewise.
3914         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3915         configure.ac): Likewise.
3916         * modules/unictype/property-bidi-block-separator (Depends-on,
3917         configure.ac): Likewise.
3918         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3919         configure.ac): Likewise.
3920         * modules/unictype/property-bidi-common-separator (Depends-on,
3921         configure.ac): Likewise.
3922         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3923         Likewise.
3924         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3925         configure.ac): Likewise.
3926         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3927         configure.ac): Likewise.
3928         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3929         configure.ac): Likewise.
3930         * modules/unictype/property-bidi-european-digit (Depends-on,
3931         configure.ac): Likewise.
3932         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3933         configure.ac): Likewise.
3934         * modules/unictype/property-bidi-left-to-right (Depends-on,
3935         configure.ac): Likewise.
3936         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3937         configure.ac): Likewise.
3938         * modules/unictype/property-bidi-other-neutral (Depends-on,
3939         configure.ac): Likewise.
3940         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3941         Likewise.
3942         * modules/unictype/property-bidi-segment-separator (Depends-on,
3943         configure.ac): Likewise.
3944         * modules/unictype/property-bidi-whitespace (Depends-on,
3945         configure.ac): Likewise.
3946         * modules/unictype/property-combining (Depends-on, configure.ac):
3947         Likewise.
3948         * modules/unictype/property-composite (Depends-on, configure.ac):
3949         Likewise.
3950         * modules/unictype/property-currency-symbol (Depends-on,
3951         configure.ac): Likewise.
3952         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3953         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3954         Likewise.
3955         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3956         configure.ac): Likewise.
3957         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3958         Likewise.
3959         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3960         Likewise.
3961         * modules/unictype/property-extender (Depends-on, configure.ac):
3962         Likewise.
3963         * modules/unictype/property-format-control (Depends-on, configure.ac):
3964         Likewise.
3965         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3966         Likewise.
3967         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3968         Likewise.
3969         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3970         Likewise.
3971         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3972         Likewise.
3973         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3974         Likewise.
3975         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3976         Likewise.
3977         * modules/unictype/property-id-start (Depends-on, configure.ac):
3978         Likewise.
3979         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3980         Likewise.
3981         * modules/unictype/property-ids-binary-operator (Depends-on,
3982         configure.ac): Likewise.
3983         * modules/unictype/property-ids-trinary-operator (Depends-on,
3984         configure.ac): Likewise.
3985         * modules/unictype/property-ignorable-control (Depends-on,
3986         configure.ac): Likewise.
3987         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3988         Likewise.
3989         * modules/unictype/property-join-control (Depends-on, configure.ac):
3990         Likewise.
3991         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3992         Likewise.
3993         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3994         Likewise.
3995         * modules/unictype/property-logical-order-exception (Depends-on,
3996         configure.ac): Likewise.
3997         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3998         Likewise.
3999         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4000         * modules/unictype/property-non-break (Depends-on, configure.ac):
4001         Likewise.
4002         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4003         Likewise.
4004         * modules/unictype/property-numeric (Depends-on, configure.ac):
4005         Likewise.
4006         * modules/unictype/property-other-alphabetic (Depends-on,
4007         configure.ac): Likewise.
4008         * modules/unictype/property-other-default-ignorable-code-point
4009         (Depends-on, configure.ac): Likewise.
4010         * modules/unictype/property-other-grapheme-extend (Depends-on,
4011         configure.ac): Likewise.
4012         * modules/unictype/property-other-id-continue (Depends-on,
4013         configure.ac): Likewise.
4014         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4015         Likewise.
4016         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4017         Likewise.
4018         * modules/unictype/property-other-math (Depends-on, configure.ac):
4019         Likewise.
4020         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4021         Likewise.
4022         * modules/unictype/property-paired-punctuation (Depends-on,
4023         configure.ac): Likewise.
4024         * modules/unictype/property-paragraph-separator (Depends-on,
4025         configure.ac): Likewise.
4026         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4027         Likewise.
4028         * modules/unictype/property-pattern-white-space (Depends-on,
4029         configure.ac): Likewise.
4030         * modules/unictype/property-private-use (Depends-on, configure.ac):
4031         Likewise.
4032         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4033         Likewise.
4034         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4035         Likewise.
4036         * modules/unictype/property-radical (Depends-on, configure.ac):
4037         Likewise.
4038         * modules/unictype/property-sentence-terminal (Depends-on,
4039         configure.ac): Likewise.
4040         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4041         Likewise.
4042         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4043         * modules/unictype/property-terminal-punctuation (Depends-on,
4044         configure.ac): Likewise.
4045         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4046         Likewise.
4047         * modules/unictype/property-unassigned-code-value (Depends-on,
4048         configure.ac): Likewise.
4049         * modules/unictype/property-unified-ideograph (Depends-on,
4050         configure.ac): Likewise.
4051         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4052         Likewise.
4053         * modules/unictype/property-variation-selector (Depends-on,
4054         configure.ac): Likewise.
4055         * modules/unictype/property-white-space (Depends-on, configure.ac):
4056         Likewise.
4057         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4058         Likewise.
4059         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4060         Likewise.
4061         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4062         Likewise.
4063         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4064         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4065         Likewise.
4066
4067 2009-12-31  Bruno Haible  <bruno@clisp.org>
4068
4069         Remove unnecessary AC_C_INLINE invocation.
4070         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4071         since 2009-08-21.
4072
4073 2009-12-31  Jim Meyering  <meyering@redhat.com>
4074
4075         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4076         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4077         With this change, we can all remove the gpg_key_ID = ... definition
4078         from our respective cfg.mk files.
4079
4080         maint.mk: create announcement template in ~/, not in /tmp
4081         * top/maint.mk (emit_upload_commands): Adjust.
4082         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4083         Remove temporary file, .ci-msg.
4084
4085 2009-12-31  Eric Blake  <ebb9@byu.net>
4086
4087         link-warning: always build headers with link warnings
4088         * modules/arpa_inet (Makefile.am): Always build replacement
4089         header.
4090         * modules/ctype (Makefile.am): Likewise.
4091         * modules/dirent (Makefile.am): Likewise.
4092         * modules/inttypes (Makefile.am): Likewise.
4093         * modules/langinfo (Makefile.am): Likewise.
4094         * modules/locale (Makefile.am): Likewise.
4095         * modules/spawn (Makefile.am): Likewise.
4096         * modules/sys_file (Makefile.am): Likewise.
4097         * modules/sys_ioctl (Makefile.am): Likewise.
4098         * modules/sys_select (Makefile.am): Likewise.
4099         * modules/sys_socket (Makefile.am): Likewise.
4100         * modules/sys_times (Makefile.am): Likewise.
4101         * modules/sys_utsname (Makefile.am): Likewise.
4102         * modules/sys_wait (Makefile.am): Likewise.
4103         * modules/wchar (Makefile.am): Likewise.
4104         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4105         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4106         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4107         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4108         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4109         Likewise.
4110         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4111         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4112         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4113         Likewise.
4114         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4115         Likewise.
4116         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4117         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4118         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4120         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4121         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4122         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4123         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4124         (gl_WCHAR_H_DEFAULTS): Likewise.
4125
4126 2009-12-31  Eric Blake  <ebb9@byu.net>
4127
4128         signal, spawn: use link warnings
4129         * lib/signal.in.h (sigset_t): Make unconditional.
4130         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4131         (sigpending, sigprocmask, sigaction): Add link warnings.
4132         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4133         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4134         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4135         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4136         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4137         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4138         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4139         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4140         (posix_spawn_file_actions_destroy)
4141         (posix_spawn_file_actions_addopen)
4142         (posix_spawn_file_actions_addclose)
4143         (posix_spawn_file_actions_adddup2): Likewise.
4144         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4145         * tests/test-signal.c (main): Enhance test.
4146
4147         spawn: improve wrapper support
4148         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4149         (gl_SPAWN_H_DEFAULTS): New defaults.
4150         * modules/spawn (Makefile.am): Substitute them.
4151         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4152         Only declare if missing or broken.
4153
4154         sys_times, sys_utsname: use include_next
4155         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4156         header.
4157         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4158         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4159         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4160         * modules/sys_times (Depends-on): Add include_next.
4161         (Makefile.am): Substitute additional values.
4162         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4163         * lib/sys_times.in.h (includes): Include native header, if
4164         available.
4165         * lib/sys_utsname.in.h (includes): Likewise.
4166         * tests/test-sys_times.c (main): Enhance test.
4167
4168         fdutimensat: revert prior patch
4169         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4170         utimens.h.
4171         Reported by Bruno Haible.
4172
4173 2009-12-30  Eric Blake  <ebb9@byu.net>
4174
4175         sys_wait: drop link-warning dependency
4176         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4177         link-warning efforts.
4178         * lib/sys_wait.in.h: Likewise.
4179
4180         fdutimensat: remove bogus dependency
4181         * modules/fdutimensat (Depends-on): Drop inline.
4182
4183         unistd: fix typo
4184         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4185
4186 2009-12-30  Bruno Haible  <bruno@clisp.org>
4187
4188         Fix compilation error with Solaris cc.
4189         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4190         * lib/unicase/u16-is-invariant.c: Likewise.
4191         * lib/unicase/u32-is-invariant.c: Likewise.
4192         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4193
4194 2009-12-30  Bruno Haible  <bruno@clisp.org>
4195
4196         Fix test crash.
4197         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4198         locales.
4199         Reported by Simon Josefsson <simon@josefsson.org>.
4200
4201 2009-12-30  Bruno Haible  <bruno@clisp.org>
4202
4203         Fix compilation error on most platforms.
4204         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4205         Reported by Simon Josefsson <simon@josefsson.org>
4206         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4207
4208 2009-12-30  Eric Blake  <ebb9@byu.net>
4209
4210         futimens, utimensat: work around ntfs-3g bug
4211         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4212         a ctime bug is present, and expand workaround to cover ntfs-3g.
4213         * lib/utimens.c (fdutimens, lutimens): Likewise.
4214         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4215         (validate_timespec): Adjust return value.
4216         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4217         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4218         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4219
4220 2009-12-29  Eric Blake  <ebb9@byu.net>
4221
4222         link-warning: make usage consistent
4223         * modules/ctype (Depends-on): Add link-warning.
4224         (Makefile.am): Update rules accordingly.
4225         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4226         * modules/locale (Depends-on, Makefile.am): Likewise.
4227         * modules/sys_file (Makefile.am): Likewise.
4228         * modules/getopt-posix (Makefile.am): Delete unused link warning
4229         efforts.
4230         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4231         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4232         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4233         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4234
4235         stdio: remove unused variables
4236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4237         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4238         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4239
4240         tests: test more substitute headers
4241         * modules/ctype-tests: New file.
4242         * modules/dirent-tests: Likewise.
4243         * modules/spawn-tests: Likewise.
4244         * modules/sys_file-tests: Likewise.
4245         * modules/sys_ioctl-tests: Likewise.
4246         * modules/sys_wait-tests: Likewise.
4247         * tests/test-ctype.c: Likewise.
4248         * tests/test-dirent.c: Likewise.
4249         * tests/test-spawn.c: Likewise.
4250         * tests/test-sys_file.c: Likewise.
4251         * tests/test-sys_ioctl.c: Likewise.
4252         * tests/test-sys_wait.c: Likewise.
4253         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4254         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4255         whether or not flock is in use.
4256
4257         tests: remove License section from module
4258         * modules/arpa_inet-tests: Remove unneeded section.
4259         * modules/byteswap-tests: Likewise.
4260         * modules/ceilf-tests: Likewise.
4261         * modules/ceill-tests: Likewise.
4262         * modules/crypto/des-tests: Likewise.
4263         * modules/crypto/gc-arcfour-tests: Likewise.
4264         * modules/crypto/gc-arctwo-tests: Likewise.
4265         * modules/crypto/gc-des-tests: Likewise.
4266         * modules/crypto/gc-hmac-md5-tests: Likewise.
4267         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4268         * modules/crypto/gc-md2-tests: Likewise.
4269         * modules/crypto/gc-md4-tests: Likewise.
4270         * modules/crypto/gc-md5-tests: Likewise.
4271         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4272         * modules/crypto/gc-rijndael-tests: Likewise.
4273         * modules/crypto/gc-sha1-tests: Likewise.
4274         * modules/crypto/gc-tests: Likewise.
4275         * modules/crypto/md2-tests: Likewise.
4276         * modules/crypto/md4-tests: Likewise.
4277         * modules/fcntl-h-tests: Likewise.
4278         * modules/floorf-tests: Likewise.
4279         * modules/floorl-tests: Likewise.
4280         * modules/frexp-nolibm-tests: Likewise.
4281         * modules/frexp-tests: Likewise.
4282         * modules/frexpl-nolibm-tests: Likewise.
4283         * modules/frexpl-tests: Likewise.
4284         * modules/getaddrinfo-tests: Likewise.
4285         * modules/inttypes-tests: Likewise.
4286         * modules/isfinite-tests: Likewise.
4287         * modules/isinf-tests: Likewise.
4288         * modules/ldexpl-tests: Likewise.
4289         * modules/locale-tests: Likewise.
4290         * modules/math-tests: Likewise.
4291         * modules/netdb-tests: Likewise.
4292         * modules/netinet_in-tests: Likewise.
4293         * modules/printf-frexp-tests: Likewise.
4294         * modules/printf-frexpl-tests: Likewise.
4295         * modules/priv-set-tests: Likewise.
4296         * modules/random_r-tests: Likewise.
4297         * modules/round-tests: Likewise.
4298         * modules/roundf-tests: Likewise.
4299         * modules/roundl-tests: Likewise.
4300         * modules/search-tests: Likewise.
4301         * modules/select-tests: Likewise.
4302         * modules/signal-tests: Likewise.
4303         * modules/stdbool-tests: Likewise.
4304         * modules/stddef-tests: Likewise.
4305         * modules/stdint-tests: Likewise.
4306         * modules/stdio-tests: Likewise.
4307         * modules/stdlib-tests: Likewise.
4308         * modules/string-tests: Likewise.
4309         * modules/strings-tests: Likewise.
4310         * modules/sys_select-tests: Likewise.
4311         * modules/sys_socket-tests: Likewise.
4312         * modules/sys_stat-tests: Likewise.
4313         * modules/sys_time-tests: Likewise.
4314         * modules/sys_utsname-tests: Likewise.
4315         * modules/sysexits-tests: Likewise.
4316         * modules/time-tests: Likewise.
4317         * modules/trunc-tests: Likewise.
4318         * modules/truncf-tests: Likewise.
4319         * modules/truncl-tests: Likewise.
4320         * modules/tsearch-tests: Likewise.
4321         * modules/unistd-tests: Likewise.
4322         * modules/wchar-tests: Likewise.
4323         * modules/wctype-tests: Likewise.
4324
4325         tests: fix license on several tests
4326         * tests/test-des.c: Update to GPLv3+.
4327         * tests/test-flock.c: Likewise.
4328         * tests/test-fsync.c: Likewise.
4329         * tests/test-futimens.h: Likewise.
4330         * tests/test-gc-arcfour.c: Likewise.
4331         * tests/test-gc-arctwo.c: Likewise.
4332         * tests/test-gc-des.c: Likewise.
4333         * tests/test-gc-hmac-md5.c: Likewise.
4334         * tests/test-gc-hmac-sha1.c: Likewise.
4335         * tests/test-gc-md2.c: Likewise.
4336         * tests/test-gc-md4.c: Likewise.
4337         * tests/test-gc-md5.c: Likewise.
4338         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4339         * tests/test-gc-rijndael.c: Likewise.
4340         * tests/test-gc-sha1.c: Likewise.
4341         * tests/test-gc.c: Likewise.
4342         * tests/test-getcwd.c: Likewise.
4343         * tests/test-link.c: Likewise.
4344         * tests/test-link.h: Likewise.
4345         * tests/test-lutimens.h: Likewise.
4346         * tests/test-md2.c: Likewise.
4347         * tests/test-md4.c: Likewise.
4348         * tests/test-mkdir.h: Likewise.
4349         * tests/test-rename.c: Likewise.
4350         * tests/test-rename.h: Likewise.
4351         * tests/test-safe-alloc.c: Likewise.
4352         * tests/test-utimens-common.h: Likewise.
4353         * tests/test-utimens.h: Likewise.
4354
4355         maint: sync license texts
4356         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4357         * doc/gpl-3.0.texi: Revert copyright year update.
4358         * doc/lgpl-3.0.texi: Likewise.
4359
4360 2009-12-29  Jim Meyering  <meyering@redhat.com>
4361
4362         update nearly all FSF copyright year lists to include 2009
4363         The files named by the following are exempted:
4364             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4365               test -f "$dst" && { echo "$dst"; continue; }
4366               test -d "$dst" || continue
4367               echo "$dst"/$(basename "$src")
4368             done > exempt
4369             git ls-files tests/unictype >> exempt
4370         In the remaining files, convert to all-interval notation if
4371         - there is already at least one year interval like 2000-2003
4372         - the file is maintained by me
4373         - the file is in lib/uni*/, where that style already prevails
4374         Otherwise, use update-copyright's default.
4375
4376 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4377         and Eric Blake  <ebb9@byu.net>
4378
4379         tests: don't require debug system() to pass
4380         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4381         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4382         * tests/test-unlink.h (test_unlink_func): Likewise.
4383         * tests/test-fstatat.c (main): ...into callers.
4384         * tests/test-lstat.c (main): Likewise.
4385         * tests/test-rmdir.c (main): Likewise.
4386         * tests/test-unlink.c (main): Likewise.
4387         * tests/test-unlinkat.c (main): Likewise.
4388         * tests/test-areadlink-with-size.c (main): Don't require a
4389         debug-only system call to pass, aiding cross-testing to mingw.
4390         * tests/test-areadlink.c (main): Likewise.
4391         * tests/test-areadlinkat-with-size.c (main): Likewise.
4392         * tests/test-areadlinkat.c (main): Likewise.
4393         * tests/test-canonicalize-lgpl.c (main): Likewise.
4394         * tests/test-canonicalize.c (main): Likewise.
4395         * tests/test-chown.c (main): Likewise.
4396         * tests/test-fchownat.c (main): Likewise.
4397         * tests/test-lchown.c (main): Likewise.
4398         * tests/test-fdutimensat.c (main): Likewise.
4399         * tests/test-futimens.c (main): Likewise.
4400         * tests/test-link.c (main): Likewise.
4401         * tests/test-linkat.c (main): Likewise.
4402         * tests/test-mkdir.c (main): Likewise.
4403         * tests/test-mkdirat.c (main): Likewise.
4404         * tests/test-mkfifo.c (main): Likewise.
4405         * tests/test-mkfifoat.c (main): Likewise.
4406         * tests/test-mknod.c (main): Likewise.
4407         * tests/test-readlink.c (main): Likewise.
4408         * tests/test-remove.c (main): Likewise.
4409         * tests/test-rename.c (main): Likewise.
4410         * tests/test-renameat.c (main): Likewise.
4411         * tests/test-symlink.c (main): Likewise.
4412         * tests/test-symlinkat.c (main): Likewise.
4413         * tests/test-utimens.c (main): Likewise.
4414         * tests/test-utimensat.c (main): Likewise.
4415
4416 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4417
4418         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4419         on $(UNUSED_PARAMETER_H) to avoid build failure.
4420
4421 2009-12-28  Jim Meyering  <meyering@redhat.com>
4422
4423         update-copyright: you may specify a max. line length other than 72
4424         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4425
4426         maint: use consistent FSF copyright line syntax
4427         * lib/posixtm.c: Add missing comma in FSF copyright line.
4428         * lib/posixtm.h: Likewise.
4429         * lib/getugroups.c: Add missing ", Inc.".
4430
4431         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4432         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4433         FSF copyright line.  Remove trailing blanks.
4434
4435 2009-12-28  Eric Blake  <ebb9@byu.net>
4436
4437         test-dup2: reduce dependencies
4438         * modules/cloexec (Configure.ac): Set witness.
4439         * modules/dup2-tests (Depends-on): Drop cloexec.
4440         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4441         not present.
4442         Suggested by Bruno Haible.
4443
4444 2009-12-26  Bruno Haible  <bruno@clisp.org>
4445
4446         Remove an unneeded dependency.
4447         * modules/fseterr (Depends-on): Remove dup2.
4448
4449 2009-12-26  Eric Blake  <ebb9@byu.net>
4450
4451         tests: use macros.h in more places
4452         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4453         (ASSERT_STREAM): Provide default of stderr.
4454         * tests/test-dirent-safer.c: Include macros.h, using alternate
4455         stream for assertions.
4456         * tests/test-dup-safer.c: Likewise.
4457         * tests/test-freopen-safer.c: Likewise.
4458         * tests/test-getopt.c: Likewise.
4459         * tests/test-openat-safer.c: Likewise.
4460         * tests/test-pipe.c: Likewise.
4461         * tests/test-popen-safer.c: Likewise.
4462         * modules/dirent-safer-tests (Files): Include macros.h.
4463         * modules/unistd-safer-tests (Files): Likewise.
4464         * modules/freopen-safer-tests (Files): Likewise.
4465         * modules/getopt-posix-tests (Files): Likewise.
4466         * modules/openat-safer-tests (Files): Likewise.
4467         * modules/pipe-tests (Files): Likewise.
4468
4469 2009-12-26  Bruno Haible  <bruno@clisp.org>
4470
4471         javacomp: Portability fix.
4472         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4473         that it also works on Solaris.
4474
4475 2009-12-26  Bruno Haible  <bruno@clisp.org>
4476
4477         localename: Fix storage allocation of gl_locale_name_thread's result.
4478         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4479         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4480         all platforms that have 'uselocale'.
4481         (gl_locale_name_thread_unsafe): New function, extracted from
4482         gl_locale_name_thread.
4483         (gl_locale_name_thread): Call struniq on all platforms that have
4484         'uselocale'.
4485         * tests/test-localename.c (test_locale_name_thread): Check that the
4486         resulting strings are permanently allocated.
4487         * modules/localename-tests (Depends-on): Add strdup.
4488
4489 2009-12-26  Bruno Haible  <bruno@clisp.org>
4490
4491         * tests/test-localename.c (categories): Fill in the strings.
4492
4493 2009-12-26  Jim Meyering  <meyering@redhat.com>
4494
4495         isdir: complete the removal of m4/isdir.m4
4496         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4497
4498         isdir: clean up, since at least grep still uses it
4499         * lib/isdir.c: Include "isdir.h".
4500         (S_ISDIR): Remove now-unneeded definition.
4501         * modules/isdir (Files): Add lib/isdir.h.
4502         * lib/isdir.h: New file, with declaration.
4503         * m4/isdir.m4: Remove file -- unneeded.
4504
4505 2009-12-25  Bruno Haible  <bruno@clisp.org>
4506
4507         selinux-h: Make generated .h files standalone.
4508         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4509         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4510         * lib/se-selinux.in.h: Likewise.
4511         * modules/selinux-h (Depends-on): Add unused-parameter.
4512         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4513         selinux/selinux.h and selinux/context.h.
4514         Suggested by Eric Blake.
4515
4516 2009-12-25  Bruno Haible  <bruno@clisp.org>
4517
4518         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4519         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4520         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4521         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4522         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4523
4524 2009-12-24  Bruno Haible  <bruno@clisp.org>
4525
4526         openat: Fix warning.
4527         * lib/openat-proc.c: Include <unistd.h>.
4528
4529 2009-12-24  Bruno Haible  <bruno@clisp.org>
4530
4531         New module 'unused-parameter'.
4532         * build-aux/unused-parameter.h: New file, extracted from earlier
4533         gnulib-common.m4.
4534         * modules/unused-parameter: New file.
4535         * lib/unistr.h: Include unused-parameter.h.
4536         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4537         _GL_UNUSED.
4538         * modules/unistr/base (Depends-on): Add unused-parameter.
4539
4540 2009-12-24  Bruno Haible  <bruno@clisp.org>
4541
4542         Add missing dependencies to 'extensions' module.
4543         * m4/extensions.m4: Add comment.
4544         * modules/accept4 (Depends-on): Add extensions.
4545         * modules/dup3 (Depends-on): Likewise.
4546         * modules/fcntl (Depends-on): Likewise.
4547         * modules/futimens (Depends-on): Likewise.
4548         * modules/mknod (Depends-on): Likewise.
4549         * modules/pipe2 (Depends-on): Likewise.
4550         * modules/stat-time (Depends-on): Likewise.
4551         * modules/strcasestr-simple (Depends-on): Likewise.
4552         * modules/strsignal (Depends-on): Likewise.
4553         * modules/utimensat (Depends-on): Likewise.
4554         * modules/localcharset (Depends-on): Likewise. Needed because of
4555         gl_FCNTL_O_FLAGS.
4556         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4557         AC_TYPE_MBSTATE_T.
4558         * modules/wcsnrtombs (Depends-on): Likewise.
4559         * modules/wcsrtombs (Depends-on): Likewise.
4560
4561 2009-12-24  Bruno Haible  <bruno@clisp.org>
4562
4563         binary-io: Avoid gcc warning due to SET_BINARY.
4564         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4565         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4566
4567 2009-12-24  Bruno Haible  <bruno@clisp.org>
4568
4569         Avoid future namespace pollution on glibc systems.
4570         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4571         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4572         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4573         glibc systems.
4574
4575 2009-12-24  Bruno Haible  <bruno@clisp.org>
4576
4577         Refactor common macros used in tests.
4578         * tests/macros.h: New file.
4579         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4580         and/or <stdlib.h>, if appropriate.
4581         (ASSERT, SIZEOF): Remove macros.
4582         * tests/test-areadlink-with-size.c: Likewise.
4583         * tests/test-areadlinkat.c: Likewise.
4584         * tests/test-areadlinkat-with-size.c: Likewise.
4585         * tests/test-argmatch.c: Likewise.
4586         * tests/test-argv-iter.c: Likewise.
4587         * tests/test-array-mergesort.c: Likewise.
4588         * tests/test-array_list.c: Likewise.
4589         * tests/test-array_oset.c: Likewise.
4590         * tests/test-avltree_list.c: Likewise.
4591         * tests/test-avltree_oset.c: Likewise.
4592         * tests/test-avltreehash_list.c: Likewise.
4593         * tests/test-base64.c: Likewise.
4594         * tests/test-binary-io.c: Likewise.
4595         * tests/test-bitrotate.c: Likewise.
4596         * tests/test-btowc.c: Likewise.
4597         * tests/test-byteswap.c: Likewise.
4598         * tests/test-c-ctype.c: Likewise.
4599         * tests/test-c-stack.c: Likewise.
4600         * tests/test-c-strcasecmp.c: Likewise.
4601         * tests/test-c-strcasestr.c: Likewise.
4602         * tests/test-c-strncasecmp.c: Likewise.
4603         * tests/test-c-strstr.c: Likewise.
4604         * tests/test-canonicalize-lgpl.c: Likewise.
4605         * tests/test-canonicalize.c: Likewise.
4606         * tests/test-carray_list.c: Likewise.
4607         * tests/test-ceilf1.c: Likewise.
4608         * tests/test-ceilf2.c: Likewise.
4609         * tests/test-ceill.c: Likewise.
4610         * tests/test-chown.c: Likewise.
4611         * tests/test-cloexec.c: Likewise.
4612         * tests/test-copy-acl.c: Likewise.
4613         * tests/test-copy-file.c: Likewise.
4614         * tests/test-count-one-bits.c: Likewise.
4615         * tests/test-dprintf-posix.c: Likewise.
4616         * tests/test-dup2.c: Likewise.
4617         * tests/test-dup3.c: Likewise.
4618         * tests/test-duplocale.c: Likewise.
4619         * tests/test-fbufmode.c: Likewise.
4620         * tests/test-fchdir.c: Likewise.
4621         * tests/test-fchownat.c: Likewise.
4622         * tests/test-fcntl-safer.c: Likewise.
4623         * tests/test-fcntl.c: Likewise.
4624         * tests/test-fdopendir.c: Likewise.
4625         * tests/test-fdutimensat.c: Likewise.
4626         * tests/test-fflush2.c: Likewise.
4627         * tests/test-file-has-acl.c: Likewise.
4628         * tests/test-filevercmp.c: Likewise.
4629         * tests/test-flock.c: Likewise.
4630         * tests/test-floorf1.c: Likewise.
4631         * tests/test-floorf2.c: Likewise.
4632         * tests/test-floorl.c: Likewise.
4633         * tests/test-fnmatch.c: Likewise.
4634         * tests/test-fopen.h: Likewise.
4635         * tests/test-fpending.c: Likewise.
4636         * tests/test-fprintf-posix.c: Likewise.
4637         * tests/test-fpurge.c: Likewise.
4638         * tests/test-freadable.c: Likewise.
4639         * tests/test-freadahead.c: Likewise.
4640         * tests/test-freading.c: Likewise.
4641         * tests/test-freadptr.c: Likewise.
4642         * tests/test-freadptr2.c: Likewise.
4643         * tests/test-freadseek.c: Likewise.
4644         * tests/test-freopen.c: Likewise.
4645         * tests/test-frexp.c: Likewise.
4646         * tests/test-frexpl.c: Likewise.
4647         * tests/test-fseek.c: Likewise.
4648         * tests/test-fseeko.c: Likewise.
4649         * tests/test-fstatat.c: Likewise.
4650         * tests/test-fstrcmp.c: Likewise.
4651         * tests/test-fsync.c: Likewise.
4652         * tests/test-ftell.c: Likewise.
4653         * tests/test-ftello.c: Likewise.
4654         * tests/test-func.c: Likewise.
4655         * tests/test-futimens.c: Likewise.
4656         * tests/test-fwritable.c: Likewise.
4657         * tests/test-fwriting.c: Likewise.
4658         * tests/test-getcwd.c: Likewise.
4659         * tests/test-getdate.c: Likewise.
4660         * tests/test-getdelim.c: Likewise.
4661         * tests/test-getdtablesize.c: Likewise.
4662         * tests/test-getgroups.c: Likewise.
4663         * tests/test-getline.c: Likewise.
4664         * tests/test-getndelim2.c: Likewise.
4665         * tests/test-glob.c: Likewise.
4666         * tests/test-hash.c: Likewise.
4667         * tests/test-i-ring.c: Likewise.
4668         * tests/test-iconv-utf.c: Likewise.
4669         * tests/test-iconv.c: Likewise.
4670         * tests/test-idpriv-drop.c: Likewise.
4671         * tests/test-idpriv-droptemp.c: Likewise.
4672         * tests/test-inet_ntop.c: Likewise.
4673         * tests/test-inet_pton.c: Likewise.
4674         * tests/test-isblank.c: Likewise.
4675         * tests/test-isfinite.c: Likewise.
4676         * tests/test-isinf.c: Likewise.
4677         * tests/test-isnan.c: Likewise.
4678         * tests/test-isnand.h: Likewise.
4679         * tests/test-isnanf.h: Likewise.
4680         * tests/test-isnanl.h: Likewise.
4681         * tests/test-lchown.c: Likewise.
4682         * tests/test-ldexpl.c: Likewise.
4683         * tests/test-link.c: Likewise.
4684         * tests/test-linkat.c: Likewise.
4685         * tests/test-linked_list.c: Likewise.
4686         * tests/test-linkedhash_list.c: Likewise.
4687         * tests/test-localename.c: Likewise.
4688         * tests/test-lseek.c: Likewise.
4689         * tests/test-lstat.c: Likewise.
4690         * tests/test-mbmemcasecmp.c: Likewise.
4691         * tests/test-mbmemcasecoll.c: Likewise.
4692         * tests/test-mbrtowc.c: Likewise.
4693         * tests/test-mbscasecmp.c: Likewise.
4694         * tests/test-mbscasestr1.c: Likewise.
4695         * tests/test-mbscasestr2.c: Likewise.
4696         * tests/test-mbscasestr3.c: Likewise.
4697         * tests/test-mbscasestr4.c: Likewise.
4698         * tests/test-mbschr.c: Likewise.
4699         * tests/test-mbscspn.c: Likewise.
4700         * tests/test-mbsinit.c: Likewise.
4701         * tests/test-mbsncasecmp.c: Likewise.
4702         * tests/test-mbsnrtowcs.c: Likewise.
4703         * tests/test-mbspbrk.c: Likewise.
4704         * tests/test-mbspcasecmp.c: Likewise.
4705         * tests/test-mbsrchr.c: Likewise.
4706         * tests/test-mbsrtowcs.c: Likewise.
4707         * tests/test-mbsspn.c: Likewise.
4708         * tests/test-mbsstr1.c: Likewise.
4709         * tests/test-mbsstr2.c: Likewise.
4710         * tests/test-mbsstr3.c: Likewise.
4711         * tests/test-memchr.c: Likewise.
4712         * tests/test-memchr2.c: Likewise.
4713         * tests/test-memcmp.c: Likewise.
4714         * tests/test-memmem.c: Likewise.
4715         * tests/test-memrchr.c: Likewise.
4716         * tests/test-mkdir.c: Likewise.
4717         * tests/test-mkdirat.c: Likewise.
4718         * tests/test-mkfifo.c: Likewise.
4719         * tests/test-mkfifoat.c: Likewise.
4720         * tests/test-mknod.c: Likewise.
4721         * tests/test-nanosleep.c: Likewise.
4722         * tests/test-nl_langinfo.c: Likewise.
4723         * tests/test-obstack-printf.c: Likewise.
4724         * tests/test-open.c: Likewise.
4725         * tests/test-openat.c: Likewise.
4726         * tests/test-pipe-filter-gi1.c: Likewise.
4727         * tests/test-pipe-filter-gi2-main.c: Likewise.
4728         * tests/test-pipe-filter-ii1.c: Likewise.
4729         * tests/test-pipe-filter-ii2-main.c: Likewise.
4730         * tests/test-pipe2.c: Likewise.
4731         * tests/test-popen.h: Likewise.
4732         * tests/test-posixtm.c: Likewise.
4733         * tests/test-pread.c: Likewise.
4734         * tests/test-printf-frexp.c: Likewise.
4735         * tests/test-printf-frexpl.c: Likewise.
4736         * tests/test-printf-posix.c: Likewise.
4737         * tests/test-priv-set.c: Likewise.
4738         * tests/test-quotearg.c: Likewise.
4739         * tests/test-random_r.c: Likewise.
4740         * tests/test-rawmemchr.c: Likewise.
4741         * tests/test-rbtree_list.c: Likewise.
4742         * tests/test-rbtree_oset.c: Likewise.
4743         * tests/test-rbtreehash_list.c: Likewise.
4744         * tests/test-readlink.c: Likewise.
4745         * tests/test-remove.c: Likewise.
4746         * tests/test-rename.c: Likewise.
4747         * tests/test-renameat.c: Likewise.
4748         * tests/test-rmdir.c: Likewise.
4749         * tests/test-round1.c: Likewise.
4750         * tests/test-roundf1.c: Likewise.
4751         * tests/test-roundl.c: Likewise.
4752         * tests/test-safe-alloc.c: Likewise.
4753         * tests/test-sameacls.c: Likewise.
4754         * tests/test-set-mode-acl.c: Likewise.
4755         * tests/test-setenv.c: Likewise.
4756         * tests/test-sigaction.c: Likewise.
4757         * tests/test-signbit.c: Likewise.
4758         * tests/test-sleep.c: Likewise.
4759         * tests/test-snprintf-posix.c: Likewise.
4760         * tests/test-snprintf.c: Likewise.
4761         * tests/test-sprintf-posix.c: Likewise.
4762         * tests/test-stat-time.c: Likewise.
4763         * tests/test-stat.c: Likewise.
4764         * tests/test-strcasestr.c: Likewise.
4765         * tests/test-strchrnul.c: Likewise.
4766         * tests/test-strerror.c: Likewise.
4767         * tests/test-striconv.c: Likewise.
4768         * tests/test-striconveh.c: Likewise.
4769         * tests/test-striconveha.c: Likewise.
4770         * tests/test-strsignal.c: Likewise.
4771         * tests/test-strstr.c: Likewise.
4772         * tests/test-strtod.c: Likewise.
4773         * tests/test-strverscmp.c: Likewise.
4774         * tests/test-symlink.c: Likewise.
4775         * tests/test-symlinkat.c: Likewise.
4776         * tests/test-trunc1.c: Likewise.
4777         * tests/test-trunc2.c: Likewise.
4778         * tests/test-truncf1.c: Likewise.
4779         * tests/test-truncf2.c: Likewise.
4780         * tests/test-truncl.c: Likewise.
4781         * tests/test-uname.c: Likewise.
4782         * tests/test-unlink.c: Likewise.
4783         * tests/test-unlinkat.c: Likewise.
4784         * tests/test-unsetenv.c: Likewise.
4785         * tests/test-usleep.c: Likewise.
4786         * tests/test-utimens.c: Likewise.
4787         * tests/test-utimensat.c: Likewise.
4788         * tests/test-vasnprintf-posix.c: Likewise.
4789         * tests/test-vasnprintf-posix2.c: Likewise.
4790         * tests/test-vasnprintf.c: Likewise.
4791         * tests/test-vasprintf-posix.c: Likewise.
4792         * tests/test-vasprintf.c: Likewise.
4793         * tests/test-vdprintf-posix.c: Likewise.
4794         * tests/test-vfprintf-posix.c: Likewise.
4795         * tests/test-vprintf-posix.c: Likewise.
4796         * tests/test-vsnprintf-posix.c: Likewise.
4797         * tests/test-vsnprintf.c: Likewise.
4798         * tests/test-vsprintf-posix.c: Likewise.
4799         * tests/test-wcrtomb.c: Likewise.
4800         * tests/test-wcsnrtombs.c: Likewise.
4801         * tests/test-wcsrtombs.c: Likewise.
4802         * tests/test-wctype.c: Likewise.
4803         * tests/test-wcwidth.c: Likewise.
4804         * tests/test-xfprintf-posix.c: Likewise.
4805         * tests/test-xmemdup0.c: Likewise.
4806         * tests/test-xprintf-posix.c: Likewise.
4807         * tests/test-xvasprintf.c: Likewise.
4808         * tests/unicase/test-locale-language.c: Likewise.
4809         * tests/unicase/test-mapping-part1.h: Likewise.
4810         * tests/unicase/test-predicate-part1.h: Likewise.
4811         * tests/unicase/test-u8-casecmp.c: Likewise.
4812         * tests/unicase/test-u8-casecoll.c: Likewise.
4813         * tests/unicase/test-u8-casefold.c: Likewise.
4814         * tests/unicase/test-u8-is-cased.c: Likewise.
4815         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4816         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4817         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4818         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4819         * tests/unicase/test-u8-tolower.c: Likewise.
4820         * tests/unicase/test-u8-totitle.c: Likewise.
4821         * tests/unicase/test-u8-toupper.c: Likewise.
4822         * tests/unicase/test-u16-casecmp.c: Likewise.
4823         * tests/unicase/test-u16-casecoll.c: Likewise.
4824         * tests/unicase/test-u16-casefold.c: Likewise.
4825         * tests/unicase/test-u16-is-cased.c: Likewise.
4826         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4827         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4828         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4829         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4830         * tests/unicase/test-u16-tolower.c: Likewise.
4831         * tests/unicase/test-u16-totitle.c: Likewise.
4832         * tests/unicase/test-u16-toupper.c: Likewise.
4833         * tests/unicase/test-u32-casecmp.c: Likewise.
4834         * tests/unicase/test-u32-casecoll.c: Likewise.
4835         * tests/unicase/test-u32-casefold.c: Likewise.
4836         * tests/unicase/test-u32-is-cased.c: Likewise.
4837         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4838         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4839         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4840         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4841         * tests/unicase/test-u32-tolower.c: Likewise.
4842         * tests/unicase/test-u32-totitle.c: Likewise.
4843         * tests/unicase/test-u32-toupper.c: Likewise.
4844         * tests/unicase/test-ulc-casecmp.c: Likewise.
4845         * tests/unicase/test-ulc-casecoll.c: Likewise.
4846         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4847         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4848         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4849         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4850         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4851         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4852         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4853         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4854         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4855         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4856         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4857         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4858         * tests/unictype/test-bidi_byname.c: Likewise.
4859         * tests/unictype/test-bidi_name.c: Likewise.
4860         * tests/unictype/test-bidi_of.c: Likewise.
4861         * tests/unictype/test-bidi_test.c: Likewise.
4862         * tests/unictype/test-block_list.c: Likewise.
4863         * tests/unictype/test-block_of.c: Likewise.
4864         * tests/unictype/test-block_test.c: Likewise.
4865         * tests/unictype/test-categ_and.c: Likewise.
4866         * tests/unictype/test-categ_and_not.c: Likewise.
4867         * tests/unictype/test-categ_byname.c: Likewise.
4868         * tests/unictype/test-categ_name.c: Likewise.
4869         * tests/unictype/test-categ_none.c: Likewise.
4870         * tests/unictype/test-categ_of.c: Likewise.
4871         * tests/unictype/test-categ_or.c: Likewise.
4872         * tests/unictype/test-categ_test_withtable.c: Likewise.
4873         * tests/unictype/test-combining.c: Likewise.
4874         * tests/unictype/test-decdigit.c: Likewise.
4875         * tests/unictype/test-digit.c: Likewise.
4876         * tests/unictype/test-mirror.c: Likewise.
4877         * tests/unictype/test-numeric.c: Likewise.
4878         * tests/unictype/test-pr_byname.c: Likewise.
4879         * tests/unictype/test-pr_test.c: Likewise.
4880         * tests/unictype/test-predicate-part1.h: Likewise.
4881         * tests/unictype/test-scripts.c: Likewise.
4882         * tests/unictype/test-sy_c_ident.c: Likewise.
4883         * tests/unictype/test-sy_java_ident.c: Likewise.
4884         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4885         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4886         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4887         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4888         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4889         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4890         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4891         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4892         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4893         * tests/uninorm/test-compat-decomposition.c: Likewise.
4894         * tests/uninorm/test-composition.c: Likewise.
4895         * tests/uninorm/test-decomposing-form.c: Likewise.
4896         * tests/uninorm/test-decomposition.c: Likewise.
4897         * tests/uninorm/test-u8-nfc.c: Likewise.
4898         * tests/uninorm/test-u8-nfd.c: Likewise.
4899         * tests/uninorm/test-u8-nfkc.c: Likewise.
4900         * tests/uninorm/test-u8-nfkd.c: Likewise.
4901         * tests/uninorm/test-u8-normcmp.c: Likewise.
4902         * tests/uninorm/test-u8-normcoll.c: Likewise.
4903         * tests/uninorm/test-u16-nfc.c: Likewise.
4904         * tests/uninorm/test-u16-nfd.c: Likewise.
4905         * tests/uninorm/test-u16-nfkc.c: Likewise.
4906         * tests/uninorm/test-u16-nfkd.c: Likewise.
4907         * tests/uninorm/test-u16-normcmp.c: Likewise.
4908         * tests/uninorm/test-u16-normcoll.c: Likewise.
4909         * tests/uninorm/test-u32-nfc.c: Likewise.
4910         * tests/uninorm/test-u32-nfd.c: Likewise.
4911         * tests/uninorm/test-u32-nfkc.c: Likewise.
4912         * tests/uninorm/test-u32-nfkd.c: Likewise.
4913         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4914         * tests/uninorm/test-u32-normcmp.c: Likewise.
4915         * tests/uninorm/test-u32-normcoll.c: Likewise.
4916         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4917         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4918         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4919         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4920         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4921         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4922         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4923         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4924         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4925         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4926         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4927         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4928         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4929         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4930         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4931         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4932         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4933         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4934         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4935         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4936         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4937         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4938         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4939         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4940         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4941         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4942         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4943         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4944         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4945         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4946         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4947         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4948         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4949         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4950         * tests/uniwidth/test-u8-width.c: Likewise.
4951         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4952         * tests/uniwidth/test-u16-width.c: Likewise.
4953         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4954         * tests/uniwidth/test-u32-width.c: Likewise.
4955         * tests/uniwidth/test-uc_width.c: Likewise.
4956         * tests/uniwidth/test-uc_width2.c: Likewise.
4957         * modules/acl-tests (Files): Add tests/macros.h.
4958         * modules/areadlink-tests (Files): Likewise.
4959         * modules/areadlink-with-size-tests (Files): Likewise.
4960         * modules/areadlinkat-tests (Files): Likewise.
4961         * modules/areadlinkat-with-size-tests (Files): Likewise.
4962         * modules/argmatch-tests (Files): Likewise.
4963         * modules/argv-iter-tests (Files): Likewise.
4964         * modules/array-list-tests (Files): Likewise.
4965         * modules/array-mergesort-tests (Files): Likewise.
4966         * modules/array-oset-tests (Files): Likewise.
4967         * modules/avltree-list-tests (Files): Likewise.
4968         * modules/avltree-oset-tests (Files): Likewise.
4969         * modules/avltreehash-list-tests (Files): Likewise.
4970         * modules/base64-tests (Files): Likewise.
4971         * modules/binary-io-tests (Files): Likewise.
4972         * modules/bitrotate-tests (Files): Likewise.
4973         * modules/btowc-tests (Files): Likewise.
4974         * modules/byteswap-tests (Files): Likewise.
4975         * modules/c-ctype-tests (Files): Likewise.
4976         * modules/c-stack-tests (Files): Likewise.
4977         * modules/c-strcase-tests (Files): Likewise.
4978         * modules/c-strcasestr-tests (Files): Likewise.
4979         * modules/c-strstr-tests (Files): Likewise.
4980         * modules/canonicalize-lgpl-tests (Files): Likewise.
4981         * modules/canonicalize-tests (Files): Likewise.
4982         * modules/carray-list-tests (Files): Likewise.
4983         * modules/ceilf-tests (Files): Likewise.
4984         * modules/ceill-tests (Files): Likewise.
4985         * modules/chown-tests (Files): Likewise.
4986         * modules/cloexec-tests (Files): Likewise.
4987         * modules/copy-file-tests (Files): Likewise.
4988         * modules/count-one-bits-tests (Files): Likewise.
4989         * modules/dprintf-posix-tests (Files): Likewise.
4990         * modules/dup2-tests (Files): Likewise.
4991         * modules/dup3-tests (Files): Likewise.
4992         * modules/duplocale-tests (Files): Likewise.
4993         * modules/fbufmode-tests (Files): Likewise.
4994         * modules/fchdir-tests (Files): Likewise.
4995         * modules/fcntl-safer-tests (Files): Likewise.
4996         * modules/fcntl-tests (Files): Likewise.
4997         * modules/fdopendir-tests (Files): Likewise.
4998         * modules/fdutimensat-tests (Files): Likewise.
4999         * modules/fflush-tests (Files): Likewise.
5000         * modules/filevercmp-tests (Files): Likewise.
5001         * modules/flock-tests (Files): Likewise.
5002         * modules/floorf-tests (Files): Likewise.
5003         * modules/floorl-tests (Files): Likewise.
5004         * modules/fnmatch-tests (Files): Likewise.
5005         * modules/fopen-safer-tests (Files): Likewise.
5006         * modules/fopen-tests (Files): Likewise.
5007         * modules/fpending-tests (Files): Likewise.
5008         * modules/fprintf-posix-tests (Files): Likewise.
5009         * modules/fpurge-tests (Files): Likewise.
5010         * modules/freadable-tests (Files): Likewise.
5011         * modules/freadahead-tests (Files): Likewise.
5012         * modules/freading-tests (Files): Likewise.
5013         * modules/freadptr-tests (Files): Likewise.
5014         * modules/freadseek-tests (Files): Likewise.
5015         * modules/freopen-tests (Files): Likewise.
5016         * modules/frexp-nolibm-tests (Files): Likewise.
5017         * modules/frexp-tests (Files): Likewise.
5018         * modules/frexpl-nolibm-tests (Files): Likewise.
5019         * modules/frexpl-tests (Files): Likewise.
5020         * modules/fseek-tests (Files): Likewise.
5021         * modules/fseeko-tests (Files): Likewise.
5022         * modules/fstrcmp-tests (Files): Likewise.
5023         * modules/fsync-tests (Files): Likewise.
5024         * modules/ftell-tests (Files): Likewise.
5025         * modules/ftello-tests (Files): Likewise.
5026         * modules/func-tests (Files): Likewise.
5027         * modules/futimens-tests (Files): Likewise.
5028         * modules/fwritable-tests (Files): Likewise.
5029         * modules/fwriting-tests (Files): Likewise.
5030         * modules/getcwd-tests (Files): Likewise.
5031         * modules/getdate-tests (Files): Likewise.
5032         * modules/getdelim-tests (Files): Likewise.
5033         * modules/getdtablesize-tests (Files): Likewise.
5034         * modules/getgroups-tests (Files): Likewise.
5035         * modules/getline-tests (Files): Likewise.
5036         * modules/getndelim2-tests (Files): Likewise.
5037         * modules/glob-tests (Files): Likewise.
5038         * modules/hash-tests (Files): Likewise.
5039         * modules/i-ring-tests (Files): Likewise.
5040         * modules/iconv-tests (Files): Likewise.
5041         * modules/iconv_open-utf-tests (Files): Likewise.
5042         * modules/idpriv-drop-tests (Files): Likewise.
5043         * modules/idpriv-droptemp-tests (Files): Likewise.
5044         * modules/inet_ntop-tests (Files): Likewise.
5045         * modules/inet_pton-tests (Files): Likewise.
5046         * modules/isblank-tests (Files): Likewise.
5047         * modules/isfinite-tests (Files): Likewise.
5048         * modules/isinf-tests (Files): Likewise.
5049         * modules/isnan-tests (Files): Likewise.
5050         * modules/isnand-nolibm-tests (Files): Likewise.
5051         * modules/isnand-tests (Files): Likewise.
5052         * modules/isnanf-nolibm-tests (Files): Likewise.
5053         * modules/isnanf-tests (Files): Likewise.
5054         * modules/isnanl-nolibm-tests (Files): Likewise.
5055         * modules/isnanl-tests (Files): Likewise.
5056         * modules/lchown-tests (Files): Likewise.
5057         * modules/ldexpl-tests (Files): Likewise.
5058         * modules/link-tests (Files): Likewise.
5059         * modules/linkat-tests (Files): Likewise.
5060         * modules/linked-list-tests (Files): Likewise.
5061         * modules/linkedhash-list-tests (Files): Likewise.
5062         * modules/localename-tests (Files): Likewise.
5063         * modules/lseek-tests (Files): Likewise.
5064         * modules/lstat-tests (Files): Likewise.
5065         * modules/mbmemcasecmp-tests (Files): Likewise.
5066         * modules/mbmemcasecoll-tests (Files): Likewise.
5067         * modules/mbrtowc-tests (Files): Likewise.
5068         * modules/mbscasecmp-tests (Files): Likewise.
5069         * modules/mbscasestr-tests (Files): Likewise.
5070         * modules/mbschr-tests (Files): Likewise.
5071         * modules/mbscspn-tests (Files): Likewise.
5072         * modules/mbsinit-tests (Files): Likewise.
5073         * modules/mbsncasecmp-tests (Files): Likewise.
5074         * modules/mbsnrtowcs-tests (Files): Likewise.
5075         * modules/mbspbrk-tests (Files): Likewise.
5076         * modules/mbspcasecmp-tests (Files): Likewise.
5077         * modules/mbsrchr-tests (Files): Likewise.
5078         * modules/mbsrtowcs-tests (Files): Likewise.
5079         * modules/mbsspn-tests (Files): Likewise.
5080         * modules/mbsstr-tests (Files): Likewise.
5081         * modules/memchr-tests (Files): Likewise.
5082         * modules/memchr2-tests (Files): Likewise.
5083         * modules/memcmp-tests (Files): Likewise.
5084         * modules/memmem-tests (Files): Likewise.
5085         * modules/memrchr-tests (Files): Likewise.
5086         * modules/mkdir-tests (Files): Likewise.
5087         * modules/mkfifo-tests (Files): Likewise.
5088         * modules/mkfifoat-tests (Files): Likewise.
5089         * modules/mknod-tests (Files): Likewise.
5090         * modules/nanosleep-tests (Files): Likewise.
5091         * modules/nl_langinfo-tests (Files): Likewise.
5092         * modules/obstack-printf-tests (Files): Likewise.
5093         * modules/open-tests (Files): Likewise.
5094         * modules/openat-tests (Files): Likewise.
5095         * modules/pipe-filter-gi-tests (Files): Likewise.
5096         * modules/pipe-filter-ii-tests (Files): Likewise.
5097         * modules/pipe2-tests (Files): Likewise.
5098         * modules/popen-safer-tests (Files): Likewise.
5099         * modules/popen-tests (Files): Likewise.
5100         * modules/posixtm-tests (Files): Likewise.
5101         * modules/pread-tests (Files): Likewise.
5102         * modules/printf-frexp-tests (Files): Likewise.
5103         * modules/printf-frexpl-tests (Files): Likewise.
5104         * modules/printf-posix-tests (Files): Likewise.
5105         * modules/priv-set-tests (Files): Likewise.
5106         * modules/quotearg-tests (Files): Likewise.
5107         * modules/random_r-tests (Files): Likewise.
5108         * modules/rawmemchr-tests (Files): Likewise.
5109         * modules/rbtree-list-tests (Files): Likewise.
5110         * modules/rbtree-oset-tests (Files): Likewise.
5111         * modules/rbtreehash-list-tests (Files): Likewise.
5112         * modules/readlink-tests (Files): Likewise.
5113         * modules/remove-tests (Files): Likewise.
5114         * modules/rename-tests (Files): Likewise.
5115         * modules/renameat-tests (Files): Likewise.
5116         * modules/rmdir-tests (Files): Likewise.
5117         * modules/round-tests (Files): Likewise.
5118         * modules/roundf-tests (Files): Likewise.
5119         * modules/roundl-tests (Files): Likewise.
5120         * modules/safe-alloc-tests (Files): Likewise.
5121         * modules/setenv-tests (Files): Likewise.
5122         * modules/sigaction-tests (Files): Likewise.
5123         * modules/signbit-tests (Files): Likewise.
5124         * modules/sleep-tests (Files): Likewise.
5125         * modules/snprintf-posix-tests (Files): Likewise.
5126         * modules/snprintf-tests (Files): Likewise.
5127         * modules/sprintf-posix-tests (Files): Likewise.
5128         * modules/stat-tests (Files): Likewise.
5129         * modules/stat-time-tests (Files): Likewise.
5130         * modules/strcasestr-tests (Files): Likewise.
5131         * modules/strchrnul-tests (Files): Likewise.
5132         * modules/strerror-tests (Files): Likewise.
5133         * modules/striconv-tests (Files): Likewise.
5134         * modules/striconveh-tests (Files): Likewise.
5135         * modules/striconveha-tests (Files): Likewise.
5136         * modules/strsignal-tests (Files): Likewise.
5137         * modules/strstr-tests (Files): Likewise.
5138         * modules/strtod-tests (Files): Likewise.
5139         * modules/strverscmp-tests (Files): Likewise.
5140         * modules/symlink-tests (Files): Likewise.
5141         * modules/symlinkat-tests (Files): Likewise.
5142         * modules/trunc-tests (Files): Likewise.
5143         * modules/truncf-tests (Files): Likewise.
5144         * modules/truncl-tests (Files): Likewise.
5145         * modules/uname-tests (Files): Likewise.
5146         * modules/unicase/cased-tests (Files): Likewise.
5147         * modules/unicase/ignorable-tests (Files): Likewise.
5148         * modules/unicase/locale-language-tests (Files): Likewise.
5149         * modules/unicase/tolower-tests (Files): Likewise.
5150         * modules/unicase/totitle-tests (Files): Likewise.
5151         * modules/unicase/toupper-tests (Files): Likewise.
5152         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5153         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5154         * modules/unicase/u8-casefold-tests (Files): Likewise.
5155         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5156         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5157         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5158         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5159         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5160         * modules/unicase/u8-tolower-tests (Files): Likewise.
5161         * modules/unicase/u8-totitle-tests (Files): Likewise.
5162         * modules/unicase/u8-toupper-tests (Files): Likewise.
5163         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5164         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5165         * modules/unicase/u16-casefold-tests (Files): Likewise.
5166         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5167         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5168         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5169         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5170         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5171         * modules/unicase/u16-tolower-tests (Files): Likewise.
5172         * modules/unicase/u16-totitle-tests (Files): Likewise.
5173         * modules/unicase/u16-toupper-tests (Files): Likewise.
5174         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5175         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5176         * modules/unicase/u32-casefold-tests (Files): Likewise.
5177         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5178         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5179         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5180         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5181         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5182         * modules/unicase/u32-tolower-tests (Files): Likewise.
5183         * modules/unicase/u32-totitle-tests (Files): Likewise.
5184         * modules/unicase/u32-toupper-tests (Files): Likewise.
5185         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5186         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5187         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5188         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5189         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5190         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5191         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5192         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5193         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5194         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5195         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5196         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5197         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5198         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5199         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5200         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5201         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5202         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5203         * modules/unictype/block-list-tests (Files): Likewise.
5204         * modules/unictype/block-of-tests (Files): Likewise.
5205         * modules/unictype/block-test-tests (Files): Likewise.
5206         * modules/unictype/category-C-tests (Files): Likewise.
5207         * modules/unictype/category-Cc-tests (Files): Likewise.
5208         * modules/unictype/category-Cf-tests (Files): Likewise.
5209         * modules/unictype/category-Cn-tests (Files): Likewise.
5210         * modules/unictype/category-Co-tests (Files): Likewise.
5211         * modules/unictype/category-Cs-tests (Files): Likewise.
5212         * modules/unictype/category-L-tests (Files): Likewise.
5213         * modules/unictype/category-Ll-tests (Files): Likewise.
5214         * modules/unictype/category-Lm-tests (Files): Likewise.
5215         * modules/unictype/category-Lo-tests (Files): Likewise.
5216         * modules/unictype/category-Lt-tests (Files): Likewise.
5217         * modules/unictype/category-Lu-tests (Files): Likewise.
5218         * modules/unictype/category-M-tests (Files): Likewise.
5219         * modules/unictype/category-Mc-tests (Files): Likewise.
5220         * modules/unictype/category-Me-tests (Files): Likewise.
5221         * modules/unictype/category-Mn-tests (Files): Likewise.
5222         * modules/unictype/category-N-tests (Files): Likewise.
5223         * modules/unictype/category-Nd-tests (Files): Likewise.
5224         * modules/unictype/category-Nl-tests (Files): Likewise.
5225         * modules/unictype/category-No-tests (Files): Likewise.
5226         * modules/unictype/category-P-tests (Files): Likewise.
5227         * modules/unictype/category-Pc-tests (Files): Likewise.
5228         * modules/unictype/category-Pd-tests (Files): Likewise.
5229         * modules/unictype/category-Pe-tests (Files): Likewise.
5230         * modules/unictype/category-Pf-tests (Files): Likewise.
5231         * modules/unictype/category-Pi-tests (Files): Likewise.
5232         * modules/unictype/category-Po-tests (Files): Likewise.
5233         * modules/unictype/category-Ps-tests (Files): Likewise.
5234         * modules/unictype/category-S-tests (Files): Likewise.
5235         * modules/unictype/category-Sc-tests (Files): Likewise.
5236         * modules/unictype/category-Sk-tests (Files): Likewise.
5237         * modules/unictype/category-Sm-tests (Files): Likewise.
5238         * modules/unictype/category-So-tests (Files): Likewise.
5239         * modules/unictype/category-Z-tests (Files): Likewise.
5240         * modules/unictype/category-Zl-tests (Files): Likewise.
5241         * modules/unictype/category-Zp-tests (Files): Likewise.
5242         * modules/unictype/category-Zs-tests (Files): Likewise.
5243         * modules/unictype/category-and-not-tests (Files): Likewise.
5244         * modules/unictype/category-and-tests (Files): Likewise.
5245         * modules/unictype/category-byname-tests (Files): Likewise.
5246         * modules/unictype/category-name-tests (Files): Likewise.
5247         * modules/unictype/category-none-tests (Files): Likewise.
5248         * modules/unictype/category-of-tests (Files): Likewise.
5249         * modules/unictype/category-or-tests (Files): Likewise.
5250         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5251         * modules/unictype/combining-class-tests (Files): Likewise.
5252         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5253         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5254         * modules/unictype/ctype-blank-tests (Files): Likewise.
5255         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5256         * modules/unictype/ctype-digit-tests (Files): Likewise.
5257         * modules/unictype/ctype-graph-tests (Files): Likewise.
5258         * modules/unictype/ctype-lower-tests (Files): Likewise.
5259         * modules/unictype/ctype-print-tests (Files): Likewise.
5260         * modules/unictype/ctype-punct-tests (Files): Likewise.
5261         * modules/unictype/ctype-space-tests (Files): Likewise.
5262         * modules/unictype/ctype-upper-tests (Files): Likewise.
5263         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5264         * modules/unictype/decimal-digit-tests (Files): Likewise.
5265         * modules/unictype/digit-tests (Files): Likewise.
5266         * modules/unictype/mirror-tests (Files): Likewise.
5267         * modules/unictype/numeric-tests (Files): Likewise.
5268         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5269         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5270         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5271         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5272         Likewise.
5273         * modules/unictype/property-bidi-block-separator-tests (Files):
5274         Likewise.
5275         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5276         Likewise.
5277         * modules/unictype/property-bidi-common-separator-tests (Files):
5278         Likewise.
5279         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5280         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5281         Likewise.
5282         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5283         Likewise.
5284         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5285         Likewise.
5286         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5287         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5288         Likewise.
5289         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5290         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5291         Likewise.
5292         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5293         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5294         * modules/unictype/property-bidi-segment-separator-tests (Files):
5295         Likewise.
5296         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5297         * modules/unictype/property-byname-tests (Files): Likewise.
5298         * modules/unictype/property-combining-tests (Files): Likewise.
5299         * modules/unictype/property-composite-tests (Files): Likewise.
5300         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5301         * modules/unictype/property-dash-tests (Files): Likewise.
5302         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5303         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5304         Likewise.
5305         * modules/unictype/property-deprecated-tests (Files): Likewise.
5306         * modules/unictype/property-diacritic-tests (Files): Likewise.
5307         * modules/unictype/property-extender-tests (Files): Likewise.
5308         * modules/unictype/property-format-control-tests (Files): Likewise.
5309         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5310         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5311         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5312         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5313         * modules/unictype/property-hyphen-tests (Files): Likewise.
5314         * modules/unictype/property-id-continue-tests (Files): Likewise.
5315         * modules/unictype/property-id-start-tests (Files): Likewise.
5316         * modules/unictype/property-ideographic-tests (Files): Likewise.
5317         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5318         * modules/unictype/property-ids-trinary-operator-tests (Files):
5319         Likewise.
5320         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5321         * modules/unictype/property-iso-control-tests (Files): Likewise.
5322         * modules/unictype/property-join-control-tests (Files): Likewise.
5323         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5324         * modules/unictype/property-line-separator-tests (Files): Likewise.
5325         * modules/unictype/property-logical-order-exception-tests (Files):
5326         Likewise.
5327         * modules/unictype/property-lowercase-tests (Files): Likewise.
5328         * modules/unictype/property-math-tests (Files): Likewise.
5329         * modules/unictype/property-non-break-tests (Files): Likewise.
5330         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5331         * modules/unictype/property-numeric-tests (Files): Likewise.
5332         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5333         * modules/unictype/property-other-default-ignorable-code-point-tests
5334         (Files): Likewise.
5335         * modules/unictype/property-other-grapheme-extend-tests (Files):
5336         Likewise.
5337         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5338         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5339         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5340         * modules/unictype/property-other-math-tests (Files): Likewise.
5341         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5342         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5343         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5344         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5345         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5346         * modules/unictype/property-private-use-tests (Files): Likewise.
5347         * modules/unictype/property-punctuation-tests (Files): Likewise.
5348         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5349         * modules/unictype/property-radical-tests (Files): Likewise.
5350         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5351         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5352         * modules/unictype/property-space-tests (Files): Likewise.
5353         * modules/unictype/property-terminal-punctuation-tests (Files):
5354         Likewise.
5355         * modules/unictype/property-test-tests (Files): Likewise.
5356         * modules/unictype/property-titlecase-tests (Files): Likewise.
5357         * modules/unictype/property-unassigned-code-value-tests (Files):
5358         Likewise.
5359         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5360         * modules/unictype/property-uppercase-tests (Files): Likewise.
5361         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5362         * modules/unictype/property-white-space-tests (Files): Likewise.
5363         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5364         * modules/unictype/property-xid-start-tests (Files): Likewise.
5365         * modules/unictype/property-zero-width-tests (Files): Likewise.
5366         * modules/unictype/scripts-tests (Files): Likewise.
5367         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5368         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5369         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5370         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5371         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5372         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5373         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5374         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5375         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5376         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5377         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5378         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5379         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5380         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5381         * modules/uninorm/composition-tests (Files): Likewise.
5382         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5383         * modules/uninorm/decomposition-tests (Files): Likewise.
5384         * modules/uninorm/filter-tests (Files): Likewise.
5385         * modules/uninorm/nfc-tests (Files): Likewise.
5386         * modules/uninorm/nfd-tests (Files): Likewise.
5387         * modules/uninorm/nfkc-tests (Files): Likewise.
5388         * modules/uninorm/nfkd-tests (Files): Likewise.
5389         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5390         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5391         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5392         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5393         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5394         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5395         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5396         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5397         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5398         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5399         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5400         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5401         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5402         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5403         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5404         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5405         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5406         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5407         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5408         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5409         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5410         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5411         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5412         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5413         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5414         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5415         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5416         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5417         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5418         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5419         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5420         * modules/uniwidth/u8-width-tests (Files): Likewise.
5421         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5422         * modules/uniwidth/u16-width-tests (Files): Likewise.
5423         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5424         * modules/uniwidth/u32-width-tests (Files): Likewise.
5425         * modules/uniwidth/width-tests (Files): Likewise.
5426         * modules/unlink-tests (Files): Likewise.
5427         * modules/unsetenv-tests (Files): Likewise.
5428         * modules/usleep-tests (Files): Likewise.
5429         * modules/utimens-tests (Files): Likewise.
5430         * modules/utimensat-tests (Files): Likewise.
5431         * modules/vasnprintf-posix-tests (Files): Likewise.
5432         * modules/vasnprintf-tests (Files): Likewise.
5433         * modules/vasprintf-posix-tests (Files): Likewise.
5434         * modules/vasprintf-tests (Files): Likewise.
5435         * modules/vdprintf-posix-tests (Files): Likewise.
5436         * modules/vfprintf-posix-tests (Files): Likewise.
5437         * modules/vprintf-posix-tests (Files): Likewise.
5438         * modules/vsnprintf-posix-tests (Files): Likewise.
5439         * modules/vsnprintf-tests (Files): Likewise.
5440         * modules/vsprintf-posix-tests (Files): Likewise.
5441         * modules/wcrtomb-tests (Files): Likewise.
5442         * modules/wcsnrtombs-tests (Files): Likewise.
5443         * modules/wcsrtombs-tests (Files): Likewise.
5444         * modules/wctype-tests (Files): Likewise.
5445         * modules/wcwidth-tests (Files): Likewise.
5446         * modules/xmemdup0-tests (Files): Likewise.
5447         * modules/xprintf-posix-tests (Files): Likewise.
5448         * modules/xvasprintf-tests (Files): Likewise.
5449
5450 2009-12-24  Eric Blake  <ebb9@byu.net>
5451
5452         test-nanosleep: fix typo
5453         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5454         patch.
5455         Reported by Bruno Haible.
5456
5457 2009-12-24  Bruno Haible  <bruno@clisp.org>
5458
5459         Reduce namespace pollution on glibc systems.
5460         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5461         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5462         systems.
5463         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5464         <getopt.h> on glibc systems.
5465         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5466         systems.
5467         * lib/fcntl.c: Include <unistd.h> here instead.
5468
5469 2009-12-24  Bruno Haible  <bruno@clisp.org>
5470
5471         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5472
5473 2009-12-24  Eric Blake  <ebb9@byu.net>
5474
5475         tests: add signature checks
5476         * tests/signature.h (SIGNATURE_CHECK): New file.
5477         * modules/atexit-tests (Files): Use it.
5478         * modules/btowc-tests (Files): Likewise.
5479         * modules/canonicalize-lgpl-tests (Files): Likewise.
5480         * modules/ceilf-tests (Files): Likewise.
5481         * modules/ceill-tests (Files): Likewise.
5482         * modules/chown-tests (Files): Likewise.
5483         * modules/dprintf-posix-tests (Files): Likewise.
5484         * modules/dup2-tests (Files): Likewise.
5485         * modules/dup3-tests (Files): Likewise.
5486         * modules/duplocale-tests (Files): Likewise.
5487         * modules/fchdir-tests (Files): Likewise.
5488         * modules/fcntl-tests (Files): Likewise.
5489         * modules/fdopendir-tests (Files): Likewise.
5490         * modules/fflush-tests (Files): Likewise.
5491         * modules/flock-tests (Files): Likewise.
5492         * modules/floorf-tests (Files): Likewise.
5493         * modules/floorl-tests (Files): Likewise.
5494         * modules/fnmatch-tests (Files): Likewise.
5495         * modules/fopen-tests (Files): Likewise.
5496         * modules/fprintf-posix-tests (Files): Likewise.
5497         * modules/freopen-tests (Files): Likewise.
5498         * modules/frexp-nolibm-tests (Files): Likewise.
5499         * modules/frexp-tests (Files): Likewise.
5500         * modules/frexpl-nolibm-tests (Files): Likewise.
5501         * modules/frexpl-tests (Files): Likewise.
5502         * modules/fseek-tests (Files): Likewise.
5503         * modules/fseeko-tests (Files): Likewise.
5504         * modules/fsync-tests (Files): Likewise.
5505         * modules/ftell-tests (Files): Likewise.
5506         * modules/ftello-tests (Files): Likewise.
5507         * modules/futimens-tests (Files): Likewise.
5508         * modules/getaddrinfo-tests (Files): Likewise.
5509         * modules/getcwd-tests (Files): Likewise.
5510         * modules/getdelim-tests (Files): Likewise.
5511         * modules/getdtablesize-tests (Files): Likewise.
5512         * modules/getgroups-tests (Files): Likewise.
5513         * modules/gethostname-tests (Files): Likewise.
5514         * modules/getline-tests (Files): Likewise.
5515         * modules/getopt-posix-tests (Files): Likewise.
5516         * modules/gettimeofday-tests (Files): Likewise.
5517         * modules/glob-tests (Files): Likewise.
5518         * modules/iconv-tests (Files): Likewise.
5519         * modules/inet_ntop-tests (Files): Likewise.
5520         * modules/inet_pton-tests (Files): Likewise.
5521         * modules/isblank-tests (Files): Likewise.
5522         * modules/lchown-tests (Files): Likewise.
5523         * modules/ldexpl-tests (Files): Likewise.
5524         * modules/link-tests (Files): Likewise.
5525         * modules/linkat-tests (Files): Likewise.
5526         * modules/lseek-tests (Files): Likewise.
5527         * modules/lstat-tests (Files): Likewise.
5528         * modules/mbrtowc-tests (Files): Likewise.
5529         * modules/mbsinit-tests (Files): Likewise.
5530         * modules/mbsnrtowcs-tests (Files): Likewise.
5531         * modules/mbsrtowcs-tests (Files): Likewise.
5532         * modules/memchr-tests (Files): Likewise.
5533         * modules/memcmp-tests (Files): Likewise.
5534         * modules/memmem-tests (Files): Likewise.
5535         * modules/memrchr-tests (Files): Likewise.
5536         * modules/mkdir-tests (Files): Likewise.
5537         * modules/mkfifo-tests (Files): Likewise.
5538         * modules/mkfifoat-tests (Files): Likewise.
5539         * modules/mknod-tests (Files): Likewise.
5540         * modules/nanosleep-tests (Files): Likewise.
5541         * modules/nl_langinfo-tests (Files): Likewise.
5542         * modules/obstack-printf-tests (Files): Likewise.
5543         * modules/open-tests (Files): Likewise.
5544         * modules/openat-tests (Files): Likewise.
5545         * modules/perror-tests (Files): Likewise.
5546         * modules/pipe2-tests (Files): Likewise.
5547         * modules/poll-tests (Files): Likewise.
5548         * modules/popen-tests (Files): Likewise.
5549         * modules/posix_spawn-tests (Files): Likewise.
5550         * modules/posix_spawnp-tests (Files): Likewise.
5551         * modules/pread-tests (Files): Likewise.
5552         * modules/printf-posix-tests (Files): Likewise.
5553         * modules/pty-tests (Files): Likewise.
5554         * modules/random_r-tests (Files): Likewise.
5555         * modules/rawmemchr-tests (Files): Likewise.
5556         * modules/readlink-tests (Files): Likewise.
5557         * modules/remove-tests (Files): Likewise.
5558         * modules/rename-tests (Files): Likewise.
5559         * modules/renameat-tests (Files): Likewise.
5560         * modules/rmdir-tests (Files): Likewise.
5561         * modules/round-tests (Files): Likewise.
5562         * modules/roundf-tests (Files): Likewise.
5563         * modules/roundl-tests (Files): Likewise.
5564         * modules/select-tests (Files): Likewise.
5565         * modules/setenv-tests (Files): Likewise.
5566         * modules/sigaction-tests (Files): Likewise.
5567         * modules/sleep-tests (Files): Likewise.
5568         * modules/snprintf-posix-tests (Files): Likewise.
5569         * modules/snprintf-tests (Files): Likewise.
5570         * modules/sprintf-posix-tests (Files): Likewise.
5571         * modules/stat-tests (Files): Likewise.
5572         * modules/strcasestr-tests (Files): Likewise.
5573         * modules/strchrnul-tests (Files): Likewise.
5574         * modules/strerror-tests (Files): Likewise.
5575         * modules/strsignal-tests (Files): Likewise.
5576         * modules/strstr-tests (Files): Likewise.
5577         * modules/strtod-tests (Files): Likewise.
5578         * modules/strverscmp-tests (Files): Likewise.
5579         * modules/symlink-tests (Files): Likewise.
5580         * modules/symlinkat-tests (Files): Likewise.
5581         * modules/times-tests (Files): Likewise.
5582         * modules/trunc-tests (Files): Likewise.
5583         * modules/truncf-tests (Files): Likewise.
5584         * modules/truncl-tests (Files): Likewise.
5585         * modules/tsearch-tests (Files): Likewise.
5586         * modules/uname-tests (Files): Likewise.
5587         * modules/unlink-tests (Files): Likewise.
5588         * modules/unsetenv-tests (Files): Likewise.
5589         * modules/usleep-tests (Files): Likewise.
5590         * modules/utimensat-tests (Files): Likewise.
5591         * modules/vasprintf-tests (Files): Likewise.
5592         * modules/vdprintf-posix-tests (Files): Likewise.
5593         * modules/vfprintf-posix-tests (Files): Likewise.
5594         * modules/vprintf-posix-tests (Files): Likewise.
5595         * modules/vsnprintf-posix-tests (Files): Likewise.
5596         * modules/vsnprintf-tests (Files): Likewise.
5597         * modules/vsprintf-posix-tests (Files): Likewise.
5598         * modules/wcrtomb-tests (Files): Likewise.
5599         * modules/wcsnrtombs-tests (Files): Likewise.
5600         * modules/wcsrtombs-tests (Files): Likewise.
5601         * modules/wcwidth-tests (Files): Likewise.
5602         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5603         * tests/test-isinf.c (isinf): Likewise.
5604         * tests/test-isnan.c (isnan): Likewise.
5605         * tests/test-signbit.c (signbit): Likewise.
5606         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5607         declaration, either as macro or with correct signature.
5608         (select): Ensure function under test is declared with correct
5609         signature in correct header.
5610         * tests/test-atexit.c (atexit): Likewise.
5611         * tests/test-btowc.c (btowc): Likewise.
5612         * tests/test-canonicalize-lgpl.c (realpath)
5613         (canonicalize_file_name): Likewise.
5614         * tests/test-ceilf1.c (ceilf): Likewise.
5615         * tests/test-ceill.c (ceill): Likewise.
5616         * tests/test-chown.c (chown): Likewise.
5617         * tests/test-dprintf-posix.c (dprintf): Likewise.
5618         * tests/test-dup2.c (dup2): Likewise.
5619         * tests/test-dup3.c (dup3): Likewise.
5620         * tests/test-duplocale.c (duplocale): Likewise.
5621         * tests/test-fchdir.c (fchdir): Likewise.
5622         * tests/test-fchownat.c (fchownat): Likewise.
5623         * tests/test-fcntl.c (fcntl): Likewise.
5624         * tests/test-fdopendir.c (fdopendir): Likewise.
5625         * tests/test-fflush.c (fflush): Likewise.
5626         * tests/test-flock.c (flock): Likewise.
5627         * tests/test-floorf1.c (floorf): Likewise.
5628         * tests/test-floorl.c (floorl): Likewise.
5629         * tests/test-fnmatch.c (fnmatch): Likewise.
5630         * tests/test-fopen.c (fopen): Likewise.
5631         * tests/test-fprintf-posix.c (fprintf): Likewise.
5632         * tests/test-freopen.c (freopen): Likewise.
5633         * tests/test-frexp.c (frexp): Likewise.
5634         * tests/test-frexpl.c (frexpl): Likewise.
5635         * tests/test-fseek.c (fseek): Likewise.
5636         * tests/test-fseeko.c (fseeko): Likewise.
5637         * tests/test-fstatat.c (fstatat): Likewise.
5638         * tests/test-fsync.c (fsync): Likewise.
5639         * tests/test-ftell.c (ftell): Likewise.
5640         * tests/test-ftello.c (ftello): Likewise.
5641         * tests/test-futimens.c (futimens): Likewise.
5642         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5643         (gai_strerror): Likewise.
5644         * tests/test-getcwd.c (getcwd): Likewise.
5645         * tests/test-getdelim.c (getdelim): Likewise.
5646         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5647         * tests/test-getgroups.c (getgroups): Likewise.
5648         * tests/test-gethostname.c (gethostname): Likewise.
5649         * tests/test-getline.c (getline): Likewise.
5650         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5651         Likewise.
5652         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5653         * tests/test-glob.c (glob, globfree): Likewise.
5654         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5655         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5656         * tests/test-inet_pton.c (inet_pton): Likewise.
5657         * tests/test-isblank.c (isblank): Likewise.
5658         * tests/test-lchown.c (lchown): Likewise.
5659         * tests/test-ldexpl.c (ldexpl): Likewise.
5660         * tests/test-link.c (link): Likewise.
5661         * tests/test-linkat.c (linkat): Likewise.
5662         * tests/test-lseek.c (lseek): Likewise.
5663         * tests/test-lstat.c (lstat): Likewise.
5664         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5665         * tests/test-mbsinit.c (mbsinit): Likewise.
5666         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5667         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5668         * tests/test-memchr.c (memchr): Likewise.
5669         * tests/test-memcmp.c (memcmp): Likewise.
5670         * tests/test-memmem.c (memmem): Likewise.
5671         * tests/test-memrchr.c (memrchr): Likewise.
5672         * tests/test-mkdir.c (mkdir): Likewise.
5673         * tests/test-mkdirat.c (mkdirat): Likewise.
5674         * tests/test-mkfifo.c (mkfifo): Likewise.
5675         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5676         * tests/test-mknod.c (mknod): Likewise.
5677         * tests/test-nanosleep.c (nanosleep): Likewise.
5678         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5679         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5680         Likewise.
5681         * tests/test-open.c (open): Likewise.
5682         * tests/test-openat.c (openat): Likewise.
5683         * tests/test-perror.c (perror): Likewise.
5684         * tests/test-pipe2.c (pipe2): Likewise.
5685         * tests/test-poll.c (poll): Likewise.
5686         * tests/test-popen.c (popen, pclose): Likewise.
5687         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5688         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5689         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5690         (posix_spawn_file_actions_destroy)
5691         (posix_spawn_file_actions_addclose)
5692         (posix_spawn_file_actions_addopen)
5693         (posix_spawn_file_actions_adddup2): Likewise.
5694         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5695         * tests/test-pread.c (pread): Likewise.
5696         * tests/test-printf-posix.c (printf): Likewise.
5697         * tests/test-pty.c (openpty, forkpty): Likewise.
5698         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5699         (random_r): Likewise.
5700         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5701         * tests/test-readlink.c (readlink): Likewise.
5702         * tests/test-remove.c (remove): Likewise.
5703         * tests/test-rename.c (rename): Likewise.
5704         * tests/test-renameat.c (renameat): Likewise.
5705         * tests/test-rmdir.c (rmdir): Likewise.
5706         * tests/test-round1.c (round): Likewise.
5707         * tests/test-roundf1.c (roundf): Likewise.
5708         * tests/test-roundl.c (roundl): Likewise.
5709         * tests/test-setenv.c (setenv): Likewise.
5710         * tests/test-sigaction.c (sigaction): Likewise.
5711         * tests/test-sleep.c (sleep): Likewise.
5712         * tests/test-snprintf.c (snprintf): Likewise.
5713         * tests/test-sprintf-posix.c (sprintf): Likewise.
5714         * tests/test-stat.c (stat): Likewise.
5715         * tests/test-stpncpy.c (stpncpy): Likewise.
5716         * tests/test-strcasestr.c (strcasestr): Likewise.
5717         * tests/test-strchrnul.c (strchrnul): Likewise.
5718         * tests/test-strerror.c (strerror): Likewise.
5719         * tests/test-strsignal.c (strsignal): Likewise.
5720         * tests/test-strstr.c (strstr): Likewise.
5721         * tests/test-strtod.c (strtod): Likewise.
5722         * tests/test-strverscmp.c (strverscmp): Likewise.
5723         * tests/test-symlink.c (symlink): Likewise.
5724         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5725         * tests/test-times.c (times): Likewise.
5726         * tests/test-trunc1.c (trunc): Likewise.
5727         * tests/test-truncf1.c (truncf): Likewise.
5728         * tests/test-truncl.c (truncl): Likewise.
5729         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5730         Likewise.
5731         * tests/test-uname.c (uname): Likewise.
5732         * tests/test-unlink.c (unlink): Likewise.
5733         * tests/test-unlinkat.c (unlinkat): Likewise.
5734         * tests/test-unsetenv.c (unsetenv): Likewise.
5735         * tests/test-usleep.c (usleep): Likewise.
5736         * tests/test-utimensat.c (utimensat): Likewise.
5737         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5738         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5739         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5740         * tests/test-vprintf-posix.c (vprintf): Likewise.
5741         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5742         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5743         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5744         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5745         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5746         * tests/test-wcwidth.c (wcwidth): Likewise.
5747
5748         build: pull in conditional headers during GNULIB_POSIXCHECK
5749         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5750         definitions from any conditionally-included headers.
5751         * lib/stdlib.in.h (includes): Likewise.
5752         * lib/unistd.in.h (includes): Likewise.
5753
5754 2009-12-24  Bruno Haible  <bruno@clisp.org>
5755
5756         * tests/test-argv-iter.c: Include header file being tested immediately
5757         after config.h.
5758         * tests/test-base64.c: Likewise.
5759         * tests/test-flock.c: Likewise.
5760         * tests/test-fsync.c: Likewise.
5761         * tests/test-getdate.c: Likewise.
5762         * tests/test-getndelim2.c: Likewise.
5763         * tests/test-isfinite.c: Likewise.
5764         * tests/test-isinf.c: Likewise.
5765         * tests/test-strerror.c: Likewise.
5766         * tests/test-strsignal.c: Likewise.
5767
5768 2009-12-23  Eric Blake  <ebb9@byu.net>
5769
5770         unistd: work around cygwin bug
5771         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5772         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5773         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5774
5775 2009-12-23  Bruno Haible  <bruno@clisp.org>
5776
5777         localename: More tests.
5778         * tests/test-localename.c (SIZEOF): New macro.
5779         (categories): New variable.
5780         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5781         test_locale_name_default): Add test w.r.t. thread locale.
5782         (test_locale_name_thread): New function.
5783         (main): Invoke it.
5784
5785         localename: Make aware of thread locale.
5786         * lib/localename.h (gl_locale_name_thread): New declaration.
5787         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5788         behaviour with respect to thread locale.
5789         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5790         <langinfo.h>, glthread/lock.h.
5791         (SIZE_BITS): New macro.
5792         (string_hash): New function.
5793         (struct hash_node): New type.
5794         (HASH_TABLE_SIZE): New macro.
5795         (struniq_hash_table, struniq_lock): New variables.
5796         (struniq): New function.
5797         (gl_locale_name_thread): New function.
5798         (gl_locale_name): Invoke it.
5799         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5800         * modules/localename (Depends-on): Add lock.
5801         Reported by Mike Gran <spk121@yahoo.com>.
5802
5803 2009-12-23  Eric Blake  <ebb9@byu.net>
5804
5805         va-args: new module
5806         * modules/va-args: New file.
5807         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5808         * MODULES.html.sh (Core language properties): Mention it.
5809
5810         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5811         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5812         named alias for __attribute__((__unused__)).
5813         * lib/chown.c: Update client.
5814         * lib/fchmodat.c: Likewise.
5815         * lib/fts.c: Likewise.
5816         * lib/getdate.y: Likewise.
5817         * lib/getgroups.c: Likewise.
5818         * lib/getopt.c: Likewise.
5819         * lib/getugroups.c: Likewise.
5820         * lib/mkdir.c: Likewise.
5821         * lib/mkfifo.c: Likewise.
5822         * lib/mkfifoat.c: Likewise.
5823         * lib/mknod.c: Likewise.
5824         * lib/mknodat.c: Likewise.
5825         * lib/readlink.c: Likewise.
5826         * lib/se-context.in.h: Likewise.
5827         * lib/se-selinux.in.h: Likewise.
5828         * lib/sockets.c: Likewise.
5829         * lib/symlink.c: Likewise.
5830         * lib/symlinkat.c: Likewise.
5831         * lib/unicodeio.c: Likewise.
5832         * lib/unistr.h: Likewise.
5833         * tests/test-areadlink.c: Likewise.
5834         * tests/test-areadlinkat.c: Likewise.
5835         * tests/test-filenamecat.c: Likewise.
5836         * tests/test-fseeko.c: Likewise.
5837         * tests/test-ftello.c: Likewise.
5838         * tests/test-getdate.c: Likewise.
5839         * tests/test-getgroups.c: Likewise.
5840         * tests/test-gethostname.c: Likewise.
5841         * tests/test-quotearg.c: Likewise.
5842         * tests/test-version-etc.c: Likewise.
5843         * tests/test-xalloc-die.c: Likewise.
5844         * tests/test-xfprintf-posix.c: Likewise.
5845         * tests/test-xprintf-posix.c: Likewise.
5846         * tests/test-xvasprintf.c: Likewise.
5847
5848         tests: avoid compiler warnings
5849         * tests/test-fcntl.c (main): Delete unused parameters.
5850         * tests/test-freopen-safer.c (main): Likewise.
5851         * tests/test-xalloc-die.c (main): Mark unused parameters.
5852         * tests/test-fseeko.c (main): Likewise.
5853         * tests/test-ftello.c (main): Likewise.
5854         * tests/test-nanosleep.c (main): Avoid declaration warning.
5855         * tests/test-sleep.c (main): Likewise.
5856         * tests/test-unsetenv.c (main): Silence warning about string
5857         literal.
5858         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5859
5860 2009-12-23  Bruno Haible  <bruno@clisp.org>
5861
5862         * tests/test-localename.c (test_locale_name): New function, extracted
5863         from main. Also test mixed situations.
5864         (test_locale_name_posix, test_locale_name_environ,
5865         test_locale_name_default): New functions.
5866         (main): Invoke them all.
5867         * modules/localename-tests (configure.ac): Test for newlocale.
5868
5869 2009-12-23  Bruno Haible  <bruno@clisp.org>
5870
5871         unistd: Ensure getcwd gets declared before being overridden.
5872         * lib/unistd.in.h: Conditionally include <io.h>.
5873
5874 2009-12-22  Bruno Haible  <bruno@clisp.org>
5875
5876         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5877         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5878         (gl_WCHAR_H): Invoke it.
5879         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5880         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5881         Reported by Karl Berry <karl@freefriends.org>.
5882
5883 2009-12-22  Eric Blake  <ebb9@byu.net>
5884
5885         math, unistd: avoid redundant includes
5886         * lib/math.in.h (isnan): No need to re-include <math.h>.
5887         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5888
5889         getsubopt: work around cygwin bug
5890         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5891         avoid conflicting with system getsubopt.
5892         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5893         bug.
5894
5895         getopt: synchronize from glibc
5896         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5897         parameter order.  Adjust all callers.
5898         (_getopt_internal_r, main): Adjust quoting in error messages.
5899         Drop considerations for outdated POSIX 1003.2 error message.
5900         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5901         callers.
5902         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5903
5904         test-getopt: test stderr behavior
5905         * modules/getopt-posix-tests (Depends-on): Add dup2.
5906         * tests/test-getopt.c (ASSERT): Avoid stderr.
5907         (main): Move stderr to a temporary file.
5908         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5909         Instead, add parameter to inform caller if output occurred.
5910         (test_getopt): Adjust all existing tests to expect silence, and
5911         add new tests of leading ":".
5912         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5913         glibc shortcomings with leading "-:" or "+:" in optstring.
5914         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5915         Likewise.
5916         * doc/posix-functions/getopt.texi (getopt): Likewise.
5917
5918         test-getopt: enhance test
5919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5920         supports optind=0.
5921         * tests/test-getopt.c (OPTIND_MIN): Move...
5922         * tests/test-getopt.h (OPTIND_MIN): ...here.
5923         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5924         Require that optind=0 works, since modern BSD supports it in
5925         addition to optreset, and since coreutils expects it.
5926         (test_getopt_long_only): New test.
5927         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5928         glibc shortcomings with 'W;', and enforcement of optind=0.
5929         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5930         Likewise.
5931
5932 2009-12-21  Bruno Haible  <bruno@clisp.org>
5933
5934         localename: Improvements for MacOS X and Cygwin.
5935         * lib/localename.h (gl_locale_name_environ): New declaration.
5936         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5937         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5938         (gl_locale_name_posix): Invoke it.
5939         (gl_locale_name_default): Add comments. Use Windows native API also on
5940         Cygwin.
5941
5942 2009-12-21  Bruno Haible  <bruno@clisp.org>
5943
5944         Update list of Win32 locale ids.
5945         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5946         (LANG_SAMI): Renamed from LANG_SAAMI.
5947         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5948         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5949         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5950         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5951         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5952         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5953         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5954         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5955         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5956         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5957         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5958         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5959         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5960         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5961         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5962         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5963         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5964         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5965         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5966         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5967         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5968         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5969         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5970         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5971         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5972         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5973         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5974         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5975         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5976         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5977         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5978         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5979         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5980         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5981         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5982         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5983         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5984         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5985         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5986         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5987         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5988         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5989         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5990         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5991         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5992         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5993         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5994         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5995         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5996         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5997         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5998         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5999         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6000         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6001         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6002         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6003         Add more languages and countries for Sami, Sorbian. Add more countries
6004         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6005         for Pashto. Change country for Syriac, Tswana.
6006
6007 2009-12-21  Eric Blake  <ebb9@byu.net>
6008
6009         test-utimens: avoid spurious failure
6010         * tests/test-chown.h (nap): Factor...
6011         * tests/nap.h: ...into new file.
6012         * tests/test-lchown.h (nap): Avoid duplication.
6013         * tests/test-utimens-common.h (nap): Use shared implementation,
6014         necessary on file systems with 1-second resolution.
6015         * modules/chown-tests (Files): Include new file.
6016         * modules/fdutimensat-tests (Files): Likewise.
6017         * modules/futimens-tests (Files): Likewise.
6018         * modules/lchown-tests (Files): Likewise.
6019         * modules/openat-tests (Files): Likewise.
6020         * modules/utimens-tests (Files): Likewise.
6021         * modules/utimensat-tests (Files): Likewise.
6022
6023 2009-12-19  Eric Blake  <ebb9@byu.net>
6024
6025         futimens, utimensat: work around Linux bug
6026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6027         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6028         * lib/utimensat.c (rpl_utimensat): Work around it.
6029         * lib/futimens.c (rpl_futimens): Adjust comment.
6030
6031         utimens: work around Linux ctime bug
6032         * lib/utimens.c (detect_ctime_bug): New helper function.
6033         (update_timespec): Differentiate between workaround needed for
6034         this bug vs. what is needed for systems that lack utimensat.
6035         (fdutimens, lutimens): Work around bug.
6036
6037         utimens: check for ctime update
6038         * tests/test-utimens-common.h (check_ctime): Define.
6039         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6040         * tests/test-futimens.h (test_futimens): Likewise.
6041         * tests/test-lutimens.h (test_lutimens): Likewise.
6042         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6043         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6044
6045 2009-12-19  Bruno Haible  <bruno@clisp.org>
6046
6047         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6048         * tests/test-dprintf-posix2.sh: New file.
6049         * tests/test-dprintf-posix2.c: New file.
6050         * modules/dprintf-posix-tests (Files): Add them.
6051         (configure.ac): Check for getrlimit and setrlimit.
6052         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6053
6054 2009-12-19  Bruno Haible  <bruno@clisp.org>
6055
6056         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6057         * tests/test-fprintf-posix3.sh: New file.
6058         * tests/test-fprintf-posix3.c: New file.
6059         * modules/fprintf-posix-tests (Files): Add them.
6060         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6061
6062 2009-12-19  Eric Blake  <ebb9@byu.net>
6063
6064         dirfd: fix prototype
6065         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6066         * lib/dirfd.c (dirfd): Likewise.
6067
6068         canonicalize: reduce memory usage
6069         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6070         allocation to size.
6071         Reported by Solar Designer <solar@openwall.com>.
6072
6073 2009-12-19  Bruno Haible  <bruno@clisp.org>
6074
6075         New module attribute 'Applicability'.
6076         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6077         * gnulib-tool: New option --extract-applicability.
6078         (func_usage): Document it.
6079         (sed_extract_prog): Recognize it.
6080         (func_get_applicability): New function.
6081         (func_import): Generalize handling of 'link-warning' module.
6082         * modules/link-warning (Applicability): New section.
6083         * modules/arg-nonnull (Applicability): New section.
6084         Repoted by Simon Josefsson <simon@josefsson.org>.
6085
6086 2009-12-19  Bruno Haible  <bruno@clisp.org>
6087
6088         fflush: tweak
6089         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6090         * lib/fseeko.c (rpl_fseeko): Likewise.
6091
6092 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6093
6094         * lib/gl_list.h: Fix typo in comment.
6095
6096 2009-12-16  Eric Blake  <ebb9@byu.net>
6097
6098         fcntl: use to simplify other modules
6099         * modules/cloexec (Depends-on): Add fcntl.
6100         * modules/fchdir (Depends-on): Likewise.
6101         * modules/fd-safer-flag (Depends-on): Likewise.
6102         * modules/unistd-safer (Depends-on): Likewise.
6103         * modules/dup3 (configure.ac): Set module indicator.
6104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6105         missing.
6106         * lib/fchdir.c (_gl_register_dup): Fix comment.
6107         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6108         * lib/dup-safer.c (dup_safer): Likewise.
6109         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6110         * lib/dup3.c (dup3): Likewise.
6111         * tests/test-fchdir.c (main): Enhance test.
6112         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
6113
6114         fcntl: port portions of fcntl to mingw
6115         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6116         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6117         replacement for mingw.
6118         * modules/fcntl (Description): Update.
6119         (Depends-on): Add dup2.
6120         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6121         * modules/fcntl-h (Makefile.am): Substitute it.
6122         * lib/fcntl.in.h (fcntl): Update declaration.
6123         (F_DUPFD, F_GETFD): New macros, when needed.
6124         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6125         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6126         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6127         we now guarantee.
6128
6129         fcntl: work around cygwin bug in F_DUPFD
6130         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6131         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6132         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6133         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6134         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6135
6136         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6137         * modules/fcntl (Files): List new files.
6138         (configure.ac): Run a test.
6139         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6140         * lib/fcntl.c (rpl_fcntl): Likewise.
6141         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6142         (gl_FCNTL_H): Always replace fcntl.h.
6143         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6144         * lib/fcntl.in.h (fcntl): Declare replacement.
6145         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6146         needed, plus a witness.
6147         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6148         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6149         * tests/test-fcntl.c: New file.
6150         * modules/fcntl-tests: Likewise.
6151
6152         binary-io: avoid potential compilation warning
6153         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6154         directives.
6155
6156         fflush: avoid compilation error on NetBSD
6157         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6158         between off_t and fpos_t, since the latter is sometimes a struct.
6159         * lib/fseeko.c (rpl_fseeko): Likewise.
6160         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6161
6162 2009-12-15  Eric Blake  <ebb9@byu.net>
6163
6164         fcntl-h, stdio, sys_ioctl: fix declarations
6165         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6166         function must not take arguments.
6167         * lib/sys_ioctl.in.h (ioctl): Likewise.
6168         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6169         (open): Add a link warning.
6170
6171 2009-12-15  Jim Meyering  <meyering@redhat.com>
6172
6173         areadlink, areadlink-with-size: relax license to LGPLv2+
6174         * modules/areadlink (License): Relax to LGPLv2+.
6175         * modules/areadlink-with-size (License): Likewise.
6176
6177 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6178             Bruno Haible  <bruno@clisp.org>
6179
6180         *printf: Fix memory leak.
6181         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6182         * lib/vfprintf.c (vfprintf): Likewise.
6183         * lib/dprintf.c (dprintf): Likewise.
6184         * lib/vdprintf.c (vdprintf): Likewise.
6185
6186 2009-12-14  Eric Blake  <ebb9@byu.net>
6187
6188         accept4: adjust module dependencies
6189         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6190
6191         utimens: one more try at avoiding compiler warning
6192         * lib/utimens.c (lutimens): Lower scope of result.
6193
6194 2009-12-13  Bruno Haible  <bruno@clisp.org>
6195
6196         Move the malloc checking from module 'list' to new module 'xlist'.
6197         * modules/xlist: New file.
6198         * lib/gl_xlist.h: New file.
6199         * lib/gl_xlist.c: New file.
6200         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6201         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6202         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6203         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6204         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6205         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6206         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6207         gl_sortedlist_nx_add): New declarations.
6208         (struct gl_list_implementation): Rename and change methods accordingly.
6209         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6210         (gl_list_nx_create): Renamed from gl_list_create.
6211         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6212         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6213         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6214         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6215         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6216         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6217         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6218         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6219         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6220         gl_list_create_empty.
6221         (gl_list_nx_create): Renamed from gl_list_create.
6222         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6223         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6224         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6225         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6226         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6227         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6228         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6229         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6230         * lib/gl_array_list.c: Don't include xalloc.h.
6231         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6232         NULL upon out-of-memory.
6233         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6234         out-of-memory.
6235         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6236         Change return type to 'int'.
6237         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6238         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6239         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6240         upon out-of-memory.
6241         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6242         upon out-of-memory.
6243         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6244         upon out-of-memory.
6245         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6246         upon out-of-memory.
6247         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6248         out-of-memory.
6249         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6250         Update.
6251         (gl_array_list_implementation): Update.
6252         * lib/gl_carray_list.c: Don't include xalloc.h.
6253         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6254         Return NULL upon out-of-memory.
6255         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6256         out-of-memory.
6257         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6258         Change return type to 'int'.
6259         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6260         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6261         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6262         upon out-of-memory.
6263         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6264         upon out-of-memory.
6265         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6266         out-of-memory.
6267         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6268         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6269         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6270         Update.
6271         (gl_carray_list_implementation): Update.
6272         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6273         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6274         gl_linked_create_empty. Return NULL upon out-of-memory.
6275         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6276         out-of-memory.
6277         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6278         Change return type to 'int'. Return -1 upon out-of-memory.
6279         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6280         out-of-memory.
6281         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6282         upon out-of-memory.
6283         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6284         upon out-of-memory.
6285         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6286         NULL upon out-of-memory.
6287         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6288         upon out-of-memory.
6289         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6290         out-of-memory.
6291         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6292         Update.
6293         * lib/gl_linked_list.c: Don't include xalloc.h.
6294         (gl_linked_list_implementation): Update.
6295         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6296         (add_to_bucket): Change return type to 'int'.
6297         (gl_linkedhash_list_implementation): Update.
6298         * lib/gl_anytree_list1.h (free_subtree): New function.
6299         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6300         gl_tree_create_empty. Return NULL upon out-of-memory.
6301         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6302         Change return type to 'int'. Return -1 upon out-of-memory.
6303         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6304         out-of-memory.
6305         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6306         (gl_tree_remove_node): New function, moved here from
6307         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6308         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6309         Update.
6310         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6311         malloc, not xmalloc. Return NULL upon out-of-memory.
6312         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6313         out-of-memory.
6314         (gl_tree_remove_node_from_tree): New function, extracted from
6315         gl_tree_remove_node.
6316         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6317         upon out-of-memory.
6318         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6319         out-of-memory.
6320         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6321         upon out-of-memory.
6322         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6323         upon out-of-memory.
6324         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6325         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6326         not xmalloc. Return NULL upon out-of-memory.
6327         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6328         out-of-memory.
6329         (gl_tree_remove_node_from_tree): New function, extracted from
6330         gl_tree_remove_node.
6331         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6332         upon out-of-memory.
6333         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6334         out-of-memory.
6335         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6336         upon out-of-memory.
6337         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6338         upon out-of-memory.
6339         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6340         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6341         gl_anytree_list1.h before gl_anyavltree_list2.h.
6342         (gl_avltree_list_implementation): Update.
6343         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6344         gl_anytree_list1.h before gl_anyavltree_list2.h.
6345         (gl_rbtree_list_implementation): Update.
6346         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6347         Change return type to 'int'. Return -1 upon out-of-memory. Use
6348         __builtin_expect.
6349         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6350         (gl_avltreehash_list_implementation): Update.
6351         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6352         (gl_rbtreehash_list_implementation): Update.
6353         * modules/array-list (Depends-on): Remove xalloc.
6354         * modules/carray-list (Depends-on): Likewise.
6355         * modules/linked-list (Depends-on): Likewise.
6356         * modules/linkedhash-list (Depends-on): Likewise.
6357         * modules/avltree-list (Depends-on): Likewise.
6358         * modules/rbtree-list (Depends-on): Likewise.
6359         * modules/avltreehash-list (Depends-on): Likewise.
6360         * modules/rbtreehash-list (Depends-on): Likewise.
6361
6362         * modules/xsublist: New file.
6363         * lib/gl_xsublist.h: New file.
6364         * lib/gl_xsublist.c: New file.
6365         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6366         (gl_sublist_nx_create): New declaration.
6367         * lib/gl_sublist.c: Don't include xalloc.h.
6368         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6369         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6370         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6371         Change return type to 'int'. Return -1 upon out-of-memory.
6372         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6373         upon out-of-memory.
6374         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6375         NULL upon out-of-memory.
6376         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6377         upon out-of-memory.
6378         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6379         NULL upon out-of-memory.
6380         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6381         NULL upon out-of-memory.
6382         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6383         upon out-of-memory.
6384         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6385         (gl_sublist_list_implementation): Update.
6386         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6387         upon out-of-memory.
6388         * modules/sublist (Depends-on): Remove xalloc.
6389
6390         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6391         * tests/test-carray_list.c: Likewise.
6392         * tests/test-linked_list.c: Likewise.
6393         * tests/test-linkedhash_list.c: Likewise.
6394         * tests/test-avltree_list.c: Likewise.
6395         * tests/test-rbtree_list.c: Likewise.
6396         * tests/test-avltreehash_list.c: Likewise.
6397         * tests/test-rbtreehash_list.c: Likewise.
6398         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6399         * modules/carray-list-tests (Makefile.am): Likewise.
6400         * modules/linked-list-tests (Makefile.am): Likewise.
6401         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6402         * modules/avltree-list-tests (Makefile.am): Likewise.
6403         * modules/rbtree-list-tests (Makefile.am): Likewise.
6404         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6405         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6406
6407         * NEWS: Mention the changes.
6408
6409         * lib/clean-temp.c: Include gl_xlist.h.
6410         * modules/clean-temp (Depends-on): Add xlist.
6411
6412         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6413         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6414
6415         * tests/test-array_oset.c: Include gl_xlist.h.
6416         * modules/array-oset-tests (Depends-on): Add xlist.
6417
6418         Reported by José E. Marchesi <jemarch@gnu.org>.
6419
6420 2009-12-13  Bruno Haible  <bruno@clisp.org>
6421
6422         Move the malloc checking from module 'oset' to new module 'xoset'.
6423         * modules/xoset: New file.
6424         * lib/gl_xoset.h: New file.
6425         * lib/gl_xoset.c: New file.
6426         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6427         declarations.
6428         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6429         (struct gl_oset_implementation): Rename and change methods accordingly.
6430         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6431         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6432         'int'. Mark as __warn_unused_result__.
6433         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6434         gl_oset_create_empty.
6435         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6436         'int'.
6437         * lib/gl_array_oset.c: Don't include xalloc.h.
6438         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6439         malloc, not xmalloc.
6440         (grow): Change return type to 'int'. Don't call xalloc_die.
6441         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6442         to 'int'.
6443         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6444         'int'.
6445         (gl_array_oset_implementation): Update.
6446         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6447         gl_tree_create_empty.
6448         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6449         'int'.
6450         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6451         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6452         xmalloc.
6453         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6454         not xmalloc.
6455         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6456         xmalloc.
6457         (gl_avltree_oset_implementation): Update.
6458         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6459         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6460         xmalloc.
6461         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6462         not xmalloc.
6463         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6464         xmalloc.
6465         (gl_rbtree_oset_implementation): Update.
6466         * modules/array-oset (Depends-on): Remove xalloc.
6467         * modules/avltree-oset (Depends-on): Likewise.
6468         * modules/rbtree-oset (Depends-on): Likewise.
6469         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6470         * tests/test-avltree_oset.c: Likewise.
6471         * tests/test-rbtree_oset.c: Likewise.
6472         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6473         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6474         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6475         * NEWS: Mention the change.
6476
6477 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6478
6479         maint.mk: allow a project to override release-prep commands
6480         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6481         commands into a new rule.
6482         (release-prep): New rule.
6483         (release-prep-hook): New overridable variable.
6484
6485 2009-12-13  Bruno Haible  <bruno@clisp.org>
6486
6487         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6488
6489 2009-12-13  Jim Meyering  <meyering@redhat.com>
6490
6491         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6492         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6493
6494 2009-12-12  Bruno Haible  <bruno@clisp.org>
6495
6496         duplocale: Tweak.
6497         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6498
6499 2009-12-12  Karl Berry  <karl@gnu.org>
6500
6501         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6502
6503 2009-12-12  Bruno Haible  <bruno@clisp.org>
6504
6505         * m4/po.m4: Undo incorrect untabification.
6506
6507 2009-12-12  Bruno Haible  <bruno@clisp.org>
6508
6509         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6510         * modules/c-strtod (Depends-on): Add locale.
6511         * modules/c-strtold (Depends-on): Likewise.
6512
6513 2009-12-12  Bruno Haible  <bruno@clisp.org>
6514
6515         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6516
6517 2009-12-11  Eric Blake  <ebb9@byu.net>
6518
6519         setenv: relax requirement in light of POSIX ruling
6520         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6521         not NULL.
6522         * tests/test-setenv.c (main): Relax test.
6523         * tests/test-unsetenv.c (main): Likewise.
6524         * doc/posix-functions/setenv.texi (setenv): Document this.
6525         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6526
6527 2009-12-11  Bruno Haible  <bruno@clisp.org>
6528
6529         New module 'fd-safer-flag'.
6530         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6531         * lib/dup-safer.c (dup_safer_flag): Remove function.
6532         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6533         * lib/fd-safer.c (fd_safer_flag): Remove function.
6534         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6535         * modules/cloexec (configure.ac): Drop indicator macro.
6536         * modules/fd-safer-flag: New file.
6537         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6538         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6539         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6540
6541 2009-12-11  Bruno Haible  <bruno@clisp.org>
6542
6543         Tests for module 'nl_langinfo'.
6544         * modules/nl_langinfo-tests: New file.
6545         * tests/test-nl_langinfo.sh: New file.
6546         * tests/test-nl_langinfo.c: New file.
6547
6548         New module 'nl_langinfo'.
6549         * lib/nl_langinfo.c: New file.
6550         * m4/nl_langinfo.m4: New file.
6551         * modules/nl_langinfo: New file.
6552         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6553
6554 2009-12-11  Bruno Haible  <bruno@clisp.org>
6555
6556         Tests for module 'langinfo'.
6557         * modules/langinfo-tests: New file.
6558         * tests/test-langinfo.c: New file.
6559
6560         New module 'langinfo'.
6561         * lib/langinfo.in.h: New file.
6562         * m4/langinfo_h.m4: New file.
6563         * modules/langinfo: New file.
6564         * doc/posix-headers/langinfo.texi: Mention the new module.
6565
6566 2009-12-11  Bruno Haible  <bruno@clisp.org>
6567
6568         * lib/config.charset: Untabify.
6569
6570 2009-12-11  Bruno Haible  <bruno@clisp.org>
6571
6572         * modules/unistd-safer (configure.ac): Drop indicator macro.
6573
6574 2009-12-11  Bruno Haible  <bruno@clisp.org>
6575
6576         Move pipe2-safer code to its own file.
6577         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6578         * lib/pipe-safer.c (pipe2_safer): Remove function.
6579         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6580         (Makefile.am): Add it to lib_SOURCES.
6581
6582 2009-12-10  Bruno Haible  <bruno@clisp.org>
6583
6584         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6585
6586 2009-12-10  Bruno Haible  <bruno@clisp.org>
6587
6588         Declare which arguments expect non-NULL values, for GCC and clang.
6589         * build-aux/arg-nonnull.h: New file.
6590         * modules/arg-nonnull: New file.
6591         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6592         (inet_ntop, inet_pton): Use it.
6593         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6594         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6595         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6596         (open, openat): Use it.
6597         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6598         (fnmatch): Use it.
6599         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6600         (getopt, getopt_long, getopt_long_only): Use it.
6601         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6602         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6603         Use it.
6604         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6605         (iconv_open): Use it.
6606         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6607         (strtoimax, strtoumax): Use it.
6608         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6609         (duplocale): Use it.
6610         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6611         (frexp, frexpl): Use it.
6612         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6613         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6614         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6615         (tsearch, tfind, tdelete, twalk): Use it.
6616         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6617         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6618         sigpending): Use it.
6619         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6620         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6621         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6622         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6623         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6624         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6625         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6626         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6627         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6628         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6629         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6630         Use it.
6631         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6632         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6633         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6634         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6635         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6636         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6637         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6638         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6639         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6640         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6641         strtoull, unsetenv): Use it.
6642         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6643         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6644         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6645         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6646         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6647         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6648         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6649         (strcasecmp, strncasecmp): Use it.
6650         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6651         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6652         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6653         rpl_setsockopt): Use it.
6654         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6655         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6656         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6657         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6658         (gettimeofday): Use it.
6659         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6660         (times): Use it.
6661         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6662         (uname): Use it.
6663         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6664         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6665         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6666         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6667         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6668         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6669         unlinkat, write): Use it.
6670         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6671         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6672         * lib/argv-iter.h: Include arg-nonnull.h.
6673         (_ATTRIBUTE_NONNULL_): Remove macro.
6674         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6675         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6676         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6677         optimization.
6678         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6679         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6680         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6681         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6682         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6683         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6684         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6685         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6686         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6687         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6688         * modules/dirent (Depends-on): Add arg-nonnull.
6689         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6690         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6691         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6692         * modules/fnmatch (Depends-on): Add arg-nonnull.
6693         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6694         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6695         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6696         * modules/glob (Depends-on): Add arg-nonnull.
6697         (Makefile.am): Insert arg-nonnull.h into glob.h.
6698         * modules/iconv_open (Depends-on): Add arg-nonnull.
6699         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6700         * modules/inttypes (Depends-on): Add arg-nonnull.
6701         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6702         * modules/locale (Depends-on): Add arg-nonnull.
6703         (Makefile.am): Insert arg-nonnull.h into locale.h.
6704         * modules/math (Depends-on): Add arg-nonnull.
6705         (Makefile.am): Insert arg-nonnull.h into math.h.
6706         * modules/netdb (Depends-on): Add arg-nonnull.
6707         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6708         * modules/search (Depends-on): Add arg-nonnull.
6709         (Makefile.am): Insert arg-nonnull.h into search.h.
6710         * modules/signal (Depends-on): Add arg-nonnull.
6711         (Makefile.am): Insert arg-nonnull.h into signal.h.
6712         * modules/spawn (Depends-on): Add arg-nonnull.
6713         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6714         * modules/stdio (Depends-on): Add arg-nonnull.
6715         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6716         * modules/stdlib (Depends-on): Add arg-nonnull.
6717         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6718         * modules/string (Depends-on): Add arg-nonnull.
6719         (Makefile.am): Insert arg-nonnull.h into string.h.
6720         * modules/strings (Depends-on): Add arg-nonnull.
6721         (Makefile.am): Insert arg-nonnull.h into strings.h.
6722         * modules/sys_socket (Depends-on): Add arg-nonnull.
6723         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6724         * modules/sys_stat (Depends-on): Add arg-nonnull.
6725         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6726         * modules/sys_time (Depends-on): Add arg-nonnull.
6727         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6728         * modules/sys_times (Depends-on): Add arg-nonnull.
6729         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6730         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6731         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6732         * modules/time (Depends-on): Add arg-nonnull.
6733         (Makefile.am): Insert arg-nonnull.h into time.h.
6734         * modules/unistd (Depends-on): Add arg-nonnull.
6735         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6736         * modules/wchar (Depends-on): Add arg-nonnull.
6737         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6738         * modules/argv-iter (Depends-on): Add arg-nonnull.
6739         * tests/test-canonicalize.c (null_ptr): New function.
6740         (main): Use it.
6741         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6742         (main): Use it.
6743         * tests/test-memmem.c (null_ptr): New function.
6744         (main): Use it.
6745         Reported by Jim Meyering.
6746
6747 2009-12-10  Bruno Haible  <bruno@clisp.org>
6748
6749         Use spaces for indentation, not tabs.
6750         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6751         * m4/*.m4: Untabify.
6752         * build-aux/*.h: Untabify.
6753         * tests/**/*.[hc]: Untabify.
6754         * README: New section "Indent with spaces, not TABs", based on
6755         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6756         * NEWS: Mention the change.
6757
6758 2009-12-10  Bruno Haible  <bruno@clisp.org>
6759
6760         pty test: Fix link error.
6761         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6762         test_pty_LDADD.
6763
6764 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6765
6766         * modules/pty: New file.
6767         * modules/pty-tests: New file.
6768         * m4/pty.m4: New file.
6769         * tests/test-pty.c: New file.
6770         * doc/glibc-headers/pty.texi: Modified.
6771         * doc/glibc-functions/forkpty.texi: Modified.
6772         * doc/glibc-functions/openpty.texi: Modified.
6773
6774 2009-12-10  Bruno Haible  <bruno@clisp.org>
6775
6776         Avoid syntax error in C++ mode.
6777         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6778
6779 2009-12-10  Bruno Haible  <bruno@clisp.org>
6780
6781         Use sed with option -e.
6782         * gnulib-tool (func_version, func_emit_copyright_notice,
6783         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6784         option -e to sed.
6785         * modules/link-warning (Makefile.am): Likewise.
6786
6787 2009-12-10  Jim Meyering  <meyering@redhat.com>
6788
6789         mgetgroups: do not write bytes beyond end of malloc'd buffer
6790         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6791         username, we call getgroups with a one-element-shorter buffer,
6792         but still told it the length was original, max_n_groups.
6793
6794 2009-12-09  Eric Blake  <ebb9@byu.net>
6795
6796         cloexec: relax license
6797         * modules/cloexec (Maintainer): Add myself.
6798         (License): Use LGPL, not GPL.
6799
6800         link-warning: optimize generation
6801         * modules/link-warning (Makefile.am): Reduce process usage.
6802
6803 2009-12-09  Bruno Haible  <bruno@clisp.org>
6804
6805         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6806         workaround was added on 2009-11-17.
6807
6808 2009-12-09  Jim Meyering  <meyering@redhat.com>
6809             Bruno Haible  <bruno@clisp.org>
6810
6811         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6812         * modules/link-warning (Makefile.am): Make the comment-removing sed
6813         command more robust in the face of bootstrap-prepended comment lines.
6814
6815 2009-12-09  Bruno Haible  <bruno@clisp.org>
6816
6817         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6818         most one group.
6819
6820 2009-12-09  Simon Josefsson <simon@josefsson.org>
6821             Bruno Haible  <bruno@clisp.org>
6822
6823         * build-aux/link-warning.h: Add copyright notice.
6824         * modules/link-warning (Makefile.am): Generate link-warning.h from
6825         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6826         * NEWS: Mention change in link-warning module.
6827         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6828         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6829         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6830         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6831         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6832         * modules/math (Makefile.am): Add dependency to math.h.
6833         * modules/search (Makefile.am): Add dependency to search.h.
6834         * modules/signal (Makefile.am): Add dependency to signal.h.
6835         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6836         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6837         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6838         * modules/string (Makefile.am): Add dependency to string.h.
6839         * modules/strings (Makefile.am): Add dependency to strings.h.
6840         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6841         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6842         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6843         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6844         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6845         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6846         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6847         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6848         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6849
6850 2009-12-09  Bruno Haible  <bruno@clisp.org>
6851
6852         fchdir: Optimize away rpl_fstat when possible.
6853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6854         REPLACE_OPEN_DIRECTORY.
6855         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6856
6857 2009-12-09  Bruno Haible  <bruno@clisp.org>
6858
6859         * lib/fchdir.c: Update comment.
6860
6861 2009-12-09  Bruno Haible  <bruno@clisp.org>
6862
6863         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6864
6865 2009-12-08  Eric Blake  <ebb9@byu.net>
6866
6867         fchdir: avoid memory leak on re-registration.
6868         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6869
6870 2009-12-08  Jim Meyering  <meyering@redhat.com>
6871
6872         init.sh: avoid Solaris 10 /bin/sh portability problem
6873         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6874         sourced script:
6875           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6876           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6877           bar
6878         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6879         and two tests used that idiom.
6880         * tests/init.sh: Update suggested usage comments.
6881         (path_prepend_): New function, to be used in place
6882         of the --src-path=DIR option.
6883         (setup_): Move PATH-prepending code into path_prepend_.
6884         * tests/test-pread.sh: Adapt to new usage.
6885         * tests/test-xalloc-die.sh: Likewise.
6886
6887 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6888
6889         * doc/gnulib.texi (Glibc pty.h): Add.
6890         * doc/glibc-functions/forkpty.texi: Add.
6891         * doc/glibc-functions/openpty.texi: Add.
6892         Suggested by Bruno Haible.
6893
6894 2009-12-08  Eric Blake  <ebb9@byu.net>
6895
6896         fchdir: fix logic bugs
6897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6898         * tests/test-fchdir.c (main): Enhance test.
6899         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6900         is in use.
6901
6902         dup2: fix logic bugs
6903         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6904         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6905         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6906         exists.
6907         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6908
6909 2009-12-07  Eric Blake  <ebb9@byu.net>
6910
6911         unlink: fix m4 detection
6912         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6913
6914         unistd-safer: add unit test
6915         * modules/unistd-safer-tests: New file.
6916         * tests/test-dup-safer.c: Likewise.
6917         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6918         * tests/test-dup2.c (setmode): Likewise.
6919         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6920
6921         cloexec: preserve text vs. binary across dup_cloexec
6922         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6923         mode.
6924         * modules/dup2-tests (Depends-on): Add binary-io.
6925         * modules/cloexec-tests (Depends-on): Likewise.
6926         * tests/test-dup2.c (setmode, is_mode): New helpers.
6927         (main): Add tests that translation mode is preserved.
6928         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6929         Reported by Bruno Haible.
6930
6931         mgetgroups: reduce duplicate listings
6932         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6933         resulting array.
6934         * tests/test-chown.h (test_chown): Simplify client.
6935         * tests/test-lchown.h (test_lchown): Likewise.
6936
6937 2009-12-06  Bruno Haible  <bruno@clisp.org>
6938
6939         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6940         value.
6941
6942 2009-12-06  Bruno Haible  <bruno@clisp.org>
6943
6944         * lib/progname.c: Include stdio.h, stdlib.h.
6945         (set_program_name): Reject a NULL argument.
6946
6947 2009-12-05  Eric Blake  <ebb9@byu.net>
6948
6949         pipe2-safer: new module
6950         * modules/pipe2-safer: New file.
6951         * lib/unistd-safer.h (pipe2_safer): New prototype.
6952         * lib/unistd--.h (pipe2): New wrapper.
6953         * lib/pipe-safer.c (pipe2_safer): New function.
6954         * modules/pipe (Depends-on): Add pipe2-safer.
6955         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6956
6957         stdlib-safer: preserve cloexec flag for mkostemp[s]
6958         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6959         fd_safer_flag.
6960
6961         unistd-safer: allow preservation of cloexec status via flag
6962         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6963         prototypes.
6964         * lib/dup-safer.c (dup_safer_flag): New function.
6965         * lib/fd-safer.c (fd_safer_flag): Likewise.
6966         * modules/cloexec (configure.ac): Set witness.
6967
6968         test-dup2: enhance test
6969         * modules/dup2-tests (Depends-on): Add cloexec.
6970         * tests/test-dup2.c (main): Enhance test.
6971
6972         cloexec: add dup_cloexec
6973         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6974         header and comments.
6975         * lib/cloexec.c (set_cloexec_flag): Add comments.
6976         (dup_cloexec): New function, with mingw implementation borrowed
6977         from...
6978         * lib/w32spawn.h (dup_noinherit): ...here.
6979         * modules/execute (Depends-on): Add cloexec.
6980         * modules/pipe (Depends-on): Likewise.
6981         * modules/cloexec (Depends-on): Add dup2.
6982         * modules/cloexec-tests (Files): New file.
6983         * tests/test-cloexec.c: Likewise.
6984
6985         test-xalloc-die: fix test for mingw
6986         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6987         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6988         directory and .exe suffix off argv[0] output.
6989
6990         test-fseeko: fix test for mingw
6991         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6992         than undefining fseek, so test will pass on mingw.
6993
6994 2009-12-05  Bruno Haible  <bruno@clisp.org>
6995
6996         * lib/progname.h (set_program_name): Clarify specification.
6997         * lib/progname.c (set_program_name): Likewise.
6998         Reported by Jim Meyering.
6999
7000 2009-12-05  Jim Meyering  <meyering@redhat.com>
7001
7002         maint.mk: backslash-escape parens in default regexp
7003         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7004         backslash-escape the literal parentheses.
7005
7006         maint.mk: news-date-check: use grep -E
7007         * top/maint.mk (today): Define a Make variable, not a...
7008         (news-date-check): ...shell variable.
7009         (news-date-regexp): Use the Make variable.
7010         Use grep's -E option.  Change the failing diagnostic to mention
7011         the variable, $(news-date-regexp).
7012
7013 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7014
7015         maintainer-makefile: allow customization of NEWS entry format
7016         * top/maint.mk (news-date-regexp): New overridable variable.
7017         (news-date-check): Use it.
7018
7019 2009-12-04  Eric Blake  <ebb9@byu.net>
7020
7021         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7022         * lib/mgetgroups.h (xgetgroups): New prototype.
7023         * lib/mgetgroups.c (xgetgroups): New wrapper.
7024         (mgetgroups): Handle ENOSYS.
7025         * modules/mgetgroups (Depends-on): Add realloc.
7026         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7027
7028         mgetgroups: avoid argument promotion issues with -1
7029         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7030         for invalid gid_t.
7031         * tests/test-chown.h (getegid, test_chown): Likewise.
7032         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7033
7034 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7035
7036         exclude: Fix header file problems.
7037         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7038
7039 2009-12-01  Jim Meyering  <meyering@redhat.com>
7040
7041         fts: fts_open: do not let an empty string cause immediate failure
7042         This is required in support of GNU rm, for which the command
7043         "rm A '' B" must process and remove both A and B, in spite of
7044         the empty string argument.
7045         * lib/fts.c (fts_open): Do not let the presence of an empty string
7046         cause fts_open to fail immediately.  Most fts-using tools must be
7047         able to process all arguments, in order, and can be expected to
7048         diagnose such arguments themselves.
7049
7050 2009-11-30  Eric Blake  <ebb9@byu.net>
7051
7052         utimens: fix compilation error
7053         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7054         Declare variable at right scope.
7055
7056 2009-11-29  Jim Meyering  <meyering@redhat.com>
7057
7058         bootstrap: handle perl-5.11's changed --version output
7059         * build-aux/bootstrap (get_version): Handle perl separately,
7060         since perl-5.11's --version output is different.
7061
7062 2009-11-28  Jim Meyering  <meyering@redhat.com>
7063
7064         userspec: depend on the inttostr module, too
7065         * modules/userspec (Depends-on): Add inttostr.
7066
7067         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7068         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7069         number of MAXUID when it evaluates to (uid_t) -1.
7070         Likewise for group ID.  Reported by Matt McCutchen in
7071         <http://savannah.gnu.org/bugs/?28113>
7072
7073         userspec: reformat to use spaces, not TABs
7074         * lib/userspec.c: Expand TABs to spaces.
7075         Add Emacs' "indent-tabs-mode: nil" hint.
7076
7077 2009-11-27  Eric Blake  <ebb9@byu.net>
7078
7079         getopt-gnu: flush out another BSD bug
7080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7081         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7082         flush out BSD bug.
7083         * tests/test-getopt.h (test_getopt): End lists with NULL.
7084         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7085         (test_getopt_long_posix): Enhance test.
7086         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7087         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7088         getopt-gnu.
7089         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7090         Likewise.
7091
7092 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7093
7094         * modules/idpriv-droptemp-tests (Notice): Fix text.
7095
7096 2009-11-27  Jim Meyering  <meyering@redhat.com>
7097
7098         test-xalloc-die: avoid spurious failure due to libtool argv difference
7099         In a libtool-enabled project, this test would fail due to a difference
7100         in the emitted program name, e.g.,
7101         -test-xalloc-die: memory exhausted
7102         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7103         Use program to avoid that.
7104         * modules/xalloc-die-tests (Depends-on): Add progname.
7105         * tests/test-xalloc-die.c: Include progname.h".
7106         (program_name): Remove decl.
7107         (main): Call set_program_name.
7108         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7109
7110 2009-11-26  Richard Jones  <rjones@redhat.com>
7111
7112         w32sock: leave win32 error in place.
7113         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7114
7115 2009-11-26  Eric Blake  <ebb9@byu.net>
7116
7117         init.sh: suggest to use skip_ and fail_ functions in comments
7118         * tests/init.sh: Add a sentence.
7119
7120 2009-11-25  Bruno Haible  <bruno@clisp.org>
7121
7122         init.sh: add documentation in comments
7123         * tests/init.sh: Add some developer and user documentation.
7124
7125 2009-11-26  Jim Meyering  <meyering@redhat.com>
7126
7127         init.sh: accommodate even those who specify bogus srcdir manually
7128         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7129         configure-time tests to be sanitized, so that there is no need to
7130         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7131         (with no double quotes) suffices.  However, since tests may be
7132         invoked manually, and since you may explicitly set srcdir to the
7133         name of a directory containing spaces, do quote its uses here.
7134         * tests/test-pread.sh: Likewise.
7135         Suggested by Bruno Haible.
7136
7137         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7138         * tests/test-pread.sh: Write no data into the pipe, because
7139         test-pread actually reads none.  This avoids a diagnostic,
7140         "bash: echo: write error: Broken pipe", that arises in the unusual
7141         event something is ignoring SIGPIPE, and might be interpreted
7142         as some sort of failure.  Reported by Bruno Haible.
7143
7144 2009-11-25  Jim Meyering  <meyering@redhat.com>
7145
7146         test-pread: cover failure with ESPIPE and EINVAL
7147         * tests/test-pread.c (main): Test for failure, too.
7148         * tests/test-pread.sh: Invoke with stdin on a pipe.
7149         Suggested by Eric Blake.
7150
7151         pread: improvement and fix
7152         * modules/pread (Depends-on): Depend on lseek, for portability to
7153         e.g., mingw.  Suggested by Eric Blake.
7154         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7155
7156         unistd.in.h: correct declaration of pread
7157         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7158         Reported by Richard W.M. Jones.
7159
7160         test-pread.sh: distribute the test script
7161         * modules/pread-tests (Files): Include test-pread.sh.
7162
7163         test-pread.sh: clean up
7164         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7165         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7166         That is unnecessary, since it's always ".".
7167         Suggestion from Eric Blake.
7168
7169         test-pread.sh: make executable
7170         * tests/test-pread.sh: Set executable bit.
7171         Reported by Eric Blake.
7172
7173         correct typo in test-pread.sh
7174         * tests/test-pread.sh: Add #! line.
7175
7176         test pread
7177         * tests/test-pread.c: New file.
7178         * tests/test-pread.sh: Likewise.
7179         * modules/pread-tests: Likewise.
7180
7181         pread: new module
7182         * modules/pread: New file.
7183         * lib/unistd.in.h (pread): Define/declare.
7184         * lib/pread.c (pread): New file.
7185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7186         * modules/unistd (Makefile.am): Substitute witnesses.
7187         * doc/posix-functions/pread.texi (pread): Update.
7188         * MODULES.html.sh: Add pread.
7189
7190 2009-11-25  Jim Meyering  <meyering@redhat.com>
7191
7192         tests/init.sh: new file to be used via most *.sh tests
7193         * tests/init.sh: New file.
7194
7195 2009-11-25  Eric Blake  <ebb9@byu.net>
7196
7197         utimens: work around older Linux failure with symlinks
7198         * lib/utimens.c (lutimensat_works_really): New variable.
7199         (fdutimens, lutimens): Use it to manage kernels that support
7200         nanosecond times on files, but not on symlinks.
7201         Reported by OndÅ™ej Vašík.
7202
7203         utimes: fix configure grammar
7204         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7205
7206 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7207
7208         regex: Fix fastmap for multibyte character ranges.
7209         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7210         characters when a multibyte character range is included.
7211
7212 2009-11-22  Andy Wingo  <wingo@pobox.com>
7213
7214         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7215         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7216
7217 2009-11-24  Bruno Haible  <bruno@clisp.org>
7218
7219         doc: Most *_l functions exist in MacOS X 10.5.
7220         * doc/posix-functions/duplocale.texi: Update platforms list.
7221         * doc/posix-functions/freelocale.texi: Likewise.
7222         * doc/posix-functions/newlocale.texi: Likewise.
7223         * doc/posix-functions/uselocale.texi: Likewise.
7224         * doc/posix-functions/isalnum_l.texi: Likewise.
7225         * doc/posix-functions/isalpha_l.texi: Likewise.
7226         * doc/posix-functions/isblank_l.texi: Likewise.
7227         * doc/posix-functions/iscntrl_l.texi: Likewise.
7228         * doc/posix-functions/isdigit_l.texi: Likewise.
7229         * doc/posix-functions/isgraph_l.texi: Likewise.
7230         * doc/posix-functions/islower_l.texi: Likewise.
7231         * doc/posix-functions/isprint_l.texi: Likewise.
7232         * doc/posix-functions/ispunct_l.texi: Likewise.
7233         * doc/posix-functions/isspace_l.texi: Likewise.
7234         * doc/posix-functions/isupper_l.texi: Likewise.
7235         * doc/posix-functions/iswalnum_l.texi: Likewise.
7236         * doc/posix-functions/iswalpha_l.texi: Likewise.
7237         * doc/posix-functions/iswblank_l.texi: Likewise.
7238         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7239         * doc/posix-functions/iswctype_l.texi: Likewise.
7240         * doc/posix-functions/iswdigit_l.texi: Likewise.
7241         * doc/posix-functions/iswgraph_l.texi: Likewise.
7242         * doc/posix-functions/iswlower_l.texi: Likewise.
7243         * doc/posix-functions/iswprint_l.texi: Likewise.
7244         * doc/posix-functions/iswpunct_l.texi: Likewise.
7245         * doc/posix-functions/iswspace_l.texi: Likewise.
7246         * doc/posix-functions/iswupper_l.texi: Likewise.
7247         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7248         * doc/posix-functions/isxdigit_l.texi: Likewise.
7249         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7250         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7251         * doc/posix-functions/strcoll_l.texi: Likewise.
7252         * doc/posix-functions/strfmon_l.texi: Likewise.
7253         * doc/posix-functions/strftime_l.texi: Likewise.
7254         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7255         * doc/posix-functions/strxfrm_l.texi: Likewise.
7256         * doc/posix-functions/tolower_l.texi: Likewise.
7257         * doc/posix-functions/toupper_l.texi: Likewise.
7258         * doc/posix-functions/towctrans_l.texi: Likewise.
7259         * doc/posix-functions/towlower_l.texi: Likewise.
7260         * doc/posix-functions/towupper_l.texi: Likewise.
7261         * doc/posix-functions/wcscoll_l.texi: Likewise.
7262         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7263         * doc/posix-functions/wctrans_l.texi: Likewise.
7264         * doc/posix-functions/wctype_l.texi: Likewise.
7265         * doc/glibc-functions/strptime_l.texi: Likewise.
7266         * doc/glibc-functions/strtod_l.texi: Likewise.
7267         * doc/glibc-functions/strtof_l.texi: Likewise.
7268         * doc/glibc-functions/strtol_l.texi: Likewise.
7269         * doc/glibc-functions/strtold_l.texi: Likewise.
7270         * doc/glibc-functions/strtoll_l.texi: Likewise.
7271         * doc/glibc-functions/strtoul_l.texi: Likewise.
7272         * doc/glibc-functions/strtoull_l.texi: Likewise.
7273         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7274         * doc/glibc-functions/wcstod_l.texi: Likewise.
7275         * doc/glibc-functions/wcstof_l.texi: Likewise.
7276         * doc/glibc-functions/wcstol_l.texi: Likewise.
7277         * doc/glibc-functions/wcstold_l.texi: Likewise.
7278         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7279         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7280         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7281
7282 2009-11-24  Bruno Haible  <bruno@clisp.org>
7283
7284         duplocale: Fix logic bug.
7285         * lib/duplocale.c: Don't include <langinfo.h>.
7286         (_NL_LOCALE_NAME): Remove macro.
7287         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7288         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7289
7290 2009-11-23  Jim Meyering  <meyering@redhat.com>
7291
7292         test-update-copyright: don't hard-code /usr/bin/perl
7293         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7294         perl to print the current year.  Gilles Espinasse reported that
7295         the replaced use of perl was hard-coded as /usr/bin/perl.
7296
7297 2009-11-23  Bruno Haible  <bruno@clisp.org>
7298
7299         duplocale: Add support for glibc 2.3.x.
7300         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7301
7302 2009-11-22  Bruno Haible  <bruno@clisp.org>
7303
7304         vasnprintf: Tiny optimization.
7305         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7306         MacOS X.
7307
7308 2009-11-22  Bruno Haible  <bruno@clisp.org>
7309
7310         Tests for module 'duplocale'.
7311         * modules/duplocale-tests: New file.
7312         * tests/test-duplocale.c: New file.
7313
7314         New module 'duplocale'.
7315         * m4/duplocale.m4: New file.
7316         * lib/locale.in.h (duplocale): New declaration.
7317         * lib/duplocale.c: New file.
7318         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7319         gl_LOCALE_H_DEFAULTS): New macros.
7320         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7321         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7322         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7323         REPLACE_DUPLOCALE.
7324         * modules/duplocale: New file.
7325         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7326
7327 2009-11-22  Bruno Haible  <bruno@clisp.org>
7328
7329         * modules/locale-tests (configure.ac): Test for newlocale function.
7330         * tests/test-locale.c: When the system has extended locale functions,
7331         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7332
7333         locale: Make locale_t available when possible.
7334         * lib/locale.in.h: Include <xlocale.h> when it exists.
7335         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7336         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7337         * modules/locale (Depends-on): Add extensions.
7338         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7339         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7340
7341 2009-11-22  Bruno Haible  <bruno@clisp.org>
7342
7343         Add comments.
7344         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7345         invocation.
7346         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7347         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7348         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7349
7350 2009-11-22  Bruno Haible  <bruno@clisp.org>
7351
7352         error: account for the possibility of freopen (stdout).
7353         * lib/error.c: Include <unistd.h>.
7354         (flush_stdout): New function, extracted from error and error_at_line.
7355         Determine stdout's fd dynamically.
7356         (error, error_at_line): Invoke flush_stdout.
7357         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7358         * modules/error (Depends-on): Add unistd.
7359
7360 2009-11-22  Bruno Haible  <bruno@clisp.org>
7361
7362         diffseq: Add comment.
7363         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7364
7365 2009-11-22  Jim Meyering  <meyering@redhat.com>
7366
7367         c-stack: avoid defining an unused static function
7368         * lib/c-stack.c (find_stack_direction): Do not define this function
7369         when it will not be used.
7370
7371         diffseq: avoid spurious gcc warnings
7372         * lib/diffseq.h (IF_LINT2): Define.
7373         (compareseq): Use it to initialize two members of "part".
7374         This avoids two used-uninitialized warnings.
7375
7376 2009-11-21  Jim Meyering  <meyering@redhat.com>
7377
7378         c-stack: avoid "ignoring return value of `write'" warning
7379         * lib/c-stack.c: Include "ignore-value.h".
7380         (die): Explicitly ignore each write return value.
7381         * modules/c-stack (Depends-on): Add ignore-value.
7382
7383 2009-11-21  Bruno Haible  <bruno@clisp.org>
7384
7385         diffseq: reduce scope of variable 'best'.
7386         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7387         variable, earlier used for two different purposes.
7388
7389 2009-11-21  Jim Meyering  <meyering@redhat.com>
7390
7391         diffseq: remove useless assignment to "best"
7392         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7393         assignment.  At that point "best" is already guaranteed to be zero.
7394
7395 2009-11-20  Eric Blake  <ebb9@byu.net>
7396
7397         build: mention ftp redirector in release announcements
7398         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7399         values that used to come from cfg.mk; mention FTP redirect URL.
7400         * build-aux/announce-gen: Mention the mirror list.
7401         Suggested by Karl Berry.
7402
7403         nanosleep: improve port to mingw
7404         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7406         LIB_NANOSLEEP, but only when needed.
7407         * modules/select (Link): Document LIBSOCKET.
7408         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7409         enough.
7410
7411         nanosleep: work around cygwin bug
7412         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7413         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7414         bug.
7415         (getnow): Delete, not needed.
7416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7417         LIB_CLOCK_GETTIME.
7418         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7419         clock-time, gettime.
7420         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7421         bug.
7422         * modules/nanosleep-tests: New test.
7423         * tests/test-nanosleep.c: New file.
7424
7425         sleep: work around cygwin bug
7426         * lib/sleep.c (rpl_sleep): Work around the bug.
7427         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7428         (gl_PREREQ_SLEEP): Delete unused macro.
7429         * modules/sleep (Depends-on): Add verify.
7430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7431         * modules/unistd (Makefile.am): Substitute witness.
7432         * lib/unistd.in.h (sleep): Update prototype.
7433         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7434         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7435         * modules/sleep-tests (Depends-on): Check for alarm.
7436
7437 2009-11-20  Jim Meyering  <meyering@redhat.com>
7438
7439         maint.mk: improve sc_prohibit_magic_number_exit
7440         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7441         so it does not match uses like System.exit(1).
7442         Add comments showing how to correct all offenders.
7443
7444 2009-11-19  Eric Blake  <ebb9@byu.net>
7445
7446         xalloc-die-tests: add missing library
7447         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7448
7449         test-xvasprintf: silence compiler warnings
7450         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7451         empty string from gcc.
7452
7453 2009-11-19  Jim Meyering  <meyering@redhat.com>
7454
7455         xfreopen: new module, from coreutils
7456         * modules/xfreopen: New module.
7457         * lib/xfreopen.c: New file.
7458         * lib/xfreopen.h: New file.
7459         * MODULES.html.sh (File stream based Input/Output"): Add it.
7460
7461 2009-11-19  Eric Blake  <ebb9@byu.net>
7462
7463         manywarnings: depend on warnings
7464         * modules/manywarnings (Depends-on): Add warnings.
7465
7466         build: avoid compiler warnings
7467         * lib/select.c (rpl_select): Delete unused variable.
7468         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7469
7470 2009-11-18  Eric Blake  <ebb9@byu.net>
7471
7472         tests: avoid false negative with --with-packager
7473         * tests/test-version-etc.sh: Discard packager information.
7474         * tests/test-argp-version-etc-1.sh: Likewise.
7475         Reported by Mike Frysinger.
7476
7477         utimens: fix regression on Solaris
7478         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7479         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7480         can only change fd timestamps via futimesat.  Instead, use an
7481         additional witness macro to avoid BSD bug.
7482         Reported by Jim Meyering.
7483
7484 2009-11-17  Eric Blake  <ebb9@byu.net>
7485
7486         usleep: use it to simplify tests
7487         * modules/stat-time-tests (Depends-on): Add usleep.
7488         (configure.ac): Drop usleep check.
7489         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7490         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7491         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7492         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7493         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7494         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7495         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7496         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7497         Likewise.
7498         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7499         * tests/test-lchown.h (nap): Likewise.
7500         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7501         * tests/test-stat-time.c (nap): Likewise.
7502         * tests/test-utimens-common.h (nap): Update comments.
7503
7504         usleep: new module
7505         * modules/usleep: New file.
7506         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7507         * lib/usleep.c (usleep): Likewise.
7508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7509         * modules/unistd (Makefile.am): Substitute witnesses.
7510         * lib/unistd.in.h (usleep): Add declaration.
7511         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7512         * MODULES.html.sh (Date and time): Likewise.
7513         * modules/usleep-tests (Depends-on): New test.
7514         * tests/test-usleep.c: New file.
7515
7516         chown: work around OpenBSD bug
7517         * lib/chown.c (rpl_chown): Work around the bug.
7518         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7519         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7520         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7521         * modules/chown (Depends-on): Add stdbool.
7522         * modules/lchown (Depends-on): Likewise.
7523         * doc/posix-functions/chown.texi (chown): Document the bug.
7524         * doc/posix-functions/lchown.texi (lchown): Likewise.
7525         * tests/test-lchown.h (test_chown): Relax test.
7526
7527         mkstemp: avoid conflict with C++ keyword template
7528         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7529         * lib/mkostemp.c (mkostemp): Likewise.
7530         * lib/mkostemps.c (mkostemps): Likewise.
7531         * lib/mkstemp.c (mkstemp): Likewise.
7532         * lib/mkstemps.c (mkstemps): Likewise.
7533
7534         xalloc-die-tests: optimize
7535         * tests/test-xalloc-die.sh: Reduce number of processes.
7536
7537 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7538
7539         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7540         patch from ludo@gnu.org (Ludovic Courtès).
7541
7542 2009-11-17  Jim Meyering  <meyering@redhat.com>
7543
7544         version-etc: use proper license string
7545         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7546         * modules/version-etc-fsf: Likewise.
7547
7548 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7549
7550         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7551         printed to stdout.  Deal with EOL differences.
7552
7553 2009-11-17  Eric Blake  <ebb9@byu.net>
7554
7555         unsetenv: work around Solaris bug
7556         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7557         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7558         Reported by Jim Meyering.
7559
7560         vasnprintf: avoid compiler warnings
7561         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7562         variables.
7563         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7564
7565 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7566
7567         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7568         settings since xalloc-die is no longer the self test,
7569         xalloc-die.sh is.
7570
7571 2009-11-17  Jim Meyering  <meyering@redhat.com>
7572
7573         test-xalloc-die.sh: make the code agree with the commit log
7574         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7575         at the end, just in case you happen to have a test-xalloc-die
7576         program in some other PATH directory.
7577
7578         test-xalloc-die.sh: fix a portability bug
7579         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7580         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7581         Otherwise, argv[0] (as often seen in diagnostics) would be too
7582         system-dependent, sometimes with, and sometimes without the leading "./".
7583
7584         version-etc-fsf: relax license to LGPLv3+
7585         * modules/version-etc-fsf (License): Relax license.
7586
7587 2009-11-16  Eric Blake  <ebb9@byu.net>
7588
7589         xalloc-die-tests: avoid printing null pointer
7590         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7591         shell script.
7592         * tests/test-xalloc-die.c (program_name): Declare.
7593         * tests/test-xalloc-die.sh (tmpfiles): New file.
7594
7595         setenv, unsetenv: work around various bugs
7596         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7597         (setenv) [HAVE_SETENV]: Work around bugs.
7598         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7599         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7600         for bugs.
7601         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7602         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7604         * modules/stdlib (Makefile.am): Update substitutions.
7605         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7606         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7607         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7608         * modules/setenv-tests: New test.
7609         * modules/unsetenv-tests: Likewise.
7610         * tests/test-setenv.c: New file.
7611         * tests/test-unsetenv.c: Likewise.
7612
7613 2009-11-16  Jim Meyering  <meyering@redhat.com>
7614
7615         version-etc: relax license to LGPLv3+
7616         * modules/version-etc (License): Relax license.
7617
7618         better AC_REQUIRE expanded-before-required-warning avoidance
7619         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7620         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7621         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7622         which is no longer needed.
7623
7624 2009-11-16  Eric Blake  <ebb9@byu.net>
7625
7626         test-freading: clean up temporary file
7627         * tests/test-freading.c (main): Remove file on success, and use
7628         ASSERT more liberally.
7629         Reported by Jim Meyering.
7630
7631 2009-11-16  Jim Meyering  <meyering@redhat.com>
7632
7633         avoid new AC_REQUIRE expanded-before-required warnings
7634         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7635         merely using it.
7636         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7637         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7638
7639 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7640
7641         * tests/test-xalloc-die.c: New file.
7642         * modules/xalloc-die-tests: New file.
7643         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7644         XFAIL_TESTS so it can be appended by modules.
7645
7646 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7647
7648         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7649         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7650
7651 2009-11-14  Eric Blake  <ebb9@byu.net>
7652
7653         fnmatch: avoid compiler warning
7654         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7655         to silence compiler warning about mismatch signedness in ?:.
7656         Reported by Robert Millan.
7657
7658         intprops: add double-inclusion guard
7659         * lib/intprops.h: Allow idempotent includes.
7660         Suggested by Bruce Korb.
7661
7662         openat: detect Solaris fchownat bug
7663         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7664         penalizing glibc chownat when only lchownat is broken.
7665         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7666         trailing slash bugs.
7667         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7668         * modules/openat-tests (Files): Include more files.
7669         (Depends-on): Add mgetgroups, sleep, stat-time.
7670         (configure.ac): Add additional checks.
7671         (Makefile.am): Build new test.
7672         * tests/test-fchownat.c: New file.
7673
7674         lchown: detect Solaris and FreeBSD bug
7675         * lib/lchown.c (rpl_lchown): Work around bug.
7676         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7678         * modules/unistd (Makefile.am): Populate it.
7679         * lib/unistd.in.h (lchown): Update declaration.
7680         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7681         * modules/lchown-tests: New file.
7682         * tests/test-lchown.h (test_lchown): Likewise.
7683         * tests/test-lchown.c (main): Likewise.
7684
7685         chown: detect Solaris and FreeBSD bug
7686         * lib/chown.c (rpl_chown): Work around bug.
7687         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7688         (gl_PREREQ_CHOWN): Delete.
7689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7690         * modules/unistd (Makefile.am): Populate it.
7691         * lib/unistd.in.h (chown): Update declaration.
7692         * lib/lchown.c (chown): Update client.
7693         * modules/lchown (Depends-on): Add lstat.
7694         * doc/posix-functions/chown.texi (chown): Document the bug.
7695         * doc/posix-functions/getgroups.texi (getgroups): Document
7696         getgroups pitfall.
7697         * modules/chown-tests: New file.
7698         * tests/test-chown.h (test_chown): Likewise.
7699         * tests/test-chown.c (main): Likewise.
7700
7701 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7702
7703         gnulib-tool: correctly detect absence of m4 directories
7704         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7705
7706 2009-11-14  Jim Meyering  <meyering@redhat.com>
7707
7708         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7709         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7710
7711 2009-11-14  John W. Eaton  <jwe@gnu.org>
7712
7713         strftime.h: wrap funtion declaration in extern "C" block
7714         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7715
7716 2009-11-13  Eric Blake  <ebb9@byu.net>
7717
7718         getgroups: avoid compiler warning
7719         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7720
7721         getgroups: work around FreeBSD bug
7722         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7723         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7724         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7725         * tests/test-getgroups.c (main): Fix buffer overrun.
7726
7727         getgroups: avoid compilation failure
7728         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7729         * modules/getgroups (Depends-on): Add stdint.
7730
7731 2009-11-13  Jim Meyering  <meyering@redhat.com>
7732
7733         test-getgroups: avoid compilation failure
7734         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7735
7736 2009-11-13  Eric Blake  <ebb9@byu.net>
7737
7738         mgetgroups: new module, taken from coreutils
7739         * modules/mgetgroups: New file.
7740         * lib/mgetgroups.h: Likewise.
7741         * lib/mgetgroups.c (mgetgroups): Likewise.
7742         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7743         * MODULES.html.sh (Users and groups): Mention it.
7744
7745         getgroups: don't expose GETGROUPS_T to user
7746         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7747         an element at a time if GETGROUPS_T is wrong size.
7748         * lib/getugroups.h (getugroups): Change signature.
7749         * lib/unistd.in.h (getgroups): Likewise.
7750         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7751         signature needs fixing.
7752         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7753         AC_TYPE_GETGROUPS.
7754         * modules/group-member (Depends-on): Add getgroups.
7755         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7756         (group_member): Rely on getgroups replacement.
7757         * lib/getugroups.c (getugroups): Use gid_t.
7758         * tests/test-getgroups.c (main): Likewise.
7759         * NEWS: Mention the signature change.
7760         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7761         problem with signature.
7762         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7763         GETGROUPS_T is still useful for setgroups.
7764
7765         getgroups, getugroups: provide stubs for mingw
7766         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7767         * lib/getugroups.c (getugroups): Likewise.
7768         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7769         function.  Modernize replacement scheme.
7770         (gl_PREREQ_GETGROUPS): Delete.
7771         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7772         * modules/getgroups (configure.ac): Declare witness.
7773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7774         * modules/unistd (Depends-on): Substitute witness.
7775         * lib/unistd.in.h (getgroups): Declare replacement.
7776
7777         getgroups: avoid calling exit
7778         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7779         drop xalloc.
7780         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7781         dependencies.
7782         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7783         exiting, in the rare case of malloc failure.
7784
7785         getgroups: fix logic error
7786         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7787         has more than 20 groups.
7788         * modules/getgroups-tests: New test.
7789         * tests/test-getgroups.c: New file.
7790
7791 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7792
7793         * tests/test-base64.c: Improve.
7794
7795 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7796
7797         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7798         Blake <ebb9@byu.net>.
7799
7800 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7801
7802         * tests/test-xvasprintf.c: Add %s%s related checks.
7803
7804 2009-11-12  Eric Blake  <ebb9@byu.net>
7805
7806         version-etc: match standards.texi style
7807         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7808         and use <> only for URLs.
7809
7810 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7811
7812         fts: do not fail on a submount during traversal
7813         * lib/fts.c (fts_build): Read the stat info again after opening
7814         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7815         Original report at http://bugzilla.redhat.com/501848.
7816
7817 2009-11-12  Jim Meyering  <meyering@redhat.com>
7818
7819         bootstrap: sync from coreutils
7820         * build-aux/bootstrap (bootstrap_epilogue): New function.
7821         Use git_modules_config in one more place.  This make bootstrap's
7822         --gnulib-srcdir option more useful for testing.
7823
7824         bootstrap: generalize autoheader check
7825         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7826         AC_CONFIG_HEADERS.
7827
7828 2009-11-11  Eric Blake  <ebb9@byu.net>
7829
7830         mkfifoat: use new modules for Solaris and BSD bugs
7831         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7832         * lib/mkfifoat.c (mknodat): Split...
7833         * lib/mknodat.c (mknodat): ...into new file.
7834         * modules/mkfifoat (Files): Ship new file.
7835         (Depends-on): Add mkfifo, mknod.
7836         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7837         (Depends-on): Add symlink.
7838         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7839         redundant with test_mkfifo.h.
7840         (do_mkfifoat, do_mknodat): New helpers.
7841
7842         mknod: new module
7843         * modules/mknod: New file.
7844         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7845         * lib/mknod.c (mknod): Likewise.
7846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7847         defaults.
7848         * modules/sys_stat (Makefile.am): Substitute them.
7849         * lib/sys_stat.in.h (mknod): Declare replacement.
7850         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7851         Document it.
7852         * doc/posix-functions/mknod.texi (mknod): Likewise.
7853         * modules/mknod-tests: New test.
7854         * tests/test-mknod.c: Likewise.
7855
7856         mkfifo: new module
7857         * modules/mkfifo: New file.
7858         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7859         * lib/mkfifo.c (mkfifo): Likewise.
7860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7861         defaults.
7862         * modules/sys_stat (Makefile.am): Substitute them.
7863         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7864         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7865         Document it.
7866         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7867         * modules/mkfifo-tests: New test.
7868         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7869         from test-mkfifoat.c.
7870         * tests/test-mkfifo.c: New file.
7871
7872         readlink: detect FreeBSD bug
7873         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7874         slash on symlink.
7875         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7876         * tests/test-readlink.h (test_readlink): Enhance test.
7877
7878         symlink: detect FreeBSD bug
7879         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7880         slash on symlink.
7881         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7882         * tests/test-symlink.h (test_symlink): Enhance test.
7883
7884 2009-11-10  Eric Blake  <ebb9@byu.net>
7885
7886         link: detect FreeBSD bug
7887         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7888         symlink.
7889         * doc/posix-functions/link.texi (link): Document the bug.
7890         * tests/test-link.h (test_link): Enhance test.
7891         * tests/test-linkat.c (main): Update caller.
7892
7893         unlink, remove: detect FreeBSD bug
7894         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7895         slash on symlink.
7896         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7897         * doc/posix-functions/remove.texi (remove): Likewise.
7898         * tests/test-unlink.h (test_unlink): Enhance test.
7899         * tests/test-remove.c (main): Likewise.
7900
7901 2009-11-09  Eric Blake  <ebb9@byu.net>
7902
7903         rename: detect FreeBSD bug
7904         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7905         slash on symlink.
7906         * modules/renameat-tests (Depends-on): Add filenamecat.
7907         * tests/test-rename.h (test_rename): Allow one more errno.
7908         * tests/test-renameat.c (main): Likewise.
7909         * doc/posix-functions/rename.texi (rename): Document the bug.
7910
7911         open: detect FreeBSD bug
7912         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7913         symlink.
7914         * doc/posix-functions/open.texi (open): Document the bug.
7915         * doc/posix-functions/utimes.texi (utimes): Likewise.
7916         * tests/test-open.h (test_open): Add parameters, and test symlink
7917         handling.
7918         * tests/test-open.c (main): Adjust caller.
7919         * tests/test-fcntl-safer.c (main): Likewise.
7920         * modules/open-tests (Depends-on): Add stdbool, symlink.
7921         * modules/fcntl-safer-tests (Depends-on): Likewise.
7922         * tests/test-openat.c (main): Add test-open tests.
7923
7924         stat: detect FreeBSD bug
7925         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7926         symlink.
7927         * doc/posix-functions/stat.texi (stat): Document the bug.
7928         * tests/test-stat.h (test_stat_func): Add argument.
7929         * tests/test-stat.c (main): Adjust caller.
7930         * tests/test-fstatat.c (main): Likewise.
7931         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7932         Reported by Jim Meyering.
7933
7934 2009-11-09  James Youngman  <jay@gnu.org>
7935
7936         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7937         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7938
7939 2009-11-08  Jim Meyering  <meyering@redhat.com>
7940
7941         utimens: remove invalid futimesat call
7942         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7943         It used the file descriptor of the target file as the DIR_FD
7944         parameter and NULL as the file name.  That caused failure with
7945         errno == EFAULT on FreeBSD-8.0-rc2
7946
7947 2009-11-07  Eric Blake  <ebb9@byu.net>
7948
7949         fflush, freadseek: use fseeko, not fseek
7950         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7951         (clear_ungetc_buffer): Avoid potential problems on large files.
7952         * lib/freadseek.c (freadseek): Likewise.
7953         * modules/freadseek (Depends-on): Add fseeko.
7954         * modules/fseek (configure.ac): Set a witness.
7955         * tests/test-fflush.c (main): Use fseeko.
7956         * tests/test-fpurge.c (fseek): Disable link warning.
7957         * tests/test-freadable.c (fseek): Likewise.
7958         * tests/test-freading.c (fseek): Likewise.
7959         * tests/test-fseeko.c (fseek): Likewise.
7960         * tests/test-ftell.c (fseek): Likewise.
7961         * tests/test-ftello.c (fseek): Likewise.
7962         * tests/test-fwritable.c (fseek): Likewise.
7963         * tests/test-fwriting.c (fseek): Likewise.
7964
7965 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7966
7967         * modules/memchr (Depends-on): Drop getpagesize dependency.
7968
7969 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7970
7971         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7972         Reported by Ludovic Courtès.
7973         * build-aux/pmccabe2html: Improve example usage.
7974         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7975
7976 2009-11-06  Jim Meyering  <meyering@redhat.com>
7977
7978         do-release-commit-and-tag: New module.
7979         Automate the release-commit and tag process.
7980         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7981         * modules/do-release-commit-and-tag: New file.
7982         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7983
7984 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7985
7986         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7987         because test-select.c uses inet_pton.
7988
7989 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7990
7991         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7992         GETADDRINFO_LIB.  Bump serial number.
7993         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7994         Suggested by Eric Blake <ebb9@byu.net>.
7995
7996 2009-11-05  Eric Blake  <ebb9@byu.net>
7997
7998         strtod: detect darwin bug
7999         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8000         Reported by Leo Davis.
8001
8002         freopen-safer: new module
8003         * modules/freopen-safer: New module.
8004         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8005         * lib/freopen-safer.c (freopen_safer): New file.
8006         * lib/stdio-safer.h (freopen_safer): New declaration.
8007         * lib/stdio--.h (freopen): New override.
8008         * MODULES.html.sh (File stream based Input/Output): Mention it.
8009         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8010         freopen-safer module.
8011         * doc/posix-functions/stderr.texi (stderr): Likewise.
8012         * doc/posix-functions/stdin.texi (stdin): Likewise.
8013         * doc/posix-functions/stdout.texi (stdout): Likewise.
8014         * modules/freopen-safer-tests: New test.
8015         * tests/test-reopen-safer.c: New file.
8016
8017 2009-11-05  Jim Meyering  <meyering@redhat.com>
8018
8019         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8020         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8021
8022 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8023
8024         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8025
8026 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8027
8028         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8029
8030 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8031
8032         Fix link error.
8033         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8034         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8035
8036 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8037
8038         * tests/test-func.c: Also test value of __func__.
8039
8040 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8041
8042         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8043         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8044
8045 2009-11-05  Bruno Haible  <bruno@clisp.org>
8046
8047         Fix link error.
8048         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8049         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8050         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8051
8052 2009-11-05  Bruno Haible  <bruno@clisp.org>
8053
8054         Tests for module 'inet_pton'.
8055         * modules/inet_pton-tests: New file.
8056         * tests/test-inet_pton.c: New file.
8057
8058 2009-11-05  Bruno Haible  <bruno@clisp.org>
8059
8060         Tests for module 'inet_ntop'.
8061         * modules/inet_ntop-tests: New file.
8062         * tests/test-inet_ntop.c: New file.
8063
8064 2009-11-04  Eric Blake  <ebb9@byu.net>
8065
8066         stdlib-safer: wrap all mkstemp variants
8067         * modules/mkostemp (configure.ac): Set witness.
8068         * modules/mkostemps (configure.ac): Likewise.
8069         * modules/mkstemps (configure.ac): Likewise.
8070         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8071         (mkstemps_safer): Wrap more functions.
8072         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8073         wrapping.
8074         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8075         (mkstemps_safer): Implement the wrappers.
8076
8077         mkstemps, mkostemps: new modules
8078         * modules/mkostemps: New module.
8079         * modules/mkstemps: Likewise.
8080         * lib/mkostemps.c (mkostemps): New file.
8081         * lib/mkstemps.c (mkstemps): Likewise.
8082         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8083         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8085         * modules/stdlib (Makefile.am): Substitute them.
8086         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8087         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8088         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8089         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8090         * MODULES.html.sh (File system functions): Mention them.
8091
8092         tempname: resync from glibc
8093         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8094         same values for __GT_FILE as glibc.  Abort even when assertions
8095         are disabled.
8096         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8097         match its value otherwise.  Allow idempotent inclusion.
8098         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8099         * lib/mkostemp.c (mkostemp): Likewise.
8100         * lib/mkstemp.c (mkstemp): Likewise.
8101         * lib/tmpfile.c (tmpfile): Likewise.
8102         * NEWS: Document this.
8103
8104         utimens: fix use of futimens on older Linux
8105         * lib/utimens.c (fdutimens): Use updated, rather than original,
8106         timespec to avoid bug in older Linux kernel.
8107         Reported by Simon Josefsson.
8108
8109 2009-11-04  Bruno Haible  <bruno@clisp.org>
8110
8111         Make num_processors more flexible and consistent.
8112         * lib/nproc.h (enum nproc_query): New type.
8113         (num_processors): Add a 'query' argument.
8114         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8115         (num_processors): Add a 'query' argument. Test the value of the
8116         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8117         mingw, count the number of CPUs available for the current process.
8118         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8119         Check for sched_getaffinity and sched_getaffinity_np.
8120         * modules/nproc (Depends-on): Add c-ctype, extensions.
8121         * NEWS: Mention the change.
8122
8123 2009-11-03  Bruno Haible  <bruno@clisp.org>
8124
8125         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8126
8127 2009-11-03  Jim Meyering  <meyering@redhat.com>
8128
8129         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8130         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8131         if it is defined.
8132
8133 2009-11-02  Eric Blake  <ebb9@byu.net>
8134
8135         mktime, timegm: share common declaration
8136         * lib/mktime-internal.h: New file.
8137         * lib/mktime.c: Use it rather than open-coding a declaration.
8138         * lib/timegm.c: Likewise.
8139         * modules/mktime (Files): Ship it.
8140         * modules/timegm (Files): Likewise.
8141         Suggested by Bruno Haible.
8142
8143         test-update-copyright: update test to match script changes
8144         * tests/test-update-copyright.sh: Avoid hard-coding perl
8145         location.  Don't update *.bak created by earlier runs.
8146
8147 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8148             Simon Josefsson  <simon@josefsson.org>
8149             Bruno Haible  <bruno@clisp.org>
8150
8151         Fix link error on Solaris 8.
8152         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8153         also in libnsl. Define also INET_PTON_LIB.
8154         * modules/inet_pton (Link): New section.
8155
8156 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8157             Bruno Haible  <bruno@clisp.org>
8158
8159         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8160         * modules/inet_ntop (Link): New section.
8161         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8162
8163 2009-11-02  Eric Blake  <ebb9@byu.net>
8164
8165         maint: avoid compiler warnings in m4 macros
8166         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8167         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8168
8169 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8170
8171         * m4/pmccabe2html.m4: Remove file.
8172         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8173         function.  Change maintainer.
8174         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8175         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8176         Courtès).
8177
8178 2009-10-31  Eric Blake  <ebb9@byu.net>
8179
8180         fseeko: fix m4 regression
8181         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8182         regression from 2009-10-27.
8183         Reported by Ralf Wildenhues.
8184
8185 2009-10-31  Jim Meyering  <meyering@redhat.com>
8186
8187         inttostr: aesthetics and improved (compile-time) safety
8188         Define inttype_is_signed rather than inttype_is_unsigned,
8189         since the sole use is via "#if inttype_is_signed".
8190         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8191         inttype_is_unsigned.
8192         * lib/offtostr.c (inttype_is_signed): Likewise.
8193         * lib/uinttostr.c (inttype_is_signed): Likewise.
8194         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8195         * lib/inttostr.c (inttostr): Use verify to cross-check the
8196         inttype_is_signed value and the signedness of the actual type.
8197         * modules/inttostr (Depends-on): Add verify.
8198
8199 2009-10-30  Eric Blake  <ebb9@byu.net>
8200
8201         build: avoid compiler warnings
8202         * lib/fchmodat.c (lchmod): Mark unused variables.
8203         * lib/getopt.c (_getopt_initialize): Likewise.
8204         * lib/mktime.c (__mktime_internal): Provide prototype.
8205         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8206         older gcc that do not understand #pragma GCC diagnostic.
8207         * lib/uinttostr.c (inttype_is_unsigned): Define.
8208         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8209
8210 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8211
8212         stat: fix compilation on AIX
8213         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8214         only see struct stat64.
8215
8216 2009-10-30  Eric Blake  <ebb9@byu.net>
8217
8218         exclude: make more robust
8219         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8220         rather than masking a coding bug.
8221         Suggested by Bruno Haible.
8222
8223 2009-10-30  Jim Meyering  <meyering@redhat.com>
8224
8225         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8226         Rather than putting #!/usr/bin/perl on the first line,
8227         start with a variant of what's recommended by "man perlrun" that
8228         invokes the first "perl" program from your shell's search path.
8229         * build-aux/gitlog-to-changelog: Replace #!... as above.
8230         Add a "Local Variables" perl mode setting.
8231         Prompted by a patch from Ludovic Courtès.
8232         Improved by Eric Blake.
8233         * build-aux/useless-if-before-free: Likewise.
8234         * build-aux/announce-gen: Likewise.
8235         * build-aux/update-copyright: Likewise.
8236
8237 2009-10-29  Eric Blake  <ebb9@byu.net>
8238
8239         filenamecat-lgpl: adjust clients
8240         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8241         filenamecat.
8242         * modules/renameat (Depends-on): Likewise.
8243
8244         filenamecat: split into filenamecat-lgpl
8245         * modules/filenamecat-lgpl: New module.
8246         * modules/filenamecat (Files): Move library-safe files into
8247         filenamecat-lgpl.
8248         (Depends-on): Add filenamecat-lgpl.
8249         (configure.ac): Declare witness.
8250         * lib/filenamecat.h (file_name_concat): Only declare when using
8251         GPL module.
8252         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8253         Move...
8254         * lib/filenamecat-lgpl.c: ...into new file.
8255         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8256         (gl_FILE_NAME_CONCAT): Use it.
8257         * MODULES.html.sh (File system functions): Mention new module.
8258
8259         argp: avoid memory leak
8260         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8261         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8262         base_name, since the latter malloc()s and can call exit().
8263         Leak introduced 2006-07-03.
8264
8265         dirname-lgpl: adjust clients that don't need full dirname
8266         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8267         * modules/filenamecat (Depends-on): Likewise.
8268         * modules/linkat (Depends-on): Likewise.
8269         * modules/mkancesdirs (Depends-on): Likewise.
8270         * modules/mkdir (Depends-on): Likewise.
8271         * modules/openat (Depends-on): Likewise.
8272         * modules/savewd (Depends-on): Likewise.
8273         * modules/rename (Depends-on): Likewise.
8274         (License): Relax license.
8275         * modules/mkdir-tests (Depends-on): Drop progname.
8276         (Makefile.am): Delete unneeded LDADD.
8277         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8278
8279         dirname: split into dirname-lgpl
8280         * modules/dirname-lgpl: New module.
8281         * modules/dirname (Files): Move library-safe files into
8282         dirname-lgpl.
8283         (Depends-on): Add dirname-lgpl.
8284         (configure.ac): Declare witness.
8285         * modules/double-slash-root (License): Relax license.
8286         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8287         module.
8288         * lib/dirname.c (dir_len, mdir_name): Move...
8289         * lib/dirname-lgpl.c: ...into new file.
8290         * lib/basename.c (last_component, base_len): Move...
8291         * lib/basename-lgpl.c: ...into new file.
8292         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8293         (gl_DIRNAME): Use it.
8294         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8295         Mention new module.
8296         * modules/dirname-tests (Depends-on): Add progname.
8297         * tests/test-dirname.c (program_name): Delete.
8298
8299         mkdir: make safe for libraries
8300         * modules/mkdir (Depends-on): Drop xalloc.
8301         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8302         exit.
8303
8304         tests: avoid some compiler warnings
8305         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8306         literals.
8307         * tests/test-memchr.c (main): Avoid type mismatch.
8308         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8309         * tests/test-base64.c (main): Likewise.
8310         * tests/test-getdelim.c (main): Likewise.
8311         * tests/test-gethostname.c (main): Likewise.
8312         * tests/test-getline.c (main): Likewise.
8313         * tests/test-netinet_in.c (main): Likewise.
8314         * tests/test-select.c (open_server_socket, main): Likewise.
8315         * tests/test-select-stdin.c (main): Likewise.
8316         * tests/test-sockets.c (main): Likewise.
8317         * tests/test-strsignal.c (main): Likewise.
8318         * tests/test-sys_select.c (main): Likewise.
8319         * tests/test-sys_socket.c (main): Likewise.
8320         * tests/test-u64.c (main): Likewise.
8321         * tests/test-xfprintf-posix.c (main): Likewise.
8322         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8323
8324         sockets: avoid compiler warning
8325         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8326
8327         maint: detect usage(1) and other suspicious exits
8328         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8329
8330 2009-10-29  Jim Meyering  <meyering@redhat.com>
8331
8332         timespec: long-to-int truncation could make timespec_cmp malfunction
8333         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8334         a multiple of 2^32 nanoseconds as no difference.
8335
8336 2009-10-28  Jim Meyering  <meyering@redhat.com>
8337
8338         fprintftime: wrap macro code argument in "do {...} while(0)"
8339         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8340         cpy macro must be a statement that can be followed by a semicolon.
8341         Now that the else clause contains a comment and is hence longer
8342         than one line, I require curly braces.  That in turn requires
8343         that we wrap this code block in the standard do...while(0).
8344
8345         fprintftime: remove stray semicolon from previous change
8346         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8347
8348         fprintftime: avoid a warning about ignored fwrite return value
8349         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8350         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8351         that is unsafe.
8352         * modules/fprintftime (Depends-on): Add ignore-value.
8353
8354         exclude: avoid an unwarranted warning
8355         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8356
8357 2009-10-27  Eric Blake  <ebb9@byu.net>
8358
8359         fseek: avoid compilation failure when fflush is replaced
8360         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8361         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8362         module is in use.
8363         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8364         module is not in use; since REPLACE_FSEEK worked otherwise.
8365         (GNULIB_FTELLO): Likewise for ftell.
8366         Reported by Ian Beckwith and others.
8367
8368 2009-10-27  Bruno Haible  <bruno@clisp.org>
8369
8370         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8371         Reported by Jim Meyering.
8372
8373 2009-10-27  Jim Meyering  <jim@meyering.net>
8374             Bruno Haible  <bruno@clisp.org>
8375
8376         Avoid warning despite dropping the return value of fwrite.
8377         * lib/unicodeio.c: Include ignore-value.h.
8378         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8379         * modules/unicodeio (Depends-on): Add ignore-value.
8380
8381 2009-10-26  Eric Blake  <ebb9@byu.net>
8382
8383         areadlinkat: fix fallback path
8384         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8385         pointer and zero.
8386
8387 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8388
8389         Use a better IO block size for modern systems
8390         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8391         * lib/md2.c: Likewise.
8392         * lib/md4.c: Likewise.
8393         * lib/md5.c: Likewise.
8394         * lib/sha1.c: Likewise.
8395         * lib/sha256.c: Likewise.
8396         * lib/sha512.c: Likewise.
8397
8398 2009-10-22  Eric Blake  <ebb9@byu.net>
8399
8400         tests: avoid several compiler warnings
8401         * tests/test-getcwd.c (main): Avoid buffer underflow.
8402         * tests/test-getdate.c (main): String literals are not safe with
8403         putenv, so use setenv.  Declare unused argument.
8404         * modules/getdate-tests (Depends-on): Add setenv.
8405         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8406         problems with string literals in char *.
8407         * tests/test-hash.c (main): Avoid shadowing declaration.
8408         (insert_new): Treat string literals as char const *.
8409         * tests/test-getopt.h (test_getopt): Likewise.
8410         (getopt_loop): Alter types to minimize casting elsewhere.
8411         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8412         (test_getopt_long_posix): Likewise.
8413         (do_getopt_long): Add wrapper to minimize casting.
8414         * tests/test-atexit.c (clear_temp_file): Use void.
8415         * tests/test-areadlink-with-size.c (main): Declare unused
8416         arguments.
8417         * tests/test-areadlink.c (main): Likewise.
8418         * tests/test-areadlinkat-with-size.c (main): Likewise.
8419         * tests/test-areadlinkat.c (main): Likewise.
8420         * tests/test-canonicalize-lgpl.c (main): Likewise.
8421         * tests/test-canonicalize.c (main): Likewise.
8422         * tests/test-dirent-safer.c (main): Likewise.
8423         * tests/test-dirname.c (main): Likewise.
8424         * tests/test-dup2.c (main): Likewise.
8425         * tests/test-fchdir.c (main): Likewise.
8426         * tests/test-fcntl-h.c (main): Likewise.
8427         * tests/test-fcntl-safer.c (main): Likewise.
8428         * tests/test-fdopendir.c (main): Likewise.
8429         * tests/test-fdutimensat.c (main): Likewise.
8430         * tests/test-fflush.c (main): Likewise.
8431         * tests/test-filenamecat.c (main): Likewise.
8432         * tests/test-filevercmp.c (main): Likewise.
8433         * tests/test-fopen-safer.c (main): Likewise.
8434         * tests/test-fopen.c (main): Likewise.
8435         * tests/test-fpending.c (main): Likewise.
8436         * tests/test-fpurge.c (main): Likewise.
8437         * tests/test-freading.c (main): Likewise.
8438         * tests/test-fstatat.c (main): Likewise.
8439         * tests/test-fsync.c (main): Likewise.
8440         * tests/test-futimens.c (main): Likewise.
8441         * tests/test-getndelim2.c (main): Likewise.
8442         * tests/test-gettimeofday.c (main): Likewise.
8443         * tests/test-getopt.c (main): Likewise.
8444         * tests/test-i-ring.c (main): Likewise.
8445         * tests/test-inttypes.c (main): Likewise.
8446         * tests/test-link.c (main): Likewise.
8447         * tests/test-lstat.c (main): Likewise.
8448         * tests/test-math.c (main): Likewise.
8449         * tests/test-md5.c (main): Likewise.
8450         * tests/test-memchr2.c (main): Likewise.
8451         * tests/test-memrchr.c (main): Likewise.
8452         * tests/test-mkdir.c (main): Likewise.
8453         * tests/test-mkdirat.c (main): Likewise.
8454         * tests/test-mkfifoat.c (main): Likewise.
8455         * tests/test-open.c (main): Likewise.
8456         * tests/test-openat-safer.c (main): Likewise.
8457         * tests/test-openat.c (main): Likewise.
8458         * tests/test-quotearg.c (main): Likewise.
8459         * tests/test-rawmemchr.c (main): Likewise.
8460         * tests/test-readlink.c (main): Likewise.
8461         * tests/test-remove.c (main): Likewise.
8462         * tests/test-rename.c (main): Likewise.
8463         * tests/test-renameat.c (main): Likewise.
8464         * tests/test-rmdir.c (main): Likewise.
8465         * tests/test-sha1.c (main): Likewise.
8466         * tests/test-signal.c (main): Likewise.
8467         * tests/test-sigaction.c (main): Likewise.
8468         * tests/test-stat.c (main): Likewise.
8469         * tests/test-stat-time.c (main): Likewise.
8470         * tests/test-stddef.c (main): Likewise.
8471         * tests/test-stdint.c (main): Likewise.
8472         * tests/test-stdio.c (main): Likewise.
8473         * tests/test-stdlib.c (main): Likewise.
8474         * tests/test-strchrnul.c (main): Likewise.
8475         * tests/test-strerror.c (main): Likewise.
8476         * tests/test-string.c (main): Likewise.
8477         * tests/test-strtod.c (main): Likewise.
8478         * tests/test-strverscmp.c (main): Likewise.
8479         * tests/test-symlink.c (main): Likewise.
8480         * tests/test-symlinkat.c (main): Likewise.
8481         * tests/test-sys_stat.c (main): Likewise.
8482         * tests/test-sys_time.c (main): Likewise.
8483         * tests/test-time.c (main): Likewise.
8484         * tests/test-unistd.c (main): Likewise.
8485         * tests/test-unlink.c (main): Likewise.
8486         * tests/test-unlinkat.c (main): Likewise.
8487         * tests/test-utimens.c (main): Likewise.
8488         * tests/test-utimensat.c (main): Likewise.
8489         * tests/test-version-etc.c (main): Likewise.
8490         * tests/test-wchar.c (main): Likewise.
8491         * tests/test-wctype.c (main): Likewise.
8492         * tests/test-xprintf-posix.c (main): Likewise.
8493         * tests/test-posixtm.c (main): Likewise.
8494         (STREQ): Delete unused macro.
8495         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8496         shadowed variables.
8497         * tests/test-memchr.c (main): Likewise.
8498
8499 2009-10-21  Eric Blake  <ebb9@byu.net>
8500
8501         areadlinkat: avoid failure on older glibc
8502         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8503         rather than mis-comparing 0 against FUNC_RESULT of char*.
8504
8505 2009-10-21  Bruno Haible  <bruno@clisp.org>
8506
8507         * modules/stpncpy (License): Relicense under LGPLv2+.
8508         Reported by David Lutterkort <lutter@redhat.com>.
8509
8510 2009-10-20  Eric Blake  <ebb9@byu.net>
8511
8512         utimensat: work around Solaris 9 bug
8513         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8514         has trailing slash bugs.
8515         * tests/test-lutimens.h (test_lutimens): Enhance test.
8516         * tests/test-utimens.h (test_utimens): Likewise.
8517         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8518         * doc/posix-functions/utimes.texi (utimes): Likewise.
8519         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8520         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8521         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8522         * doc/posix-functions/futimens.texi (futimens): Likewise.
8523
8524         fdutimensat: new module
8525         * modules/fdutimensat: New file.
8526         * lib/fdutimensat.c (fdutimensat): Likewise.
8527         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8528         * MODULES.html.sh (File system functions): Mention module.
8529         * modules/fdutimensat-tests: New test.
8530         * tests/test-fdutimensat.c: Likewise.
8531
8532         doc: regenerate INSTALL
8533         * doc/INSTALL: Reflect recent autoconf update.
8534         * doc/INSTALL.ISO: Likewise.
8535         * doc/INSTALL.UTF-8: Likewise.
8536
8537 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8538
8539         acl: warn if ACL support is not detected
8540         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8541
8542 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8543
8544         * lib/nproc.h: Add extern "C" block for C++.
8545
8546 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8547             Bruno Haible  <bruno@clisp.org>
8548
8549         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8550         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8551         * doc/posix-functions/isalpha.texi: Likewise.
8552         * doc/posix-functions/isblank.texi: Likewise.
8553         * doc/posix-functions/iscntrl.texi: Likewise.
8554         * doc/posix-functions/isdigit.texi: Likewise.
8555         * doc/posix-functions/isgraph.texi: Likewise.
8556         * doc/posix-functions/islower.texi: Likewise.
8557         * doc/posix-functions/isprint.texi: Likewise.
8558         * doc/posix-functions/ispunct.texi: Likewise.
8559         * doc/posix-functions/isspace.texi: Likewise.
8560         * doc/posix-functions/isupper.texi: Likewise.
8561         * doc/posix-functions/isxdigit.texi: Likewise.
8562
8563 2009-10-18  Bruno Haible  <bruno@clisp.org>
8564
8565         Tests for module 'isblank'.
8566         * modules/isblank-tests: New file.
8567         * tests/test-isblank.c: New file.
8568
8569         New module 'isblank'.
8570         * lib/isblank.c: New file.
8571         * m4/isblank.m4: New file.
8572         * modules/isblank: New file.
8573         * doc/posix-functions/isblank.texi: Mention the new module.
8574
8575 2009-10-18  Bruno Haible  <bruno@clisp.org>
8576
8577         New module 'ctype'.
8578         * lib/ctype.in.h: New file.
8579         * m4/ctype.m4: New file.
8580         * modules/ctype: New file.
8581         * doc/posix-headers/ctype.texi: Mention the new module.
8582
8583 2009-10-18  Jim Meyering  <meyering@redhat.com>
8584
8585         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8586         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8587         right after its initialization, rather than farther down.
8588         Keeping these in close proximity makes it easier to ensure
8589         that each such variable is initialized.  E.g.,
8590
8591             LIB_CLOCK_GETTIME=
8592             AC_SUBST([LIB_CLOCK_GETTIME])
8593
8594         This change also increments these serial numbers.
8595         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8596         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8598
8599 2009-10-18  Bruno Haible  <bruno@clisp.org>
8600
8601         Don't let environment variables perturb build.
8602         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8603         (gl_PREREQ_GETHRXTIME): ... not here.
8604
8605 2009-10-18  Bruno Haible  <bruno@clisp.org>
8606
8607         Avoid symlink attack in localcharset module.
8608         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8609         (O_NOFOLLOW): Define fallback.
8610         (get_charset_aliases): Don't open the file if it is a symbolic link.
8611         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8612         gl_FCNTL_H.
8613         (gl_FCNTL_H): Require it.
8614         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8615         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8616         Reported by Fergal Glynn <fglynn@veracode.com>.
8617
8618 2009-10-18  Bruno Haible  <bruno@clisp.org>
8619
8620         Implement nproc for mingw.
8621         * lib/nproc.c: Include <windows.h>
8622         (num_processors): On native Windows platforms, try GetSystemInfo.
8623
8624 2009-10-18  Bruno Haible  <bruno@clisp.org>
8625
8626         Implement nproc for IRIX.
8627         * lib/nproc.c: Include <sys/sysmp.h>.
8628         (num_processors): On IRIX systems, try sysmp.
8629         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8630
8631 2009-10-18  Bruno Haible  <bruno@clisp.org>
8632
8633         Implement nproc for HP-UX.
8634         * lib/nproc.c: Include <sys/pstat.h>
8635         (num_processors): On HP-UX systems, try pstat_getdynamic.
8636         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8637         pstat_getdynamic.
8638
8639 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8640             Bruno Haible  <bruno@clisp.org>
8641
8642         Implement nproc for NetBSD, OpenBSD.
8643         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8644         (ARRAY_SIZE): New macro.
8645         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8646         * m4/nproc.m4: New file.
8647         * modules/nproc (Files): Add m4/nproc.m4.
8648         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8649         (Makefile.am): Instead, augment lib_SOURCES.
8650
8651 2009-10-18  Bruno Haible  <bruno@clisp.org>
8652
8653         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8654         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8655         sys/param.h.
8656
8657 2009-10-16  Eric Blake  <ebb9@byu.net>
8658
8659         utimensat: new module
8660         * modules/utimensat: New file.
8661         * lib/utimensat.c (utimensat): Likewise.
8662         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8663         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8664         so we can work around Linux bugs.
8665         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8666         * modules/sys_stat (Makefile.am): Substitute them.
8667         * lib/sys_stat.in.h (utimensat): Declare it.
8668         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8669         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8670         * modules/utimensat-tests: New test.
8671         * tests/test-utimensat.c: Likewise.
8672
8673         utimens: let lutimens work on non-symlinks
8674         * lib/utimens.c (lutimens): Fall back to utimens rather than
8675         failing with ENOSYS, when file is not a symlink.
8676         (utimens): Reduce redirection.
8677         * tests/test-lutimens.h (test_lutimens): Update test to cover
8678         non-symlinks.
8679         * tests/test-utimens.h (test_utimens): Update test to cover
8680         symlinks.
8681         * tests/test-utimens.c (main): Update caller.
8682
8683         utimens: cache whether utimensat syscall works
8684         * lib/utimens.c (utimensat_works_really): New cache variable.
8685         (fdutimens, lutimens): Use it to avoid failing syscall.
8686
8687         test-stat-time, test-utimens: improve portability
8688         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8689         ext4 on alpha, and for cygwin.
8690         * tests/test-utimens-common.h: New file.
8691         (nap): Factor delays into single function.
8692         * tests/test-lutimens.h (test_lutimens): Use new header.
8693         * tests/test-futimens.h (test_futimens): Likewise.
8694         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8695         timestamps to occur from same machine, as was done previously for
8696         test_utimens.
8697         * modules/utimens-tests (Files): Ship new file.
8698         * modules/futimens-tests (Files): Likewise.
8699         Reported in part by Jim Meyering.
8700
8701         sys_stat: sort replacement declarations
8702         * lib/sys_stat.in.h: Sort declarations.
8703         * lib/futimens.c (futimens): Fix typo.
8704
8705 2009-10-15  Jim Meyering  <meyering@redhat.com>
8706
8707         don't let environment settings perturb build
8708         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8709         could cause a configure-time and/or build-time malfunction.
8710         Typically, a configure-time function-in-library test is performed
8711         via code like this:
8712
8713           LIB_VAR=
8714           AC_SUBST([LIB_VAR])
8715           prefix_saved_LIBS=$LIBS
8716             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8717                        [test "$ac_cv_search_FUNC" = "none required" ||
8718                         LIB_VAR=$ac_cv_search_FUNC])
8719           LIBS=$prefix_saved_LIBS
8720
8721         However, in each of the files affected by this change, the LIB_VAR=
8722         initialization was omitted.  Thus, when set in the environment, its
8723         value would propagate into generated Makefiles when FUNC is not found
8724         in LIB_NAME.
8725         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8726         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8728
8729 2009-10-14  Eric Blake  <ebb9@byu.net>
8730
8731         fchdir: avoid infinite recursion in mingw
8732         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8733         recursing.
8734
8735         test-stat-time: port to mingw
8736         * tests/test-stat-time.c (force_unlink): Return a value.
8737         (test_ctime) [W32]: Fix compilation error.
8738         (nap): Don't call usleep with too large an argument.  Use
8739         force_unlink.
8740         * doc/pastposix-functions/usleep.texi (usleep): Document the
8741         portability issue.
8742
8743 2009-10-13  Jim Meyering  <meyering@redhat.com>
8744
8745         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8746         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8747         * modules/pipe-filter-ii: Likewise.
8748         * modules/sys_socket-tests: Likewise.
8749         * modules/tsearch-tests: Likewise.
8750         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8751         (check): Depend on it.
8752
8753 2009-10-12  Eric Blake  <ebb9@byu.net>
8754
8755         utimens-tests: port to NFS file systems
8756         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8757         comparisons to avoid spurious failures from timestamp drift
8758         between NFS machines.
8759
8760 2009-10-12  Eric Blake  <ebb9@byu.net>
8761
8762         stat-time-tests: minor cleanups
8763         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8764         * tests/test-stat-time.c (nap): Separate assignment from call.
8765         Suggested by Paolo Bonzini and Bruno Haible.
8766
8767         sys_stat: guarantee struct timespec
8768         * lib/sys_stat.in.h (includes): Always include <time.h>
8769         * modules/sys_stat (Depends-on): Add time.
8770         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8771         mode_t permission values.
8772         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8773         get at subsecond timestamps.
8774
8775 2009-10-10  Eric Blake  <ebb9@byu.net>
8776
8777         futimens: new module
8778         * modules/futimens: New file.
8779         * lib/futimens.c (futimens): Likewise.
8780         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8781         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8782         we can work around Linux bugs.
8783         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8784         * modules/sys_stat (Makefile.am): Substitute them.
8785         * lib/sys_stat.in.h (futimens): Declare it.
8786         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8787         * doc/posix-functions/futimens.texi (futimens): Likewise.
8788         * modules/futimens-tests: New test.
8789         * tests/test-futimens.c: Likewise.
8790
8791         utimens: introduce fdutimens
8792         * lib/utimens.h (fdutimens): New prototype.
8793         * lib/utimens.c (gl_futimens): Move guts...
8794         (fdutimens): ...to new interface.
8795         * tests/test-utimens.c (do_fdutimens): Use it.
8796
8797         utimens: add UTIME_NOW and UTIME_OMIT support
8798         * lib/utimens.c (validate_timespec, update_timespec): New helper
8799         functions.
8800         (gl_futimens, lutimens): Use them.
8801         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8802         stdbool, sys_stat.
8803         (Link): Mention resulting library dependency.
8804         * modules/utimecmp (Link): Likewise.
8805         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8806         (Makefile.am): Pick up library dependency.
8807         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8808         definition.
8809         * tests/test-sys_stat.c: Test the definitions.
8810         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8811         * NEWS: Document library dependency.
8812
8813         utimecmp: support symlink timestamps
8814         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8815         hashing when possible.  Use pathconf when available.
8816         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8817         * modules/utimecmp (Depends-on): Add lstat.
8818
8819         utimens: add lutimens interface
8820         * lib/utimens.c (lutimens): New function.
8821         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8822         * lib/utimens.h (lutimens): Declare new interface.
8823         * tests/test-utimens.c (main): Enhance test.
8824         * tests/test-lutimens.h (test_lutimens): New file.
8825         * modules/utimens-tests (Files): Distribute it.
8826         (Depends-on): Add symlink.
8827         (configure.ac): Check for usleep.
8828
8829         utimens: validate futimens usage
8830         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8831         fewer syscalls on failure later on.  Avoid compiler warning on
8832         mingw.
8833         * modules/utimens (Depends-on): Add dup2.
8834
8835         utimens: add test
8836         * modules/utimens-tests: New test.
8837         * tests/test-utimens.h: New file.
8838         * tests/test-futimens.h: Likewise.
8839         * tests/test-utimens.c: Likewise.
8840
8841         doc: mention timestamp portability issues
8842         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8843         instead.
8844         * doc/posix-functions/utime.texi (utime): Likewise.
8845         * doc/posix-functions/utimes.texi (utimes): Likewise.
8846         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8847         instead.
8848         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8849         module.
8850         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8851         Mention weakness with symlink timestamps.
8852         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8853         to utimensat/futimens instead.
8854         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8855
8856         test-dup2: enhance test
8857         * tests/test-dup2.c (main): Also check AT_FDCWD.
8858
8859         test-stat-time: avoid more spurious failures
8860         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8861         xfs; and avoid race if the two timestamps cross quantization edge.
8862
8863         relocatable: prefer 'file system' over 'filesystem'
8864         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8865         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8866         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8867         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8868         * lib/relocatable.c (compute_curr_prefix): Likewise.
8869
8870 2009-10-10  Jim Meyering  <meyering@redhat.com>
8871
8872         stat-time-tests: check for the usleep function
8873         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8874
8875 2009-10-10  Bruno Haible  <bruno@clisp.org>
8876
8877         * modules/xnanosleep: Put the Link section after the Include section.
8878
8879 2009-10-09  Eric Blake  <ebb9@byu.net>
8880
8881         dup2: work around FreeBSD 6.1 bug
8882         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8883         * doc/posix-functions/dup2.texi (dup2): Document it.
8884         Reported by Nelson H. F. Beebe and Jim Meyering.
8885
8886         test-stat-time: port to buggy NFS clients
8887         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8888         (test_ctime): Also skip test if mtime and ctime are skewed.
8889
8890         maint: prefer 'file system' over 'filesystem'
8891         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8892         * doc/posix-functions/lstat.texi (lstat): Likewise.
8893         * lib/file-has-acl.c (file_has_acl): Likewise.
8894         * lib/fwriteerror.c [TEST]: Likewise.
8895         * tests/test-areadlink.h (test_areadlink): Likewise.
8896         * tests/test-areadlinkat-with-size.c (main): Likewise.
8897         * tests/test-areadlinkat.c (main): Likewise.
8898         * tests/test-canonicalize-lgpl.c (main): Likewise.
8899         * tests/test-canonicalize.c (main): Likewise.
8900         * tests/test-fstatat.c (main): Likewise.
8901         * tests/test-linkat.c (main): Likewise.
8902         * tests/test-lstat.h (test_lstat_func): Likewise.
8903         * tests/test-mkdir.h (test_mkdir): Likewise.
8904         * tests/test-readlink.h (test_readlink): Likewise.
8905         * tests/test-remove.c (main): Likewise.
8906         * tests/test-rename.h (test_rename): Likewise.
8907         * tests/test-renameat.c (main): Likewise.
8908         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8909         * tests/test-symlink.h (test_symlink): Likewise.
8910         * tests/test-symlinkat.c (main): Likewise.
8911         * tests/test-unlink.h (test_unlink_func): Likewise.
8912         * tests/test-unlinkat.c (main): Likewise.
8913
8914         maint: make realtime library usage explicit
8915         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8916         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8917         * modules/settime (Link): Likewise.
8918         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8919
8920         test-stat-time: speed up execution
8921         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8922         warning on mingw.
8923         (nap): New helper function.
8924         (prepare_test): Use it to reduce sleep time.
8925         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8926         execution.
8927         * modules/stat-time-tests (configure.ac): Check for usleep.
8928
8929 2009-10-09  Jim Meyering  <meyering@redhat.com>
8930
8931         selinux-h: always use getfilecon wrappers
8932         * lib/getfilecon.c: New file.
8933         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8934         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8935         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8936         (fgetfilecon): Provide a stub.
8937         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8938         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8939         file unconditionally.
8940         When <selinux/selinux.h> is found, arrange to use wrappers.
8941         * modules/selinux-h (Files): Add getfilecon.c.
8942         (Makefile.am): Substitute include-next-related bits
8943         into the now-always-generated selinux/selinux.h file.
8944         * doc/glibc-functions/lgetfilecon.texi: New file.
8945         * doc/glibc-functions/fgetfilecon.texi: New file.
8946         * doc/glibc-functions/getfilecon.texi: New file.
8947         * doc/glibc-functions/getfilecon-desc.texi: New file.
8948         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8949         which to pull in the new files.
8950         * MODULES.html.sh (Misc): Add selinux-h.
8951
8952 2009-10-08  Jim Meyering  <meyering@redhat.com>
8953
8954         unistd: fix comment typo
8955         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8956
8957 2009-10-08  Eric Blake  <ebb9@byu.net>
8958
8959         areadlink: use SIZE_MAX consistently
8960         * modules/areadlink (Depends-on): Add stdint.
8961         * modules/areadlink-with-size (Depends-on): Likewise.
8962         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8963         gives NULL; drop sys/types, since unistd gives size_t; and add
8964         stdint for SIZE_MAX.
8965         (SIZE_MAX): Rely on headers.
8966         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8967         and add stdint.
8968         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8969         (SIZE_MAX): Likewise.
8970         (INITIAL_BUF_SIZE): Turn into enum.
8971         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8972
8973 2009-10-08  Jim Meyering  <meyering@redhat.com>
8974
8975         areadlinkat: avoid compilation failure
8976         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8977         Fix typo in comment.
8978
8979 2009-10-07  Eric Blake  <ebb9@byu.net>
8980
8981         areadlinkat-with-size: new module
8982         * modules/areadlinkat-with-size: New module.
8983         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8984         * lib/areadlink.h (areadlinkat): Declare it.
8985         * MODULES.html.sh (File system functions): Mention it.
8986         * modules/areadlinkat-with-size-tests: New test.
8987         * tests/test-areadlinkat-with-size.c: New file.
8988
8989         xreadlinkat: new module
8990         * modules/xreadlinkat: New module.
8991         * lib/xreadlinkat.c (xreadlinkat): New file.
8992         * lib/xreadlink.h (xreadlinkat): Declare it.
8993         * MODULES.html.sh (File system functions): Mention it.
8994
8995         areadlinkat: new module
8996         * lib/at-func.c (FUNC_FAIL): New define.
8997         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8998         * modules/areadlinkat: New module.
8999         * lib/linkat.c (areadlinkat): Move...
9000         * lib/areadlinkat.c (areadlinkat): ...to new file.
9001         * lib/areadlink.h (areadlinkat): Declare it.
9002         * modules/linkat (Depends-on): Add areadlinkat.
9003         * MODULES.html.sh (File system functions): Mention it.
9004         * modules/areadlinkat-tests: New test.
9005         * tests/test-areadlinkat.c: New file.
9006
9007         areadlink, areadlink-with-size: add tests
9008         * modules/areadlink-tests: New test.
9009         * modules/areadlink-with-size-tests: Likewise.
9010         * tests/test-areadlink.h: New file.
9011         * tests/test-areadlink.c: Likewise.
9012         * tests/test-areadlink-with-size.c: Likewise.
9013
9014         maint: minor cleanups
9015         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9016         _UNUSED_PARAMETER_ instead.
9017         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9018         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9019         * modules/linkat-tests (Files): Distribute test-link.h.
9020
9021         openat, utimens: whitespace cleanup
9022         * lib/openat.c: Prefer space throughout, rather than mix of 8
9023         spaces vs. tabs.
9024         * lib/at-func.c: Likewise.
9025         * lib/utimens.c: Likewise.
9026
9027         openat: avoid using wrong fd
9028         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9029         working directory chooses same fd.
9030         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9031
9032         mkdir, mkdirat: fix cygwin 1.5.x bug
9033         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9034         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9035         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9036         bug.
9037         (gl_PREREQ_MKDIR): Delete unused macro.
9038         * modules/mkdir (Files): Track file rename.
9039         (configure.ac): Update macro name.
9040         * modules/openat (Depends-on): Add mkdir.
9041         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9042
9043         mkdir, mkdirat: add tests
9044         * modules/mkdir-tests: New test.
9045         * tests/test-mkdir.h: New file.
9046         * tests/test-mkdir.c: Likewise.
9047         * tests/test-mkdirat.c: Likewise.
9048         * modules/openat-tests (Files): Add new files.
9049         (Makefile.am): Run new test.
9050
9051 2009-10-06  Eric Blake  <ebb9@byu.net>
9052
9053         doc: tweak *at function documentation
9054         * doc/posix-functions/faccessat.texi (faccessat): Mention
9055         known issue with replacement.
9056         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9057         * doc/posix-functions/linkat.texi (linkat): Likewise.
9058         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9059         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9060         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9061         * doc/posix-functions/renameat.texi (renameat): Likewise.
9062         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9063
9064         openat: fix GNU/Hurd bug in unlinkat
9065         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9066         broken.
9067         * doc/posix-functions/unlink.texi (unlink): Document this.
9068         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9069
9070         fdopendir: fix GNU/Hurd bug
9071         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9072         allowing non-directory fds.
9073         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9074         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9075         * modules/dirent (Makefile.am): Substitute it.
9076         * lib/dirent.in.h (fdopendir): Declare replacement.
9077         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9078         * tests/test-fdopendir.c (main): Test something other than
9079         /dev/null, since on Hurd that behaves like a directory.
9080
9081         test-symlink: port to GNU/Hurd
9082         * tests/test-symlink.h (test_symlink): Relax expected errno.
9083
9084         doc: tweak more cygwin information
9085         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9086         now compatible with glibc.
9087         * doc/posix-functions/getopt.texi (getopt): Likewise.
9088
9089         getopt-gnu: add another test
9090         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9091         guarantee behavior relied on by m4.
9092         * tests/test-getopt.c (main): Use it.
9093         * modules/getopt-posix-tests (Depends-on): Add setenv.
9094         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9095
9096         getopt: fix compilation on darwin
9097         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9098         include.
9099         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9100         Reported by Ludovic Courtès.
9101
9102 2009-10-06  Bruno Haible  <bruno@clisp.org>
9103
9104         * modules/size_max (Description): Discourage its use.
9105         Reported by Simon Josefsson.
9106
9107 2009-10-06  Jim Meyering  <meyering@redhat.com>
9108
9109         linkat: avoid compilation failure
9110         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9111
9112 2009-10-05  Eric Blake  <ebb9@byu.net>
9113
9114         linkat: support Linux 2.6.17
9115         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9116         linkat on Linux, but allow cache variable override.
9117         * lib/linkat.c (rpl_linkat): Define override.
9118         * modules/linkat (Depends-on): Add symlinkat.
9119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9120         * modules/unistd (Makefile.am): Substitute it.
9121         * lib/unistd.in.h (linkat): Declare replacement.
9122         Reported by Pádraig Brady.
9123
9124         quotearg: port test to systems with C.UTF-8 locale
9125         * tests/test-quotearg.c (struct result_strings): Add another
9126         member, differentiating between C.ASCII and C.UTF-8 handling.
9127         (compare_strings): Add parameter.
9128         (main): Adjust all callers.
9129
9130         getopt: avoid clash with FreeBSD _getopt_internal
9131         * lib/getopt.in.h (_getopt_internal): Override the name.
9132         * lib/getopt_int.h (includes): Pick up any overrides.
9133         Reported by Reuben Thomas.
9134
9135         hash: allow C89 compilation
9136         * lib/hash.c (check_tuning): Move declaration before statement.
9137         Reported by Reuben Thomas.
9138
9139 2009-10-05  Karl Berry  <karl@gnu.org>
9140
9141         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9142
9143 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9144             Bruno Haible  <bruno@clisp.org>
9145
9146         * lib/uname.c (uname): Use a table-driven algorithm to compute
9147         Windows NT versions.
9148
9149 2009-10-04  Bruno Haible  <bruno@clisp.org>
9150
9151         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9152         program_invocation_short_name.
9153         * modules/progname (configure.ac): Test for presence of
9154         program_invocation_short_name.
9155         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9156
9157 2009-10-04  Bruno Haible  <bruno@clisp.org>
9158
9159         * lib/progname.c (set_program_name): Fix comment.
9160         Reported by Jim Meyering.
9161
9162 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9163             Bruno Haible  <bruno@clisp.org>
9164
9165         * lib/uname.c: Include <string.h>.
9166         (uname): Do only one call to GetVersionEx in the common case.
9167
9168 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9169             Bruno Haible  <bruno@clisp.org>
9170
9171         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9172         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9173         (uname): Add support for Windows CE and various non-x86 CPU types.
9174
9175 2009-10-03  Bruno Haible  <bruno@clisp.org>
9176
9177         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9178         invocation to tests/configure.ac.
9179         Reported by Ian Beckwith <ianb@erislabs.net>.
9180
9181 2009-10-02  Eric Blake  <ebb9@byu.net>
9182
9183         fchdir: avoid compiler warning
9184         * lib/fchdir.c (canonicalize_file_name)
9185         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9186
9187         test-open: support mingw errno values
9188         * tests/test-open.h (test_open): Relax test.
9189         * tests/test-fopen.h (test_fopen): Likewise.
9190         * tests/test-openat-safer.c (main): Likewise.
9191
9192         open: fix opening directory on mingw
9193         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9194
9195         test-open: on GNU/Hurd, /dev/null is a directory
9196         * tests/test-fopen.h (main): Rename...
9197         (test_fopen): ...to this.  Use a guaranteed non-directory when
9198         confirming open behavior on trailing slash.
9199         * tests/test-openat-safer.c (main): Likewise.
9200         * tests/test-open.h (main): Likewise....
9201         (test_open): ...to this.
9202         * tests/test-fopen.c (main): Adjust caller.
9203         * tests/test-fopen-safer.c (main): Likewise.
9204         * tests/test-open.c (main): Likewise.
9205         * tests/test-fcntl-safer.c (main): Likewise.
9206         Reported by Samuel Thibault.
9207
9208         rename, fchdir: don't ignore chdir failure
9209         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9210         * lib/rename.c (rpl_rename) [W32]: Likewise.
9211         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9212         an empty destination directory if source cannot be renamed,
9213         although there is still possibility for failure.
9214         * doc/posix-functions/rename.texi (rename): Document the race.
9215         Reported by Jim Meyering.
9216
9217         maint: cleanup whitespace in recent commits
9218         * lib/rename.c (rpl_rename): Remove tabs.
9219         * tests/test-link.h (test_link): Likewise.
9220         * lib/fchdir.c (get_name): Likewise.
9221         Reported by Jim Meyering.
9222
9223 2009-10-02  Ben Pfaff  <blp@gnu.org>
9224
9225         relocatable-prog-wrapper: Add missing dependency on
9226         double-slash-root.
9227         * modules/relocatable-prog-wrapper: Add dependency.
9228         Reported by Ian Beckwith <ianb@erislabs.net>.
9229
9230 2009-10-02  Eric Blake  <ebb9@byu.net>
9231
9232         renameat: fix Solaris bugs
9233         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9234         needed fixing.
9235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9236         * modules/stdio (Makefile.am): Substitute it.
9237         * lib/stdio.in.h (renameat): Declare replacement.
9238         * lib/renameat.c (rpl_renameat): Implement fix.
9239
9240         renameat: new module
9241         * modules/renameat: New file.
9242         * lib/renameat.c (renameat): Likewise.
9243         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9245         * modules/stdio (Makefile.am): Substitute them.
9246         * lib/stdio.in.h (renameat): Declare it.
9247         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9248         * doc/posix-functions/renameat.texi (renameat): Likewise.
9249         * modules/renameat-tests: New test.
9250         * tests/test-renameat.c: Likewise.
9251
9252         rename: fix mingw bugs
9253         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9254         directory overwrite bugs.
9255
9256         rename: fix another cygwin 1.5 bug
9257         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9258         checks.
9259         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9260         unnecessary cygwin workarounds.  Also work around bug with moving
9261         full directory onto an empty one.
9262         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9263
9264         rename-dest-slash: merge into rename module
9265         * modules/rename-dest-slash (Status): Mark obsolete.
9266         (Depends-on): Add rename.
9267         (Files): Let rename do it all.
9268         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9269         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9270         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9271         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9272         * lib/rename.c (rpl_rename): Update comments.
9273
9274         rename: fix cygwin 1.5.x bugs
9275         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9276         * lib/rename.c (rpl_rename): Work around them.
9277         * modules/rename (Depends-on): Add same-inode.
9278
9279         rename: fix Solaris 10 bug
9280         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9281         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9282         was the only bug.
9283
9284         rename: fix Solaris 9 bug
9285         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9286         on non-directory.  Avoid calling exit.
9287         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9288         strdup.
9289         * modules/rename-tests (Depends-on): Drop lstat.
9290         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9291         (gl_PREREQ_RENAME): Delete unused macro.
9292
9293         rename-dest-slash: fix NetBSD bug
9294         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9295         links.
9296         * modules/rename-dest-slash (Depends-on): Add same-inode.
9297
9298         rename-tests: new test, exposes several platform bugs
9299         * modules/rename-tests: New file.
9300         * tests/test-rename.h: Likewise.
9301         * tests/test-rename.c: Likewise.
9302         * doc/posix-functions/rename.texi (rename): Improve documentation,
9303         including bugs that will eventually be fixed in gnulib.
9304
9305 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9306
9307         * lib/uname.c: Include <stdlib.h>
9308         (uname): Assume version info is available.
9309
9310 2009-10-02  Jim Meyering  <meyering@redhat.com>
9311
9312         gnu-web-doc-update: correct --help output
9313         * build-aux/gnu-web-doc-update: Make --help output relevant.
9314
9315         gnu-web-doc-update: add standard options
9316         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9317
9318         gnu-web-doc-update: New module.
9319         Use this script to automatically update the on-line web documentation
9320         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9321         * modules/gnu-web-doc-update: New file, from coreutils.
9322         * build-aux/gnu-web-doc-update: New script.
9323
9324 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9325
9326         link: LoadLibrary is not needed.
9327         * lib/link.c: Use GetModuleHandle.
9328
9329 2009-10-01  Eric Blake  <ebb9@byu.net>
9330
9331         getopt: bump serial number
9332         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9333         change.
9334
9335         tests: tighten link, rmdir, and remove tests
9336         * tests/test-link.h (includes): No need to use <config.h> here.
9337         Clean up if directory hard link was created, otherwise test for
9338         trailing '.'.
9339         * tests/test-linkat.c (main): Simplify.
9340         * tests/test-remove.c (main): Enhance test for trailing '.'.
9341         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9342
9343 2009-10-01  Jim Meyering  <meyering@redhat.com>
9344
9345         maint.mk: requiring "make major" was annoying, for a "minor" release.
9346         What is intended is "stable", to contrast with alpha and beta,
9347         so require "make stable", not "make major".
9348         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9349         (get_tool_versions): Likewise.
9350         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9351
9352 2009-09-30  Ben Pfaff  <blp@gnu.org>
9353
9354         Fix broken build of replacement for Windows tmpfile().
9355         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9356         flags argument added along with the 'mkostemp' module.
9357
9358 2009-09-28  Bruno Haible  <bruno@clisp.org>
9359
9360         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9361         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9362         to 'remove_elt'.
9363         (gl_list_remove): Update.
9364         * lib/gl_list.c (gl_list_remove): Update.
9365         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9366         to 'remove_elt'.
9367         (gl_oset_remove): Update.
9368         * lib/gl_list.c (gl_oset_remove): Update.
9369         Reported by Eric Blake.
9370
9371 2009-09-28  Eric Blake  <ebb9@byu.net>
9372
9373         doc: mention yet more cygwin 1.7 status
9374         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9375         cygwin.
9376         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9377         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9378
9379         argp: fix test failure
9380         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9381         that are not upper-case.  Pass correct range to tolower.
9382
9383 2009-09-27  Jim Meyering  <meyering@redhat.com>
9384
9385         test-yesno: work around sparc-dash here-document infelicity
9386         Without this change, the literal \177 byte in a here document
9387         would make dash 0.5.5.1-3 access uninitialized memory.
9388         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9389         Instead, use a marker, "@", and filter through tr to create the desired
9390         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9391
9392 2009-09-27  Bruno Haible  <bruno@clisp.org>
9393
9394         Disable untested support for new flavours of ACLs on AIX.
9395         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9396         progress.
9397         * lib/set-mode-acl.c (qset_acl): Likewise.
9398
9399 2008-12-07  Bruno Haible  <bruno@clisp.org>
9400
9401         Add support for new flavours of ACLs on AIX. (Untested.)
9402         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9403         (file_has_acl): Add support for newer AIX.
9404         * lib/set-mode-acl.c (qset_acl): Likewise.
9405         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9406         Rainer Tammer <tammer@tammer.net>.
9407
9408 2009-09-26  Eric Blake  <ebb9@byu.net>
9409
9410         argp: fix compilation of getopt
9411         * lib/getopt.in.h (includes): Use different guard than glibc.
9412         Reported by Sergey Poznyakoff.
9413
9414         doc: mention more cygwin 1.7 status
9415         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9416         bug.
9417         * doc/posix-functions/execl.texi (execl): Likewise.
9418         * doc/posix-functions/execle.texi (execle): Likewise.
9419         * doc/posix-functions/execlp.texi (execlp): Likewise.
9420         * doc/posix-functions/execv.texi (execv): Likewise.
9421         * doc/posix-functions/execve.texi (execve): Likewise.
9422         * doc/posix-functions/execvp.texi (execvp): Likewise.
9423         * doc/glibc-functions/canonicalize_file_name.texi
9424         (canonicalize_file_name): Cygwin 1.7 now provides this.
9425         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9426         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9427         on AT_SYMLINK_NOFOLLOW.
9428
9429 2009-09-24  Eric Blake  <ebb9@byu.net>
9430
9431         test-linkat: make test more robust
9432         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9433
9434         getopt: fix inclusion guards for cygwin
9435         * modules/getopt-posix (Depends-on): Add include-next.
9436         (Makefile.am): Substitute more items in replacement header.
9437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9438         <getopt.h>.
9439         * lib/getopt.in.h (includes): Use split inclusion guard, and
9440         prefer <getopt.h> over include <unistd.h> when one is present.
9441         (option): Also override name of 'struct option'.
9442
9443         same-inode: revert prior change; it is not yet ready
9444         * NEWS: Undo mention of this change.
9445         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9446         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9447         * lib/cycle-check.c (cycle_check): Likewise.
9448         * lib/same.c (same_name): Likewise.
9449         * lib/at-func2.c (at_func2): Likewise.
9450
9451 2009-09-23  Eric Blake  <ebb9@byu.net>
9452
9453         linkat: new module
9454         * modules/linkat: New file.
9455         * lib/at-func2.c (at_func2): Likewise.
9456         * lib/linkat.c (linkat): Likewise.
9457         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9458         * lib/openat-priv.h (at_func2): Add declaration.
9459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9460         * modules/unistd (Makefile.am): Substitute them.
9461         * lib/unistd.in.h (linkat): Declare it.
9462         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9463         * doc/posix-functions/linkat.texi (linkat): Likewise.
9464         * doc/posix-functions/link.texi (link): Tweak wording.
9465         * tests/test-link.c (main): Move guts...
9466         * tests/test-link.h (test_link): ...into new file.
9467         * modules/linkat-tests: New test.
9468         * tests/test-linkat.c: Likewise.
9469         * modules/link-tests (Files): Ship new file.
9470         (Depends-on): Add stdbool.
9471
9472         dirname: add library-safe mdir_name
9473         * lib/dirname.h (mdir_name): New prototype.
9474         * lib/dirname.c (dir_name): Move guts...
9475         (mdir_name): ...to new function that avoids xalloc_die.
9476
9477         fchdir: another mingw fix
9478         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9479         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9480         on mingw (where it has not yet been ported), and make it optional
9481         elsewhere.
9482         (_gl_register_fd): Use it.
9483
9484         same-inode: make SAME_INODE tri-state, to port to mingw
9485         * NEWS: Mention this change.
9486         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9487         st_ino always being 0.
9488         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9489         * lib/cycle-check.c (cycle_check): Likewise.
9490         * lib/same.c (same_name): Likewise.
9491
9492         lstat: avoid mingw compilation error
9493         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9494         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9495         lstat ourselves.
9496         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9497         was adequate.
9498         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9499         the checks for lstat.
9500         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9501
9502         link: fix test failure on Solaris 9
9503         * lib/link.c (rpl_link): Don't assume link will catch bogus
9504         trailing slash on source.
9505
9506         test-symlinkat: enhance test
9507         * tests/test-readlink.c (main): Move guts...
9508         * tests/test-readlink.h (test_readlink): ...into new file.
9509         * tests/test-symlink.c (main): Move guts...
9510         * tests/test-symlink.h (test_symlink): ...into new file.
9511         * tests/test-symlinkat.c (main): Use new files for further
9512         coverage.
9513         (do_symlink, do_readlink): New helper functions.
9514         * modules/symlink-tests (Files): Ship new file.
9515         (Depends-on): Add stdbool.
9516         * modules/readlink-tests (Files): Ship new file.
9517         (Depends-on): Add stdbool.
9518         * modules/symlinkat-tests (Files): Use new files.
9519
9520 2009-09-23  Eric Blake  <ebb9@byu.net>
9521
9522         readlink: document portability issue with symlink length
9523         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9524         systems have bogus st_size on symlinks, and mention the
9525         areadlink-with-size module.
9526         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9527         * doc/posix-functions/readlink.texi (readlink): Mention the
9528         areadlink module, and ERANGE failure.
9529         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9530         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9531
9532         readlink: fix Solaris 9 bug with trailing slash
9533         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9534         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9535         * doc/posix-functions/readlink.texi (readlink): Document this.
9536         * modules/readlink-tests: New test.
9537         * tests/test-readlink.c: Likewise.
9538
9539         readlink: fix cygwin 1.5.x bug with return type
9540         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9541         * lib/unistd.in.h (readlink): Use ssize_t.
9542         * lib/readlink.c (readlink): Likewise.
9543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9544         * modules/unistd (Makefile.am): Substitute it.
9545         * lib/unistd.in.h (readlink): Declare replacement.
9546         * doc/posix-functions/readlink.texi (readlink): Document this.
9547
9548         symlink: use throughout gnulib
9549         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9550         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9551         symlink is not used.
9552         * modules/symlinkat (Depends-on): Add symlink.
9553         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9554         * modules/canonicalize-tests (Depends-on): Likewise.
9555         * modules/lstat-tests (Depends-on): Likewise.
9556         * modules/openat-tests (Depends-on): Likewise.
9557         * modules/remove-tests (Depends-on): Likewise.
9558         * modules/rmdir-tests (Depends-on): Likewise.
9559         * modules/unlink-tests (Depends-on): Likewise.
9560         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9561         * tests/test-canonicalize.c (symlink): Likewise.
9562         * tests/test-fstatat.c (symlink): Likewise.
9563         * tests/test-lstat.c (symlink): Likewise.
9564         * tests/test-remove.c (symlink): Likewise.
9565         * tests/test-rmdir.c (symlink): Likewise.
9566         * tests/test-unlink.c (symlink): Likewise.
9567         * tests/test-unlinkat.c (symlink): Likewise.
9568
9569         symlink: new module, for Solaris 9 bug
9570         * modules/symlink: New file.
9571         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9572         * lib/symlink.c: Likewise.
9573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9574         * modules/unistd (Makefile.am): Substitute them.
9575         * lib/unistd.in.h (symlink): Declare replacement.
9576         * MODULES.html.sh (File system functions): Mention it.
9577         * doc/posix-functions/symlink.texi (symlink): Likewise.
9578         * modules/symlink-tests: New test.
9579         * tests/test-symlink.c: Likewise.
9580
9581 2009-09-23  Bruno Haible  <bruno@clisp.org>
9582
9583         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9584         when needed.
9585         Test case: gnulib-tool --import --with-tests atexit inttypes.
9586         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9587
9588 2009-09-23  Bruno Haible  <bruno@clisp.org>
9589
9590         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9591         subcommand, not in a subshell.
9592
9593 2009-09-22  Eric Blake  <ebb9@byu.net>
9594
9595         unistd: sort replacement declarations
9596         * lib/unistd.in.h: Sort declarations.
9597
9598         open, openat: minor optimization
9599         * lib/open.c (open): If open succeeded, len is non-zero.
9600         * lib/openat.c (rpl_openat): Likewise.
9601
9602         link-follow: ensure correct result
9603         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9604         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9605         distinguish between possible failures.
9606
9607 2009-09-21  Eric Blake  <ebb9@byu.net>
9608
9609         fts: avoid compiler warning
9610         * lib/fts.c (dirent_inode_sort_may_be_useful)
9611         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9612
9613 2009-09-19  Bruno Haible  <bruno@clisp.org>
9614
9615         * lib/progreloc.c (canonicalize_file_name): New declaration.
9616
9617 2009-09-19  Eric Blake  <ebb9@byu.net>
9618
9619         link: fix quoting
9620         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9621
9622         openat: fix openat bugs on Solaris 9
9623         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9624         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9625         * modules/openat (Depends-on): Add open.
9626         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9627         * modules/fcntl-h (Makefile.am): Substitute it.
9628         * lib/fcntl.in.h (openat): Declare replacement.
9629         * doc/posix-functions/openat.texi (openat): Document this.
9630
9631         openat: move fstatat and unlinkat into correct files
9632         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9633         compiled.
9634         * lib/openat.c (fstatat, unlinkat): Move...
9635         * lib/fstatat.c (fstatat): ...into correct files.
9636         * lib/unlinkat.c (unlinkat): Likewise.
9637
9638         openat: fix unlinkat bugs on Solaris 9
9639         * lib/unlinkat.c (unlinkat): New file.
9640         * modules/openat (Depends-on): Add unlink.
9641         (Files): Distribute it.
9642         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9643         trailing slash behavior is broken.
9644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9645         * modules/unistd (Makefile.am): Substitute it.
9646         * lib/unistd.in.h (unlinkat): Declare replacement.
9647         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9648
9649         openat: fix fstatat bugs on Solaris 9
9650         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9651         stat.
9652         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9653
9654         test-unlinkat: enhance test, to expose Solaris 9 bug
9655         * tests/test-unlink.c (main): Factor guts...
9656         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9657         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9658         * tests/test-rmdir.c (main): Adjust caller.
9659         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9660         (unlinker): New helper function.
9661         (rmdirat): Enhance check.
9662         * modules/rmdir-tests (Depends-on): Add stdbool.
9663         * modules/unlink-tests (Depends-on): Likewise.
9664         (Files): Add test-unlink.h.
9665         * modules/openat-tests (Files): Likewise.
9666         (Depends-on): Add unlinkdir.
9667
9668         test-fstatat: new test, to expose Solaris 9 bugs
9669         * tests/test-stat.c (main): Factor guts...
9670         * tests/test-stat.h (test_stat_func): ...into new file.
9671         * tests/test-lstat.c (main): Factor guts...
9672         * tests/test-lstat.h (test_lstat_func): ...into new file.
9673         * tests/test-fstatat.c: New file.
9674         * modules/stat-tests (Files): Add test-stat.h.
9675         * modules/lstat-tests (Files): Add test-lstat.h.
9676         (Depends-on): Add stdbool.
9677         * modules/openat-tests (Depends-on): Add pathmax.
9678         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9679         (Makefile.am): Run new test.
9680
9681         remove: new module, for mingw and Solaris 9 bugs
9682         * modules/remove: New file.
9683         * lib/remove.c: Likewise.
9684         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9686         * modules/stdio (Makefile.am): Use them.
9687         * lib/stdio.in.h (remove): Declare replacement.
9688         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9689         * doc/posix-functions/remove.texi (remove): Likewise.
9690         * modules/remove-tests: New test.
9691         * tests/test-remove.c: Likewise.
9692
9693         unlink: new module, for Solaris 9 bug
9694         * modules/unlink: New file.
9695         * lib/unlink.c: Likewise.
9696         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9698         * modules/unistd (Makefile.am): Use them.
9699         * lib/unistd.in.h (stat): Declare replacement.
9700         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9701         * doc/posix-functions/unlink.texi (unlink): Likewise.
9702         * modules/unlink-tests: New test.
9703         * tests/test-unlink.c: Likewise.
9704
9705         lstat: fix Solaris 9 bug
9706         * lib/lstat.c (lstat): Also check for trailing slash on
9707         non-symlink, non-directories.  Use stat module to simplify logic.
9708         * doc/posix-functions/lstat.texi (lstat): Document it.
9709         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9710         (configure.ac): Check for symlink.
9711         * tests/test-lstat.c (main): Add more tests.
9712
9713         stat: add as dependency to other modules
9714         * modules/chown (Depends-on): Add stat.
9715         * modules/euidaccess (Depends-on): Likewise.
9716         * modules/fchdir (Depends-on): Likewise.
9717         * modules/isdir (Depends-on): Likewise.
9718         * modules/link (Depends-on): Likewise.
9719         * modules/lstat (Depends-on): Likewise.
9720         * modules/mkdir-p (Depends-on): Likewise.
9721         * modules/modechange (Depends-on): Likewise.
9722         * modules/open (Depends-on): Likewise.
9723         * modules/readlink (Depends-on): Likewise.
9724         * modules/same (Depends-on): Likewise.
9725
9726         stat: fix Solaris 9 bug
9727         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9728         slash.
9729         * lib/stat.c (rpl_stat): Work around it.
9730         * doc/posix-functions/stat.texi (stat): Update documentation.
9731
9732         stat: new module, for mingw bug
9733         * modules/stat: New file.
9734         * lib/stat.c: Likewise.
9735         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9736         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9737         * modules/sys_stat (Makefile.am): Use them.
9738         * lib/sys_stat.in.h (stat): Declare replacement.
9739         * lib/openat.c (fstatat): Deal with lstat and stat being function
9740         macros.
9741         * modules/openat (Depends-on): Add inline.
9742         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9743         * doc/posix-functions/stat.texi (stat): Likewise.
9744         * modules/stat-tests: New test.
9745         * tests/test-stat.c: Likewise.
9746
9747 2009-09-19  Jim Meyering  <meyering@redhat.com>
9748
9749         syntax-check: detect unnecessary inclusion of canonicalize.h
9750         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9751
9752 2009-09-19  Eric Blake  <ebb9@byu.net>
9753
9754         canonicalize-lgpl: adjust clients to use correct header
9755         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9756         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9757         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9758         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9759         * lib/progreloc.c (includes): Likewise.
9760
9761 2009-09-19  Jim Meyering  <meyering@redhat.com>
9762
9763         test-posixtm.c: correct a comment
9764         * tests/test-posixtm.c: Correct first-line comment.
9765         Spotted by Eric Blake.
9766
9767 2009-09-16  Jim Meyering  <meyering@redhat.com>
9768
9769         posixtm-tests: make T const-correct; add a test case
9770         * tests/test-posixtm.c (T): Declare const.
9771         Add a test for -(2^31+1).
9772         Remove useless can-succeed-only-in-2002 test.
9773
9774         posixtm-tests: adjust the sole failing test
9775         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9776         expected output matches what mktime now produces.  Cross-checked via
9777         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9778
9779         posixtm: move #ifdef'd tests into a new module
9780         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9781         * tests/test-posixtm.c: ... this new file.
9782         * modules/posixtm-tests: New module.
9783
9784 2009-09-19  Eric Blake  <ebb9@byu.net>
9785
9786         openat: simplify use of at-func.c
9787         * lib/at-func.c (includes): Include prerequisites here, to
9788         simplify requirements on client files.
9789         * lib/openat-priv.h: Add double-inclusion guard.
9790         * lib/faccessat.c (includes): Simplify.
9791         * lib/fchmodat.c (includes): Likewise.
9792         * lib/fchownat.c (includes): Likewise.
9793         * lib/mkdirat.c (includes): Likewise.
9794         * lib/mkfifoat.c (includes): Likewise.
9795         * lib/symlinkat.c (includes): Likewise.
9796
9797         openat: allow return of fd 0
9798         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9799         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9800         unistd-safer.
9801         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9802         <fcntl.h>; this module does not leak fds.
9803         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9804         must be allowed to return 0, leaving openat_safer to add the
9805         safety.
9806         (openat_permissive): Avoid writing to just-opened fd 2 if
9807         restoring the current directory fails.
9808         * lib/openat-die.c (openat_restore_fail): Add comment.
9809         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9810         (save_cwd): Guarantee safe fd, but without use of open_safer.
9811         * tests/test-openat.c: New test.
9812         * modules/openat-tests (Files, Makefile.am): Distribute and build
9813         new file.
9814
9815         relocatable-prog-wrapper: fix build
9816         * modules/relocatable-prog-wrapper (Files): Update name of
9817         canonicalize m4 file, broken on 2009-09-17.
9818         Reported by emad hajjar <aleppos@hotmail.com>.
9819
9820 2009-09-19  Bruno Haible  <bruno@clisp.org>
9821
9822         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9823         * lib/safe-alloc.c: Likewise.
9824         Reported by Ian Beckwith <ianb@erislabs.net>.
9825
9826 2009-09-18  Bruno Haible  <bruno@clisp.org>
9827
9828         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9829         Reported by <erobles@sensacd.com.mx>.
9830
9831 2009-09-17  Eric Blake  <ebb9@byu.net>
9832
9833         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9834         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9835         slashes when checking if last component is missing.
9836         * tests/test-canonicalize.c (main): Test this.
9837
9838         canonicalize, canonicalize-lgpl: honor // if distinct from /
9839         * modules/canonicalize (Files): Add double-slash-root.m4.
9840         * modules/canonicalize-lgpl (Files): Likewise.
9841         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9842         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9843         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9844         fallback definition.
9845         (canonicalize_filename_mode): Use it to protect //.
9846         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9847         (__realpath): Likewise.
9848         * tests/test-canonicalize.c (main): Test this.
9849         * tests/test-canonicalize-lgpl.c (main): Likewise.
9850         * modules/canonicalize-tests (Depends-on): Add same-inode.
9851         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9852
9853         canonicalize-lgpl: fix glibc bug with trailing slash
9854         * m4/canonicalize-lgpl.m4: Move contents...
9855         * m4/canonicalize.m4: ...here.
9856         (gl_CANONICALIZE_LGPL): Factor realpath check...
9857         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9858         glibc 2.3.5 bug, fixed 2005-04-27.
9859         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9860         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9861         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9862         * modules/canonicalize-lgpl (Files): Manage file rename.
9863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9864         * modules/stdlib (Makefile.am): Substitute witness.
9865         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9866         is needed.
9867         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9868         replacement is required.
9869         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9870         * doc/glibc-functions/canonicalize_file_name.texi
9871         (canonicalize_file_name): Document this.
9872         * doc/posix-functions/realpath.texi (realpath): Likewise.
9873
9874         canonicalize-lgpl: reject non-directory with trailing slash
9875         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9876         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9877         catches failures in glibc 2.3.5.
9878         * tests/test-canonicalize.c (main): Likewise.
9879
9880         canonicalize-lgpl: use native realpath if it works
9881         * lib/canonicalize-lgpl.c (realpath): Guard with
9882         FUNC_REALPATH_WORKS.
9883         * lib/stdlib.in.h (realpath): Make declaration optional based on
9884         HAVE_REALPATH.
9885         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9886         native realpath works.
9887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9888         * modules/stdlib (Makefile.am): Substitute witness.
9889
9890         canonicalize, canonicalize-lgpl: use <stdlib.h>
9891         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9892         (Include): Mention <stdlib.h>.
9893         (configure.ac): Mention functions we provide.
9894         * modules/canonicalize (configure.ac): Likewise.
9895         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9896         realpath if canonicalize_file_name is missing.
9897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9898         * modules/stdlib (Makefile.am): Substitute witnesses.
9899         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9900         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9901         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9902         * NEWS: Document this.
9903         * doc/glibc-functions/canonicalize_file_name.texi
9904         (canonicalize_file_name): Likewise.
9905         * doc/posix-functions/realpath.texi (realpath): Likewise.
9906         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9907
9908         test-canonicalize: consolidate into single C program
9909         * tests/test-canonicalize.sh: Delete; move setup into...
9910         * tests/test-canonicalize.c (main): ...the program, making it
9911         easier to run in debugger.  Add some tests.
9912         * modules/canonicalize-tests (Files): Remove unused file.
9913         (Depends-on): Add progname.
9914         (configure.ac, Makefile.am): Simplify.
9915
9916         test-canonicalize-lgpl: consolidate into single C program
9917         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9918         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9919         easier to run in debugger.  Add some tests.
9920         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9921         (configure.ac, Makefile.am): Simplify.
9922
9923         canonicalize: avoid resolvepath
9924         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9925         unnecessary checks.
9926         * lib/canonicalize.c (includes): Simplify.
9927         (canonicalize_file_name): Drop resolvepath implementation.
9928         * modules/canonicalize (Depends-on): Drop filenamecat.
9929
9930         canonicalize: don't lose errno
9931         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9932         over calls to free.
9933
9934         canonicalize: simplify errno handling
9935         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9936         assignment.
9937
9938         canonicalize, canonicalize-lgpl: update module dependencies
9939         * modules/canonicalize (Depends-on): Add extensions, lstat,
9940         pathmax, stdlib.
9941         (Files): Drop pathmax.h.
9942         (configure.ac): Adjust macro name.
9943         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9944         lstat, stdlib, sys_stat.
9945         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9946         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9947         extensions.
9948         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9949         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9950         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9951         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9952         declaration, if available.
9953         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9954         we can rely on the readlink module.
9955         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9956         (includes): Use <unistd.h> unconditionally.
9957
9958 2009-09-17  Eric Blake  <ebb9@byu.net>
9959
9960         maint: make Include sections of modules consistent
9961         * modules/alloca: Use only header name; no need to list #include.
9962         * modules/alloca-opt: Likewise.
9963         * modules/arpa_inet: Likewise.
9964         * modules/canon-host: Likewise.
9965         * modules/configmake: Likewise.
9966         * modules/dirent: Likewise.
9967         * modules/eealloc: Likewise.
9968         * modules/environ: Likewise.
9969         * modules/fchdir: Likewise.
9970         * modules/fcntl: Likewise.
9971         * modules/fcntl-h: Likewise.
9972         * modules/gethrxtime: Likewise.
9973         * modules/gettime: Likewise.
9974         * modules/ignore-value: Likewise.
9975         * modules/inet_ntop: Likewise.
9976         * modules/inet_pton: Likewise.
9977         * modules/inttypes: Likewise.
9978         * modules/isnand-nolibm: Likewise.
9979         * modules/isnanf-nolibm: Likewise.
9980         * modules/mbchar: Likewise.
9981         * modules/mbfile: Likewise.
9982         * modules/mbiter: Likewise.
9983         * modules/mbuiter: Likewise.
9984         * modules/netdb: Likewise.
9985         * modules/netinet_in: Likewise.
9986         * modules/nproc: Likewise.
9987         * modules/pagealign_alloc: Likewise.
9988         * modules/poll: Likewise.
9989         * modules/printf-frexp: Likewise.
9990         * modules/pthread: Likewise.
9991         * modules/putenv: Likewise.
9992         * modules/random_r: Likewise.
9993         * modules/relocatable-prog: Likewise.
9994         * modules/search: Likewise.
9995         * modules/select: Likewise.
9996         * modules/selinux-h: Likewise.
9997         * modules/settime: Likewise.
9998         * modules/signal: Likewise.
9999         * modules/size_max: Likewise.
10000         * modules/socklen: Likewise.
10001         * modules/ssize_t: Likewise.
10002         * modules/stdarg: Likewise.
10003         * modules/stdbool: Likewise.
10004         * modules/stddef: Likewise.
10005         * modules/stdint: Likewise.
10006         * modules/stdio: Likewise.
10007         * modules/stdlib: Likewise.
10008         * modules/string: Likewise.
10009         * modules/strings: Likewise.
10010         * modules/sys_file: Likewise.
10011         * modules/sys_ioctl: Likewise.
10012         * modules/sys_select: Likewise.
10013         * modules/sys_socket: Likewise.
10014         * modules/sys_stat: Likewise.
10015         * modules/sys_time: Likewise.
10016         * modules/sys_times: Likewise.
10017         * modules/sys_utsname: Likewise.
10018         * modules/sys_wait: Likewise.
10019         * modules/sysexits: Likewise.
10020         * modules/time: Likewise.
10021         * modules/times: Likewise.
10022         * modules/tmpfile: Likewise.
10023         * modules/trim: Likewise.
10024         * modules/unistd: Likewise.
10025         * modules/wchar: Likewise.
10026         * modules/wctype: Likewise.
10027
10028 2009-09-17  Bruno Haible  <bruno@clisp.org>
10029
10030         Make getdate.y compile on QNX and NetBSD 5 / i386.
10031         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10032         TIME_T_FITS_IN_LONG_INT.
10033         * lib/getdate.y (long_time_t): New type.
10034         (relative_time): Change type of 'seconds' field to long_time_t.
10035         (get_date): Update types of local variables. Check against overflow
10036         during conversion from long_time_t to time_t.
10037         Reported by Matt Kraai <kraai@ftbfs.org>
10038         and Hasso Tepper <hasso@netbsd.org>.
10039
10040 2009-09-17  Bruno Haible  <bruno@clisp.org>
10041
10042         * modules/COPYING: Update copyright years.
10043         * modules/README: Likeiwse.
10044         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10045         Reported by Ian Beckwith <ianb@erislabs.net>.
10046
10047 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10048
10049         * users.txt: Update references for gnuit package.
10050
10051 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10052
10053         * m4/getdelim.m4: Fix typo in copyright line.
10054
10055 2009-09-17  Bruno Haible  <bruno@clisp.org>
10056
10057         * lib/atoll.c: Use the standard header with GPL copyright.
10058         * lib/argz.in.h: Likewise.
10059         * lib/glob.c: Likewise.
10060         * lib/glob-libc.h: Likewise.
10061         * lib/random_r.c: Likewise.
10062         * lib/siglist.h: Likewise.
10063         * lib/strsignal.c: Likewise.
10064         Reported by Ian Beckwith <ianb@erislabs.net>.
10065
10066 2009-09-17  Eric Blake  <ebb9@byu.net>
10067
10068         rmdir: ensure correct dependency order
10069         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10070
10071 2009-09-17  Bruno Haible  <bruno@clisp.org>
10072
10073         Disable assertion that fails on NetBSD 5 / i386.
10074         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10075         Reported by Sam Steingold <sds@gnu.org>
10076         and Hasso Tepper <hasso@netbsd.org>.
10077
10078 2009-09-16  Eric Blake  <ebb9@byu.net>
10079
10080         unlinkdir: port to mingw
10081         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10082         on which no one can unlink a directory.
10083
10084         stdlib: sort witness names
10085         * modules/stdlib (Makefile.am): Sort replacements.
10086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10087         * lib/stdlib.in.h: Likewise.
10088
10089         parse-duration-tests: avoid link failure
10090         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10091         LIBINTL.
10092         Reported by Tom G. Christensen.
10093
10094         openat-tests: ensure unlinkat behaves like rmdir
10095         * tests/test-rmdir.c (main): Factor guts...
10096         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10097         * modules/rmdir-tests (Files): Ship new file.
10098         * modules/openat-tests: New test.
10099         * tests/test-unlinkat.c: Likewise.
10100
10101         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10102         * modules/rmdir-errno (Status, Notice): Now obsolete.
10103
10104         rmdir: work around cygwin 1.5.x and mingw bugs
10105         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10106         * lib/rmdir.c (rmdir): Work around it.
10107         * modules/rmdir (Status, Notice): No longer obsolete.
10108         (Files): Add dos.m4.
10109         (Depends-on): Add unistd.
10110         (configure.ac): Set witnesses.
10111         (License): Relax to LGPLv2+.
10112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10113         * modules/unistd (Makefile.am): Substitute witnesses.
10114         * lib/unistd.in.h (rmdir): Declare replacement.
10115         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10116         * modules/rmdir-tests: New tests.
10117         * tests/test-rmdir.c: Likewise.
10118
10119 2009-09-15  Eric Blake  <ebb9@byu.net>
10120
10121         fchdir: improve use of replacement functions
10122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10123         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10124         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10125         REPLACE_CLOSEDIR.
10126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10127         * modules/sys_stat (Makefile.am): Substitute correct witness.
10128         * modules/dirent (Makefile.am): Likewise.
10129         * modules/unistd (Makefile.am): Likewise.
10130         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10131         * lib/unistd.in.h (dup): Likewise.
10132         * lib/sys_stat.in.h (fstat): Likewise.
10133
10134         maint: ignore gnulib-tool temp files
10135         * .gitignore: Ignore files created during gnulib-tool --test.
10136
10137 2009-09-13  Jim Meyering  <meyering@redhat.com>
10138
10139         posixtm: don't reject a time that specify "60" as the number of seconds
10140         * lib/posixtm.c (posixtime): The code to reject invalid dates
10141         would also reject a time specified with the .60 suffix.
10142         But POSIX allows that, in order to accommodate leap seconds.
10143         So don't reject it.
10144         (main): Adjust tests accordingly.
10145         * modules/posixtm (Depends-on): Add stpcpy.
10146
10147 2009-09-11  Jim Meyering  <meyering@redhat.com>
10148
10149         announce-gen: include [$release_type] in emitted Subject:
10150         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10151         e.g., [stable] in the emitted Subject: line.
10152
10153 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10154
10155         Remove obsolete macros from several modules.
10156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10157         obsolete Autoconf macros with their modern counterparts.
10158         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10159         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10161         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10162         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10163         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10164         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10165         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10166         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10167         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10168         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10170         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10171         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10172         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10173         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10174         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10175         * m4/time_r.m4 (gl_TIME_R): Likewise.
10176         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10177         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10178         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10179
10180         Fix copyright header in build-aux scripts.
10181         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10182         recommendation.
10183         * build-aux/ncftpput-ftp: Likewise.
10184         * build-aux/update-copyright: Likewise.
10185
10186 2009-09-09  Eric Blake  <ebb9@byu.net>
10187
10188         test-link: allow Linux choice of errno
10189         * tests/test-link.c (main): Relax test for alternate error.
10190
10191         strndup: fix improper m4 caching
10192         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10193         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10194         (gl_PREREQ_STRNDUP): Delete.
10195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10196         * modules/string (Makefile.am): Substitute it.
10197         * lib/string.in.h (strndup): Modernize prototype.
10198
10199         getcwd: port to mingw
10200         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10201         different from the POSIX assumptions made throughout the getcwd
10202         module; fortunately, the mingw getcwd does not need replacement.
10203         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10204         * modules/getcwd-tests: New test.
10205         * tests/test-getcwd.c: Likewise.
10206
10207         link: fix platform bugs
10208         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10209         * lib/link.c (link): Work around them.  Fix related mingw bug.
10210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10211         * modules/unistd (Makefile.am): Substitute it.
10212         * lib/unistd.in.h (link): Declare replacement.
10213         * doc/posix-functions/link.texi (link): Document this.
10214         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10215
10216         test-link: consolidate into single C program, test more cases
10217         * tests/test-link.sh: Delete.
10218         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10219         at least Cygwin and Solaris.
10220         * modules/link-tests (Files): Remove unused file.
10221         (Depends-on): Add errno, sys_stat.
10222         (Makefile.am): Simplify.
10223
10224 2009-09-08  Bruno Haible  <bruno@clisp.org>
10225
10226         Work around towlower, towupper bug on mingw.
10227         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10228         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10229         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10230         * doc/posix-functions/towupper.texi: Likewise.
10231         Reported by Eric Blake.
10232
10233 2009-09-08  Jim Meyering  <meyering@redhat.com>
10234
10235         build: don't try to run autoheader if we don't use it
10236         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10237         is not used in configure.ac.
10238
10239 2009-09-08  Eric Blake  <ebb9@byu.net>
10240
10241         euidaccess: fix compilation error
10242         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10243
10244         rawmemchr: relax license
10245         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10246         okay.
10247         Reported by Jim Meyering.
10248
10249         mkfifoat: new module
10250         * modules/mkfifoat: New file.
10251         * lib/mkfifoat.c: Likewise.
10252         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10253         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10254         * modules/sys_stat (Makefile.am): Use them.
10255         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10256         * MODULES.html.sh (File system functions): Mention module.
10257         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10258         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10259         * modules/mkfifoat-tests: New test.
10260         * tests/test-mkfifoat.c: Likewise.
10261
10262         strchrnul: relax license
10263         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10264         okay.
10265         Reported by Jim Meyering.
10266
10267 2009-09-08  Eric Blake  <ebb9@byu.net>
10268
10269         fstatat: fix compilation on Solaris
10270         * lib/fstatat.c (includes): Add fcntl.h.
10271         Reported by Pádraig Brady.
10272
10273 2009-09-07  Eric Blake  <ebb9@byu.net>
10274
10275         rename: modernize replacement
10276         * modules/rename (Depends-on): Add stdio.
10277         (configure.ac): Declare witness.
10278         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10279         stdio take care of replacement.
10280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10281         * modules/stdio (Makefile.am): Substitute them.
10282         * lib/stdio.in.h (rename): Declare replacement.
10283         * lib/rename.c (includes): Allow cross-compilation to non-windows
10284         machines.
10285         * doc/posix-functions/rename.texi (rename): Improve
10286         documentation.
10287
10288         stdio: sort witness names
10289         * modules/stdio (Makefile.am): Sort replacements.
10290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10291         * lib/stdio.in.h: Likewise.
10292
10293         getcwd: minor cleanups
10294         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10295         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10296
10297         openat: provide more convenience names
10298         * modules/faccessat (configure.ac): Add C witness.
10299         * lib/unistd.in.h (readlinkat): Fix typo.
10300         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10301         convenience wrappers.
10302         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10303         wrappers in syntax checks.
10304
10305 2009-09-06  Eric Blake  <ebb9@byu.net>
10306
10307         doc: fix comments in recent patches
10308         * lib/faccessat.c: Mention correct function.
10309         * lib/fchmodat.c: Likewise.
10310         * lib/fchownat.c: Likewise.
10311         * lib/symlinkat.c: Likewise.
10312         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10313         constants.
10314
10315         faccessat, symlinkat: continue cleanup of previous patch
10316         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10317         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10318         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10320         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10321         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10322         set.
10323
10324 2009-09-06  Bruno Haible  <bruno@clisp.org>
10325
10326         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10327         (fstatat): Declare if GNULIB_FSTATAT is set.
10328         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10329         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10330         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10331         * modules/fcntl-h (Files): Remove m4/openat.m4.
10332         * modules/sys_stat (Files): Remove m4/openat.m4.
10333         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10334         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10335         * modules/unistd (Files): Remove m4/openat.m4.
10336         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10337         GNULIB_OPENAT.
10338         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10339         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10340         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10341         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10342         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10343         gl_OPENAT_DEFAULTS.
10344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10345         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10346         Don't require gl_OPENAT_DEFAULTS.
10347         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10348         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10349         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10350         (gl_OPENAT_DEFAULTS): Remove macro.
10351
10352 2009-09-06  Bruno Haible  <bruno@clisp.org>
10353
10354         * modules/openat (configure.ac): Remove unneeded witness.
10355
10356 2009-09-06  Bruno Haible  <bruno@clisp.org>
10357
10358         Set errno to ENOSYS when a function is entirely unsupported.
10359         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10360         EOPNOTSUPP.
10361         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10362         * modules/chown (Depends-on): Remove errno.
10363
10364 2009-09-06  Bruno Haible  <bruno@clisp.org>
10365
10366         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10367
10368 2009-09-06  Bruno Haible  <bruno@clisp.org>
10369
10370         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10371
10372 2009-09-06  Ben Pfaff  <blp@gnu.org>
10373             Bruno Haible  <bruno@clisp.org>
10374
10375         Work around a glibc bug in strtok_r.
10376         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10377         Undefine if UNDEFINE_STRTOK_R is set.
10378         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10380         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10381         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10382         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10383         UNDEFINE_STRTOK_R.
10384         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10385
10386 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10387
10388         exclude: minor fix
10389         * lib/exclude.c: Include wctype.h
10390
10391 2009-09-06  Akim Demaille  <demaille@gostai.com>
10392
10393         bootstrap: improve error message
10394         * build-aux/bootstrap (find_tool): Upon failure, report the list
10395         of candidates.
10396         Honor the initial value of the envvar.
10397
10398 2009-09-05  Eric Blake  <ebb9@byu.net>
10399
10400         symlinkat: new module
10401         * modules/symlinkat: New file.
10402         * lib/symlinkat.c: Likewise.
10403         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10405         * modules/unistd (Makefile.am): Use them.
10406         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10407         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10408         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10409         * MODULES.html.sh (File system functions): Mention module.
10410         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10411         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10412         * modules/symlinkat-tests: New test.
10413         * tests/test-symlinkat.c: Likewise.
10414
10415         test-openat-safer: add more checks
10416         * tests/test-openat-safer.c (main): Check more code paths.
10417
10418 2009-09-05  Jim Meyering  <meyering@redhat.com>
10419
10420         syntax-check: detect unnecessary inclusion of openat.h
10421         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10422
10423 2009-09-05  Bruno Haible  <bruno@clisp.org>
10424
10425         Support towlower, towupper.
10426         * doc/posix-functions/towlower.texi: Mention module wctype.
10427         * doc/posix-functions/towupper.texi: Likewise.
10428         * lib/wctype.in.h (towlower, towupper): New functions.
10429         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10430         (ASSERT): New macro.
10431         (e): New variable.
10432         (main): Test also towlower, towupper. Test WEOF argument.
10433         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10434
10435 2009-09-05  Bruno Haible  <bruno@clisp.org>
10436
10437         Fix conversion behaviour when the input is invalid.
10438         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10439         mark occurring in first pass of indirect conversion.
10440         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10441         input.
10442         Found by clang's static analyzer.
10443
10444 2009-09-05  Bruno Haible  <bruno@clisp.org>
10445
10446         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10447         where direct conversion is possible.
10448
10449 2009-09-04  Eric Blake  <ebb9@byu.net>
10450
10451         openat: fail with ENOENT on empty name
10452         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10453         buffer.
10454
10455         link-follow: fix logic bug in prior patch
10456         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10457         reversed sense of yes and no in prior patch.  Avoid confusing
10458         compilation failure with desired semantics.
10459
10460         link-follow: accomodate mingw and cross-compilation
10461         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10462         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10463         cross-compilation results to -1, to make linkat easier to
10464         implement when cross-compiling.  Trivially support mingw.
10465         * modules/link-follow (configure.ac): Call new name.
10466         * NEWS: Mention this.
10467
10468 2009-09-03  Eric Blake  <ebb9@byu.net>
10469
10470         faccessat: compile replacement
10471         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10472         needed.
10473
10474         fts: fix compilation error
10475         * lib/fts.c (includes): Re-add "openat.h", for
10476         openat_needs_fchdir.
10477
10478         faccessat: new module
10479         * modules/faccessat: New file.
10480         * lib/faccessat.c: Likewise.
10481         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10483         * modules/unistd (Makefile.am): Use it.
10484         * lib/unistd.in.h (faccessat): Declare it.
10485         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10486         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10487         * MODULES.html.sh (File system functions): Mention it.
10488         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10489         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10490
10491         euidaccess: prefer POSIX over non-standard implementation
10492         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10493         * lib/euidaccess.c (euidaccess): Use it if available.
10494
10495         openat: make template easier to use
10496         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10497         AT_FUNC_F2 to be undefined.
10498         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10499         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10500         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10501         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10502         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10503         Likewise.
10504         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10505         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10506         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10507         Likewise.
10508
10509         openat: declare in POSIX headers
10510         * NEWS: Mention this.
10511         * modules/openat (configure.ac): Declare witnesses.
10512         (Depends-on): Add fcntl-h, sys_stat, unistd.
10513         (Include): Mention correct headers.
10514         * modules/fcntl-h (Depends-on): Add link-warning.
10515         (Files): Add openat.m4.
10516         (Makefile.am): Substitute witnesses.
10517         * modules/sys_stat (Files, Makefile.am): Likewise.
10518         * modules/unistd (Files, Makefile.am): Likewise.
10519         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10520         (gl_OPENAT_DEFAULTS): New macro.
10521         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10523         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10524         (SYS_STAT_H): Remove unused variable.
10525         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10526         * lib/fcntl--.h (includes): Remove unneeded header.
10527         * lib/openat-safer.c (includes): Likewise.
10528         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10529         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10530         appropriate headers.
10531         (__OPENAT_PREFIX): Delete.
10532         * lib/fcntl.in.h (openat): Provide declaration.
10533         (AT_FDCWD): Fix Solaris bug.
10534         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10535         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10536         * lib/fchmodat.c (includes):  Adjust to find declaration.
10537         * lib/fchownat.c (includes): Likewise.
10538         * lib/mkdirat.c (includes): Likewise.
10539         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10540         still visible.
10541
10542 2009-09-02  Eric Blake  <ebb9@byu.net>
10543
10544         errno: use consistently
10545         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10546         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10547         * lib/canonicalize.c (ELOOP): Likewise.
10548         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10549         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10550         * lib/lchown.c (EOPNOTSUPP): Likewise.
10551         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10552         * lib/savewd.c (ESTALE): Likewise.
10553         * lib/settime.c (ENOSYS): Likewise.
10554         * lib/utimens.c (ENOSYS): Likewise.
10555         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10556         * lib/chdir-safer.c (ELOOP): Likewise.
10557         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10558         * modules/c-stack (Depends-on): Add errno.
10559         * modules/canonicalize (Depends-on): Likewise.
10560         * modules/chdir-safer (Depends-on): Likewise.
10561         * modules/fdopendir (Depends-on): Likewise.
10562         * modules/inet_ntop (Depends-on): Likewise.
10563         * modules/inet_pton (Depends-on): Likewise.
10564         * modules/lchown (Depends-on): Likewise.
10565         * modules/openat (Depends-on): Likewise.
10566         * modules/savewd (Depends-on): Likewise.
10567         * modules/settime (Depends-on): Likewise.
10568         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10569
10570         fts: avoid leaking fds
10571         * modules/fts (Depends-on): Add cloexec.
10572         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10573         flag.
10574
10575         fts: make directory fds more robust
10576         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10577         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10578
10579         backupfile, chdir-long, fts, savedir: make safer
10580         * lib/backupfile.c (includes): Use "dirent--.h", since
10581         numbered_backup can write to stderr during readdir.
10582         * lib/savedir.c (includes): Likewise.
10583         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10584         emulation can write to stderr on failure.
10585         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10586         * lib/getcwd.c: Document why opendir_safer is unused.
10587         * lib/glob.c: Likewise.
10588         * lib/scandir.c: Likewise.
10589         * lib/openat-proc.c: Likewise, for open_safer.
10590         * modules/backupfile (Depends-on): Add dirent-safer.
10591         * modules/savedir (Depends-on): Likewise.
10592         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10593         * modules/chdir-long (Depends-on): Add openat-safer.
10594
10595         openat-safer: new module
10596         * modules/openat-safer: New file.
10597         * lib/openat-safer.c: Likewise.
10598         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10599         * lib/fcntl-safer.h (openat_safer): Declare.
10600         * lib/fcntl--.h (openat): Override.
10601         * MODULES.html.sh (File descriptor based I/O): Mention it.
10602         * lib/openat.h: Add double-inclusion guards.
10603         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10604         "fcntl--.h", so we can implement openat.
10605         * modules/openat-safer-tests: New test.
10606         * tests/test-openat-safer.c: New file.
10607
10608         dirent-safer: new module
10609         * modules/dirent-safer: New file.
10610         * lib/dirent--.h: Likewise.
10611         * lib/dirent-safer.h: Likewise.
10612         * lib/opendir-safer.c: Likewise.
10613         * m4/dirent-safer.m4: Likewise.
10614         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10615         * modules/dirent-safer-tests: New test.
10616         * tests/test-dirent-safer.c: New file.
10617         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10618
10619         fdopendir: optimize on mingw
10620         * lib/unistd.in.h (_gl_directory_name): New prototype.
10621         * lib/fchdir.c (_gl_directory_name): Implement it.
10622         (fchdir): Use it to simplify implementation.
10623         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10624         fchdir, when available, to avoid calling [f]chdir().
10625
10626         fdopendir: split into its own module
10627         * lib/openat.c (fdopendir): Move...
10628         * lib/fdopendir.c: ...into new file.
10629         * modules/fdopendir: New module.
10630         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10631         * modules/openat (Depends-on): Add fdopendir.
10632         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10633         fdopendir here.
10634         * modules/savedir (Depends-on): Only need fdopendir, not full
10635         openat.
10636         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10637         * lib/openat.h (fdopendir): Drop prototype.
10638         * lib/dirent.in.h (fdopendir): Provide prototype.
10639         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10640         * modules/dirent (Makefile.am): Substitute them.
10641         * MODULES.html.sh (File system functions): Mention it.
10642         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10643         * modules/fdopendir-tests: New file.
10644         * tests/test-fdopendir.c: Likewise.
10645
10646         fchdir: use more consistent macro convention
10647         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10648         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10649         REPLACE_FCHDIR, rather than relying on config.h macros.
10650         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10651         inside a single make-time REPLACE_FCHDIR block, rather than using
10652         the config.h FCHDIR_REPLACEMENT.
10653         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10654         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10655         Manage fstat replacement.
10656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10657         REPLACE_FCHDIR.
10658         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10659         (Makefile.am): Substitute REPLACE_FCHDIR.
10660         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10661         FCHDIR_REPLACEMENT.
10662         * lib/dup-safer.c (dup_safer): Likewise.
10663         * lib/dup2.c (rpl_dup2): Likewise.
10664         * lib/dup3.c (rpl_dup3): Likewise.
10665         * lib/open.c (rpl_open): Likewise.
10666
10667         fchdir: simplify error handling, and support dup3
10668         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10669         stdbool, malloc-posix, realloc-posix.
10670         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10671         (ensure_dirs_slot): Return false on allocation failure.
10672         (rpl_dup2): Delete.
10673         (_gl_register_dup): New function.
10674         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10675         (_gl_register_fd): Close fd on allocation failure.
10676         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10677         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10678         prototype.
10679         (rpl_dup2_fchdir): Delete prototype.
10680         * lib/open.c (open): Update caller.
10681         * lib/dup2.c (dup2): Track fchdir metadata.
10682         * lib/dup3.c (dup3): Likewise.
10683         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10685
10686 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10687
10688         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10689         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10690         don't pass arguments to AC_OUTPUT.
10691
10692 2009-09-02  Bruno Haible  <bruno@clisp.org>
10693
10694         * modules/mkdtemp (License): Relicense under LGPLv2+.
10695         Reported by Paolo Bonzini.
10696
10697 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10698
10699         Replace uses of obsolete autoconf macros in Jim's modules.
10700         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10701         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10702         can evoke a warning from autoconf when run with -Wobsolete
10703         enabled.  They were declared obsolete for good reasons (see
10704         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10705         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10706         should not continue using the deprecated macros.
10707         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10708         obsolete Autoconf macros with modern counterparts.
10709         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10710         * m4/dos.m4 (gl_AC_DOS): Likewise.
10711         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10712         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10713         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10714         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10715         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10716         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10717         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10718         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10719         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10720         Likewise.
10721         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10722         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10723         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10724         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10725         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10726         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10727
10728 2009-09-01  Eric Blake  <ebb9@byu.net>
10729
10730         fchdir: fix off-by-one bug in previous patch
10731         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10732         (_gl_unregister_fd): Delete useless if.
10733
10734 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10735
10736         maint.mk: sort the list of syntax-check rules
10737         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10738         easier to get a sense of progress when the rules are run sequentially
10739         and take a long time.
10740
10741 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10742
10743         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10744         * modules/netinet_in: Likewise.
10745         * modules/sys_file: Likewise.
10746         * modules/sys_ioctl: Likewise.
10747         * modules/sys_select: Likewise.
10748         * modules/sys_socket: Likewise.
10749         * modules/sys_stat: Likewise.
10750         * modules/sys_time: Likewise.
10751         * modules/sys_times: Likewise.
10752         * modules/sys_utsname: Likewise.
10753         * modules/sys_wait: Likewise.
10754
10755 2009-09-01  Jim Meyering  <meyering@redhat.com>
10756
10757         fts: help ensure that return values are not ignored
10758         * lib/fts_.h (__GNUC_PREREQ): Define.
10759         (__attribute_warn_unused_result__): Define.
10760         (fts_children, fts_close, fts_open, fts_read): Declare with
10761         __attribute_warn_unused_result__.
10762
10763         fts: fts_close now fails also when closing a dir file descriptor fails
10764         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10765         and propagate to caller, along with errno.
10766
10767         announce-gen: correct formatting in --help output
10768         * build-aux/announce-gen (usage): Move the one-line description in
10769         --help output "up", to where it belongs, just after Usage:.
10770
10771 2009-08-31  Eric Blake  <ebb9@byu.net>
10772
10773         fchdir: port to mingw
10774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10775         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10776         opened, then use a substitute.
10777         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10778         replacement.
10779         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10780         (_gl_register_fd): No need to check stat if open already filters
10781         all directories.
10782         (fchdir): Fix error condition to match POSIX.
10783         * modules/fchdir (Depends-on): Add sys_stat.
10784         * doc/posix-functions/open.texi (open): Document the limitation.
10785         * modules/fchdir-tests: New file.
10786         * tests/test-fchdir.c: Likewise.
10787
10788         canonicalize: allow cross-testing from cygwin to mingw
10789         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10790         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10791         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10792         Likewise.
10793         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10794         target does not support symlinks.
10795         * tests/test-canonicalize-lgpl.sh: Likewise.
10796
10797         chown: avoid compilation warning on mingw
10798         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10799         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10800         mingw.
10801         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10802         * modules/chown (Depends-on): Add errno.
10803
10804 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10805
10806         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10807         command.
10808
10809 2009-08-31  Jim Meyering  <meyering@redhat.com>
10810
10811         canonicalize: remove useless initialization
10812         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10813         initialization of local, "end".
10814
10815 2009-08-30  Bruno Haible  <bruno@clisp.org>
10816
10817         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10818         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10819         ENOSYS.
10820
10821 2009-08-30  Bruno Haible  <bruno@clisp.org>
10822
10823         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10824         /usr/xpg4/bin/tr when it exists.
10825         * tests/test-pipe-filter-gi1.sh: Likewise.
10826
10827 2009-08-30  Bruno Haible  <bruno@clisp.org>
10828
10829         Work around deficient /usr/bin/id program on Solaris.
10830         * tests/test-file-has-acl.sh (ID): New variable.
10831         * tests/test-set-mode-acl.sh (ID): Likewise.
10832         * tests/test-copy-acl.sh (ID): Likewise.
10833         * tests/test-copy-file.sh (ID): Likewise.
10834
10835 2009-08-30  Bruno Haible  <bruno@clisp.org>
10836
10837         New module 'xstriconveh'.
10838         * lib/xstriconveh.h: New file.
10839         * lib/xstriconveh.c: New file.
10840         * modules/xstriconveh: New file.
10841
10842 2009-08-30  Bruno Haible  <bruno@clisp.org>
10843
10844         Make it easier to use mem_cd_iconveh.
10845         * lib/striconveh.h (iconveh_t): New type.
10846         (iconveh_open, iconveh_close): New declarations.
10847         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10848         with a single 'const iconveh_t *' argument.
10849         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10850         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10851         with a single 'const iconveh_t *' argument.
10852         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10853         * tests/test-striconveh.c (main): Update.
10854         * NEWS: Mention the change.
10855
10856 2009-08-30  Bruno Haible  <bruno@clisp.org>
10857
10858         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10859         problem.
10860
10861 2009-08-30  Bruno Haible  <bruno@clisp.org>
10862
10863         Work around iconv_open problem on Solaris.
10864         * lib/iconv_open-solaris.gperf: New file.
10865         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10866         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10867         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10868         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10869         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10870         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10871
10872 2009-08-29  Jim Meyering  <meyering@redhat.com>
10873
10874         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10875         * top/maint.mk (cvs-check): Remove target; it was just an alias
10876         to the better-named vc-diff-check.
10877         (maintainer-distcheck): Remove rule.  It was used only from
10878         the (alpha/beta/major) target, and all of its commands but one
10879         were coreutils-specific.
10880         (vc-dist): Remove rule.
10881         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10882         Run vc-diff-check, not vc-dist.
10883         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10884
10885 2009-08-27  Bruno Haible  <bruno@clisp.org>
10886
10887         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10888         of 0.
10889
10890 2009-08-27  Bruno Haible  <bruno@clisp.org>
10891
10892         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10893         compilers.
10894         * doc/func.texi: Document the SunPRO C bug.
10895
10896 2009-08-27  Bruno Haible  <bruno@clisp.org>
10897
10898         Fix link error on Solaris.
10899         * tests/test-parse-duration.c (xstrdup): Remove function.
10900
10901 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10902
10903         ignore-value: handle pointer types, too
10904         * lib/ignore-value.h (__attribute__): Remove definition.
10905         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10906         of a more concise and more-often effective "(void) i" statement.
10907         (ignore_ptr): New function to suppress warnings from functions that
10908         return pointers, and to make it explicit that one function doesn't
10909         handle all cases.
10910
10911 2009-08-25  Bruno Haible  <bruno@clisp.org>
10912
10913         dup2: work around a Linux bug.
10914         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10915         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10916         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10917         Reported by Simon Josefsson.
10918
10919 2009-08-25  Jim Meyering  <meyering@redhat.com>
10920
10921         libguestfs uses gnulib
10922         * users.txt: Add libguestfs.
10923
10924 2009-08-24  Eric Blake  <ebb9@byu.net>
10925
10926         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10927         * lib/pipe2.c (includes): Add binary-io.h.
10928         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10929
10930 2009-08-24  Bruno Haible  <bruno@clisp.org>
10931
10932         Tolerate declared but missing accept4 syscall.
10933         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10934         available.
10935         * lib/sys_socket.in.h (accept4): If the function is already present,
10936         override it.
10937         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10938         * modules/accept4 (Makefile.am): Compile accept4.c always.
10939         Reported by Paolo Bonzini and Eric Blake.
10940
10941 2009-08-23  Bruno Haible  <bruno@clisp.org>
10942
10943         New module 'accept4'.
10944         * lib/sys_socket.in.h (accept4): New declaration.
10945         * lib/accept4.c: New file.
10946         * m4/accept4.m4: New file.
10947         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10948         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10949         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10950         HAVE_ACCEPT4.
10951         * modules/accept4: New file.
10952         * doc/glibc-functions/accept4.texi: Mention the new module.
10953
10954 2009-08-24  Jim Meyering  <meyering@redhat.com>
10955
10956         progname: also set global program_invocation_name, when possible
10957         Before this change, a libtool-enabled program that calls glibc's
10958         error function would report the program name as
10959         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10960         * modules/progname (configure.ac): Check for a declaration of
10961         program_invocation_name.
10962         * lib/progname.c:  Include <errno.h>.
10963         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10964         Set program_invocation_name.
10965
10966 2009-08-23  Bruno Haible  <bruno@clisp.org>
10967
10968         * lib/dup3.c: Include <string.h>.
10969
10970 2009-08-23  Bruno Haible  <bruno@clisp.org>
10971
10972         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10973         * lib/pipe2.c (pipe2): Likewise.
10974         Suggested by Eric Blake.
10975
10976 2009-08-23  Bruno Haible  <bruno@clisp.org>
10977
10978         Tolerate declared but missing dup3 syscall.
10979         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10980         * lib/unistd.in.h (dup3): If the function is already present,
10981         override it.
10982         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10983         * modules/dup3 (Makefile.am): Compile dup3.c always.
10984         Reported by Paolo Bonzini.
10985
10986 2009-08-23  Bruno Haible  <bruno@clisp.org>
10987
10988         Tolerate declared but missing pipe2 syscall.
10989         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10990         available.
10991         * lib/unistd.in.h (pipe2): If the function is already present,
10992         override it.
10993         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10994         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10995         Reported by Paolo Bonzini.
10996
10997 2009-08-23  Bruno Haible  <bruno@clisp.org>
10998
10999         * lib/pipe2.c (pipe2): Move #ifs inside function.
11000
11001 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11002
11003         quotearg: document limitations of quote_these_too
11004         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11005         those limitations are created.
11006         * lib/quotearg.h (set_char_quoting): Document that digits and
11007         letters that are special after backslash are not permitted.
11008         (quotearg_char): Cross-reference set_char_quoting documentation.
11009
11010 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11011
11012         quotearg: implement custom_quoting_style
11013         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11014         right_quote fields.
11015         (set_custom_quoting): New public function.
11016         (quotearg_buffer_restyled): Add left_quote and right_quote
11017         arguments, handle them very much like locale quoting, and update
11018         all uses.
11019         (quotearg_n_custom): New public function.
11020         (quotearg_n_custom_mem): New public function.
11021         (quotearg_custom): New public function.
11022         (quotearg_custom_mem): New public function.
11023         * lib/quotearg.h: Prototype and document new public functions.
11024         (enum quoting_style): For escape_quoting_style and
11025         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11026         ignored even though they're otherwise like c_quoting_style.
11027         Add custom_quoting_style member and document with comparison to
11028         clocale_quoting_style.
11029         * tests/test-quotearg.c (custom_quotes): New array.
11030         (custom_results): New array.
11031         (main): Extend to test custom quoting.
11032
11033 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11034
11035         quotearg: fix right quote escaping when it's in quote_these_too
11036         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11037         quote, be sure to prepend only one backslash.
11038         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11039         (main): Test it.
11040
11041 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11042
11043         quotearg-tests: test escaping of embedded locale quotes
11044         * tests/test-quotearg.c (struct result_strings): Add member for
11045         new input.
11046         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11047         (inputs): Add new input.
11048         (results_g): Add expected results.
11049         (flag_results): Likewise.
11050         (locale_results): Likewise.
11051         (compare_strings): Check those.
11052
11053 2009-08-23  Bruno Haible  <bruno@clisp.org>
11054
11055         Tests for module 'dup3'.
11056         * modules/dup3-tests: New file.
11057         * tests/test-dup3.c: New file.
11058
11059         New module 'dup3'.
11060         * lib/unistd.in.h (dup3): New declaration.
11061         * lib/dup3.c: New file.
11062         * m4/dup3.m4: New file.
11063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11064         HAVE_DUP3.
11065         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11066         * modules/dup3: New file.
11067         * doc/glibc-functions/dup3.texi: Mention the new module.
11068
11069 2009-08-23  Bruno Haible  <bruno@clisp.org>
11070
11071         Tweak the dup2 test.
11072         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11073         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11074         the test file is still empty. Fix argument order of lseek.
11075
11076 2009-08-23  Bruno Haible  <bruno@clisp.org>
11077
11078         Avoid test link errors when the modules getopt-gnu, gettext are used.
11079         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11081
11082 2009-08-23  Bruno Haible  <bruno@clisp.org>
11083
11084         Fix getdtablesize() on mingw.
11085         * lib/getdtablesize.c (getdtablesize): Implement differently.
11086         * lib/unistd.in.h (getdtablesize): Improve comment.
11087
11088 2009-08-23  Bruno Haible  <bruno@clisp.org>
11089
11090         New module 'mkostemp'.
11091         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11092         * lib/stdlib.in.h (mksotemp): New declaration.
11093         * lib/mkostemp.c: New file, from glibc with modifications.
11094         * lib/tempname.h (GT_FILE): Remove outdated comment.
11095         (gen_tempname): Add flags argument.
11096         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11097         (__GT_FILE): Map to 1.
11098         (small_open, large_open): Remove macros.
11099         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11100         * lib/mkstemp.c (mkstemp): Update.
11101         * lib/mkdtemp.c (mkdtemp): Likewise.
11102         * m4/mkostemp.m4: New file.
11103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11104         HAVE_MKOSTEMP.
11105         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11106         HAVE_MKOSTEMP.
11107         * modules/mkostemp: New file, based on modules/mkstemp.
11108         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11109         * NEWS: Mention the change.
11110
11111 2009-08-23  Bruno Haible  <bruno@clisp.org>
11112
11113         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11114         Reported by Eric Blake.
11115
11116 2009-08-23  Bruno Haible  <bruno@clisp.org>
11117
11118         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11119         Reported by Eric Blake.
11120
11121 2009-08-23  Bruno Haible  <bruno@clisp.org>
11122
11123         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11124         * modules/pipe2 (Depends-on): Likewise.
11125
11126 2009-08-23  Eric Blake  <ebb9@byu.net>
11127
11128         fcntl-h: add O_TTY_INIT support
11129         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11130         * tests/test-fcntl-h.c (o): Test it.
11131         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11132
11133         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11134         * modules/fcntl: Move <fcntl.h> header replacement...
11135         * modules/fcntl-h: ...to new name, so as not to collide with
11136         like-named function.
11137         * tests/test-fcntl.c: Rename...
11138         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11139         * modules/fcntl-tests: Rename...
11140         * modules/fcntl-h-tests: ...to this.  Update test file name.
11141         * modules/chdir-long (Depends-on): Update clients.
11142         * modules/chdir-safer (Depends-on): Likewise.
11143         * modules/fcntl-safer (Depends-on): Likewise.
11144         * modules/fts (Depends-on): Likewise.
11145         * modules/mkancesdirs (Depends-on): Likewise.
11146         * modules/mkdir-p (Depends-on): Likewise.
11147         * modules/open (Depends-on): Likewise.
11148         * modules/savewd (Depends-on): Likewise.
11149         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11150         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11151
11152 2009-08-22  Bruno Haible  <bruno@clisp.org>
11153
11154         * modules/binary-io (License): Relicense under LGPL.
11155         * modules/pipe2 (License): Likewise.
11156
11157 2009-08-22  Bruno Haible  <bruno@clisp.org>
11158
11159         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11160         return value.
11161         * lib/pipe-filter-gi.c (filter_init): Likewise.
11162         Reported by Eric Blake.
11163
11164 2009-08-22  Bruno Haible  <bruno@clisp.org>
11165
11166         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11167         * modules/pipe (Depends-on): Add pipe2.
11168
11169 2009-08-22  Bruno Haible  <bruno@clisp.org>
11170
11171         Tests for module 'pipe2'.
11172         * modules/pipe2-tests: New file.
11173         * tests/test-pipe2.c: New file.
11174
11175         New module 'pipe2'.
11176         * lib/unistd.in.h (pipe2): New declaration.
11177         * lib/pipe2.c: New file.
11178         * m4/pipe2.m4: New file.
11179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11180         HAVE_PIPE2.
11181         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11182         * modules/pipe2: New file.
11183         * doc/glibc-functions/pipe2.texi: Mention the new module.
11184
11185 2009-08-22  Bruno Haible  <bruno@clisp.org>
11186
11187         Reference some new glibc functions.
11188         * doc/glibc-functions/accept4.texi: New file.
11189         * doc/glibc-functions/dup3.texi: New file.
11190         * doc/glibc-functions/mkostemp.texi: New file.
11191         * doc/glibc-functions/pipe2.texi: New file.
11192         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11193         (Glibc sys/socket.h): Refer to accept4.
11194         (Glibc unistd.h): Refer to dup3, pipe2.
11195         Reported by Eric Blake.
11196
11197 2009-08-22  Jim Meyering  <meyering@redhat.com>
11198             Bruno Haible  <bruno@clisp.org>
11199
11200         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11201         This makes it so packages using automake-1.11's silent-rules option
11202         can print e.g., a single "GEN    configmake.h" line, rather than
11203         the 30+ statements that perform the job.  If you want to see the
11204         actual commands, you can still run "make V=1".
11205         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11206         so that make output is abbreviated when those variables are defined
11207         appropriately.
11208         * modules/argz: Likewise.
11209         * modules/arpa_inet: Likewise.
11210         * modules/byteswap: Likewise.
11211         * modules/configmake: Likewise.
11212         * modules/dirent: Likewise.
11213         * modules/errno: Likewise.
11214         * modules/fcntl: Likewise.
11215         * modules/float: Likewise.
11216         * modules/fnmatch: Likewise.
11217         * modules/getopt-posix: Likewise.
11218         * modules/glob: Likewise.
11219         * modules/iconv_open: Likewise.
11220         * modules/inttypes: Likewise.
11221         * modules/localcharset: Likewise.
11222         * modules/locale: Likewise.
11223         * modules/math: Likewise.
11224         * modules/netdb: Likewise.
11225         * modules/netinet_in: Likewise.
11226         * modules/poll: Likewise.
11227         * modules/posix_spawnp-tests: Likewise.
11228         * modules/sched: Likewise.
11229         * modules/search: Likewise.
11230         * modules/selinux-h: Likewise.
11231         * modules/signal: Likewise.
11232         * modules/spawn: Likewise.
11233         * modules/stdarg: Likewise.
11234         * modules/stdbool: Likewise.
11235         * modules/stddef: Likewise.
11236         * modules/stdint: Likewise.
11237         * modules/stdio: Likewise.
11238         * modules/stdlib: Likewise.
11239         * modules/string: Likewise.
11240         * modules/strings: Likewise.
11241         * modules/sys_file: Likewise.
11242         * modules/sys_ioctl: Likewise.
11243         * modules/sys_select: Likewise.
11244         * modules/sys_socket: Likewise.
11245         * modules/sys_stat: Likewise.
11246         * modules/sys_time: Likewise.
11247         * modules/sys_times: Likewise.
11248         * modules/sys_utsname: Likewise.
11249         * modules/sys_wait: Likewise.
11250         * modules/sysexits: Likewise.
11251         * modules/time: Likewise.
11252         * modules/unistd: Likewise.
11253         * modules/wchar: Likewise.
11254         * modules/wctype: Likewise.
11255
11256 2009-08-22  Jim Meyering  <meyering@redhat.com>
11257
11258         announce-gen: detect write failure
11259         * build-aux/announce-gen: Add Coda at end.
11260         Remove equivalent-but-more-verbose block at top.
11261
11262 2009-08-19  Akim Demaille  <demaille@gostai.com>
11263
11264         bootstrap: --help to stdout.
11265         * bootstrap (usage): Don't send --help to stderr.
11266         Use a here doc instead of a long string.
11267
11268 2009-08-21  Eric Blake  <ebb9@byu.net>
11269
11270         test-popen-safer: split from test-popen
11271         * tests/test-popen.c (main): Move...
11272         * tests/test-popen.h: ...into new file.
11273         * tests/test-popen-safer2.c: New file.
11274         * modules/popen-tests (Files): Add test-popen.h.
11275         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11276         Suggested by Bruno Haible.
11277
11278         test-fcntl-safer: split from test-open
11279         * tests/test-open.c (main): Move...
11280         * tests/test-open.h: ...into new file.
11281         * tests/test-fcntl-safer.c: New file.
11282         * modules/open-tests (Files): Add test-open.h.
11283         * modules/fcntl-safer-tests: New file.
11284         Suggested by Bruno Haible.
11285
11286         test-fopen-safer: split from test-fopen
11287         * tests/test-fopen.c (main): Move...
11288         * tests/test-fopen.h: ...into new file.
11289         * tests/test-fopen-safer.c: New file.
11290         * modules/fopen-tests (Files): Add test-fopen.h.
11291         * modules/fopen-safer-tests: New file.
11292         Suggested by Bruno Haible.
11293
11294 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11295
11296         popen-safer: test O_CLOEXEC at run-time.
11297         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11298
11299 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11300
11301         fcntl: move more flags to the header
11302         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11303         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11304         * lib/fcntl.in.h: Do both things here.
11305
11306 2009-08-21  Jim Meyering  <meyering@redhat.com>
11307
11308         consistently remove $@-t before redirecting to it
11309         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11310         * modules/alloca-opt: Likewise.
11311         * modules/byteswap: Likewise.
11312         * modules/fnmatch: Likewise.
11313         * modules/getopt-posix: Likewise.
11314         * modules/glob: Likewise.
11315         * modules/poll: Likewise.
11316         * modules/posix_spawnp-tests: Likewise.
11317         * modules/sys_socket: Likewise.
11318         * modules/sysexits: Likewise.
11319
11320 2009-08-21  Eric Blake  <ebb9@byu.net>
11321
11322         popen: simplify access to original popen
11323         * lib/popen.c (rpl_popen): No need to worry about popen being a
11324         macro.
11325         Reported by Bruno Haible.
11326
11327 2009-08-20  Eric Blake  <ebb9@byu.net>
11328
11329         build: avoid some compiler warnings
11330         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11331         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11332         type.
11333         (new_exclude_segment, excluded_file_pattern_p)
11334         (excluded_file_name_p): Reduce scope.
11335         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11336         old-style declaration.
11337
11338 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11339
11340         * tests/test-exclude1.sh: Handle Windows EOL.
11341         * tests/test-exclude2.sh: Likewise.
11342         * tests/test-exclude3.sh: Likewise.
11343         * tests/test-exclude4.sh: Likewise.
11344         * tests/test-exclude5.sh: Likewise.
11345         * tests/test-exclude6.sh: Likewise.
11346         * tests/test-exclude7.sh: Likewise.
11347
11348 2009-08-19  Akim Demaille  <demaille@gostai.com>
11349
11350         bootstrap: find sha1sum when named gsha1sum.
11351         * bootstrap (find_tool): New.
11352         ($SHA1SUM): New.
11353         Use it.
11354
11355 2009-08-20  Jim Meyering  <meyering@redhat.com>
11356
11357         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11358         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11359         expression that converts "." in a file name to "\." in the resulting
11360         regexp.  Start with a dummy statement, so that prior shell variable
11361         definitions are expanded portably.  Reported by Simon Josefsson.
11362
11363 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11364
11365         Fix polling for writeability of a screen buffer.
11366         * lib/poll.c: Distinguish input and screen buffers for the
11367         Win32 implementation.
11368         * lib/select.c: Likewise.
11369
11370 2009-08-19  Eric Blake  <ebb9@byu.net>
11371
11372         popen-safer: prevent popen from clobbering std descriptors
11373         * modules/popen-safer: New file.
11374         * lib/popen-safer.c: Likewise.
11375         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11376         * lib/stdio--.h (popen): Provide override.
11377         * lib/stdio-safer.h (popen_safer): Provide declaration.
11378         * tests/test-popen.c (includes): Partially test this.
11379         * modules/popen-safer-tests: New file, for more tests.
11380         * tests/test-popen-safer.c: Likewise.
11381         * MODULES.html.sh (file stream based Input/Output): Mention it.
11382
11383         tests: test some of the *-safer modules
11384         * modules/fopen-safer (Depends-on): Add fopen.
11385         * modules/fcntl-safer (Depends-on): Add fcntl.
11386         * modules/stdlib-safer (Depends-on): Add stdlib.
11387         (configure.ac): Set indicator.
11388         * modules/unistd-safer (configure.ac): Likewise.
11389         * modules/tmpfile-safer (configure.ac): Likewise.
11390         (Depends-on): Add tmpfile.
11391         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11392         active.
11393         * tests/test-fopen.c (includes): Test safer versions when they are
11394         in use.
11395         * tests/test-open.c (includes): Likewise.
11396
11397         popen: fix cygwin 1.5 bug when stdin closed
11398         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11399         * modules/popen: New file.
11400         * modules/popen-tests: Likewise.
11401         * tests/test-popen.c: Likewise.
11402         * m4/popen.m4: Likewise.
11403         * lib/popen.c: Likewise.
11404         * lib/stdio.in.h (popen): New declaration.
11405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11406         * modules/stdio (Makefile.am): Likewise.
11407         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11408
11409 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11410
11411         maint.mk: give full control over update-copyright exclusions
11412         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11413         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11414         (update-copyright): Don't force inclusion of top-level
11415         ChangeLog.  Don't force exclusion of all COPYING files, but make
11416         them the default exclusion instead.
11417
11418 2009-08-16  Bruno Haible  <bruno@clisp.org>
11419
11420         Fix test failures on Solaris 10.
11421         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11422         tests when Solaris iconv() is used.
11423         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11424         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11425         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11426         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11427         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11428
11429 2009-08-16  Bruno Haible  <bruno@clisp.org>
11430
11431         Fix test failures on Solaris 10.
11432         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11433         'tr' program and pass it as first argument.
11434         * tests/test-pipe-filter-gi1.sh: Likewise.
11435         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11436         program as first argument.
11437         * tests/test-pipe-filter-gi1.c (main): Likewise.
11438
11439 2009-08-16  Eric Blake  <ebb9@byu.net>
11440
11441         fpurge: fix previous commits
11442         * modules/fpurge (Makefile.am): Make replacement conditional,
11443         partially reverting 2007-04-29 change; missed in previous
11444         attempt.
11445         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11446         is missing.
11447
11448 2009-08-16  Bruno Haible  <bruno@clisp.org>
11449
11450         Clarify fpurge's effect on the file position.
11451         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11452         * tests/test-fpurge.c (main): Make a second pass for checking the file
11453         position.
11454
11455 2009-08-16  Bruno Haible  <bruno@clisp.org>
11456
11457         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11458         declaration of fpurge is missing.
11459         * tests/test-fpurge.c (main): Check that the file has not more contents
11460         than expected. Close the file before removing it.
11461
11462 2009-08-15  Eric Blake  <ebb9@byu.net>
11463
11464         fpurge: don't wrap working cygwin implementation
11465         * lib/fpurge.c (fpurge): Fix comment typo.
11466         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11467         1.7 to avoid replacement.
11468         * tests/test-fpurge.c (main): Enhance test.
11469
11470 2009-08-15  Eric Blake  <ebb9@byu.net>
11471         and Jim Meyering  <meyering@redhat.com>
11472
11473         test-update-copyright: skip if perl is insufficient
11474         * tests/test-update-copyright.sh: Failure to run maintainer tool
11475         should not cause testsuite failure on cygwin 1.5.
11476
11477 2009-08-14  Eric Blake  <ebb9@byu.net>
11478
11479         doc: mention more functions added in cygwin 1.7.0
11480         * doc/posix-headers/limits.texi (limits.h): Update for recent
11481         cygwin additions.
11482         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11483         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11484         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11485         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11486         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11487
11488 2009-08-14  Eric Blake  <ebb9@byu.net>
11489
11490         maint.mk: simplify update-copyright rule
11491         * top/maint.mk (update-copyright-local): Delete, and document how
11492         to do it in cfg.mk instead.
11493         (update-copyright-exclude-regexp): Delete, and document how to do
11494         it in .x-update-copyright instead.
11495         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11496         exclude ChangeLog.
11497
11498 2009-08-14  Bruno Haible  <bruno@clisp.org>
11499
11500         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11501
11502 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11503
11504         maint.mk: support update-copyright-env
11505         * top/maint.mk (update-copyright-env): Define place-holder.
11506         (update-copyright): Expand $(update-copyright-env) before
11507         invoking update-copyright.
11508
11509 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11510
11511         update-copyright: implement forced reformatting
11512         * build-aux/update-copyright: Implement and document
11513         UPDATE_COPYRIGHT_FORCE.
11514         * tests/test-update-copyright.sh: Test it.
11515
11516 2009-08-14  Eric Blake  <ebb9@byu.net>
11517         and Bruno Haible  <bruno@clisp.org>
11518
11519         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11520         * tests/test-locale.c: Revert previous patch related to NULL.
11521         * tests/test-stdio.c: Likewise.
11522         * tests/test-stdlib.c: Likewise.
11523         * tests/test-string.c: Likewise.
11524         * tests/test-unistd.c: Likewise.
11525         * modules/time-tests (Depends-on): Add verify.
11526         * modules/wchar-tests (Depends-on): Likewise.
11527         * tests/test-time.c: Test for NULL compliance.
11528         * tests/test-wchar.c: Likewise.
11529         * modules/locale (Depends-on): Add stddef.
11530         * modules/stdio (Depends-on): Likewise.
11531         * modules/stdlib (Depends-on): Likewise.
11532         * modules/string (Depends-on): Likewise.
11533         * modules/time (Depends-on): Likewise.
11534         * modules/unistd (Depends-on): Likewise.
11535         * modules/wchar (Depends-on): Likewise.
11536         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11537         * lib/stdlib.in.h (includes): Likewise.
11538         * lib/string.in.h (includes): Likewise.
11539         * lib/time.in.h (includes): Likewise.
11540         * lib/unistd.in.h (includes): Likewise.
11541         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11542         replaced.
11543         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11544         * m4/stddef_h.m4: New file.
11545         * modules/stddef: Likewise.
11546         * lib/stddef.in.h: Likewise.
11547         * modules/stddef-tests: Likewise.
11548         * tests/test-stddef.c: Likewise.
11549         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11550         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11551         * doc/posix-headers/locale.texi (locale.h): Likewise.
11552         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11553         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11554         * doc/posix-headers/string.texi (string.h): Likewise.
11555         * doc/posix-headers/time.texi (time.h): Likewise.
11556         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11557         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11558
11559 2009-08-14  Eric Blake  <ebb9@byu.net>
11560
11561         doc: improve git diff of texinfo files
11562         * .gitattributes: Add rule for *.texi files, with hint on how to
11563         use it.
11564         Copied from m4, and based on a report by Bruno Haible.
11565
11566 2009-08-14  Bruno Haible  <bruno@clisp.org>
11567
11568         Disable multithread support by default on Cygwin 1.5.x for real.
11569         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11570
11571 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11572
11573         update-copyright: much ado about intervals
11574         * build-aux/update-copyright: Implement and document
11575         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11576         of copyright year intervals.
11577         Also, document UPDATE_COPYRIGHT_YEAR.
11578         * tests/test-update-copyright.sh: Test it.
11579
11580         update-copyright: convert 2-digit to 4-digit years
11581         * build-aux/update-copyright: Implement and document.
11582         * tests/test-update-copyright.sh: Update.
11583
11584 2009-08-14  Jim Meyering  <meyering@redhat.com>
11585
11586         test-exclude: avoid coreutils "make check" failure
11587         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11588         just as in test-argmatch.c.
11589
11590 2009-08-13  Eric Blake  <ebb9@byu.net>
11591
11592         test-dup2: fix bad assumption
11593         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11594         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11595
11596         test-version-etc: fix CRLF portability issue
11597         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11598         recognize \r.
11599         * tests/test-argp-version-etc-1.sh: Likewise.
11600
11601         getopt: update client modules
11602         * modules/argp (Depends-on): Use getopt-gnu.
11603         * modules/git-merge-changelog (Depends-on): Likewise.
11604         * modules/long-options (Depends-on): Likewise.
11605         * modules/xstrtol (Depends-on): Likewise.
11606
11607 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11608
11609         * tests/test-version-etc.sh: Don't fail on different
11610         project/version.  Don't fail on CRLF differences.  Rewrite to use
11611         multiple -e instead of multiple sed forks, suggested by Eric Blake
11612         <ebb9@byu.net>.
11613         * tests/test-argp-version-etc-1.sh: Likewise.
11614
11615 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11616
11617         * tests/test-version-etc.sh: Don't fail on different
11618         project/version.
11619
11620 2009-08-12  Bruno Haible  <bruno@clisp.org>
11621
11622         Tests for modules 'getopt-posix', 'getopt-gnu'.
11623         * modules/getopt-posix-tests: New file.
11624         * tests/test-getopt.c: New file.
11625         * tests/test-getopt.h: New file.
11626         * tests/test-getopt_long.h: New file.
11627
11628         New modules 'getopt-posix', 'getopt-gnu'.
11629         * modules/getopt-gnu: New file, renamed from modules/getopt.
11630         * modules/getopt-posix: New file.
11631         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11632         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11633         (gl_GETOPT): Remove macro.
11634         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11635         Disable the test against BSD systems that declare optreset. Test
11636         against mingw bug. Test against lack of support of optional arguments
11637         on many platforms.
11638         * doc/glibc-headers/getopt.texi: Update module name and list of
11639         relevant platforms.
11640         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11641         'getopt-gnu' and more portability problems.
11642         * NEWS: Mention the changes.
11643
11644 2009-08-12  Bruno Haible  <bruno@clisp.org>
11645
11646         Ensure that optarg etc. get declared by <unistd.h>.
11647         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11648         AC_USE_SYSTEM_EXTENSIONS.
11649         * modules/getopt (Depends-on): Add 'extensions'.
11650
11651 2009-08-12  Bruno Haible  <bruno@clisp.org>
11652
11653         Avoid test link errors.
11654         * modules/pipe-filter-ii-tests (Makefile.am): Define
11655         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11656         * modules/pipe-filter-gi-tests (Makefile.am): Define
11657         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11659
11660 2009-08-12  Bruno Haible  <bruno@clisp.org>
11661
11662         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11663         gl_GETOPT_SUBSTITUTE before.
11664         (gl_GETOPT): Use it.
11665         * m4/argp.m4 (gl_ARGP): Update.
11666         Reported by Sergey Poznyakoff.
11667
11668         * m4/getopt.m4: Reorder macros.
11669         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11670         (gl_GETOPT_SUBSTITUTE): Remove macro.
11671
11672 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11673
11674         Minor improvement in gitlog-to-changelog
11675
11676         * build-aux/gitlog-to-changelog: New option `--format' makes
11677         output format string configurable.
11678
11679 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11680
11681         Optimize exclude: use hash tables for non-wildcard patterns.
11682
11683         * lib/exclude.c: Include hash.h and mbuiter.h
11684         (struct exclude_pattern, exclude_segment): New data types.
11685         (struct exclude): Rewrite.
11686         (fnmatch_pattern_has_wildcards): New function.
11687         (new_exclude_segment, free_exclude_segment): New functions.
11688         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11689         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11690         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11691         * modules/exclude: Depend on hash and mbuiter.
11692
11693         * modules/exclude-tests: New file.
11694         * tests/test-exclude.c: New file.
11695         * tests/test-exclude1.sh: New file.
11696         * tests/test-exclude2.sh: New file.
11697         * tests/test-exclude3.sh: New file.
11698         * tests/test-exclude4.sh: New file.
11699         * tests/test-exclude5.sh: New file.
11700         * tests/test-exclude6.sh: New file.
11701         * tests/test-exclude7.sh: New file.
11702
11703 2009-08-12  Bruno Haible  <bruno@clisp.org>
11704
11705         Ensure that getopt() gets declared by <unistd.h>.
11706         * lib/unistd.in.h: Conditionally include getopt.h.
11707         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11708         Set GNULIB_UNISTD_H_GETOPT.
11709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11710         GNULIB_UNISTD_H_GETOPT.
11711         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11712
11713 2009-08-12  Bruno Haible  <bruno@clisp.org>
11714
11715         Clarify logic.
11716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11717         gl_replace_getopt instead of GETOPT_H.
11718
11719 2009-08-12  Bruno Haible  <bruno@clisp.org>
11720
11721         * m4/getopt.m4: Add comments.
11722
11723 2009-08-12  Bruno Haible  <bruno@clisp.org>
11724
11725         Disable multithread support by default on Cygwin 1.5.x.
11726         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11727         set gl_use_threads=no if not specified otherwise.
11728
11729 2009-08-11  Bruno Haible  <bruno@clisp.org>
11730
11731         Avoid compilation error on NetBSD 5.0.
11732         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11733         * tests/test-stdio.c: Likewise.
11734         * tests/test-stdlib.c: Likewise.
11735         * tests/test-string.c: Likewise.
11736         * tests/test-unistd.c: Likewise.
11737         Reported by Greg Troxel <gdt@ir.bbn.com>
11738         at <https://savannah.gnu.org/support/?106973>.
11739
11740 2009-08-11  Bruno Haible  <bruno@clisp.org>
11741
11742         * modules/dup2-tests (Depends-on): Remove close.
11743
11744         Undo 2009-07-19 commit.
11745         * modules/acl-tests (Depends-on): Remove close.
11746         * modules/binary-io-tests (Depends-on): Likewise.
11747         * modules/closein-tests (Depends-on): Likewise.
11748         * modules/flock-tests (Depends-on): Likewise.
11749         * modules/fsync-tests (Depends-on): Likewise.
11750         * modules/lseek-tests (Depends-on): Likewise.
11751         * modules/pipe-tests (Depends-on): Likewise.
11752         * modules/posix_spawn-tests (Depends-on): Likewise.
11753         * modules/posix_spawnp-tests (Depends-on): Likewise.
11754         * modules/stat-time-tests (Depends-on): Likewise.
11755         * modules/yesno-tests (Depends-on): Likewise.
11756
11757 2009-08-10  Bruno Haible  <bruno@clisp.org>
11758
11759         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11760
11761 2009-08-10  Bruno Haible  <bruno@clisp.org>
11762
11763         Fix a gcc warning.
11764         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11765
11766 2009-08-10  Bruno Haible  <bruno@clisp.org>
11767
11768         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11769         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11770         not only the first time.
11771         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11772         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11773         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11774         is 1, not only the the first time.
11775
11776 2009-08-10  Bruno Haible  <bruno@clisp.org>
11777
11778         Make it possible to use module 'gethostname' without module 'close'.
11779         * lib/unistd.in.h (close): Evoke a link error only if
11780         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11782         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11783         * modules/unistd (Makefile.am): Substitute
11784         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11785         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11786         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11787         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11788         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11789         * modules/sys_ioctl (Makefile.am): Substitute
11790         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11791         * modules/socket (configure.ac): On native Windows, set
11792         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11793         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11794         Reported by Sam Steingold <sds@gnu.org>.
11795
11796 2009-08-10  Bruno Haible  <bruno@clisp.org>
11797
11798         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11799         * modules/ioctl (configure.ac): Likewise.
11800
11801 2009-08-10  Bruno Haible  <bruno@clisp.org>
11802
11803         Avoid collision between gnulib wrapper and libintl wrapper.
11804         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11805         already defined in intl/printf.c.
11806         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11807         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11808
11809 2009-08-09  Bruno Haible  <bruno@clisp.org>
11810
11811         Make <sys/select.h> really self-contained, also on Solaris 10.
11812         * lib/sys_select.in.h: Include <string.h>.
11813         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11814         Solaris 10 problem.
11815         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11816         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11817         Reported by Jim Meyering.
11818
11819 2009-08-09  Bruno Haible  <bruno@clisp.org>
11820
11821         Avoid warnings from 'aclocal' that are due to a use of macro name
11822         AM_XGETTEXT_OPTION that is not defined in automake.
11823         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11824         automake.
11825         * modules/error (configure.ac): Likewise.
11826         * modules/propername (configure.ac): Likewise.
11827         * modules/vasprintf (configure.ac): Likewise.
11828         * modules/verror (configure.ac): Likewise.
11829         * modules/xprintf (configure.ac): Likewise.
11830         * modules/xvasprintf (configure.ac): Likewise.
11831
11832 2009-08-08  Bruno Haible  <bruno@clisp.org>
11833
11834         Avoid compilation error in C++ mode.
11835         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11836         Reported by Sam Steingold <sds@gnu.org>.
11837
11838 2009-08-08  Bruno Haible  <bruno@clisp.org>
11839
11840         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11841         for the various Unix platforms.
11842         * doc/posix-headers/limits.texi: Update platforms list regarding
11843         HOST_NAME_MAX.
11844         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11845
11846 2009-08-07  Jim Meyering  <meyering@redhat.com>
11847
11848         selinux-at: fix typo in a comment
11849         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11850         Spotted by Paolo Bonzini.
11851
11852         selinux-at: remove redundant m4 code, add documentation
11853         * modules/selinux-at (configure.ac): Remove redundant code.
11854         LIB_SELINUX is already set via the dependent module, selinux-h.
11855         (Include): Add quotes around selinux-at.h.
11856         * lib/selinux-at.h: Add documentation.
11857         Reported by Bruno Haible in
11858         http://marc.info/?l=gnulib-bug&m=124958988300749
11859
11860 2009-08-07  Bruno Haible  <bruno@clisp.org>
11861
11862         Avoid link error on MacOS X 10.3 and 10.4.
11863         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11864         on non-ELF systems.
11865         * lib/argp-pv.c (argp_program_version): Likewise.
11866         Reported by Simon Josefsson.
11867
11868 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11869
11870         * tests/test-version-etc.sh: Use $EXEEXT.
11871
11872 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11873
11874         update-copyright: update documentation to point to maint.mk
11875         * build-aux/update-copyright: Here.
11876
11877 2009-08-06  Jim Meyering  <meyering@redhat.com>
11878
11879         maint.mk: support update-copyright-local
11880         * top/maint.mk (update-copyright-local): Define place-holder.
11881         (update-copyright): Depend on $(update-copyright-local).
11882
11883 2009-08-06  Jim Meyering  <meyering@redhat.com>
11884
11885         selinux-at: new module
11886         Initially written for coreutils, this module will soon be
11887         used by findutils, too.
11888         * MODULES.html.sh [Misc]: Add selinux-at.
11889         * lib/selinux-at.h: New file, from coreutils.
11890         * lib/selinux-at.c: Likewise.
11891         * modules/selinux-at: Likewise.
11892         (License): Change from LGPL to GPL, since it depends
11893         on the GPL'd openat module.
11894
11895         doc: update README
11896         * README: Remove references to cogito.
11897         Remove cvs-repo-updating instructions from 2007.
11898         Don't imply that CVS is better if you have limited disk space.
11899
11900 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11901
11902         update-copyright: support C-style comments
11903         * build-aux/update-copyright: Implement and document.
11904         * tests/test-update-copyright.sh: Test.
11905
11906 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11907
11908         update-copyright: support omitted "(C)"
11909         * build-aux/update-copyright: Implement and document.  Also,
11910         allow variable whitespace before "(C)".
11911         * tests/test-update-copyright.sh: Test.
11912
11913 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11914
11915         update-copyright: don't trip on non-FSF copyright statements
11916         * build-aux/update-copyright: Fix so that the first correctly
11917         formatted FSF copyright statement is recognized no matter what
11918         appears before it.  Update documentation.
11919         * tests/test-update-copyright.sh: Test that.
11920
11921 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11922
11923         update-copyright: clean up code a little
11924         * build-aux/update-copyright: Append "_re" to the name of any
11925         variable holding a regular expression.
11926         Replace "old" and "new" with "stmt" in variable names.
11927         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11928         handled correctly.
11929         Format code more consistently.
11930
11931 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11932
11933         update-copyright-tests: improve portability
11934         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11935         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11936
11937 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11938
11939         update-copyright: support @copyright{} and &copy;
11940         * build-aux/update-copyright: Implement and document.
11941         * tests/test-update-copyright.sh: Test.
11942
11943 2009-08-04  Jim Meyering  <meyering@redhat.com>
11944
11945         update-copyright-tests: correctly test EOL=\r\n handling
11946         * tests/test-update-copyright.sh: Put \r at the end of some lines
11947         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11948
11949         maint.mk: make update-copyright exclusion list more configurable
11950         * top/maint.mk (update-copyright): Default to excluding COPYING,
11951         but allow an override, in case someone does want to update that file.
11952
11953         maint.mk: don't update copyright date in COPYING
11954         * top/maint.mk (update-copyright): Exclude COPYING.
11955
11956         maint.mk: add a copyright-updating rule
11957         * top/maint.mk (update-copyright): New rule.
11958         Derived from coreutils/Makefile.am.
11959
11960         update-copyright: rename some variables
11961         * build-aux/update-copyright: Rename a few variables for clarity.
11962         Tweak syntax.  List Joel E. Denny as coauthor.
11963
11964 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11965
11966         update-copyright: fix bug for 2-digit last year and add tests
11967         * build-aux/update-copyright: Fix bug.
11968         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11969         specified.
11970         * modules/update-copyright-tests: New
11971         * tests/test-update-copyright.sh: New.
11972
11973 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11974
11975         update-copyright: handle leading tabs in line prefix
11976         * build-aux/update-copyright: Count leading tabs as 8 spaces
11977         when computing margin.  This helps with the formatting of
11978         ChangeLogs, for example.
11979         Fix documentation a little.
11980
11981 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11982
11983         update-copyright: support EOL=\r\n
11984         * build-aux/update-copyright: Implement that.
11985
11986 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11987
11988         update-copyright: automatically format copyright statements
11989         * build-aux/update-copyright: Implement that.
11990         Also, be a little more predictable and safer by always failing
11991         when the full copyright format is not perfectly recognized as an
11992         unbroken whole.  Discussed at
11993         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11994         Rewrite documentation.
11995
11996 2009-08-03  Bruno Haible  <bruno@clisp.org>
11997
11998         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11999
12000 2009-08-02  Bruno Haible  <bruno@clisp.org>
12001
12002         Tests for module 'uname'.
12003         * modules/uname-tests: New file.
12004         * tests/test-uname.c: New file.
12005
12006         New module 'uname'.
12007         * lib/uname.c: New file.
12008         * m4/uname.m4: New file.
12009         * modules/uname: New file.
12010         * doc/posix-functions/uname.texi: Mention the new module.
12011
12012 2009-08-02  Bruno Haible  <bruno@clisp.org>
12013
12014         Tests for module 'sys_utsname'.
12015         * modules/sys_utsname-tests: New file.
12016         * tests/test-sys_utsname.c: New file.
12017
12018         New module 'sys_utsname'.
12019         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12020         * m4/sys_utsname_h.m4: New file.
12021         * modules/sys_utsname: New file.
12022         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12023
12024 2009-08-02  Bruno Haible  <bruno@clisp.org>
12025
12026         Implicitly initialize the sockets library.
12027         * lib/gethostname.c: Include sockets.h.
12028         (rpl_gethostname): Invoke gl_sockets_startup.
12029         * lib/socket.c: Include sockets.h.
12030         (rpl_socket): Invoke gl_sockets_startup.
12031         * modules/gethostname (Depends-on): Add sockets.
12032         * modules/socket (Depends-on): Likewise.
12033         * tests/test-poll.c: Don't include sockets.h.
12034         (main): Don't invoke gl_sockets_startup.
12035         * tests/test-select.c: Don't include sockets.h.
12036         (main): Don't invoke gl_sockets_startup.
12037
12038 2009-08-02  Bruno Haible  <bruno@clisp.org>
12039
12040         Allow multiple calls to gl_sockets_startup.
12041         * lib/sockets.c (initialized_sockets_version): New variable.
12042         (gl_sockets_startup): Do nothing if already called for this or a higher
12043         version.
12044         (gl_sockets_cleanup): Reset initialized_sockets_version.
12045
12046 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12047
12048         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12049         different project/version.
12050
12051 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12052             Bruno Haible  <bruno@clisp.org>
12053
12054         Tests for module 'pipe-filter-gi'.
12055         * modules/pipe-filter-gi-tests: New file.
12056         * tests/test-pipe-filter-gi1.sh: New file.
12057         * tests/test-pipe-filter-gi1.c: New file.
12058         * tests/test-pipe-filter-gi2.sh: New file.
12059         * tests/test-pipe-filter-gi2-main.c: New file.
12060         * tests/test-pipe-filter-gi2-child.c: New file.
12061
12062         New module 'pipe-filter-gi'.
12063         * lib/pipe-filter-gi.c: New file.
12064         * modules/pipe-filter-gi: New file.
12065
12066 2009-08-02  Bruno Haible  <bruno@clisp.org>
12067             Paolo Bonzini  <bonzini@gnu.org>
12068
12069         Tests for module 'pipe-filter-ii'.
12070         * modules/pipe-filter-ii-tests: New file.
12071         * tests/test-pipe-filter-ii1.sh: New file.
12072         * tests/test-pipe-filter-ii1.c: New file.
12073         * tests/test-pipe-filter-ii2.sh: New file.
12074         * tests/test-pipe-filter-ii2-main.c: New file.
12075         * tests/test-pipe-filter-ii2-child.c: New file.
12076
12077         New module 'pipe-filter-ii'.
12078         * lib/pipe-filter.h: New file.
12079         * lib/pipe-filter-ii.c: New file.
12080         * lib/pipe-filter-aux.h: New file.
12081         * modules/pipe-filter-ii: New file.
12082
12083 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12084
12085         * lib/gc-libgcrypt.c: Change copyright to FSF.
12086         * lib/gc-gnulib.c: Likewise.
12087
12088 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12089
12090         * lib/gethostname.c: Include limits.h.
12091
12092 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12093             Bruno Haible  <bruno@clisp.org>
12094
12095         Ensure HOST_NAME_MAX as part of the gethostname module.
12096         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12097         define also HOST_NAME_MAX.
12098         * tests/test-gethostname.c: Include <limits.h>.
12099         (main): Check also HOST_NAME_MAX.
12100         * doc/posix-headers/limits.texi: Document the mingw problem.
12101
12102 2009-08-02  Bruno Haible  <bruno@clisp.org>
12103
12104         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12105         Add comments.
12106
12107 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12108
12109         * lib/gethostname.c: Add Windows wrapper.
12110         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12111         * modules/gethostname: Depend on sys_socket & errno, for also
12112         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12113         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12114
12115 2009-07-31  Jim Meyering  <meyering@redhat.com>
12116
12117         getloadavg: fix symbol name in comment
12118         * lib/getloadavg.c: Correct a typo I introduced when adding
12119         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12120         Matt Kraai spotted the problem.
12121
12122 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12123
12124         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12125         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12126         code also if ! defined N_NAME_POINTER.
12127         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12128         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12129         but the n_name member is a 12-byte array.
12130
12131 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12132
12133         update-copyright: generalize comment handling
12134         * build-aux/update-copyright: Handle copyright statements
12135         within more comment styles.
12136         Document usage.
12137         Report any file with an external copyright holder or parse failure.
12138
12139 2009-07-29  Jim Meyering  <meyering@redhat.com>
12140
12141         mktime: correct setting of REPLACE_MKTIME
12142         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12143
12144         update-copyright: new module
12145         * modules/update-copyright: New file.
12146         * build-aux/update-copyright: New file.
12147         * MODULES.html.sh (maint+release support): Add update-copyright.
12148
12149 2009-07-27  Bruno Haible  <bruno@clisp.org>
12150
12151         Fix compilation error when <ctime> is used and mktime is replaced.
12152         * lib/time.in.h (mktime): New declaration.
12153         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12154         REPLACE_MKTIME instead of defining mktime in config.h.
12155         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12156         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12157         Reported by Ross McFarland <rwmcfa1@neces.com>.
12158
12159 2009-07-27  Bruno Haible  <bruno@clisp.org>
12160
12161         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12162         Reported by Matt Kraai <mkraai@beckman.com>.
12163
12164 2009-07-25  Jim Meyering  <meyering@redhat.com>
12165
12166         maint.mk: avoid warnings about missing files
12167         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12168         diagnostic when .prev-version does not exist.
12169         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12170         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12171         nonexistent cfg.mk.
12172         Suggestions from Simon Josefsson.
12173
12174 2009-07-25  Bruno Haible  <bruno@clisp.org>
12175
12176         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12177         defined as macros. Needed on QNX 6.4.1.
12178         Reported by Matt Kraai <mkraai@beckman.com>.
12179
12180 2009-07-23  Jim Meyering  <meyering@redhat.com>
12181
12182         maint.mk: invoke "make dist" with a working value of XZ_OPT
12183         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12184
12185 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12186
12187         Make fseeko.c compile on QNX.
12188         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12189
12190 2009-07-22  Peter Simons  <simons@cryp.to>
12191
12192         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12193         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12194         * lib/md4.h: Likewise.
12195         * lib/md5.h: Likewise.
12196         * lib/sha1.h: Likewise.
12197         * lib/sha256.h: Likewise.
12198         * lib/sha512.h: Likewise.
12199
12200         tests-sha1: don't assign literal string to 'char *' variable
12201         * tests/test-sha1.c (main): Declare locals with "const" to match
12202         attributes of the right hand side.
12203
12204 2009-07-21  Eric Blake  <ebb9@byu.net>
12205
12206         dup2: fix more mingw problems
12207         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12208         fd to itself.
12209         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12210         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12211         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12212         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12213         care of mingw bugs.
12214
12215 2009-07-21  Jim Meyering  <meyering@redhat.com>
12216
12217         vc-list-files: avoid failure when /bin/sh is dash
12218         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12219         On some Debian based systems, /bin/sh is a symlink to dash, and running
12220         this command would omit the "/" following each 'tests' prefix:
12221           dash -x build-aux/vc-list-files -C . tests
12222         That is because bash and dash work differently:
12223           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12224           bash ok
12225           dash odd
12226
12227 2009-07-21  Eric Blake  <ebb9@byu.net>
12228
12229         dup2-tests: test previous patch
12230         * modules/dup2-tests: New file.
12231         * tests/test-dup2.c: Likewise.
12232         * tests/test-open.c (main): Avoid unspecified behavior.
12233         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12234         test.
12235
12236         dup2: work around mingw and cygwin 1.5 bug
12237         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12239         * modules/unistd (Makefile.am): Substitute it.
12240         * lib/unistd.in.h (dup2): Declare the replacement.
12241         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12242         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12243         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12244         * modules/execute (Depends-on): Add dup2.
12245         * modules/fseterr (Depends-on): Likewise.
12246         * modules/pipe (Depends-on): Likewise.
12247         * modules/posix_spawn-internal (Depends-on): Likewise.
12248
12249 2009-07-21  Bruno Haible  <bruno@clisp.org>
12250
12251         * modules/.gitattributes: New file.
12252
12253 2009-07-20  Bruno Haible  <bruno@clisp.org>
12254
12255         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12256         (main): Use it.
12257
12258 2009-07-20  Eric Blake  <ebb9@byu.net>
12259
12260         test-pipe: make a bit more robust.
12261         * tests/test-pipe.c (myerr): Allow error messages regardless of
12262         what we do to stderr.
12263         (test_pipe): Rearrange to avoid deadlock.
12264         (child_main): Try a larger read, to ensure we avoided deadlock.
12265         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12266         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12267         if misused.
12268
12269 2009-07-19  Jim Meyering  <meyering@redhat.com>
12270
12271         fts: avoid false-positive cycle-detection
12272         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12273         for each new command line argument.
12274
12275 2009-07-19  Bruno Haible  <bruno@clisp.org>
12276
12277         Fix build error on mingw with the modules sys_select and unistd.
12278         * modules/acl-tests (Depends-on): Add close.
12279         * modules/binary-io-tests (Depends-on): Likewise.
12280         * modules/closein-tests (Depends-on): Likewise.
12281         * modules/flock-tests (Depends-on): Likewise.
12282         * modules/fsync-tests (Depends-on): Likewise.
12283         * modules/lseek-tests (Depends-on): Likewise.
12284         * modules/pipe-tests (Depends-on): Likewise.
12285         * modules/posix_spawn-tests (Depends-on): Likewise.
12286         * modules/posix_spawnp-tests (Depends-on): Likewise.
12287         * modules/stat-time-tests (Depends-on): Likewise.
12288         * modules/yesno-tests (Depends-on): Likewise.
12289
12290 2009-07-19  Bruno Haible  <bruno@clisp.org>
12291
12292         Unify conditionals.
12293         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12294         macros, not at the compiler macros.
12295         * lib/pipe.c: Likewise.
12296         * lib/execute.c: Likewise.
12297         * lib/spawni.c: Likewise.
12298
12299 2009-07-19  Bruno Haible  <bruno@clisp.org>
12300
12301         Fix handling of closed stdin/stdout/stderr on mingw.
12302         * lib/w32spawn.h: Include unistd.h.
12303         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12304         file descriptor with O_NOINHERIT flag.
12305         (fd_safer_noinherit): New function, based on fd-safer.c.
12306         (dup_safer_noinherit): New function, based on dup-safer.c.
12307         (undup_safer_noinherit): New function.
12308         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12309         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12310         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12311         instead of fd_safer.
12312         * tests/test-pipe.c: Include <windows.h>.
12313         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12314
12315         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12316         from main.
12317         (test_pipe): Pass an extra argument for disambiguation.
12318         (main): Invoke parent_main or child_main.
12319
12320         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12321         consistently.
12322
12323 2009-07-18  Eric Blake  <ebb9@byu.net>
12324
12325         test-pipe: fix mingw build
12326         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12327
12328 2009-07-18  Bruno Haible  <bruno@clisp.org>
12329
12330         * modules/pipe-tests (Makefile.am): Fix typo.
12331
12332 2009-07-18  Eric Blake  <ebb9@byu.net>
12333
12334         error: fix mingw build
12335         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12336         Reported by Bruno Haible.
12337
12338         error: avoid undefined use of stdout
12339         * lib/error.c (error, error_at_line): Check that fd 1 is open
12340         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12341         is handling faults and the close_stdout module wants to report the
12342         detection of closed stdout as an error.
12343
12344 2009-07-17  Eric Blake  <ebb9@byu.net>
12345
12346         pipe: be robust in face of closed fds
12347         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12348         should cause child to misbehave.
12349         * modules/pipe-tests: New module.
12350         * tests/test-pipe.c: New file.
12351         * tests/test-pipe.sh: New file.
12352         Reported by Akim Demaille.
12353
12354 2009-07-14  Bruno Haible  <bruno@clisp.org>
12355
12356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12357         Reported by anonymous kc.
12358
12359 2009-07-07  Jim Meyering  <meyering@redhat.com>
12360
12361         maint.mk: don't look for translatable strings in *.m4 or *.mk
12362         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12363         when searching for translatable strings.
12364
12365 2009-07-05  Jim Meyering  <meyering@redhat.com>
12366
12367         remove superfluous parentheses in STREQ definition
12368         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12369         * lib/getugroups.c (STREQ): Likewise.
12370         * lib/fnmatch.c (STREQ): Likewise.
12371         Spotted by Bruno Haible.
12372
12373 2009-07-04  Jim Meyering  <meyering@redhat.com>
12374
12375         argv-iter: new module
12376         * MODULES.html.sh: Add argv-iter.
12377         * lib/argv-iter.c, lib/argv-iter.h: New files.
12378         * modules/argv-iter: New file.
12379         * modules/argv-iter-tests: New file.
12380         * tests/test-argv-iter.c: Test it.
12381
12382 2009-07-04  Bruno Haible  <bruno@clisp.org>
12383
12384         Fix assertion.
12385         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12386         contains more exact copies of a given entry than file2, leave the extra
12387         copies unpaired rather than aborting.
12388         Reported by Eric Blake.
12389
12390 2009-07-02  Bruno Haible  <bruno@clisp.org>
12391
12392         Speedup git-merge-changelog for git cherry-pick.
12393         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12394         (entries_mapping_get): New function, extracted from compute_mapping.
12395         (entries_mapping_reverse_get): New function.
12396         (compute_mapping): Add a 'full' argument. Return the result in a
12397         'struct entries_mapping'.
12398         (main): Update. Access the mappings through entries_mapping_get.
12399         Reported by Eric Blake.
12400
12401 2009-07-02  Bruno Haible  <bruno@clisp.org>
12402
12403         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12404         best_i.
12405
12406 2009-07-02  Bruno Haible  <bruno@clisp.org>
12407
12408         Speed up approximate search for matching ChangeLog entries.
12409         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12410         argument. Call fstrcmp_bounded instead of fstrcmp.
12411         (compute_mapping, try_split_merged_entry, main): Update callers.
12412
12413 2009-07-02  Bruno Haible  <bruno@clisp.org>
12414
12415         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12416
12417 2009-06-30  Bruno Haible  <bruno@clisp.org>
12418
12419         Reduce the number of uc_is_cased calls.
12420         * lib/unicase.h (casing_suffix_context_t): Add
12421         'first_char_except_ignorable' field.
12422         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12423         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12424         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12425         Update initializer.
12426         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12427         case-ignorable characters.
12428         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12429         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12430         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12431         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12432         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12433
12434 2009-06-30  Bruno Haible  <bruno@clisp.org>
12435
12436         Tests for module 'unicase/ignorable'.
12437         * modules/unicase/ignorable-tests: New file.
12438         * tests/unicase/test-ignorable.c: New file, generated by
12439         gen-uni-tables.
12440
12441         Tests for module 'unicase/cased'.
12442         * modules/unicase/cased-tests: New file.
12443         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12444         * tests/unicase/test-predicate-part1.h: New file, derived from
12445         tests/unictype/test-predicate-part1.h.
12446         * tests/unicase/test-predicate-part2.h: New file, same as
12447         tests/unictype/test-predicate-part2.h.
12448
12449         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12450         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12451         (output_casing_properties): New function.
12452         (main): Call it.
12453         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12454         * lib/unicase/cased.c: Include unictype/bitmap.h.
12455         (uc_is_cased): Define through a bitmap lookup.
12456         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12457         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12458         (uc_is_case_ignorable): Define through a bitmap lookup.
12459         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12460         lib/unictype/bitmap.h.
12461         (Depends-on): Add inline. Clean up.
12462         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12463         lib/unictype/bitmap.h.
12464         (Depends-on): Add inline. Clean up.
12465         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12466         recognition.
12467         * tests/unicase/test-u16-tolower.c (main): Likewise.
12468         * tests/unicase/test-u32-tolower.c (main): Likewise.
12469
12470 2009-06-30  Bruno Haible  <bruno@clisp.org>
12471
12472         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12473         * lib/unicase/u16-casemap.c: Likewise.
12474         * lib/unicase/u32-casemap.c: Likewise.
12475
12476 2009-06-29  Bruno Haible  <bruno@clisp.org>
12477
12478         Define u32_casefold as a wrapper around u32_ct_casefold.
12479         * lib/unicase/u32-casefold.c: Update.
12480         * modules/unicase/u32-casefold (Depends-on): Add
12481         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12482         unicase/empty-suffix-context. Clean up.
12483
12484         Define u16_casefold as a wrapper around u16_ct_casefold.
12485         * lib/unicase/u16-casefold.c: Update.
12486         * modules/unicase/u16-casefold (Depends-on): Add
12487         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12488         unicase/empty-suffix-context. Clean up.
12489
12490         Define u8_casefold as a wrapper around u8_ct_casefold.
12491         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12492         * lib/unicase/u8-casefold.c: Update.
12493         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12494         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12495
12496         Define u32_totitle as a wrapper around u32_ct_totitle.
12497         * lib/unicase/u32-totitle.c: Update.
12498         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12499         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12500
12501         Define u16_totitle as a wrapper around u16_ct_totitle.
12502         * lib/unicase/u16-totitle.c: Update.
12503         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12504         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12505
12506         Define u8_totitle as a wrapper around u8_ct_totitle.
12507         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12508         functions.
12509         (FUNC): Delegate to U_CT_TOTITLE.
12510         * lib/unicase/u8-totitle.c: Update.
12511         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12512         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12513
12514         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12515         invocation.
12516         * modules/unicase/u32-tolower (Depends-on): Add
12517         unicase/empty-prefix-context, unicase/empty-suffix-context.
12518
12519         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12520         invocation.
12521         * modules/unicase/u16-tolower (Depends-on): Add
12522         unicase/empty-prefix-context, unicase/empty-suffix-context.
12523
12524         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12525         * modules/unicase/u8-tolower (Depends-on): Add
12526         unicase/empty-prefix-context, unicase/empty-suffix-context.
12527
12528         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12529         invocation.
12530         * modules/unicase/u32-toupper (Depends-on): Add
12531         unicase/empty-prefix-context, unicase/empty-suffix-context.
12532
12533         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12534         invocation.
12535         * modules/unicase/u16-toupper (Depends-on): Add
12536         unicase/empty-prefix-context, unicase/empty-suffix-context.
12537
12538         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12539         * modules/unicase/u8-toupper (Depends-on): Add
12540         unicase/empty-prefix-context, unicase/empty-suffix-context.
12541
12542         New module 'unicase/u32-ct-casefold'.
12543         * lib/unicase/u32-ct-casefold.c: New file.
12544         * modules/unicase/u32-ct-casefold: New file.
12545
12546         New module 'unicase/u16-ct-casefold'.
12547         * lib/unicase/u16-ct-casefold.c: New file.
12548         * modules/unicase/u16-ct-casefold: New file.
12549
12550         New module 'unicase/u8-ct-casefold'.
12551         * lib/unicase/u8-ct-casefold.c: New file.
12552         * lib/unicase/u-ct-casefold.h: New file, derived from
12553         lib/unicase/u-casefold.h.
12554         * modules/unicase/u8-ct-casefold: New file.
12555
12556         New module 'unicase/u32-ct-totitle'.
12557         * lib/unicase/u32-ct-totitle.c: New file.
12558         * modules/unicase/u32-ct-totitle: New file.
12559
12560         New module 'unicase/u16-ct-totitle'.
12561         * lib/unicase/u16-ct-totitle.c: New file.
12562         * modules/unicase/u16-ct-totitle: New file.
12563
12564         New module 'unicase/u8-ct-totitle'.
12565         * lib/unicase/u8-ct-totitle.c: New file.
12566         * lib/unicase/u-ct-totitle.h: New file, derived from
12567         lib/unicase/u-totitle.h.
12568         * modules/unicase/u8-ct-totitle: New file.
12569
12570         New module 'unicase/u32-ct-tolower'.
12571         * lib/unicase/u32-ct-tolower.c: New file.
12572         * modules/unicase/u32-ct-tolower: New file.
12573
12574         New module 'unicase/u16-ct-tolower'.
12575         * lib/unicase/u16-ct-tolower.c: New file.
12576         * modules/unicase/u16-ct-tolower: New file.
12577
12578         New module 'unicase/u8-ct-tolower'.
12579         * lib/unicase/u8-ct-tolower.c: New file.
12580         * modules/unicase/u8-ct-tolower: New file.
12581
12582         New module 'unicase/u32-ct-toupper'.
12583         * lib/unicase/u32-ct-toupper.c: New file.
12584         * modules/unicase/u32-ct-toupper: New file.
12585
12586         New module 'unicase/u16-ct-toupper'.
12587         * lib/unicase/u16-ct-toupper.c: New file.
12588         * modules/unicase/u16-ct-toupper: New file.
12589
12590         New module 'unicase/u8-ct-toupper'.
12591         * lib/unicase/u8-ct-toupper.c: New file.
12592         * modules/unicase/u8-ct-toupper: New file.
12593
12594         Add context arguments to u*_casemap functions.
12595         * lib/unicase/unicasemap.h: Include unicase.h.
12596         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12597         suffix_context arguments.
12598         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12599         functions.
12600         (FUNC): Add prefix_context and suffix_context arguments. Use
12601         uc_is_cased and uc_is_case_ignorable.
12602         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12603         * lib/unicase/u16-casemap.c: Likewise.
12604         * lib/unicase/u32-casemap.c: Likewise.
12605         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12606         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12607         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12608         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12609         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12610         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12611
12612         New module 'unicase/u32-suffix-context'.
12613         * lib/unicase/u32-suffix-context.c: New file.
12614         * modules/unicase/u32-suffix-context: New file.
12615
12616         New module 'unicase/u16-suffix-context'.
12617         * lib/unicase/u16-suffix-context.c: New file.
12618         * modules/unicase/u16-suffix-context: New file.
12619
12620         New module 'unicase/u8-suffix-context'.
12621         * lib/unicase/u8-suffix-context.c: New file.
12622         * lib/unicase/u-suffix-context.h: New file.
12623         * modules/unicase/u8-suffix-context: New file.
12624
12625         New module 'unicase/empty-suffix-context'.
12626         * lib/unicase/empty-suffix-context.c: New file.
12627         * modules/unicase/empty-suffix-context: New file.
12628
12629         New module 'unicase/u32-prefix-context'.
12630         * lib/unicase/u32-prefix-context.c: New file.
12631         * modules/unicase/u32-prefix-context: New file.
12632
12633         New module 'unicase/u16-prefix-context'.
12634         * lib/unicase/u16-prefix-context.c: New file.
12635         * modules/unicase/u16-prefix-context: New file.
12636
12637         New module 'unicase/u8-prefix-context'.
12638         * lib/unicase/u8-prefix-context.c: New file.
12639         * lib/unicase/u-prefix-context.h: New file.
12640         * lib/unicase/context.h: New file.
12641         * modules/unicase/u8-prefix-context: New file.
12642
12643         New module 'unicase/empty-prefix-context'.
12644         * lib/unicase/empty-prefix-context.c: New file.
12645         * modules/unicase/empty-prefix-context: New file.
12646
12647         New module 'unicase/ignorable'.
12648         * lib/unicase/ignorable.c: New file.
12649         * modules/unicase/ignorable: New file.
12650
12651         New module 'unicase/cased'.
12652         * lib/unicase/caseprop.h: New file.
12653         * lib/unicase/cased.c: New file.
12654         * modules/unicase/cased: New file.
12655
12656         New functions for case mapping of substrings.
12657         * lib/unicase.h (casing_prefix_context_t): New type.
12658         (unicase_empty_prefix_context): New variable.
12659         (u8_casing_prefix_context, u16_casing_prefix_context,
12660         u32_casing_prefix_context, u8_casing_prefixes_context,
12661         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12662         declarations.
12663         (casing_suffix_context_t): New type.
12664         (unicase_empty_suffix_context): New variable.
12665         (u8_casing_suffix_context, u16_casing_suffix_context,
12666         u32_casing_suffix_context, u8_casing_suffixes_context,
12667         u16_casing_suffixes_context, u32_casing_suffixes_context,
12668         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12669         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12670         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12671         declarations.
12672
12673 2009-06-28  Jim Meyering  <meyering@redhat.com>
12674
12675         boostrap: indent only with spaces
12676         * build-aux/bootstrap: Indent only with spaces, never TABs.
12677
12678         bootstrap: split long lines
12679         * build-aux/bootstrap: Keep line length < 80.
12680
12681         bootstrap: sync from coreutils
12682         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12683         just as autoreconf does.  Verify a list of prerequisite
12684         package-name,version-number pairs if defined in bootstrap.conf.
12685         Refer to README-prereq, if prerequisites are not satisfied.
12686
12687 2009-06-27  Eric Blake  <ebb9@byu.net>
12688
12689         tests: add test for bogus NULL definition
12690         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12691         * tests/test-stdlib.c: Likewise.
12692         * tests/test-string.c: Likewise.
12693         * tests/test-locale.c: Likewise.
12694         * tests/test-unistd.c: Likewise.
12695         * modules/stdio-tests (Depends-on): Add verify.
12696         * modules/stdlib-tests (Depends-on): Likewise.
12697         * modules/string-tests (Depends-on): Likewise.
12698         * modules/locale-tests (Depends-on): Likewise.
12699         * modules/unistd-tests (Depends-on): Likewise.
12700
12701 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12702
12703         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12704         self-explaining comment.
12705         * m4/selinux-selinux-h: Update serial.
12706         (gl_LIBSELINUX): New macro, adding a warning for missing development
12707         packages to code extracted from...
12708         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12709         Add warning for missing development packages here, too.
12710
12711 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12712
12713         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12714
12715 2009-06-25  Eric Blake  <ebb9@byu.net>
12716
12717         version-etc: fix regression
12718         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12719         gcc.
12720         (version_etc): Use it, to catch bugs with trailing NULL.
12721         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12722         (version_etc_va): Fix logic bug.
12723         * modules/version-etc-tests: Add test.
12724         * tests/test-version-etc.c: New file.
12725         * tests/test-version-etc.sh: Likewise.
12726
12727 2009-06-25  Sam Steingold  <sds@gnu.org>
12728
12729         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12730         mbtowc declaration.
12731
12732 2009-06-25  Eric Blake  <ebb9@byu.net>
12733
12734         fpurge: migrate into <stdio.h>
12735         * lib/fpurge.h: Delete...
12736         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12737         * lib/fpurge.c (fpurge): Change declaring header.
12738         * modules/fpurge (Files): Drop deleted file.
12739         (Depends-on): Add stdio.
12740         (configure.ac): Set witness.
12741         * modules/stdio (Makefile.am): Support fpurge macros.
12742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12743         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12744         * lib/fflush.c: Update client.
12745         * tests/test-fpurge.c: Likewise.
12746         * NEWS: Mention the change.
12747
12748 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12749
12750         * lib/argp-version-etc.c (program_authors): Add const
12751         qualifier.
12752         * lib/version-etc.c: Fix typos in the comments.
12753         * modules/argp-version-etc: Depends on version-etc.
12754
12755 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12756
12757         argp-version-etc: new module.
12758
12759         * lib/argp-version-etc.c: New file.
12760         * lib/argp-version-etc.h: New file.
12761         * modules/argp-version-etc: New file.
12762         * modules/argp-version-etc-tests: New file.
12763         * tests/test-argp-version-etc.c: New test.
12764         * tests/test-argp-version-etc-1.sh: New test.
12765
12766 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12767
12768         Provide additional interfaces and documentation for version-etc
12769         module.
12770
12771         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12772         interfaces.
12773         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12774         prototypes.
12775
12776 2009-06-24  Bruno Haible  <bruno@clisp.org>
12777
12778         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12779         HAVE_LIB${NAME} macro.
12780         Reported by Sam Steingold <sds@gnu.org>.
12781
12782 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12783
12784         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12785         needed.
12786
12787 2009-06-21  Bruno Haible  <bruno@clisp.org>
12788
12789         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12790         work.
12791         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12792         together with LIB${NAME}, LTLIB${NAME}.
12793         Reported by Sam Steingold <sds@gnu.org>.
12794
12795 2009-06-20  Jim Meyering  <meyering@redhat.com>
12796
12797         tests: make sc_require_test_exit_idiom more generic
12798         * top/maint.mk (Exit_witness_file): New overridable variable.
12799         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12800         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12801
12802 2009-06-19  Jim Meyering  <meyering@redhat.com>
12803
12804         hash: reverse order of src/dst parameters in an internal interface
12805         * lib/hash.c (transfer_entries): Reverse order of parameters to
12806         put DST before SRC.  Adjust callers.
12807
12808         tests: test-hash: avoid wholesale duplication
12809         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12810         Instead, use a loop and add a single conditional.
12811
12812         tests: test-hash: allow seed selection via a command line argument
12813         * tests/test-hash.c (get_seed): New function.
12814         (main): Use it.
12815
12816 2009-06-19  Eric Blake  <ebb9@byu.net>
12817
12818         hash: avoid memory leak on allocation failure
12819         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12820         failure.  Factor repeated algorithm...
12821         (transfer_entries): ...into new helper routine.
12822         (hash_delete): React to hash_rehash return value.
12823
12824         hash: reduce memory pressure in hash_rehash no-op case
12825         * lib/hash.c (next_prime): Avoid overflow.
12826         (hash_initialize): Factor bucket size computation...
12827         (compute_bucket_size): ...into new helper function.
12828         (hash_rehash): Use new function and open coding to reduce memory
12829         pressure, and avoid a memory leak in USE_OBSTACK code.
12830         Reported by Jim Meyering.
12831
12832 2009-06-18  Eric Blake  <ebb9@byu.net>
12833
12834         hash: make rotation more obvious
12835         * modules/hash (Depends-on): Add bitrotate and stdint.
12836         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12837         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12838         (SIZE_MAX): Rely on headers for definition.
12839         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12840         (raw_hasher): Use rotr_sz.
12841         Suggested by Jim Meyering.
12842
12843         hash: fix memory leak in last patch
12844         * lib/hash.c (hash_rehash): Avoid memory leak.
12845
12846         hash: avoid no-op rehashing
12847         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12848
12849         hash: provide default callback functions
12850         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12851         (hash_initialize): Use them as defaults.
12852         * tests/test-hash.c (main): Test this.
12853
12854         hash: minor optimization
12855         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12856         when possible.
12857         (hash_initialize): Document this promise.
12858         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12859         * tests/test-hash.c (hash_compare_strings): Test this.
12860
12861 2009-06-18  Bruno Haible  <bruno@clisp.org>
12862
12863         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12864         going to be replaced anyway.
12865
12866 2009-06-18  Bruno Haible  <bruno@clisp.org>
12867
12868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12869         in one place.
12870         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12871         be replaced anyway.
12872
12873 2009-06-18  Eric Blake  <ebb9@byu.net>
12874
12875         hash: check for resize before insertion
12876         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12877         threshold before insertion, so that a pathological hash_rehash
12878         that fills every bucket can still trigger another rehash.
12879
12880 2009-06-18  Jim Meyering  <meyering@redhat.com>
12881
12882         hash-tests: add a loop around the small tests
12883         * tests/test-hash.c (main): Repeat small tests with selected
12884         small initial table sizes.
12885
12886 2009-06-17  Eric Blake  <ebb9@byu.net>
12887
12888         hash: minor cleanups
12889         * lib/hash.h (hash_entry): Make opaque, by moving...
12890         * lib/hash.c (hash_entry): ...here.
12891         (hash_insert): Clarify restrictions on what can be inserted.
12892         (hash_get_next): Clarify when it is safe to remove an element
12893         during traversal.
12894         (check_tuning): Skip verification when tuning is known safe.
12895         (hash_initialize): Clarify restrictions on tuning.
12896
12897 2009-06-17  Jim Meyering  <jim@meyering.net>
12898         and Eric Blake  <ebb9@byu.net>
12899
12900         hash-tests: new module
12901         * modules/hash-tests: New file.
12902         * tests/test-hash.c: New file.
12903
12904 2009-06-17  Eric Blake  <ebb9@byu.net>
12905
12906         strstr-simple: document new module
12907         * MODULES.html.sh: Document new module.
12908
12909         strstr, strcasestr: replace on platforms with broken memchr
12910         * modules/strstr: Split into...
12911         * modules/strstr-simple: ...new module that does not care about
12912         performance, but does care about glibc bug.
12913         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12914         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12915         if platform memchr is broken, per Debian bug 521737.
12916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12917         memchr.
12918         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12919         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12920         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12921         * modules/mountlist (Depends-on): Add strstr-simple.
12922         * modules/gen-uni-tables (Depends-on): Likewise.
12923         * modules/argz (Depends-on): Add strstr.
12924
12925 2009-06-17  Bruno Haible  <bruno@clisp.org>
12926
12927         * modules/posix_spawn-internal (Depends-on): Add errno.
12928
12929 2009-06-17  Bruno Haible  <bruno@clisp.org>
12930
12931         Define missing ESTALE on Interix 3.5.
12932         * lib/errno.in.h (ESTALE): Assign a value if missing.
12933         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12934         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12935         missing.
12936         * doc/posix-headers/errno.texi: Mention the Interix bug.
12937         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12938
12939 2009-06-15  Eric Blake  <ebb9@byu.net>
12940
12941         memchr, memchr2: add valgrind exception
12942         * lib/memchr.valgrind: New file.
12943         * lib/memchr2.valgrind: New file.
12944         * modules/memchr (Files): Distribute valgrind file.
12945         * modules/memchr2 (Files): Likewise.
12946
12947         docs: memchr is no longer obsolete
12948         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12949         * lib/string.in.h (memchr): Simplify logic.
12950
12951 2009-06-14  Jim Meyering  <meyering@redhat.com>
12952
12953         link-follow: fix the "checking..." message to not mention trailing slash
12954         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12955         never considered trailing slashes.
12956
12957 2009-06-14  Bruno Haible  <bruno@clisp.org>
12958
12959         * m4/memchr.m4: Mention also the bug on IA-64.
12960         * doc/posix-functions/memchr.texi: Likewise.
12961
12962 2009-06-12  Eric Blake  <ebb9@byu.net>
12963
12964         memchr: detect broken x86_64 and alpha implementations
12965         * modules/memchr-tests (Depends-on): Move mmap detection...
12966         * modules/memchr (Depends-on): ...here.
12967         (configure.ac): Set indicator.
12968         * lib/string.in.h (memchr): Declare replacement.
12969         * modules/string (Makefile.am): Trigger replacement.
12970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12971         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12972         bugs.
12973         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12974         * modules/getpagesize (License): Relax license.
12975
12976 2009-06-11  Bruno Haible  <bruno@clisp.org>
12977
12978         * lib/idpriv.h: Add more references.
12979
12980 2009-06-08  Bruno Haible  <bruno@clisp.org>
12981
12982         Tests for module 'idpriv-droptemp'.
12983         * modules/idpriv-droptemp-tests: New file.
12984         * tests/test-idpriv-droptemp.sh: New file.
12985         * tests/test-idpriv-droptemp.su.sh: New file.
12986         * tests/test-idpriv-droptemp.c: New file.
12987
12988         New module 'idpriv-droptemp'.
12989         * lib/idpriv-droptemp.c: New file.
12990         * modules/idpriv-droptemp: New file.
12991
12992 2009-06-08  Bruno Haible  <bruno@clisp.org>
12993
12994         Tests for module 'idpriv-drop'.
12995         * modules/idpriv-drop-tests: New file.
12996         * tests/test-idpriv-drop.sh: New file.
12997         * tests/test-idpriv-drop.su.sh: New file.
12998         * tests/test-idpriv-drop.c: New file.
12999
13000         New module 'idpriv-drop'.
13001         * lib/idpriv.h: New file.
13002         * lib-idpriv-drop.c: New file.
13003         * m4/idpriv.m4: New file.
13004         * modules/idpriv-drop: New file.
13005
13006 2009-06-08  Bruno Haible  <bruno@clisp.org>
13007
13008         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13009         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13010         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13011         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13012         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13013         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13014         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13015
13016 2009-06-08  Eric Blake  <ebb9@byu.net>
13017
13018         test-strstr: use memory fence, when possible
13019         * tests/test-strstr.c (main): Use memory fence, in order to be
13020         more likely to trigger Debian bug 521737.
13021         * modules/strstr-tests (Files): Pull in additional files.
13022
13023         memchr: no longer obsolete, for wider field testing
13024         * modules/memchr (Status, Notice): Delete, this module is no
13025         longer obsolete.
13026         * modules/vasnprintf (Depends-on): Add memchr.
13027
13028 2009-06-07  Jim Meyering  <meyering@redhat.com>
13029
13030         hash: declare some functions with the warn_unused_result attribute
13031         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13032
13033 2009-06-07  Bruno Haible  <bruno@clisp.org>
13034
13035         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13036         Reported by Eric Blake.
13037
13038 2009-06-06  Eric Blake  <ebb9@byu.net>
13039
13040         test-alignof: fix typo with long double
13041         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13042         compiler error.
13043
13044 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13045
13046         Escape non-texinfo { and }s.
13047         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13048         markup error.
13049
13050 2009-06-04  Jim Meyering  <meyering@redhat.com>
13051
13052         gitlog-to-changelog: don't infloop on an empty commit log
13053         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13054         Reported by Boris Petersen <transacid@centerim.org>.
13055
13056 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13057
13058         version-etc: extend for packagers
13059         Add three new configure options, intended for packagers:
13060           --with-packager="packager name"
13061           --with-packager-version="packager-specific version"
13062           --with-packager-bug-reports="packager bug reporting"
13063         An example with coreutils:
13064           $ ./configure \
13065             --with-packager=Gentoo \
13066             --with-packager-bug-report=http://bugs.gentoo.org/ \
13067             --with-packager-version="patchset 1.6"
13068           $ ./src/ls --version | head -n2
13069           ls (GNU coreutils) 7.1-dirty
13070           Packaged by Gentoo (patchset 1.6)
13071         Note that the bug reporting info via --help doesn't show up because
13072         coreutils uses its own custom emit_bug_reporting_address() implementation
13073         in src/system.h.  If it didn't, it'd look like:
13074           $ ./src/ls --help | tail -n4
13075           Report bugs to <bug-coreutils@gnu.org>.
13076           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13077           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13078           General help using GNU software: <http://www.gnu.org/gethelp/>.
13079         * lib/version-etc.c: Print new information, if provided.
13080         * m4/version-etc.m4: New file.
13081         * modules/version-etc (Files): Add m4/version-etc.m4.
13082         (configure.ac): Add gl_VERSION_ETC.
13083
13084 2009-05-31  Bruno Haible  <bruno@clisp.org>
13085
13086         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13087         and 'int64_t'.
13088         * modules/alignof-tests (Dependencies): Add stdint.
13089         Reported by Eric Blake.
13090
13091 2009-05-31  Bruno Haible  <bruno@clisp.org>
13092
13093         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13094         restriction due to compiler bugs.
13095         Reported by Eric Blake.
13096
13097 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13098             Bruno Haible  <bruno@clisp.org>
13099
13100         Fix test-alignof failure.
13101         * lib/alignof.h (alignof_slot): New macro.
13102         (alignof_type): New macro, with the same semantics as the previous
13103         'alignof'.
13104         (alignof): Alias to alignof_slot.
13105         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13106         check that the results are usable as constant expressions.
13107
13108 2009-05-31  Bruno Haible  <bruno@clisp.org>
13109
13110         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13111         * tests/test-memchr.c (main): Check that memchr does not read past the
13112         first occurrence of the byte.
13113         * tests/test-strstr.c (main): Update comment.
13114         Suggested by Eric Blake.
13115
13116 2009-05-30  Bruno Haible  <bruno@clisp.org>
13117
13118         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13119         detail how to use dumpbin.
13120         Reported by David Byron <dbyron@dbyron.com>.
13121
13122 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13123
13124         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13125
13126 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13127
13128         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13129
13130 2009-05-28  Bruno Haible  <bruno@clisp.org>
13131
13132         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13133         build-aux/ files.
13134
13135 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13136
13137         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13138
13139 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13140
13141         * gnulib-tool (sed_transform_main_lib_file)
13142         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13143         regexps.
13144
13145 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13146
13147         * tests/test-strstr.c: Add another self-test.
13148         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13149         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13150
13151 2009-05-23  Bruno Haible  <bruno@clisp.org>
13152
13153         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13154         change.
13155
13156 2009-05-21  Bruno Haible  <bruno@clisp.org>
13157
13158         Simplify use of mode_t varargs.
13159         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13160         uses 'mode_t' or 'int'.
13161         * lib/openat.c (openat): Likewise.
13162         * lib/open-safer.c (open_safer): Likewise.
13163         * m4/mode_t.m4: New file.
13164         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13165         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13166         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13167         * modules/open (Files): Add m4/mode_t.m4.
13168         * modules/openat (Files): Likewise.
13169         * modules/fcntl-safer (Files): Likewise.
13170         Suggested by Eric Blake.
13171
13172 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13173
13174         * doc/glibc-functions/fallocate.texi: New file.
13175         * doc/gnulib.texi: Include it.
13176
13177 2009-05-21  Eric Blake  <ebb9@byu.net>
13178             Bruno Haible  <bruno@clisp.org>
13179
13180         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13181         invocations.
13182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13183
13184 2009-05-21  Eric Blake  <ebb9@byu.net>
13185             Bruno Haible  <bruno@clisp.org>
13186
13187         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13188         include_next. Fix of 2008-11-20 commit.
13189         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13190         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13191         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13192         NEXT_MATH_H.
13193         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13194         instead of NEXT_MATH_H.
13195
13196 2009-05-21  Bruno Haible  <bruno@clisp.org>
13197
13198         Avoid redefinition warnings for SIZE_MAX.
13199         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13200         Reported by Simon Josefsson.
13201
13202 2009-05-21  Bruno Haible  <bruno@clisp.org>
13203
13204         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13205         AC_CACHE_VAL.
13206
13207 2009-05-20  Bruno Haible  <bruno@clisp.org>
13208
13209         Make zeroptr.h work on mingw.
13210         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13211         mprotect.
13212         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13213         * modules/memchr2-tests (configure.ac): Likewise.
13214         * modules/memcmp-tests (configure.ac): Likewise.
13215         * modules/memmem-tests (configure.ac): Likewise.
13216         * modules/memrchr-tests (configure.ac): Likewise.
13217         Reported by Simon Josefsson.
13218
13219 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13220
13221         * tests/test-glob.c: Include string.h for strcmp prototype.
13222
13223 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13224
13225         * modules/getdelim (Depends-on): Add explicit stdint, although it
13226         was implicitly already pulled in via realloc-posix.
13227         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13228
13229 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13230
13231         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13232         G. Christensen" <tgc@jupiterrise.com>.
13233         * m4/sys_socket_h.m4: Check for sa_family_t.
13234         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13235         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13236         * tests/test-sys_socket.c: Check that sa_family_t works.
13237
13238 2009-05-18  Eric Blake  <ebb9@byu.net>
13239
13240         maint.mk: allow gnulib_dir in VPATH build
13241         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13242
13243 2009-05-15  Jim Meyering  <meyering@redhat.com>
13244
13245         maint.mk: Give gnulib_dir a default definition.
13246         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13247         Thus, most packages no longer need to specify this variable in cfg.mk
13248
13249 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13250
13251         rename.m4: fix typos that would make non-mingw cross-configure fail
13252         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13253
13254 2009-05-13  Eric Blake  <ebb9@byu.net>
13255
13256         mmap-anon: avoid out-of-order autoconf expansion
13257         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13258         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13259         * modules/memchr-tests (Depends-on): Add extensions.
13260         * modules/memchr2-tests (Depends-on): Add extensions.
13261         * modules/memcmp-tests (Depends-on): Add extensions.
13262         * modules/memmem-tests (Depends-on): Add extensions.
13263         * modules/memrchr-tests (Depends-on): Add extensions.
13264
13265 2009-05-13  Bruno Haible  <bruno@clisp.org>
13266
13267         Make some tests ISO C 99 compliant.
13268         * tests/zerosize-ptr.h: New file.
13269         * tests/test-memchr.c: Include zerosize-ptr.h.
13270         (main): Use a zero-size object pointer instead of NULL.
13271         * tests/test-memchr2.c: Include zerosize-ptr.h.
13272         (main): Use a zero-size object pointer instead of NULL.
13273         * tests/test-memcmp.c: Include zerosize-ptr.h.
13274         (main): Use a zero-size object pointer instead of NULL.
13275         * tests/test-memmem.c: Include zerosize-ptr.h.
13276         (main): Use a zero-size object pointer instead of NULL.
13277         * tests/test-memrchr.c: Include zerosize-ptr.h.
13278         (main): Use a zero-size object pointer instead of NULL.
13279         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13280         m4/mmap-anon.m4.
13281         (Depends-on): Add getpagesize.
13282         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13283         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13284         m4/mmap-anon.m4.
13285         (Depends-on): Add getpagesize.
13286         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13287         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13288         m4/mmap-anon.m4.
13289         (Depends-on): Add getpagesize.
13290         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13291         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13292         m4/mmap-anon.m4.
13293         (Depends-on): Add getpagesize.
13294         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13295         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13296         m4/mmap-anon.m4.
13297         (Depends-on): Add getpagesize.
13298         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13299
13300 2009-05-12  Bruno Haible  <bruno@clisp.org>
13301
13302         Tests for module 'alignof'.
13303         * modules/alignof-tests: New file.
13304         * tests/test-alignof.c: New file.
13305
13306 2009-05-12  Bruno Haible  <bruno@clisp.org>
13307
13308         Fix alignof macro.
13309         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13310         vendor compilers that are always correct.
13311
13312 2009-05-12  Bruno Haible  <bruno@clisp.org>
13313
13314         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13315         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13316         not whether its fully works.
13317
13318 2009-05-12  Bruno Haible  <bruno@clisp.org>
13319
13320         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13321
13322 2009-05-12  Jim Meyering  <meyering@redhat.com>
13323
13324         * top/maint.mk: Adjust backslash alignment.
13325
13326 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13327
13328         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13329
13330 2009-05-11  Eric Blake  <ebb9@byu.net>
13331
13332         argp: avoid undefined behavior
13333         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13334         macros.
13335
13336 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13337
13338         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13339         user.name to prevent git commit from complaining.
13340
13341 2009-05-10  Bruno Haible  <bruno@clisp.org>
13342
13343         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13344         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13345         it rewrites every file name only once.
13346         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13347
13348 2009-05-08  Bruno Haible  <bruno@clisp.org>
13349
13350         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13351         instead of 'max'.
13352
13353 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13354
13355         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13356         sockaddr_storage test.
13357
13358 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13359
13360         * modules/sys_socket (Makefile.am): Substitute
13361         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13362         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13363         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13364         * tests/test-sys_socket.c: Check sockaddr_storage.
13365
13366 2009-05-08  Bruno Haible  <bruno@clisp.org>
13367
13368         New module 'alignof'.
13369         * lib/alignof.h: New file.
13370         * modules/alignof: New file.
13371
13372 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13373             Bruno Haible  <bruno@clisp.org>
13374
13375         Fix test-file-has-acl on FreeBSD.
13376         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13377         mask is implicitly added.
13378         * tests/test-file-has-acl.c: Include <signal.h>.
13379         (main): Terminate the test after 5 seconds.
13380         * modules/acl-tests (configure.ac): Check for alarm function.
13381
13382 2009-05-04  Bruno Haible  <bruno@clisp.org>
13383
13384         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13385         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13386         * modules/errno (configure.ac): Drop AC_REQUIRE.
13387         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13388         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13389
13390 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13391
13392         * modules/glob-tests: New module.
13393         * tests/test-glob.c: Add.
13394
13395 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13396
13397         * modules/fnmatch-tests: New module.
13398         * tests/test-fnmatch.c: Add.
13399
13400 2009-05-04  Eric Blake  <ebb9@byu.net>
13401
13402         maint: make the new no-submodule-changes rule VPATH-safe
13403         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13404
13405 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13406             Bruno Haible  <bruno@clisp.org>
13407
13408         acl: Fix infinite loop on FreeBSD.
13409         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13410         of return value from acl_get_entry.
13411         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13412         Likewise.
13413
13414 2009-05-03  Bruno Haible  <bruno@clisp.org>
13415
13416         * lib/acl-internal.h (acl_entries): Clarify return value.
13417         * lib/acl_entries.c (acl_entries): Likewise.
13418
13419 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13420
13421         Bug fix in acl module.
13422         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13423
13424 2009-05-03  Bruno Haible  <bruno@clisp.org>
13425
13426         Create gperf-generated file in the source dir, not in the build dir.
13427         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13428         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13429         * modules/unicase/locale-language (unicase/locale-languages.h):
13430         Likewise.
13431         * modules/unicase/special-casing (unicase/special-casing-table.h):
13432         Likewise.
13433         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13434         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13435         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13436         Reported by Ralf Wildenhues.
13437
13438 2009-05-03  Bruno Haible  <bruno@clisp.org>
13439
13440         * modules/fnmatch (Description, configure.ac): Taken from
13441         fnmatch-posix.
13442         * modules/fnmatch-posix: Turn into a symbolic reference to the
13443         'fnmatch' module, and deprecate.
13444         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13445
13446 2009-05-03  Bruno Haible  <bruno@clisp.org>
13447
13448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13449         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13450         Reported by Ralf Wildenhues.
13451
13452 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13453
13454         * m4/fnmatch.m4: Fix fnmatch re-define.
13455
13456 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13457
13458         priv-set: new module and tests; adapt write-any-file
13459         * lib/priv-set.c: New file.
13460         * lib/priv-set.h: New file.
13461         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13462         * lib/write-any-file.c: Simplify by using priv-set module.
13463         * m4/priv-set.m4: New file.
13464         * modules/priv-set: New file.
13465         * modules/unlinkdir: Add dependency on priv-set module.
13466         * modules/write-any-file: Likewise.
13467
13468         Tests for module 'priv-set'.
13469         * modules/priv-set-tests: New file.
13470         * tests/test-priv-set.c: New file.
13471
13472 2009-05-03  Jim Meyering  <meyering@redhat.com>
13473             Bruno Haible  <bruno@clisp.org>
13474
13475         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13476         use the converted UTF-8 variant of the name instead.
13477
13478 2009-05-03  Jim Meyering  <meyering@redhat.com>
13479
13480         tests: tighten some getdate tests
13481         * tests/test-getdate.c (main): Tighten tests: require equality,
13482         not just greater than.  Set TZ envvar to UTC0.
13483
13484 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13485
13486         getdate: correctly interpret "next monday" when run on a Monday
13487         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13488         that e.g., "next tues" (when run on a tuesday) results in a date
13489         that is one week in the future, and not today's date.
13490         I.e., add a week when the wday is the same as the current one.
13491         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13492         and earlier by Martin Bernreuther and Jan Minář.
13493         * tests/test-getdate.c (main): Check that "next DAY" is always in
13494         the future and that "last DAY" is always in the past.
13495
13496 2009-05-02  Jim Meyering  <meyering@redhat.com>
13497
13498         build: ensure that a release build fails when a submodule is unclean
13499         * top/maint.mk (no-submodule-changes): New rule.
13500         (alpha beta major): Depend on it.
13501
13502 2009-05-02  Bruno Haible  <bruno@clisp.org>
13503
13504         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13505         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13506         shell variable gl_fnmatch_required to detect which variant is
13507         requested.
13508         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13509         gl_FUNC_FNMATCH_POSIX.
13510         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13511         exclude fnmatch-posix.
13512
13513 2009-05-02  Bruno Haible  <bruno@clisp.org>
13514
13515         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13516         * modules/mbsrtowcs (License): Change to LGPLv2+.
13517         * modules/strnlen1 (License): Likewise.
13518         Reported by Simon Josefsson.
13519
13520 2009-05-02  Bruno Haible  <bruno@clisp.org>
13521
13522         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13523         "cross".
13524         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13525         gnulib-tool was called with option --source-base=lib.
13526
13527 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13528
13529         Use automake *-local hooks without commands, for extensibility.
13530         * modules/localcharset (Makefile.am): Rename install-exec-local
13531         rule to install-exec-localcharset, and make it a prerequisite of
13532         install-exec-local.  Likewise, rename the uninstall-local rule to
13533         uninstall-localcharset, and make it a prerequisite of the former.
13534
13535 2009-05-01  Bruno Haible  <bruno@clisp.org>
13536
13537         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13538         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13539         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13541         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13542         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13543         m4/locale-zh.m4, m4/codeset.m4.
13544
13545         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13546         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13547         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13548         m4/locale-zh.m4.
13549
13550         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13551         REPLACE_WCRTOMB if mbstate_t must be replaced.
13552         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13553         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13554
13555 2009-05-01  Bruno Haible  <bruno@clisp.org>
13556
13557         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13558         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13559         dngettext, dcngettext, textdomain, bindtextdomain,
13560         bind_textdomain_codeset): Undefine before redefining.
13561
13562 2009-04-30  Bruno Haible  <bruno@clisp.org>
13563
13564         Fix bug introduced on 2009-04-25.
13565         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13566         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13567         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13568         is defined.
13569         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13570         is defined.
13571         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13572         is defined.
13573         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13574
13575 2009-04-28  Bruno Haible  <bruno@clisp.org>
13576
13577         Comment tweaks.
13578         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13579         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13580         * lib/unicase.h (u*_casexfrm): Likewise.
13581         Reported by Paolo Bonzini.
13582
13583 2009-04-28  Bruno Haible  <bruno@clisp.org>
13584
13585         Fix a compilation error.
13586         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13587         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13588         Reported by Jim Meyering.
13589
13590 2009-04-27  Bruno Haible  <bruno@clisp.org>
13591
13592         New module 'libunistring'.
13593         * modules/libunistring: New file.
13594         * m4/libunistring.m4: New file.
13595         * MODULES.html.sh (Unicode string functions): Add it.
13596
13597 2009-04-27  Eric Blake  <ebb9@byu.net>
13598
13599         maint.mk: allow package-specific header to provide <config.h>
13600         * top/maint.mk (sc_require_config_h): New variable.
13601         (sc_require_config_h, sc_require_config_h_first): Use it.
13602
13603 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13604
13605         * top/maint.mk (sc_avoid_if_before_free): Except
13606         useless-if-before-free script.
13607
13608 2009-04-27  Eric Blake  <ebb9@byu.net>
13609
13610         maintainer-makefile: depend on all required helper scripts
13611         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13612         useless-if-before-free.
13613         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13614         version, rather than assuming gnulib checkout is available.
13615         Reported by Simen Josefsson.
13616
13617 2009-04-26  Bruno Haible  <bruno@clisp.org>
13618
13619         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13620         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13621         "../" or "..".
13622
13623 2009-04-26  Bruno Haible  <bruno@clisp.org>
13624
13625         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13626         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13627         AC_LIB_HAVE_LINKFLAGS.
13628
13629 2009-04-26  Bruno Haible  <bruno@clisp.org>
13630
13631         Simplify calling convention of u*_conv_from_encoding.
13632         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13633         u32_conv_from_encoding): Expect a resultbuf argument and return the
13634         result directly as a pointer.
13635         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13636         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13637         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13638         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13639         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13640         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13641         Update.
13642         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13643         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13644         * lib/vasnprintf.c (VASNPRINTF): Update.
13645         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13646         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13647         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13648         * NEWS: Mention the change.
13649
13650 2009-04-26  Bruno Haible  <bruno@clisp.org>
13651
13652         Simplify calling convention of u*_conv_to_encoding.
13653         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13654         u32_conv_to_encoding): Expect a resultbuf argument and return the
13655         result directly as a pointer.
13656         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13657         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13658         freeing scaled_offsets if mem_iconveha failed.
13659         * lib/unicase/u-casexfrm.h (FUNC): Update.
13660         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13661         * lib/vasnprintf.c (VASNPRINTF): Update.
13662         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13663         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13664         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13665         * NEWS: Mention the change.
13666
13667 2009-04-26  Bruno Haible  <bruno@clisp.org>
13668
13669         Avoid test failures on AIX and OSF/1.
13670         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13671         malloc(0).
13672         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13673         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13674         Likewise.
13675         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13676         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13677         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13678         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13679         * doc/posix-functions/malloc.texi: Document the portability problem
13680         related to malloc(0).
13681
13682 2009-04-26  Bruno Haible  <bruno@clisp.org>
13683
13684         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13685         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13686         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13687
13688 2009-04-25  Bruno Haible  <bruno@clisp.org>
13689
13690         Avoid link error when creating a namespace clean library.
13691         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13692         as macro with arguments if already defined as an alias.
13693         * lib/signbitf.c (gl_signbitf): Don't undefine.
13694         * lib/signbitd.c (gl_signbitd): Don't undefine.
13695         * lib/signbitl.c (gl_signbitl): Don't undefine.
13696
13697 2009-04-25  Jim Meyering  <meyering@redhat.com>
13698
13699         vc-list-files: fix another quoting bug
13700         * build-aux/vc-list-files: Avoid sed backslash expansion
13701         of pathological directory names.
13702
13703 2009-04-25  Eric Blake  <ebb9@byu.net>
13704
13705         vc-list-files: fix shell quoting error
13706         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13707         timestamp.
13708
13709 2009-04-25  Jim Meyering  <meyering@redhat.com>
13710
13711         vc-list-files: restore lost functionality with subdir argument
13712         * build-aux/vc-list-files: When given a non-"." sub-directory
13713         argument, substitute the $dir/ prefix back onto each resulting name.
13714         Otherwise, coreutils' root_tests check would fail.
13715
13716 2009-04-24  Eric Blake  <ebb9@byu.net>
13717
13718         vc-list-files: ignore git symlinks
13719         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13720         than ls-files, to ignore git symlinks.
13721
13722         maint.mk: import improvements from m4
13723         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13724         (move_if_change): Delete unused macro.
13725         (news-date-check, vc-diff-check): Support VPATH builds.
13726         (announcement): Likewise.  Split --bootstrap-tools list...
13727         (boostrap-tools): ...into separate list, which can be overridden
13728         in cfg.mk.
13729         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13730         requiring dependency on useless-if-before-free module.
13731         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13732         Support VPATH builds.
13733
13734 2009-04-24  Jim Meyering  <meyering@redhat.com>
13735
13736         maint.mk: remove coreutils-specific rules and variables
13737         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13738         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13739         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13740
13741         maint.mk: remove obsolete rule
13742         * top/maint.mk (rel-check): Remove rule.
13743         (WGET, WGETFLAGS): Remove now-unused variables.
13744
13745 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13746
13747         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13748         consistency.
13749
13750         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13751         '$(PATH_SEPARATOR)' instead of ':'.
13752
13753 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13754
13755         * lib/getopt1.c (main): Use 'const' for static array.
13756
13757 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13758
13759         * top/maint.mk: Sync with coreutils.
13760         * NEWS: Explain incompatibilities.
13761
13762 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13763             Bruno Haible  <bruno@clisp.org>
13764
13765         Fix cross-compilation results.
13766         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13767         statement, as third argument of AC_TRY_RUN.
13768         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13769         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13770         Likewise.
13771         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13772         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13773         Likewise.
13774         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13775         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13776         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13777
13778 2009-04-20  Bruno Haible  <bruno@clisp.org>
13779
13780         Avoid test failure on mingw.
13781         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13782
13783 2009-04-20  Bruno Haible  <bruno@clisp.org>
13784
13785         Avoid compilation error on mingw.
13786         * modules/localename-tests (Depends-on): Add locale.
13787
13788 2009-04-19  Bruno Haible  <bruno@clisp.org>
13789
13790         Support for building a shared library on Windows platforms.
13791         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13792         (main): Test the presence of UNINORM_NFC here.
13793         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13794         (main): Test the presence of UNINORM_NFD here.
13795         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13796         (main): Test the presence of UNINORM_NFKC here.
13797         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13798         (main): Test the presence of UNINORM_NFKD here.
13799
13800 2009-04-19  Bruno Haible  <bruno@clisp.org>
13801
13802         Avoid a compiler warning.
13803         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13804         Change type of variable 'sequence'.
13805
13806 2009-04-19  Bruno Haible  <bruno@clisp.org>
13807
13808         * modules/configmake (Makefile.am): When the contents of configmake.h
13809         does not change, arrange to preserve its modification time.
13810
13811 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13812
13813         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13814         gettext domain.
13815
13816 2009-04-16  Jim Meyering  <meyering@redhat.com>
13817
13818         useless-if-before-free: improve conversion code
13819         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13820         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13821
13822 2009-04-14  Bruno Haible  <bruno@clisp.org>
13823
13824         * modules/fcntl (Depends-on): Add extensions.
13825         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13826
13827 2009-04-12  Ben Pfaff  <blp@gnu.org>
13828
13829         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13830         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13831
13832 2009-03-20  Ben Pfaff  <blp@gnu.org>
13833
13834         Make rename replace existing destinations on Windows.
13835         * m4/rename.m4: Add test for Mingw.
13836         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13837         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13838         * doc/posix-functions/rename.texi: Document.
13839
13840 2009-04-10  Bruno Haible  <bruno@clisp.org>
13841
13842         New include file "iconveh.h".
13843         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13844         * lib/striconveh.h: Include it.
13845         (enum iconv_ilseq_handler): Remove definition.
13846         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13847         striconveh.h.
13848         * lib/striconveha.c: Include striconveh.h.
13849         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13850         * modules/striconveh (Files): Add lib/iconveh.h.
13851         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13852         lib/striconveh.h.
13853
13854 2009-04-10  Bruno Haible  <bruno@clisp.org>
13855
13856         * lib/uniconv.h: Update comment.
13857
13858 2009-04-10  Bruno Haible  <bruno@clisp.org>
13859
13860         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13861         always.
13862         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13863         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13864         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13865         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13866         "unistring-notinline.h", so that the function gets defined always.
13867         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13868         * lib/unistr/u8-uctomb.c: Likewise.
13869         * lib/unistr/u16-mbtouc.c: Likewise.
13870         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13871         * lib/unistr/u16-uctomb.c: Likewise.
13872         * lib/unistr/u32-mbtouc.c: Likewise.
13873         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13874         * lib/unistr/u32-uctomb.c: Likewise.
13875
13876 2009-04-10  Bruno Haible  <bruno@clisp.org>
13877
13878         Mark 'utime' obsolete.
13879         * modules/utime (Status, Notice): New sections.
13880         Suggested by Jim Meyering.
13881
13882         Fix cross-compile guess for utime test.
13883         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13884         autoconf.
13885         * doc/posix-functions/utime.texi: Give more precisions.
13886         Reported by Jan <ipif@ymail.com>.
13887
13888 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13889
13890         filevercmp: correct today's change
13891         * lib/filevercmp.c: Also handle coreutils' test inputs.
13892         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13893
13894         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13895         for reporting it.
13896         * lib/filevercmp.c: Special handle for "", "." and "..".
13897         * tests/test-filevercmp.c: Enlarge the set suite.
13898
13899 2009-04-07  Jim Meyering  <meyering@redhat.com>
13900
13901         useless-if-before-free: show how to remove braced useless free, too
13902         * build-aux/useless-if-before-free: still only in a comment, though.
13903
13904 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13905
13906         maint.mk: import changes to syntax-check macros from coreutils
13907         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13908         Use them in the relevant macros.
13909
13910 2009-04-06  Bruno Haible  <bruno@clisp.org>
13911
13912         Fix unportable use of bit-fields.
13913         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13914         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13915         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13916
13917 2009-04-06  Bruno Haible  <bruno@clisp.org>
13918
13919         Avoid test failures on AIX and OSF/1.
13920         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13921         that malloc(0) = NULL.
13922         * tests/unicase/test-u8-tolower.c (check): Likewise.
13923         * tests/unicase/test-u8-totitle.c (check): Likewise.
13924         * tests/unicase/test-u8-toupper.c (check): Likewise.
13925         * tests/unicase/test-u16-casefold.c (check): Likewise.
13926         * tests/unicase/test-u16-tolower.c (check): Likewise.
13927         * tests/unicase/test-u16-totitle.c (check): Likewise.
13928         * tests/unicase/test-u16-toupper.c (check): Likewise.
13929         * tests/unicase/test-u32-casefold.c (check): Likewise.
13930         * tests/unicase/test-u32-tolower.c (check): Likewise.
13931         * tests/unicase/test-u32-totitle.c (check): Likewise.
13932         * tests/unicase/test-u32-toupper.c (check): Likewise.
13933         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13934         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13935         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13936         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13937         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13938         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13939         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13940         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13941         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13942         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13943         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13944         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13945
13946 2009-04-05  Bruno Haible  <bruno@clisp.org>
13947
13948         Work around an autoconf limitation.
13949         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13950         comment line if it would be longer than 3 KB.
13951
13952 2009-04-05  Bruno Haible  <bruno@clisp.org>
13953
13954         Avoid test failure with libiconv-1.13.
13955         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13956         of the expected test results.
13957
13958 2009-04-05  Bruno Haible  <bruno@clisp.org>
13959
13960         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13961         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13962         that it should be installed.
13963
13964 2009-04-05  Bruno Haible  <bruno@clisp.org>
13965
13966         * gnulib-tool: New option --copy-file.
13967         (func_usage): Document it.
13968         (func_dest_tmpfilename): Moved out of func_import.
13969         (func_add_file, func_update_file): New functions, extracted from
13970         func_import.
13971         (func_import): Update.
13972
13973 2009-04-05  Karl Berry  <karl@gnu.org>
13974
13975         * README: prominently mention gnulib-tool.
13976         Rearrange sections so getting the code is near the top.
13977
13978 2009-04-05  Bruno Haible  <bruno@clisp.org>
13979
13980         * lib/unicase.h: Mention u*_cmp2.
13981         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13982         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13983         * lib/unicase/ulc-casecmp.c: Likewise.
13984         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13985         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13986         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13987         unistr/u8-cmp.
13988         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13989         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13990         unistr/u16-cmp.
13991         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13992         unistr/u32-cmp.
13993
13994         * lib/uninorm.h: Mention u*_cmp2.
13995         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13996         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13997         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13998         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13999         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14000         unistr/u8-cmp.
14001         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14002         unistr/u16-cmp.
14003         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14004         unistr/u32-cmp.
14005
14006         New module 'unistr/u32-cmp2'.
14007         * lib/unistr/u32-cmp2.c: New file.
14008         * modules/unistr/u32-cmp2: New file.
14009
14010         New module 'unistr/u16-cmp2'.
14011         * lib/unistr/u16-cmp2.c: New file.
14012         * modules/unistr/u16-cmp2: New file.
14013
14014         New module 'unistr/u8-cmp2'.
14015         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14016         * lib/unistr/u8-cmp2.c: New file.
14017         * lib/unistr/u-cmp2.h: New file.
14018         * modules/unistr/u8-cmp2: New file.
14019
14020 2009-04-05  Bruno Haible  <bruno@clisp.org>
14021
14022         * lib/unictype.h (uc_property_is_valid): New macro.
14023         * tests/unictype/test-pr_byname.c (main): Use it.
14024
14025         * lib/unistr.h: Doc fixes.
14026         * lib/uniconv.h: Doc fixes.
14027         * lib/unictype.h: Doc fixes.
14028
14029 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14030
14031         Port coreutils 7.2 to Solaris 8.
14032
14033         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14034         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14035         for Solaris 8.  This is a bit of a hack, as it means it's the
14036         caller's responsibility to add -lnsl if needed, but most likely it
14037         won't be needed since only getaddrinfo uses this and getaddrinfo
14038         isn't needed on Solaris 8.
14039
14040         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14041         problem to Solaris 8 encountered with coreutils 7.2, which
14042         resulted in a message "fnmatch.c:292: warning: passing argument 4
14043         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14044         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14045
14046 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14047
14048         * m4/ld-version-script.m4: Add FIXME comment.
14049
14050 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14051
14052         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14053         SOVERSION variable.
14054
14055 2009-04-02  Bruno Haible  <bruno@clisp.org>
14056
14057         * Makefile (info, html, dvi, pdf): Combine the rules.
14058         Suggested by Jim Meyering.
14059
14060 2009-04-01  Bruno Haible  <bruno@clisp.org>
14061
14062         * Makefile (info, html, dvi, pdf): New targets.
14063         Reported by Reuben Thomas <rrt@sc3d.org>.
14064
14065 2009-04-01  Bruno Haible  <bruno@clisp.org>
14066
14067         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14068         can be put into PATH.
14069         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14070
14071 2009-04-01  Bruno Haible  <bruno@clisp.org>
14072
14073         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14074
14075 2009-04-01  Bruno Haible  <bruno@clisp.org>
14076
14077         Rename module 'visibility'.
14078         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14079         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14080         * doc/gnulib.texi: Update.
14081         * MODULES.html.sh (Misc): Update.
14082         * NEWS: Mention the change.
14083
14084 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14085
14086         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14087         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14088         Eric Blake <ebb9@byu.net> for review.
14089         * MODULES.html.sh: Add lib-msvc-compat.
14090         * doc/gnulib.texi: Link to new section.
14091         * m4/ld-output-def.m4: New file.
14092         * doc/ld-output-def.texi: New file.
14093
14094 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14095
14096         Rename ld-version-script to lib-symbol-versions.  Suggested by
14097         Bruno Haible <bruno@clisp.org>.
14098         * modules/ld-version-script: Renamed to lib-symbol-versions.
14099         * doc/ld-version-script.texi: Fix module name.
14100         * MODULES.html.sh: Add lib-symbol-versions.
14101
14102 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14103
14104         * modules/u64-tests: New file.
14105         * tests/test-u64.c: New file.
14106
14107 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14108
14109         * MODULES.html.sh: Mention u64.
14110         * modules/u64: New module.
14111         * modules/crypto/sha512: Depend on u64 module instead of providing
14112         u64.h.
14113
14114 2009-03-27  Eric Blake  <ebb9@byu.net>
14115
14116         test-strerror: make debugging EAI_SYSTEM easier
14117         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14118         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14119         failure was EAI_SYSTEM.
14120
14121 2009-03-25  Bruno Haible  <bruno@clisp.org>
14122
14123         Fix a problem with --enable-relocatable on Solaris 7.
14124         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14125         since 2008-02-24.
14126
14127 2009-03-25  Eric Blake  <ebb9@byu.net>
14128
14129         test-sockets: avoid gcc warning
14130         * tests/test-sockets.c (main): Silence compiler warning.
14131
14132 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14133
14134         New modules nproc, pthread, contributed by Glen Lenker.
14135
14136         * MODULES.html.sh: Add pthread, nproc.
14137         * lib/nproc.c: New file.
14138         * lib/nproc.h: New file.
14139         * lib/pthread.in.h: New file.
14140         * m4/pthread.m4: New file.
14141         * modules/nproc: New file.
14142         * modules/pthread: New file.
14143
14144 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14145
14146         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14147         New variable.
14148
14149 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14150
14151         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14152         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14153         * tests/test-filevercmp.c: Add tests for backup suffixes.
14154
14155 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14156
14157         * modules/stdlib (Depends-on): Add stdint, needed when defining
14158         struct random_data on, for example, HP-UX 10.20.  Reported by
14159         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14160
14161 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14162
14163         * lib/readline.c (readline): Call fflush on stdout after printing
14164         prompt.
14165
14166 2009-03-20  Bruno Haible  <bruno@clisp.org>
14167
14168         Remove dependency from 'close' module to -lws2_32 on native Windows.
14169         * lib/close-hook.h: New file.
14170         * lib/close-hook.c: New file.
14171         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14172         w32sock.h.
14173         (_gl_close_fd_maybe_socket): Remove function.
14174         (rpl_close): Invoke execute_all_close_hooks instead of
14175         _gl_close_fd_maybe_socket.
14176         * lib/sockets.c: Include close-hook.h, w32sock.h.
14177         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14178         (close_sockets_hook): New variable.
14179         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14180         (gl_sockets_cleanup): Unregister it.
14181         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14182         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14183         * modules/close-hook: New file.
14184         * modules/close (Files): Remove lib/w32sock.h.
14185         (Depends-on): Add close-hook.
14186         (Link): Remove section.
14187         * modules/sockets (Files): Add lib/w32sock.h.
14188         (Depends-on): Add close-hook.
14189         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14190         invocation.
14191         * NEWS: Mention that LIB_CLOSE is gone.
14192
14193 2009-03-23  Eric Blake  <ebb9@byu.net>
14194
14195         signal-tests: test previous patch
14196         * tests/test-signal.c: New file.
14197         * modules/signal-tests: Likewise.
14198
14199         signal.h: always support 'volatile sig_atomic_t'
14200         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14201         (gl_SIGNAL_H_DEFAULTS): Add a default.
14202         * modules/signal (Makefile.am): Substitute if needed.
14203         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14204         users can blindly add volatile.
14205         * doc/posix-headers/signal.texi (signal.h): Document it.
14206         Reported by Matthew Woehlke.
14207
14208 2009-03-23  Jim Meyering  <meyering@redhat.com>
14209
14210         pathmax: PATH_MAX: use pathconf only when available
14211         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14212         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14213         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14214         This avoids a link failure in a PSP cross-compilation environment
14215         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14216
14217         * lib/vasnprintf.c (divide): Fix typo in comment.
14218
14219 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14220
14221         * gnulib-tool (func_filter_filelist): Fix comment.
14222
14223 2009-03-20  Bruno Haible  <bruno@clisp.org>
14224
14225         Make sockets.h self-contained.
14226         * lib/sockets.c: Include sockets.h first.
14227         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14228
14229 2009-03-19  Eric Blake  <ebb9@byu.net>
14230
14231         doc: mention more functions added in cygwin 1.7.0
14232         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14233         addition.
14234         * doc/posix-functions/log2f.texi: Likewise.
14235
14236 2009-03-19  Jim Meyering  <meyering@redhat.com>
14237
14238         fsusage: avoid syntax error due to statement-before-declaration
14239         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14240         after all declarations.  Reported by Matthew Woehlke in
14241         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14242
14243 2009-03-18  Eric Blake  <ebb9@byu.net>
14244
14245         build-aux/compile: sync from automake
14246         * build-aux/compile: New file, from automake.
14247         * config/srclist.txt: Mention build-aux/compile.
14248
14249 2009-03-17  Bruno Haible  <bruno@clisp.org>
14250
14251         * lib/git-merge-changelog.c: Fix typo in comment.
14252         Reported by Reuben Thomas <rrt@sc3d.org>.
14253
14254 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14255
14256         * m4/regex.m4: update and improve help for
14257         --without-included-regex.
14258
14259 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14260
14261         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14262         failure on missing include files.
14263
14264 2009-03-17  Eric Blake  <ebb9@byu.net>
14265
14266         doc: mention more functions added in cygwin 1.7.0
14267         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14268         addition.
14269         * doc/posix-functions/fwscanf.texi: Likewise.
14270         * doc/posix-functions/swprintf.texi: Likewise.
14271         * doc/posix-functions/swscanf.texi: Likewise.
14272         * doc/posix-functions/vfwprintf.texi: Likewise.
14273         * doc/posix-functions/vfwscanf.texi: Likewise.
14274         * doc/posix-functions/vswprintf.texi: Likewise.
14275         * doc/posix-functions/vswscanf.texi: Likewise.
14276         * doc/posix-functions/vwprintf.texi: Likewise.
14277         * doc/posix-functions/vwscanf.texi: Likewise.
14278         * doc/posix-functions/wcscasecmp.texi: Likewise.
14279         * doc/posix-functions/wcsdup.texi: Likewise.
14280         * doc/posix-functions/wcsftime.texi: Likewise.
14281         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14282         * doc/posix-functions/wprintf.texi: Likewise.
14283         * doc/posix-functions/wscanf.texi: Likewise.
14284         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14285
14286 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14287
14288         maint.mk: really add $(AM_MAKEFLAGS)
14289         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14290         was inadvertently omitted in the last commit.
14291         Spotted by Bruno Haible.
14292
14293         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14294         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14295         $(AM_MAKEFLAGS)' rather than plain `make'.
14296
14297         gnulib-tool: execute $MAKE not make
14298         * gnulib-tool: Default $MAKE to 'make'.
14299         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14300         than make.  Initialize $MAKE in the do-autobuild script.
14301
14302         gnulib-tool: use $MAKE not make in generated files
14303         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14304         make, in generated files.  Initialize $MAKE in the do-autobuild
14305         script.
14306
14307         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14308
14309         GNUmakefile: disable parallelism only for multiple, recursive targets
14310         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14311         additions in the Makefile.
14312         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14313         by Automake.
14314         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14315         are listed on the command line and at least one of them is
14316         listed in $(ALL_RECURSIVE_TARGETS).
14317
14318 2009-03-14  Bruno Haible  <bruno@clisp.org>
14319
14320         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14321         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14322         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14323         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14324         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14325         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14326         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14327         unistr/u8-uctomb.
14328         * modules/unistr/u8-strchr (Depends-on): Likewise.
14329         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14330         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14331         unistr/u16-uctomb.
14332         * modules/unistr/u16-strchr (Depends-on): Likewise.
14333         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14334
14335 2009-03-12  Bruno Haible  <bruno@clisp.org>
14336
14337         Work around select() bug on Interix 3.5.
14338         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14339         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14340         * m4/select.m4: New file.
14341         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14342         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14343         * modules/select (Files): Add m4/select.m4.
14344         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14345         * modules/nanosleep (Depends-on): Add select.
14346         * modules/poll (Depends-on): Likewise.
14347         * doc/posix-functions/select.texi: Mention the Interix bug.
14348         Reported by Markus Duft <mduft@gentoo.org>.
14349
14350         * lib/select.c: Renamed from lib/winsock-select.c.
14351         * modules/select (Files): Add lib/select.c, remove
14352         lib/winsock-select.c.
14353         (configure.ac): Update.
14354
14355 2009-03-12  Jim Meyering  <meyering@redhat.com>
14356
14357         avoid gcc warnings about unused macro definitions
14358         * lib/readtokens.c (STREQ): Remove unused definition.
14359         * lib/xmalloc.c (SIZE_MAX): Likewise.
14360         * lib/openat-die.c (N_): Likewise.
14361         * lib/mountlist.c (SIZE_MAX): Remove definition.
14362         Instead, include <stdint.h>.
14363         * lib/readutmp.c: Likewise.
14364         * modules/readutmp (Depends-on): Add stdint.
14365         * modules/mountlist (Depends-on): Add stdint.
14366         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14367
14368 2009-03-10  Bruno Haible  <bruno@clisp.org>
14369
14370         Tests for module 'mbmemcasecoll'.
14371         * modules/mbmemcasecoll-tests: New file.
14372         * tests/test-mbmemcasecoll1.sh: New file.
14373         * tests/test-mbmemcasecoll2.sh: New file.
14374         * tests/test-mbmemcasecoll3.sh: New file.
14375         * tests/test-mbmemcasecoll.c: New file.
14376
14377         New module 'mbmemcasecoll'.
14378         * lib/mbmemcasecoll.h: New file.
14379         * lib/mbmemcasecoll.c: New file.
14380         * modules/mbmemcasecoll: New file.
14381
14382         * tests/test-mbmemcasecmp.h: New file, extracted from
14383         tests/test-mbmemcasecmp.c.
14384         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14385         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14386         (main): Update.
14387         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14388
14389 2009-03-09  Bruno Haible  <bruno@clisp.org>
14390
14391         Tests for module 'mbmemcasecmp'.
14392         * modules/mbmemcasecmp-tests: New file.
14393         * tests/test-mbmemcasecmp1.sh: New file.
14394         * tests/test-mbmemcasecmp2.sh: New file.
14395         * tests/test-mbmemcasecmp3.sh: New file.
14396         * tests/test-mbmemcasecmp.c: New file.
14397
14398         New module 'mbmemcasecmp'.
14399         * lib/mbmemcasecmp.h: New file.
14400         * lib/mbmemcasecmp.c: New file.
14401         * modules/mbmemcasecmp: New file.
14402
14403 2009-03-09  Bruno Haible  <bruno@clisp.org>
14404
14405         Tests for module 'unicase/ulc-casecoll'.
14406         * modules/unicase/ulc-casecoll-tests: New file.
14407         * tests/unicase/test-ulc-casecoll1.sh: New file.
14408         * tests/unicase/test-ulc-casecoll2.sh: New file.
14409         * tests/unicase/test-ulc-casecoll.c: New file.
14410
14411         New module 'unicase/ulc-casecoll'.
14412         * lib/unicase.h (ulc_casecoll): New declaration.
14413         * lib/unicase/ulc-casecoll.c: New file.
14414         * modules/unicase/ulc-casecoll: New file.
14415
14416         New module 'unicase/ulc-casexfrm'.
14417         * lib/unicase.h (ulc_casexfrm): New declaration.
14418         * lib/unicase/ulc-casexfrm.c: New file.
14419         * modules/unicase/ulc-casexfrm: New file.
14420
14421 2009-03-09  Bruno Haible  <bruno@clisp.org>
14422
14423         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14424         invocations.
14425
14426         * m4/mbscasecmp.m4: Remove file.
14427         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14428         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14429
14430         * m4/mbscasestr.m4: Remove file.
14431         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14432         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14433
14434         * m4/mbschr.m4: Remove file.
14435         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14436         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14437
14438         * m4/mbscspn.m4: Remove file.
14439         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14440         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14441
14442         * m4/mbslen.m4: Remove file.
14443         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14444         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14445
14446         * m4/mbsncasecmp.m4: Remove file.
14447         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14448         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14449
14450         * m4/mbsnlen.m4: Remove file.
14451         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14452         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14453
14454         * m4/mbspbrk.m4: Remove file.
14455         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14456         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14457
14458         * m4/mbspcasecmp.m4: Remove file.
14459         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14460         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14461
14462         * m4/mbsrchr.m4: Remove file.
14463         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14464         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14465
14466         * m4/mbssep.m4: Remove file.
14467         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14468         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14469
14470         * m4/mbsspn.m4: Remove file.
14471         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14472         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14473
14474         * m4/mbsstr.m4: Remove file.
14475         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14476         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14477
14478         * m4/mbstok_r.m4: Remove file.
14479         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14480         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14481
14482         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14483
14484         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14485         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14486
14487         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14488
14489 2009-03-08  Bruno Haible  <bruno@clisp.org>
14490
14491         Tests for module 'unicase/ulc-casecmp'.
14492         * modules/unicase/ulc-casecmp-tests: New file.
14493         * tests/unicase/test-ulc-casecmp1.sh: New file.
14494         * tests/unicase/test-ulc-casecmp2.sh: New file.
14495         * tests/unicase/test-ulc-casecmp.c: New file.
14496
14497         New module 'unicase/ulc-casecmp'.
14498         * lib/unicase.h (ulc_casecmp): New declaration.
14499         * lib/unicase/ulc-casecmp.c: New file.
14500         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14501         'const SRC_UNIT *'.
14502         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14503         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14504         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14505         * modules/unicase/ulc-casecmp: New file.
14506
14507         Tests for module 'unicase/u32-is-cased'.
14508         * modules/unicase/u32-is-cased-tests: New file.
14509         * tests/unicase/test-u32-is-cased.c: New file.
14510
14511         Tests for module 'unicase/u16-is-cased'.
14512         * modules/unicase/u16-is-cased-tests: New file.
14513         * tests/unicase/test-u16-is-cased.c: New file.
14514
14515         Tests for module 'unicase/u8-is-cased'.
14516         * modules/unicase/u8-is-cased-tests: New file.
14517         * tests/unicase/test-u8-is-cased.c: New file.
14518         * tests/unicase/test-is-cased.h: New file.
14519
14520         New module 'unicase/u32-is-cased'.
14521         * lib/unicase/u32-is-cased.c: New file.
14522         * modules/unicase/u32-is-cased: New file.
14523
14524         New module 'unicase/u16-is-cased'.
14525         * lib/unicase/u16-is-cased.c: New file.
14526         * modules/unicase/u16-is-cased: New file.
14527
14528         New module 'unicase/u8-is-cased'.
14529         * lib/unicase/u8-is-cased.c: New file.
14530         * lib/unicase/u-is-cased.h: New file.
14531         * modules/unicase/u8-is-cased: New file.
14532
14533         Tests for module 'unicase/u32-is-casefolded'.
14534         * modules/unicase/u32-is-casefolded-tests: New file.
14535         * tests/unicase/test-u32-is-casefolded.c: New file.
14536
14537         Tests for module 'unicase/u16-is-casefolded'.
14538         * modules/unicase/u16-is-casefolded-tests: New file.
14539         * tests/unicase/test-u16-is-casefolded.c: New file.
14540
14541         Tests for module 'unicase/u8-is-casefolded'.
14542         * modules/unicase/u8-is-casefolded-tests: New file.
14543         * tests/unicase/test-u8-is-casefolded.c: New file.
14544         * tests/unicase/test-is-casefolded.h: New file.
14545
14546         New module 'unicase/u32-is-casefolded'.
14547         * lib/unicase/u32-is-casefolded.c: New file.
14548         * modules/unicase/u32-is-casefolded: New file.
14549
14550         New module 'unicase/u16-is-casefolded'.
14551         * lib/unicase/u16-is-casefolded.c: New file.
14552         * modules/unicase/u16-is-casefolded: New file.
14553
14554         New module 'unicase/u8-is-casefolded'.
14555         * lib/unicase/u8-is-casefolded.c: New file.
14556         * modules/unicase/u8-is-casefolded: New file.
14557
14558         Tests for module 'unicase/u32-is-titlecase'.
14559         * modules/unicase/u32-is-titlecase-tests: New file.
14560         * tests/unicase/test-u32-is-titlecase.c: New file.
14561
14562         Tests for module 'unicase/u16-is-titlecase'.
14563         * modules/unicase/u16-is-titlecase-tests: New file.
14564         * tests/unicase/test-u16-is-titlecase.c: New file.
14565
14566         Tests for module 'unicase/u8-is-titlecase'.
14567         * modules/unicase/u8-is-titlecase-tests: New file.
14568         * tests/unicase/test-u8-is-titlecase.c: New file.
14569         * tests/unicase/test-is-titlecase.h: New file.
14570
14571         New module 'unicase/u32-is-titlecase'.
14572         * lib/unicase/u32-is-titlecase.c: New file.
14573         * modules/unicase/u32-is-titlecase: New file.
14574
14575         New module 'unicase/u16-is-titlecase'.
14576         * lib/unicase/u16-is-titlecase.c: New file.
14577         * modules/unicase/u16-is-titlecase: New file.
14578
14579         New module 'unicase/u8-is-titlecase'.
14580         * lib/unicase/u8-is-titlecase.c: New file.
14581         * modules/unicase/u8-is-titlecase: New file.
14582
14583         Tests for module 'unicase/u32-is-lowercase'.
14584         * modules/unicase/u32-is-lowercase-tests: New file.
14585         * tests/unicase/test-u32-is-lowercase.c: New file.
14586
14587         Tests for module 'unicase/u16-is-lowercase'.
14588         * modules/unicase/u16-is-lowercase-tests: New file.
14589         * tests/unicase/test-u16-is-lowercase.c: New file.
14590
14591         Tests for module 'unicase/u8-is-lowercase'.
14592         * modules/unicase/u8-is-lowercase-tests: New file.
14593         * tests/unicase/test-u8-is-lowercase.c: New file.
14594         * tests/unicase/test-is-lowercase.h: New file.
14595
14596         New module 'unicase/u32-is-lowercase'.
14597         * lib/unicase/u32-is-lowercase.c: New file.
14598         * modules/unicase/u32-is-lowercase: New file.
14599
14600         New module 'unicase/u16-is-lowercase'.
14601         * lib/unicase/u16-is-lowercase.c: New file.
14602         * modules/unicase/u16-is-lowercase: New file.
14603
14604         New module 'unicase/u8-is-lowercase'.
14605         * lib/unicase/u8-is-lowercase.c: New file.
14606         * modules/unicase/u8-is-lowercase: New file.
14607
14608         Tests for module 'unicase/u32-is-uppercase'.
14609         * modules/unicase/u32-is-uppercase-tests: New file.
14610         * tests/unicase/test-u32-is-uppercase.c: New file.
14611
14612         Tests for module 'unicase/u16-is-uppercase'.
14613         * modules/unicase/u16-is-uppercase-tests: New file.
14614         * tests/unicase/test-u16-is-uppercase.c: New file.
14615
14616         Tests for module 'unicase/u8-is-uppercase'.
14617         * modules/unicase/u8-is-uppercase-tests: New file.
14618         * tests/unicase/test-u8-is-uppercase.c: New file.
14619         * tests/unicase/test-is-uppercase.h: New file.
14620
14621         New module 'unicase/u32-is-uppercase'.
14622         * lib/unicase/u32-is-uppercase.c: New file.
14623         * modules/unicase/u32-is-uppercase: New file.
14624
14625         New module 'unicase/u16-is-uppercase'.
14626         * lib/unicase/u16-is-uppercase.c: New file.
14627         * modules/unicase/u16-is-uppercase: New file.
14628
14629         New module 'unicase/u8-is-uppercase'.
14630         * lib/unicase/u8-is-uppercase.c: New file.
14631         * modules/unicase/u8-is-uppercase: New file.
14632
14633         New module 'unicase/u32-is-invariant'.
14634         * lib/unicase/u32-is-invariant.c: New file.
14635         * modules/unicase/u32-is-invariant: New file.
14636
14637         New module 'unicase/u16-is-invariant'.
14638         * lib/unicase/u16-is-invariant.c: New file.
14639         * modules/unicase/u16-is-invariant: New file.
14640
14641         New module 'unicase/u8-is-invariant'.
14642         * lib/unicase/u8-is-invariant.c: New file.
14643         * lib/unicase/invariant.h: New file.
14644         * lib/unicase/u-is-invariant.h: New file.
14645         * modules/unicase/u8-is-invariant: New file.
14646
14647         Tests for module 'unicase/u32-casecoll'.
14648         * modules/unicase/u32-casecoll-tests: New file.
14649         * tests/unicase/test-u32-casecoll.c: New file.
14650
14651         Tests for module 'unicase/u16-casecoll'.
14652         * modules/unicase/u16-casecoll-tests: New file.
14653         * tests/unicase/test-u16-casecoll.c: New file.
14654
14655         Tests for module 'unicase/u8-casecoll'.
14656         * modules/unicase/u8-casecoll-tests: New file.
14657         * tests/unicase/test-u8-casecoll.c: New file.
14658
14659         New module 'unicase/u32-casecoll'.
14660         * lib/unicase/u32-casecoll.c: New file.
14661         * modules/unicase/u32-casecoll: New file.
14662
14663         New module 'unicase/u16-casecoll'.
14664         * lib/unicase/u16-casecoll.c: New file.
14665         * modules/unicase/u16-casecoll: New file.
14666
14667         New module 'unicase/u8-casecoll'.
14668         * lib/unicase/u8-casecoll.c: New file.
14669         * lib/unicase/u-casecoll.h: New file.
14670         * modules/unicase/u8-casecoll: New file.
14671
14672         New module 'unicase/u32-casexfrm'.
14673         * lib/unicase/u32-casexfrm.c: New file.
14674         * modules/unicase/u32-casexfrm: New file.
14675
14676         New module 'unicase/u16-casexfrm'.
14677         * lib/unicase/u16-casexfrm.c: New file.
14678         * modules/unicase/u16-casexfrm: New file.
14679
14680         New module 'unicase/u8-casexfrm'.
14681         * lib/unicase/u8-casexfrm.c: New file.
14682         * lib/unicase/u-casexfrm.h: New file.
14683         * modules/unicase/u8-casexfrm: New file.
14684
14685         Tests for module 'unicase/u32-casecmp'.
14686         * modules/unicase/u32-casecmp-tests: New file.
14687         * tests/unicase/test-u32-casecmp.c: New file.
14688
14689         Tests for module 'unicase/u16-casecmp'.
14690         * modules/unicase/u16-casecmp-tests: New file.
14691         * tests/unicase/test-u16-casecmp.c: New file.
14692
14693         Tests for module 'unicase/u8-casecmp'.
14694         * modules/unicase/u8-casecmp-tests: New file.
14695         * tests/unicase/test-u8-casecmp.c: New file.
14696         * tests/unicase/test-casecmp.h: New file.
14697
14698         New module 'unicase/u32-casecmp'.
14699         * lib/unicase/u32-casecmp.c: New file.
14700         * modules/unicase/u32-casecmp: New file.
14701
14702         New module 'unicase/u16-casecmp'.
14703         * lib/unicase/u16-casecmp.c: New file.
14704         * modules/unicase/u16-casecmp: New file.
14705
14706         New module 'unicase/u8-casecmp'.
14707         * lib/unicase/u8-casecmp.c: New file.
14708         * lib/unicase/u-casecmp.h: New file.
14709         * modules/unicase/u8-casecmp: New file.
14710
14711         Tests for module 'unicase/u32-casefold'.
14712         * modules/unicase/u32-casefold-tests: New file.
14713         * tests/unicase/test-u32-casefold.c: New file.
14714
14715         Tests for module 'unicase/u16-casefold'.
14716         * modules/unicase/u16-casefold-tests: New file.
14717         * tests/unicase/test-u16-casefold.c: New file.
14718
14719         Tests for module 'unicase/u8-casefold'.
14720         * modules/unicase/u8-casefold-tests: New file.
14721         * tests/unicase/test-u8-casefold.c: New file.
14722
14723         New module 'unicase/u32-casefold'.
14724         * lib/unicase/u32-casefold.c: New file.
14725         * modules/unicase/u32-casefold: New file.
14726
14727         New module 'unicase/u16-casefold'.
14728         * lib/unicase/u16-casefold.c: New file.
14729         * modules/unicase/u16-casefold: New file.
14730
14731         New module 'unicase/u8-casefold'.
14732         * lib/unicase/u8-casefold.c: New file.
14733         * lib/unicase/u-casefold.h: New file.
14734         * modules/unicase/u8-casefold: New file.
14735
14736         New module 'unicase/tocasefold'.
14737         * lib/unicase/casefold.h: New file.
14738         * lib/unicase/tocasefold.c: New file.
14739         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14740         * modules/unicase/tocasefold: New file.
14741
14742         Tests for module 'unicase/u32-totitle'.
14743         * modules/unicase/u32-totitle-tests: New file.
14744         * tests/unicase/test-u32-totitle.c: New file.
14745
14746         Tests for module 'unicase/u16-totitle'.
14747         * modules/unicase/u16-totitle-tests: New file.
14748         * tests/unicase/test-u16-totitle.c: New file.
14749
14750         Tests for module 'unicase/u8-totitle'.
14751         * modules/unicase/u8-totitle-tests: New file.
14752         * tests/unicase/test-u8-totitle.c: New file.
14753
14754         New module 'unicase/u32-totitle'.
14755         * lib/unicase/u32-totitle.c: New file.
14756         * modules/unicase/u32-totitle: New file.
14757
14758         New module 'unicase/u16-totitle'.
14759         * lib/unicase/u16-totitle.c: New file.
14760         * modules/unicase/u16-totitle: New file.
14761
14762         New module 'unicase/u8-totitle'.
14763         * lib/unicase/u8-totitle.c: New file.
14764         * lib/unicase/u-totitle.h: New file.
14765         * modules/unicase/u8-totitle: New file.
14766
14767         Tests for module 'unicase/u32-tolower'.
14768         * modules/unicase/u32-tolower-tests: New file.
14769         * tests/unicase/test-u32-tolower.c: New file.
14770
14771         Tests for module 'unicase/u16-tolower'.
14772         * modules/unicase/u16-tolower-tests: New file.
14773         * tests/unicase/test-u16-tolower.c: New file.
14774
14775         Tests for module 'unicase/u8-tolower'.
14776         * modules/unicase/u8-tolower-tests: New file.
14777         * tests/unicase/test-u8-tolower.c: New file.
14778
14779         New module 'unicase/u32-tolower'.
14780         * lib/unicase/u32-tolower.c: New file.
14781         * modules/unicase/u32-tolower: New file.
14782
14783         New module 'unicase/u16-tolower'.
14784         * lib/unicase/u16-tolower.c: New file.
14785         * modules/unicase/u16-tolower: New file.
14786
14787         New module 'unicase/u8-tolower'.
14788         * lib/unicase/u8-tolower.c: New file.
14789         * modules/unicase/u8-tolower: New file.
14790
14791         Tests for module 'unicase/u32-toupper'.
14792         * modules/unicase/u32-toupper-tests: New file.
14793         * tests/unicase/test-u32-toupper.c: New file.
14794
14795         Tests for module 'unicase/u16-toupper'.
14796         * modules/unicase/u16-toupper-tests: New file.
14797         * tests/unicase/test-u16-toupper.c: New file.
14798
14799         Tests for module 'unicase/u8-toupper'.
14800         * modules/unicase/u8-toupper-tests: New file.
14801         * tests/unicase/test-u8-toupper.c: New file.
14802
14803         New module 'unicase/u32-toupper'.
14804         * lib/unicase/u32-toupper.c: New file.
14805         * modules/unicase/u32-toupper: New file.
14806
14807         New module 'unicase/u16-toupper'.
14808         * lib/unicase/u16-toupper.c: New file.
14809         * modules/unicase/u16-toupper: New file.
14810
14811         New module 'unicase/u8-toupper'.
14812         * lib/unicase/u8-toupper.c: New file.
14813         * modules/unicase/u8-toupper: New file.
14814
14815         New module 'unicase/u32-casemap'.
14816         * lib/unicase/u32-casemap.c: New file.
14817         * modules/unicase/u32-casemap: New file.
14818
14819         New module 'unicase/u16-casemap'.
14820         * lib/unicase/u16-casemap.c: New file.
14821         * modules/unicase/u16-casemap: New file.
14822
14823         New module 'unicase/u8-casemap'.
14824         * lib/unicase/unicasemap.h: New file.
14825         * lib/unicase/u8-casemap.c: New file.
14826         * lib/unicase/u-casemap.h: New file.
14827         * modules/unicase/u8-casemap: New file.
14828
14829         New module 'unicase/special-casing'.
14830         * lib/unicase/special-casing.h: New file.
14831         * lib/unicase/special-casing.c: New file.
14832         * lib/unicase/special-casing-table.gperf: New file, generated by
14833         gen-uni-tables.c.
14834         * modules/unicase/special-casing: New file.
14835
14836         Tests for module 'unicase/locale-language'.
14837         * modules/unicase/locale-language-tests: New file.
14838         * tests/unicase/test-locale-language.sh: New file.
14839         * tests/unicase/test-locale-language.c: New file.
14840
14841         New module 'unicase/locale-language'.
14842         * lib/unicase/locale-language.c: New file.
14843         * lib/unicase/locale-languages.gperf: New file.
14844         * modules/unicase/locale-language: New file.
14845
14846         Generate more tables for case conversion and case folding.
14847         * lib/gen-uni-tables.c (SCC_*): New enum items.
14848         (struct special_casing_rule): New type.
14849         (casing_rules, num_casing_rules, allocated_casing_rules): New
14850         variables.
14851         (add_casing_rule, fill_casing_rules): New functions.
14852         (struct casefold_rule): New type.
14853         (casefolding_rules, num_casefolding_rules,
14854         allocated_casefolding_rules): New variables.
14855         (fill_casefolding_rules): New function.
14856         (unicode_casefold): New variable.
14857         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14858         sort_casing_rules, output_casing_rules): New functions.
14859         (main): Accept to more arguments: SpecialCasing.txt and
14860         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14861         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14862         Output mapping for casefolding.
14863
14864         * lib/unicase.h: Include stdbool.h, uninorm.h.
14865         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14866         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14867         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14868         arguments.
14869         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14870         resultp arguments.
14871         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14872         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14873         resultp arguments.
14874         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14875         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14876         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14877         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14878         declarations.
14879         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14880
14881 2009-03-08  Bruno Haible  <bruno@clisp.org>
14882
14883         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14884         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14885         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14886         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14887
14888 2009-03-07  Bruno Haible  <bruno@clisp.org>
14889
14890         Adjust u*_normcmp, u*_normcoll API.
14891         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14892         u16_normcoll, u32_normcoll): Change failure conventions.
14893         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14894         errno and return -1.
14895         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14896
14897 2009-03-07  Bruno Haible  <bruno@clisp.org>
14898
14899         Tests for module 'uninorm/u32-normcoll'.
14900         * modules/uninorm/u32-normcoll-tests: New file.
14901         * tests/uninorm/test-u32-normcoll.c: New file.
14902
14903         Tests for module 'uninorm/u16-normcoll'.
14904         * modules/uninorm/u16-normcoll-tests: New file.
14905         * tests/uninorm/test-u16-normcoll.c: New file.
14906
14907         Tests for module 'uninorm/u8-normcoll'.
14908         * modules/uninorm/u8-normcoll-tests: New file.
14909         * tests/uninorm/test-u8-normcoll.c: New file.
14910
14911 2009-03-07  Bruno Haible  <bruno@clisp.org>
14912
14913         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14914         tests/uninorm/test-u32-normcmp.c.
14915         * tests/uninorm/test-u32-normcmp.c: Include it.
14916         (test_nonascii): New function, extracted from main. Add some more
14917         tests.
14918         (main): Invoke test_ascii and test_nonascii.
14919         * modules/uninorm/u32-normcmp-tests (Files): Add
14920         tests/uninorm/test-u32-normcmp.h.
14921         (Depends-on): Remove uninorm/u32-normcmp.
14922
14923         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14924         tests/uninorm/test-u16-normcmp.c.
14925         * tests/uninorm/test-u16-normcmp.c: Include it.
14926         (test_nonascii): New function, extracted from main. Add some more
14927         tests.
14928         (main): Invoke test_ascii and test_nonascii.
14929         * modules/uninorm/u16-normcmp-tests (Files): Add
14930         tests/uninorm/test-u16-normcmp.h.
14931         (Depends-on): Remove uninorm/u16-normcmp.
14932
14933         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14934         tests/uninorm/test-u8-normcmp.c.
14935         * tests/uninorm/test-u8-normcmp.c: Include it.
14936         (test_nonascii): New function, extracted from main. Add some more
14937         tests.
14938         (main): Invoke test_ascii and test_nonascii.
14939         * modules/uninorm/u8-normcmp-tests (Files): Add
14940         tests/uninorm/test-u8-normcmp.h.
14941         (Depends-on): Remove uninorm/u8-normcmp.
14942
14943 2009-03-07  Bruno Haible  <bruno@clisp.org>
14944
14945         New module 'uninorm/u32-normcoll'.
14946         * lib/uninorm/u32-normcoll.c: New file.
14947         * modules/uninorm/u32-normcoll: New file.
14948
14949         New module 'uninorm/u16-normcoll'.
14950         * lib/uninorm/u16-normcoll.c: New file.
14951         * modules/uninorm/u16-normcoll: New file.
14952
14953         New module 'uninorm/u8-normcoll'.
14954         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14955         declarations.
14956         * lib/uninorm/u8-normcoll.c: New file.
14957         * lib/uninorm/u-normcoll.h: New file.
14958         * modules/uninorm/u8-normcoll: New file.
14959
14960         New module 'uninorm/u32-normxfrm'.
14961         * lib/uninorm/u32-normxfrm.c: New file.
14962         * modules/uninorm/u32-normxfrm: New file.
14963
14964         New module 'uninorm/u16-normxfrm'.
14965         * lib/uninorm/u16-normxfrm.c: New file.
14966         * modules/uninorm/u16-normxfrm: New file.
14967
14968         New module 'uninorm/u8-normxfrm'.
14969         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14970         declarations.
14971         * lib/uninorm/u8-normxfrm.c: New file.
14972         * lib/uninorm/u-normxfrm.h: New file.
14973         * modules/uninorm/u8-normxfrm: New file.
14974
14975 2009-03-07  Bruno Haible  <bruno@clisp.org>
14976
14977         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14978         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14979         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14980
14981 2009-03-07  Bruno Haible  <bruno@clisp.org>
14982
14983         New module 'memxfrm'.
14984         * lib/memxfrm.h: New file.
14985         * lib/memxfrm.c: New file.
14986         * modules/memxfrm: New file.
14987
14988 2009-03-07  Bruno Haible  <bruno@clisp.org>
14989
14990         New module 'memcmp2'.
14991         * lib/memcmp2.h: New file.
14992         * lib/memcmp2.c: New file.
14993         * modules/memcmp2: New file.
14994
14995 2009-03-07  Bruno Haible  <bruno@clisp.org>
14996
14997         Tests for module 'uninorm/decomposing-form'.
14998         * modules/uninorm/decomposing-form-tests: New file.
14999         * tests/uninorm/test-decomposing-form.c: New file.
15000
15001         New module 'uninorm/decomposing-form'.
15002         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15003         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15004         Add 'decomposing_variant' field.
15005         * lib/uninorm/decomposing-form.c: New file.
15006         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15007         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15008         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15009         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15010         * modules/uninorm/decomposing-form: New file.
15011         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15012         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15013
15014 2009-03-07  Bruno Haible  <bruno@clisp.org>
15015
15016         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15017         strings.
15018
15019 2009-03-06  Bruno Haible  <bruno@clisp.org>
15020
15021         Tests for module 'uninorm/u32-normcmp'.
15022         * tests/uninorm/test-u32-normcmp.c: New file.
15023         * modules/uninorm/u32-normcmp-tests: New file.
15024
15025         Tests for module 'uninorm/u16-normcmp'.
15026         * tests/uninorm/test-u16-normcmp.c: New file.
15027         * modules/uninorm/u16-normcmp-tests: New file.
15028
15029         Tests for module 'uninorm/u8-normcmp'.
15030         * tests/uninorm/test-u8-normcmp.c: New file.
15031         * modules/uninorm/u8-normcmp-tests: New file.
15032
15033         New module 'uninorm/u32-normcmp'.
15034         * lib/uninorm/u32-normcmp.c: New file.
15035         * modules/uninorm/u32-normcmp: New file.
15036
15037         New module 'uninorm/u16-normcmp'.
15038         * lib/uninorm/u16-normcmp.c: New file.
15039         * modules/uninorm/u16-normcmp: New file.
15040
15041         New module 'uninorm/u8-normcmp'.
15042         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15043         declarations.
15044         * lib/uninorm/u8-normcmp.c: New file.
15045         * lib/uninorm/u-normcmp.h: New file.
15046         * modules/uninorm/u8-normcmp: New file.
15047
15048 2009-03-06  Bruno Haible  <bruno@clisp.org>
15049
15050         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15051         Reported by Eric Blake.
15052
15053 2009-03-06  Eric Blake  <ebb9@byu.net>
15054             Bruno Haible  <bruno@clisp.org>
15055
15056         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15057         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15058         condition.
15059         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15060         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15061         condition.
15062         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15063
15064 2009-03-06  Eric Blake  <ebb9@byu.net>
15065
15066         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15067         to avoid compiler warnings.
15068         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15069
15070 2009-03-05  Bruno Haible  <bruno@clisp.org>
15071
15072         * tests/test-ftell.c (main): Disable test beyond end of file on
15073         FreeMiNT.
15074         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15075
15076 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15077
15078         * lib/filevercmp.c: Move hidden files up in ordering.
15079         * tests/test-filevercmp.c: Add tests for hidden files.
15080
15081 2009-03-04  Bruno Haible  <bruno@clisp.org>
15082
15083         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15084         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15085         AM_CFLAGS.
15086         Reported by Simon Josefsson.
15087
15088 2009-03-03  Bruno Haible  <bruno@clisp.org>
15089
15090         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15091         Reported by Simon Josefsson.
15092
15093         * doc/ld-version-script.texi: Update node reference.
15094
15095 2009-03-03  Bruno Haible  <bruno@clisp.org>
15096
15097         * modules/visibility (License): Change to 'unlimited'.
15098         Suggested by Simon Josefsson.
15099
15100 2009-03-03  Jim Meyering  <meyering@redhat.com>
15101
15102         unlinkdir: cannot_unlink_dir may modify process state
15103         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15104         it's neither thread-safe nor appropriate for use in a library.
15105
15106 2009-03-03  Eric Blake  <ebb9@byu.net>
15107
15108         test-closein: silence test under Darwin
15109         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15110         care if it dies from EPIPE or EBADF.
15111
15112 2009-03-03  Bruno Haible  <bruno@clisp.org>
15113
15114         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15115         earlier.
15116         * doc/visibility.texi: Fix @node and @section.
15117
15118 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15119
15120         * doc/gnulib.texi: Link to sections for ld version script and
15121         visibility.
15122         * doc/visibility.texi: Add @node and @section.
15123         * modules/ld-version-script: New module.
15124         * m4/ld-version-script.m4: New file.
15125         * doc/ld-version-script.texi: New file.
15126
15127 2009-03-02  David Lutterkort  <lutter@redhat.com>
15128
15129         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15131
15132 2009-03-02  Bruno Haible  <bruno@clisp.org>
15133
15134         * doc/visibility.texi: Mention libtool's -export-symbols option.
15135
15136 2009-03-02  Jim Meyering  <meyering@redhat.com>
15137
15138         announce-gen: new option: --no-print-checksums
15139         * build-aux/announce-gen (usage): Describe it.
15140         (print_checksums): Print a newline here, not in the [*] footnote.
15141         (main): Honor it.
15142
15143 2009-03-01  Bruno Haible  <bruno@clisp.org>
15144
15145         Use socklen_t in the native Windows replacements prototypes.
15146         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15147         instead of 'int'.
15148         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15149         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15150         * modules/getsockopt (Depends-on): Add socklen.
15151         * modules/setsockopt (Depends-on): Add socklen.
15152
15153 2009-03-01  Bruno Haible  <bruno@clisp.org>
15154
15155         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15156         least 4.2.
15157
15158 2009-03-01  Eric Blake  <ebb9@byu.net>
15159             Bruno Haible  <bruno@clisp.org>
15160
15161         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15162         error messages.
15163         * lib/wait-process.c (wait_subprocess): Omit error message about
15164         deadly signal sent to the child of termsigp != NULL.
15165
15166 2009-03-01  Eric Blake  <ebb9@byu.net>
15167
15168         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15169
15170 2009-03-01  Bruno Haible  <bruno@clisp.org>
15171
15172         Avoid a gcc warning.
15173         * tests/test-sched.c (b): Make global.
15174         Reported by Eric Blake.
15175
15176 2009-01-19  Martin Lambers  <marlam@marlam.de>
15177
15178         Provide POSIX semantics for socket timeout options on W32.
15179         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15180         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15181         * modules/setsockopt: Depend on sys_time module for struct timeval.
15182         * modules/getsockopt: Depend on sys_time module for struct timeval.
15183
15184 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15185
15186         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15187         __USE_GNU, for consistency with netdb.in.h.
15188         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15189
15190 2009-03-01  Bruno Haible  <bruno@clisp.org>
15191
15192         More support for FreeMiNT.
15193         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15194         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15195
15196 2009-03-01  Bruno Haible  <bruno@clisp.org>
15197
15198         More support for FreeMiNT.
15199         * lib/fpurge.c (fpurge): Correct last commit.
15200         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15201
15202 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15203
15204         Fix unportable awk script in vc-list-files.
15205         * build-aux/vc-list-files: In the replacement awk script, use
15206         substr with a second argument of 1, not zero.
15207         Report by Simon Josefsson.
15208
15209 2009-02-28  Bruno Haible  <bruno@clisp.org>
15210
15211         More support for FreeMiNT.
15212         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15213         to FreeMiNT today.
15214         * lib/fwriting.c (fwriting): Likewise.
15215         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15216
15217 2009-02-28  Bruno Haible  <bruno@clisp.org>
15218
15219         * tests/test-freadseek.c (main): Disable test beyond end of file on
15220         FreeMiNT.
15221         * tests/test-ftello.c (main): Likewise.
15222         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15223
15224 2009-02-28  Bruno Haible  <bruno@clisp.org>
15225
15226         Add tentative support for FreeMiNT.
15227         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15228         * lib/fpurge.c (fpurge): Likewise.
15229         * lib/freadable.c (freadable): Likewise.
15230         * lib/freading.c (freading): Likewise.
15231         * lib/freadptr.c (freadptr): Likewise.
15232         * lib/freadseek.c (freadptrinc): Likewise.
15233         * lib/fseeko.c (rpl_fseeko): Likewise.
15234         * lib/fseterr.c (fseterr): Likewise.
15235         * lib/fwritable.c (fwritable): Likewise.
15236         * lib/fwriting.c (fwriting): Likewise.
15237         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15238         Hourihane.
15239         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15240
15241 2009-02-28  Bruno Haible  <bruno@clisp.org>
15242
15243         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15244         SIGCHLD.
15245         Reported by Jim Meyering.
15246
15247 2009-02-28  Bruno Haible  <bruno@clisp.org>
15248
15249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15250         Mention the results of these tests on various platforms.
15251         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15252         order.
15253         * doc/posix-functions/printf.texi: Likewise.
15254         * doc/posix-functions/snprintf.texi: Likewise.
15255         * doc/posix-functions/sprintf.texi: Likewise.
15256         * doc/posix-functions/vfprintf.texi: Likewise.
15257         * doc/posix-functions/vprintf.texi: Likewise.
15258         * doc/posix-functions/vsnprintf.texi: Likewise.
15259         * doc/posix-functions/vsprintf.texi: Likewise.
15260         * doc/glibc-functions/obstack_printf.texi: Likewise.
15261         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15262
15263 2009-02-28  Bruno Haible  <bruno@clisp.org>
15264
15265         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15266         Reported by Loïc Minier <lool@dooz.org>.
15267
15268 2009-02-27  Bruno Haible  <bruno@clisp.org>
15269
15270         * gnulib-tool (func_import): Make the sed expression used to create the
15271         sed script for updating the .gitignore file POSIX compliant.
15272         Reported by Eric Blake.
15273
15274 2009-02-27  Bruno Haible  <bruno@clisp.org>
15275
15276         * gnulib-tool (sed): Don't alias as "sed --posix".
15277         Reported by Eric Blake.
15278
15279 2009-02-27  Bruno Haible  <bruno@clisp.org>
15280
15281         Avoid test link errors.
15282         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15283         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15284         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15285         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15287
15288 2009-02-27  Bruno Haible  <bruno@clisp.org>
15289
15290         Avoid spurious "(cached)" in configure output.
15291         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15292         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15293         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15294         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15295         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15296         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15297         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15298         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15299         Reported by Eric Blake.
15300
15301 2009-02-27  Eric Blake  <ebb9@byu.net>
15302
15303         printf: fix regression in previous patch
15304         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15305
15306 2009-02-27  Bruno Haible  <bruno@clisp.org>
15307
15308         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15309         value.
15310         * lib/stdint.in.h: Likewise.
15311         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15312
15313 2009-02-27  Eric Blake  <ebb9@byu.net>
15314
15315         doc: mention more functions added in cygwin 1.7.0
15316         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15317         addition.
15318         * doc/posix-functions/open_wmemstream.texi: Likewise.
15319         * doc/posix-functions/wcsnlen.texi: Likewise.
15320         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15321         * doc/posix-functions/wcstod.texi: Likewise.
15322         * doc/posix-functions/wcstof.texi: Likewise.
15323         * doc/posix-functions/wcstoimax.texi: Likewise.
15324         * doc/posix-functions/wcstok.texi: Likewise.
15325         * doc/posix-functions/wcstoumax.texi: Likewise.
15326
15327         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15328         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15329         * doc/posix-functions/fprintf.texi: Update.
15330         * doc/posix-functions/printf.texi: Update.
15331         * doc/posix-functions/snprintf.texi: Update.
15332         * doc/posix-functions/sprintf.texi: Update.
15333         * doc/posix-functions/vfprintf.texi: Update.
15334         * doc/posix-functions/vprintf.texi: Update.
15335         * doc/posix-functions/vsnprintf.texi: Update.
15336         * doc/posix-functions/vsprintf.texi: Update.
15337         * doc/glibc-functions/obstack_printf.texi: Update.
15338         * doc/glibc-functions/obstack_vprintf.texi: Update.
15339
15340 2009-02-26  Eric Blake  <ebb9@byu.net>
15341
15342         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15343         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15344         compilation bug by using runtime conversion.
15345         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15346         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15347         * modules/ceill-tests (Files): Use nan.h.
15348         * modules/floorl-tests (Files): Likewise.
15349         * modules/frexpl-tests (Files): Likewise.
15350         * modules/isnanl-tests (Files): Likewise.
15351         * modules/ldexpl-tests (Files): Likewise.
15352         * modules/roundl-tests (Files): Likewise.
15353         * modules/truncl-tests (Files): Likewise.
15354         * tests/test-ceill.c (main): Use a working NaN.
15355         * tests/test-floorl.c (main): Likewise.
15356         * tests/test-frexpl.c (main): Likewise.
15357         * tests/test-isnan.c (test_long_double): Likewise.
15358         * tests/test-isnanl.h (main): Likewise.
15359         * tests/test-ldexpl.h (main): Likewise.
15360         * tests/test-roundl.h (main): Likewise.
15361         * tests/test-truncl.h (main): Likewise.
15362         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15363
15364 2009-02-26  Eric Blake  <ebb9@byu.net>
15365             Bruno Haible  <bruno@clisp.org>
15366
15367         Work around a *printf bug with %ls on Solaris.
15368         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15369         precision is specified, sprintf stops converting the wide string
15370         argument when the number of bytes that have been produced by this
15371         conversion equals or exceeds the precision.
15372         * doc/posix-functions/fprintf.texi: Update.
15373         * doc/posix-functions/printf.texi: Update.
15374         * doc/posix-functions/snprintf.texi: Update.
15375         * doc/posix-functions/sprintf.texi: Update.
15376         * doc/posix-functions/vfprintf.texi: Update.
15377         * doc/posix-functions/vprintf.texi: Update.
15378         * doc/posix-functions/vsnprintf.texi: Update.
15379         * doc/posix-functions/vsprintf.texi: Update.
15380         * doc/glibc-functions/obstack_printf.texi: Update.
15381         * doc/glibc-functions/obstack_vprintf.texi: Update.
15382
15383 2009-02-26  Eric Blake  <ebb9@byu.net>
15384
15385         stdlib: favor compiler check of random.h
15386         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15387         to avoid an ObjC random.h installed by Swarm.
15388
15389 2009-02-26  Bruno Haible  <bruno@clisp.org>
15390
15391         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15392         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15393         Reported by Gary V. Vaughan <gary@gnu.org>.
15394
15395 2009-02-26  Bruno Haible  <bruno@clisp.org>
15396
15397         Fix *printf behaviour regarding the %ls directive.
15398         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15399         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15400         NEED_PRINTF_DIRECTIVE_LS.
15401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15402         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15404         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15405         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15406         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15407         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15409         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15410         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15411         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15412         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15413         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15415         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15416         * doc/posix-functions/fprintf.texi: Update.
15417         * doc/posix-functions/printf.texi: Update.
15418         * doc/posix-functions/snprintf.texi: Update.
15419         * doc/posix-functions/sprintf.texi: Update.
15420         * doc/posix-functions/vfprintf.texi: Update.
15421         * doc/posix-functions/vprintf.texi: Update.
15422         * doc/posix-functions/vsnprintf.texi: Update.
15423         * doc/posix-functions/vsprintf.texi: Update.
15424         * doc/glibc-functions/obstack_printf.texi: Update.
15425         * doc/glibc-functions/obstack_vprintf.texi: Update.
15426         Reported by Eric Blake.
15427
15428 2009-02-25  Bruno Haible  <bruno@clisp.org>
15429
15430         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15431         with known value.
15432         Reported by Gary V. Vaughan <gary@gnu.org>.
15433
15434 2009-02-25  Bruno Haible  <bruno@clisp.org>
15435
15436         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15437         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15438         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15439         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15440         Reported by Gary V. Vaughan <gary@gnu.org>.
15441
15442 2009-02-25  Bruno Haible  <bruno@clisp.org>
15443
15444         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15445         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15446         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15447         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15448         Reported by Gary V. Vaughan <gary@gnu.org>.
15449
15450 2009-02-25  Eric Blake  <ebb9@byu.net>
15451
15452         tests: skip fseek/ftell tests if ungetc is broken
15453         * m4/ungetc.m4: New file.
15454         * modules/fseek-tests: Split test, so ungetc dependency is
15455         separate from rest of test.
15456         * modules/fseeko-tests: Likewise.
15457         * modules/ftell-tests: Likewise.
15458         * modules/ftello-tests: Likewise.
15459         * tests/test-fseek.c (main): Isolate ungetc dependency.
15460         * tests/test-fseeko.c (main): Likewise.
15461         * tests/test-ftell.c (main): Likewise.
15462         * tests/test-ftello.c (main): Likewise.
15463         * tests/test-fseek2.sh: New file.
15464         * tests/test-fseeko2.sh: Likewise.
15465         * tests/test-ftell2.sh: Likewise.
15466         * tests/test-ftello2.sh: Likewise.
15467
15468 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
15469
15470         test-getaddrinfo: fix usage of skip return code 77
15471         * tests/test-gettaddrinfo.c: Return skip code 77 only
15472         for first occurance of skip (4x77 is not 77)
15473
15474 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15475
15476         strtod: avoid C99 decl-after-statement
15477         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15478
15479 2009-02-24  Eric Blake  <ebb9@byu.net>
15480
15481         strtod: detect HP-UX 11.31 bug
15482         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15483         Reported by Gary V. Vaughan.
15484
15485 2009-02-23  Bruno Haible  <bruno@clisp.org>
15486
15487         Fix invalid read past end of memory block.
15488         * lib/vasnprintf.c (DCHAR_SET): Define.
15489         (local_wcslen): Define only when needed.
15490         (local_strnlen, local_wcsnlen): New functions.
15491         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15492         directives that involve a conversion ourselves.
15493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15494         wcsnlen, mbrtowc, wcrtomb.
15495         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15496         * tests/test-vasprintf-posix.c (test_function): Likewise.
15497         * tests/test-snprintf-posix.h (test_function): Likewise.
15498         * tests/test-sprintf-posix.h (test_function): Likewise.
15499         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15500
15501 2009-02-22  Bruno Haible  <bruno@clisp.org>
15502
15503         Implement new clarified decomposition of Hangul syllables.
15504         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15505         of type LTV, return only a pairwise decomposition.
15506         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15507         Likewise.
15508         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15509         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15510         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15511
15512 2009-02-22  Bruno Haible  <bruno@clisp.org>
15513
15514         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15515         zero-length results and shrink excess allocated memory.
15516         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15517         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15518         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15519         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15520         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15521         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15522         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15523         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15524         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15525         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15526         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15527         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15528
15529 2009-02-21  Bruno Haible  <bruno@clisp.org>
15530
15531         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15532         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15533         spaces after a period. Put a space between a macro name and its
15534         argument list. Trivial rewordings.
15535         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15536         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15537         (main): Return 0 explicitly.
15538
15539 2009-02-21  Bruno Haible  <bruno@clisp.org>
15540
15541         Tests for module 'uninorm/filter'.
15542         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15543         * modules/uninorm/filter-tests: New file.
15544
15545         New module 'uninorm/filter'.
15546         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15547         uninorm_filter_flush, uninorm_filter_free): New declarations.
15548         * lib/uninorm/uninorm-filter.c: New file.
15549         * modules/uninorm/filter: New file.
15550
15551 2009-02-21  Bruno Haible  <bruno@clisp.org>
15552
15553         Tests for module 'uninorm/nfkc'.
15554         * tests/uninorm/test-nfkc.c: New file.
15555         * tests/uninorm/test-u8-nfkc.c: New file.
15556         * tests/uninorm/test-u16-nfkc.c: New file.
15557         * tests/uninorm/test-u32-nfkc.c: New file.
15558         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15559         * tests/uninorm/test-u32-nfkc-big.c: New file.
15560         * modules/uninorm/nfkc-tests: New file.
15561
15562         New module 'uninorm/nfkc'.
15563         * lib/uninorm/nfkc.c: New file.
15564         * modules/uninorm/nfkc: New file.
15565
15566         Tests for module 'uninorm/nfkd'.
15567         * tests/uninorm/test-nfkd.c: New file.
15568         * tests/uninorm/test-u8-nfkd.c: New file.
15569         * tests/uninorm/test-u16-nfkd.c: New file.
15570         * tests/uninorm/test-u32-nfkd.c: New file.
15571         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15572         * tests/uninorm/test-u32-nfkd-big.c: New file.
15573         * modules/uninorm/nfkd-tests: New file.
15574
15575         New module 'uninorm/nfkd'.
15576         * lib/uninorm/nfkd.c: New file.
15577         * modules/uninorm/nfkd: New file.
15578
15579         Tests for module 'uninorm/nfc'.
15580         * tests/uninorm/test-nfc.c: New file.
15581         * tests/uninorm/test-u8-nfc.c: New file.
15582         * tests/uninorm/test-u16-nfc.c: New file.
15583         * tests/uninorm/test-u32-nfc.c: New file.
15584         * tests/uninorm/test-u32-nfc-big.sh: New file.
15585         * tests/uninorm/test-u32-nfc-big.c: New file.
15586         * modules/uninorm/nfc-tests: New file.
15587
15588         New module 'uninorm/nfc'.
15589         * lib/uninorm/nfc.c: New file.
15590         * modules/uninorm/nfc: New file.
15591
15592         Tests for module 'uninorm/nfd'.
15593         * tests/uninorm/test-nfd.c: New file.
15594         * tests/uninorm/test-u8-nfd.c: New file.
15595         * tests/uninorm/test-u16-nfd.c: New file.
15596         * tests/uninorm/test-u32-nfd.c: New file.
15597         * tests/uninorm/test-u32-nfd-big.sh: New file.
15598         * tests/uninorm/test-u32-nfd-big.c: New file.
15599         * tests/uninorm/test-u32-normalize-big.h: New file.
15600         * tests/uninorm/test-u32-normalize-big.c: New file.
15601         * tests/uninorm/NormalizationTest.txt: New file, created from
15602         Unicode 5.1.0 NormalizationTest.txt.
15603         * modules/uninorm/nfd-tests: New file.
15604
15605         New module 'uninorm/nfd'.
15606         * lib/uninorm/nfd.c: New file.
15607         * modules/uninorm/nfd: New file.
15608
15609         New module 'uninorm/u32-normalize'.
15610         * lib/uninorm/u32-normalize.c: New file.
15611         * modules/uninorm/u32-normalize: New file.
15612
15613         New module 'uninorm/u16-normalize'.
15614         * lib/uninorm/u16-normalize.c: New file.
15615         * modules/uninorm/u16-normalize: New file.
15616
15617         New module 'uninorm/u8-normalize'.
15618         * lib/uninorm/u8-normalize.c: New file.
15619         * lib/uninorm/normalize-internal.h: New file.
15620         * lib/uninorm/u-normalize-internal.h: New file.
15621         * modules/uninorm/u8-normalize: New file.
15622
15623         New module 'uninorm/decompose-internal'.
15624         * lib/uninorm/decompose-internal.c: New file.
15625         * modules/uninorm/decompose-internal: New file.
15626
15627         Tests for module 'uninorm/composition'.
15628         * tests/uninorm/test-composition.c: New file.
15629         * modules/uninorm/composition-tests: New file.
15630
15631         New module 'uninorm/composition'.
15632         * lib/uninorm/composition.c: New file.
15633         * lib/uninorm/composition-table.gperf: New file, generated by
15634         gen-uni-tables.
15635         * modules/uninorm/composition: New file.
15636
15637         Tests for module 'uninorm/compat-decomposition'.
15638         * tests/uninorm/test-compat-decomposition.c: New file.
15639         * modules/uninorm/compat-decomposition-tests: New file.
15640
15641         New module 'uninorm/compat-decomposition'.
15642         * lib/uninorm/decompose-internal.h: New file.
15643         * lib/uninorm/compat-decomposition.c: New file.
15644         * modules/uninorm/compat-decomposition: New file.
15645
15646         Tests for module 'uninorm/canonical-decomposition'.
15647         * tests/uninorm/test-canonical-decomposition.c: New file.
15648         * modules/uninorm/canonical-decomposition-tests: New file.
15649
15650         New module 'uninorm/canonical-decomposition'.
15651         * lib/uninorm/canonical-decomposition.c: New file.
15652         * modules/uninorm/canonical-decomposition: New file.
15653
15654         Tests for module 'uninorm/decomposition'.
15655         * tests/uninorm/test-decomposition.c: New file.
15656         * modules/uninorm/decomposition-tests: New file.
15657
15658         New module 'uninorm/decomposition'.
15659         * lib/uninorm/decomposition.c: New file.
15660         * modules/uninorm/decomposition: New file.
15661
15662         New module 'uninorm/decomposition-table'.
15663         * lib/uninorm/decomposition-table.h: New file.
15664         * lib/uninorm/decomposition-table.c: New file.
15665         * lib/uninorm/decomposition-table1.h: New file, generated by
15666         gen-uni-tables.
15667         * lib/uninorm/decomposition-table2.h: New file, generated by
15668         gen-uni-tables.
15669         * modules/uninorm/decomposition-table: New file.
15670
15671         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15672         (UC_DECOMP_*): New enumeration items.
15673         (get_decomposition): New function.
15674         (struct decomp_table): New type.
15675         (output_decomposition, output_decomposition_tables): New functions.
15676         (unicode_composition_exclusions): New variable.
15677         (fill_composition_exclusions, debug_output_composition_tables): New
15678         functions.
15679         (main): Accept one more argument. Invoke fill_composition_exclusions.
15680         Output decomposition and composition tables.
15681
15682         New module 'uninorm/base'.
15683         * lib/uninorm.h: New file.
15684         * lib/unictype.h: Update comment.
15685         * modules/uninorm/base: New file.
15686
15687 2009-02-21  David Lutterkort  <lutter@redhat.com>
15688
15689         Tests for module 'safe-alloc'.
15690         * tests/test-safe-alloc.c: New file.
15691         * modules/safe-alloc-tests: New file.
15692
15693         New module 'safe-alloc'.
15694         * lib/safe-alloc.h: New file.
15695         * lib/safe-alloc.c: New file.
15696         * m4/safe-alloc.m4: New file.
15697         * modules/safe-alloc: New file.
15698         * doc/safe-alloc.texi: New file.
15699         * doc/gnulib.texi: Include it.
15700         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15701         safe-alloc.
15702
15703 2009-02-18  Bruno Haible  <bruno@clisp.org>
15704
15705         Fix link error on non-glibc systems.
15706         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15707         variable.
15708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15709
15710 2009-02-18  Jim Meyering  <meyering@redhat.com>
15711
15712         fts: avoid used-uninitialized error due to recent change
15713         * lib/fts.c (fts_read): Guard uses of the new member,
15714         parent->fts_n_dirs_remaining, since it's not relevant for
15715         the parent of a directory specified on the command-line.
15716
15717 2009-02-17  James Youngman  <jay@gnu.org>
15718             Bruno Haible  <bruno@clisp.org>
15719
15720         * m4/include_next.m4: Reformulate comment.
15721
15722 2009-02-16  Jim Meyering  <meyering@redhat.com>
15723
15724         fts: add #if guards so that the fts_lgpl module still builds
15725         * lib/fts.c: Guard just-added hash-table-using parts with
15726         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15727         Reported by Simon Josefsson.
15728
15729 2009-02-15  Bruno Haible  <bruno@clisp.org>
15730
15731         * modules/array-mergesort-tests: New file.
15732         * tests/test-array-mergesort.c: New file.
15733
15734         New module 'array-mergesort'.
15735         * modules/array-mergesort: New file.
15736         * lib/array-mergesort.h: New file.
15737
15738 2009-02-15  Bruno Haible  <bruno@clisp.org>
15739
15740         Fix 2009-02-07 commit.
15741         * lib/gen-uni-tables.c (output_predicate, output_category,
15742         output_combclass, output_bidi_category, output_decimal_digit,
15743         output_digit, output_numeric, output_mirror, output_scripts,
15744         output_ident_category, output_simple_mapping): Fix format directives.
15745         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15746
15747 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15748
15749         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15750         fixes are available from IBM.
15751
15752 2009-02-13  Jim Meyering  <meyering@redhat.com>
15753
15754         fts: arrange not to stat non-directories in more cases
15755         This makes GNU find (when it doesn't need to stat each file)
15756         *much* more efficient at traversing reiserfs file systems.
15757         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15758         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15759         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15760         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15761         (leaf_optimization_applies): New function.
15762         (LCO_hash, LCO_compare): New helper functions.
15763         (link_count_optimize_ok): New function.
15764         (fts_stat): Initialize new member (if dir).
15765         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15766         we've just stat'ed a directory.  Skip the stat call when possible.
15767         ---
15768         Note this AFS-related exchange:
15769         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15770         and note find's pioctl call in find/fstype.c.
15771         But that is necessary only if you want to enable the
15772         optimization for AFS, and for now, I don't.
15773
15774         fts: move a function definition "up" (no semantic change)
15775         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15776         "up" to precede upcoming use of a related function.
15777
15778 2009-02-11  Jim Meyering  <meyering@redhat.com>
15779
15780         fts: correct internal computation of nlinks (optimization-related)
15781         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15782         whether the current entry is a directory, so don't test it.
15783
15784 2009-02-10  Bruno Haible  <bruno@clisp.org>
15785
15786         Tests for module 'uniwbrk/ulc-wordbreaks'.
15787         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15788         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15789         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15790
15791         Tests for module 'uniwbrk/u32-wordbreaks'.
15792         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15793         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15794
15795         Tests for module 'uniwbrk/u16-wordbreaks'.
15796         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15797         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15798
15799         Tests for module 'uniwbrk/u8-wordbreaks'.
15800         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15801         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15802
15803 2009-02-10  Bruno Haible  <bruno@clisp.org>
15804
15805         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15806         property.
15807         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15808         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15809         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15810
15811 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15812
15813         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15814         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15815
15816 2009-02-10  Bruno Haible  <bruno@clisp.org>
15817
15818         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15819         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15820         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15821         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15822         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15823         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15824
15825 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15826
15827         * lib/sockets.h (gl_fd_to_handle): New function.
15828
15829         * tests/test-sockets.c: Call gl_fd_to_handle.
15830
15831 2009-02-09  Bruno Haible  <bruno@clisp.org>
15832
15833         * doc/havelib.texi: Document the conventions on bi-arch systems.
15834
15835 2009-02-08  Bruno Haible  <bruno@clisp.org>
15836
15837         Document the AC_LIB_LINKFLAGS macro.
15838         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15839         * doc/gnulib.texi: Include it.
15840
15841 2009-02-08  Bruno Haible  <bruno@clisp.org>
15842
15843         Fix wrong order of sections, compared to TOC.
15844         * doc/gnulib.texi: Include relocatable-maint.texi after the
15845         "Regular expressions" node, not before.
15846
15847 2009-02-08  Bruno Haible  <bruno@clisp.org>
15848
15849         Tests for module 'unicase/totitle'.
15850         * modules/unicase/totitle-tests: New file.
15851
15852         Tests for module 'unicase/tolower'.
15853         * modules/unicase/tolower-tests: New file.
15854
15855         Tests for module 'unicase/toupper'.
15856         * modules/unicase/toupper-tests: New file.
15857         * tests/unicase/test-mapping-part1.h: New file.
15858         * tests/unicase/test-mapping-part2.h: New file.
15859
15860         New module 'unicase/totitle'.
15861         * modules/unicase/totitle: New file.
15862         * lib/unicase/totitle.c: New file.
15863
15864         New module 'unicase/tolower'.
15865         * modules/unicase/tolower: New file.
15866         * lib/unicase/tolower.c: New file.
15867
15868         New module 'unicase/toupper'.
15869         * modules/unicase/toupper: New file.
15870         * lib/unicase/toupper.c: New file.
15871         * lib/unicase/simple-mapping.h: New file.
15872
15873         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15874         (mapping_table): New structure.
15875         (output_simple_mapping): New function.
15876         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15877         * modules/gen-uni-tables (Description): Update.
15878         * lib/unicase/toupper.h: New file, automatically generated by
15879         gen-uni-tables.
15880         * lib/unicase/tolower.h: New file, automatically generated by
15881         gen-uni-tables.
15882         * lib/unicase/totitle.h: New file, automatically generated by
15883         gen-uni-tables.
15884         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15885         gen-uni-tables.
15886         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15887         gen-uni-tables.
15888         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15889         gen-uni-tables.
15890
15891         New module 'unicase/base'.
15892         * modules/unicase/base: New file.
15893         * lib/unicase.h: New file.
15894
15895 2009-02-08  Bruno Haible  <bruno@clisp.org>
15896
15897         New module 'uniwbrk/ulc-wordbreaks'.
15898         * modules/uniwbrk/ulc-wordbreaks: New file.
15899         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15900
15901         New module 'uniwbrk/u32-wordbreaks'.
15902         * modules/uniwbrk/u32-wordbreaks: New file.
15903         * lib/uniwbrk/u32-wordbreaks.c: New file.
15904
15905         New module 'uniwbrk/u16-wordbreaks'.
15906         * modules/uniwbrk/u16-wordbreaks: New file.
15907         * lib/uniwbrk/u16-wordbreaks.c: New file.
15908
15909         New module 'uniwbrk/u8-wordbreaks'.
15910         * modules/uniwbrk/u8-wordbreaks: New file.
15911         * lib/uniwbrk/u8-wordbreaks.c: New file.
15912         * lib/uniwbrk/u-wordbreaks.h: New file.
15913
15914         New module 'uniwbrk/table'.
15915         * modules/uniwbrk/table: New file.
15916         * lib/uniwbrk/wbrktable.h: New file.
15917         * lib/uniwbrk/wbrktable.c: New file.
15918
15919         New module 'uniwbrk/wordbreak-property'.
15920         * modules/uniwbrk/wordbreak-property: New file.
15921         * lib/uniwbrk/wordbreak-property.c: New file.
15922
15923         * lib/gen-uni-tables.c (WBP_*): New enum items.
15924         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15925         (unicode_org_wbp): New variable.
15926         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15927         New functions.
15928         (wbp_table): New structure.
15929         (output_wbp, output_wbrk_tables): New functions.
15930         (main): Accept additional argument. Invoke fill_org_wbp,
15931         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15932         output_wbrk_tables.
15933         * modules/gen-uni-tables (Description): Update.
15934         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15935         gen-uni-tables.
15936
15937         New module 'uniwbrk/base'.
15938         * modules/uniwbrk/base: New file.
15939         * lib/uniwbrk.h: New file.
15940
15941 2009-02-08  Bruno Haible  <bruno@clisp.org>
15942
15943         Update to Unicode 5.1.0.
15944         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15945         U+2185..U+2188.
15946         (is_property_default_ignorable_code_point): Don't include characters
15947         of category Cc or Cs and not-a-characters.
15948         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15949         U+0D79, U+109E, U+109F, U+A60C.
15950         * lib/unictype/bidi_of.h: Regenerated.
15951         * lib/unictype/blocks.h: Regenerated.
15952         * lib/unictype/categ_C.h: Regenerated.
15953         * lib/unictype/categ_Cf.h: Regenerated.
15954         * lib/unictype/categ_Cn.h: Regenerated.
15955         * lib/unictype/categ_L.h: Regenerated.
15956         * lib/unictype/categ_Ll.h: Regenerated.
15957         * lib/unictype/categ_Lm.h: Regenerated.
15958         * lib/unictype/categ_Lo.h: Regenerated.
15959         * lib/unictype/categ_Lu.h: Regenerated.
15960         * lib/unictype/categ_M.h: Regenerated.
15961         * lib/unictype/categ_Mc.h: Regenerated.
15962         * lib/unictype/categ_Me.h: Regenerated.
15963         * lib/unictype/categ_Mn.h: Regenerated.
15964         * lib/unictype/categ_N.h: Regenerated.
15965         * lib/unictype/categ_Nd.h: Regenerated.
15966         * lib/unictype/categ_Nl.h: Regenerated.
15967         * lib/unictype/categ_No.h: Regenerated.
15968         * lib/unictype/categ_P.h: Regenerated.
15969         * lib/unictype/categ_Pd.h: Regenerated.
15970         * lib/unictype/categ_Pe.h: Regenerated.
15971         * lib/unictype/categ_Pf.h: Regenerated.
15972         * lib/unictype/categ_Pi.h: Regenerated.
15973         * lib/unictype/categ_Po.h: Regenerated.
15974         * lib/unictype/categ_Ps.h: Regenerated.
15975         * lib/unictype/categ_S.h: Regenerated.
15976         * lib/unictype/categ_Sk.h: Regenerated.
15977         * lib/unictype/categ_Sm.h: Regenerated.
15978         * lib/unictype/categ_So.h: Regenerated.
15979         * lib/unictype/categ_of.h: Regenerated.
15980         * lib/unictype/combining.h: Regenerated.
15981         * lib/unictype/ctype_alnum.h: Regenerated.
15982         * lib/unictype/ctype_alpha.h: Regenerated.
15983         * lib/unictype/ctype_graph.h: Regenerated.
15984         * lib/unictype/ctype_lower.h: Regenerated.
15985         * lib/unictype/ctype_print.h: Regenerated.
15986         * lib/unictype/ctype_punct.h: Regenerated.
15987         * lib/unictype/ctype_upper.h: Regenerated.
15988         * lib/unictype/decdigit.h: Regenerated.
15989         * lib/unictype/digit.h: Regenerated.
15990         * lib/unictype/mirror.h: Regenerated.
15991         * lib/unictype/numeric.h: Regenerated.
15992         * lib/unictype/pr_alphabetic.h: Regenerated.
15993         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15994         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15995         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15996         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15997         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15998         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15999         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16000         * lib/unictype/pr_combining.h: Regenerated.
16001         * lib/unictype/pr_dash.h: Regenerated.
16002         * lib/unictype/pr_decimal_digit.h: Regenerated.
16003         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16004         * lib/unictype/pr_deprecated.h: Regenerated.
16005         * lib/unictype/pr_diacritic.h: Regenerated.
16006         * lib/unictype/pr_extender.h: Regenerated.
16007         * lib/unictype/pr_format_control.h: Regenerated.
16008         * lib/unictype/pr_grapheme_base.h: Regenerated.
16009         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16010         * lib/unictype/pr_grapheme_link.h: Regenerated.
16011         * lib/unictype/pr_id_continue.h: Regenerated.
16012         * lib/unictype/pr_id_start.h: Regenerated.
16013         * lib/unictype/pr_ideographic.h: Regenerated.
16014         * lib/unictype/pr_ignorable_control.h: Regenerated.
16015         * lib/unictype/pr_lowercase.h: Regenerated.
16016         * lib/unictype/pr_math.h: Regenerated.
16017         * lib/unictype/pr_numeric.h: Regenerated.
16018         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16019         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16020         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16021         * lib/unictype/pr_other_id_continue.h: Regenerated.
16022         * lib/unictype/pr_other_lowercase.h: Regenerated.
16023         * lib/unictype/pr_other_math.h: Regenerated.
16024         * lib/unictype/pr_punctuation.h: Regenerated.
16025         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16026         * lib/unictype/pr_soft_dotted.h: Regenerated.
16027         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16028         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16029         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16030         * lib/unictype/pr_uppercase.h: Regenerated.
16031         * lib/unictype/pr_xid_continue.h: Regenerated.
16032         * lib/unictype/pr_xid_start.h: Regenerated.
16033         * lib/unictype/pr_zero_width.h: Regenerated.
16034         * lib/unictype/scripts.h: Regenerated.
16035         * lib/unictype/scripts_byname.gperf: Regenerated.
16036         * lib/unictype/sy_java_ident.h: Regenerated.
16037         * lib/unilbrk/lbrkprop1.h: Regenerated.
16038         * lib/unilbrk/lbrkprop2.h: Regenerated.
16039         * tests/unictype/test-categ_C.c: Regenerated.
16040         * tests/unictype/test-categ_Cf.c: Regenerated.
16041         * tests/unictype/test-categ_Cn.c: Regenerated.
16042         * tests/unictype/test-categ_L.c: Regenerated.
16043         * tests/unictype/test-categ_Ll.c: Regenerated.
16044         * tests/unictype/test-categ_Lm.c: Regenerated.
16045         * tests/unictype/test-categ_Lo.c: Regenerated.
16046         * tests/unictype/test-categ_Lu.c: Regenerated.
16047         * tests/unictype/test-categ_M.c: Regenerated.
16048         * tests/unictype/test-categ_Mc.c: Regenerated.
16049         * tests/unictype/test-categ_Me.c: Regenerated.
16050         * tests/unictype/test-categ_Mn.c: Regenerated.
16051         * tests/unictype/test-categ_N.c: Regenerated.
16052         * tests/unictype/test-categ_Nd.c: Regenerated.
16053         * tests/unictype/test-categ_Nl.c: Regenerated.
16054         * tests/unictype/test-categ_No.c: Regenerated.
16055         * tests/unictype/test-categ_P.c: Regenerated.
16056         * tests/unictype/test-categ_Pd.c: Regenerated.
16057         * tests/unictype/test-categ_Pe.c: Regenerated.
16058         * tests/unictype/test-categ_Pf.c: Regenerated.
16059         * tests/unictype/test-categ_Pi.c: Regenerated.
16060         * tests/unictype/test-categ_Po.c: Regenerated.
16061         * tests/unictype/test-categ_Ps.c: Regenerated.
16062         * tests/unictype/test-categ_S.c: Regenerated.
16063         * tests/unictype/test-categ_Sk.c: Regenerated.
16064         * tests/unictype/test-categ_Sm.c: Regenerated.
16065         * tests/unictype/test-categ_So.c: Regenerated.
16066         * tests/unictype/test-ctype_alnum.c: Regenerated.
16067         * tests/unictype/test-ctype_alpha.c: Regenerated.
16068         * tests/unictype/test-ctype_graph.c: Regenerated.
16069         * tests/unictype/test-ctype_lower.c: Regenerated.
16070         * tests/unictype/test-ctype_print.c: Regenerated.
16071         * tests/unictype/test-ctype_punct.c: Regenerated.
16072         * tests/unictype/test-ctype_upper.c: Regenerated.
16073         * tests/unictype/test-decdigit.h: Regenerated.
16074         * tests/unictype/test-digit.h: Regenerated.
16075         * tests/unictype/test-numeric.h: Regenerated.
16076         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16077         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16078         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16079         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16080         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16081         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16082         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16083         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16084         * tests/unictype/test-pr_combining.c: Regenerated.
16085         * tests/unictype/test-pr_dash.c: Regenerated.
16086         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16087         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16088         * tests/unictype/test-pr_deprecated.c: Regenerated.
16089         * tests/unictype/test-pr_diacritic.c: Regenerated.
16090         * tests/unictype/test-pr_extender.c: Regenerated.
16091         * tests/unictype/test-pr_format_control.c: Regenerated.
16092         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16093         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16094         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16095         * tests/unictype/test-pr_id_continue.c: Regenerated.
16096         * tests/unictype/test-pr_id_start.c: Regenerated.
16097         * tests/unictype/test-pr_ideographic.c: Regenerated.
16098         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16099         * tests/unictype/test-pr_lowercase.c: Regenerated.
16100         * tests/unictype/test-pr_math.c: Regenerated.
16101         * tests/unictype/test-pr_numeric.c: Regenerated.
16102         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16103         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16104         Regenerated.
16105         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16106         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16107         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16108         * tests/unictype/test-pr_other_math.c: Regenerated.
16109         * tests/unictype/test-pr_punctuation.c: Regenerated.
16110         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16111         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16112         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16113         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16114         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16115         * tests/unictype/test-pr_uppercase.c: Regenerated.
16116         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16117         * tests/unictype/test-pr_xid_start.c: Regenerated.
16118         * tests/unictype/test-pr_zero_width.c: Regenerated.
16119
16120         Update to Unicode 5.1.0.
16121         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16122         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16123         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16124         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16125         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16126         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16127         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16128         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16129         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16130         (nonspacing_table_ind): Update.
16131         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16132
16133         Update to Unicode 5.1.0.
16134         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16135         code transform.
16136         * lib/uniname/uniname.c (unicode_character_name,
16137         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16138         * lib/uniname/uninames.h: Regenerated.
16139         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16140
16141 2009-02-07  Bruno Haible  <bruno@clisp.org>
16142
16143         Merge gen-ctype and gen-lbrk into a single program.
16144         * lib/gen-uni-tables.c: New file, incorporating
16145         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16146         Add directory prefixes to the names of the generated files.
16147         * lib/unictype/gen-ctype.c: Remove file.
16148         * lib/unilbrk/gen-lbrk.c: Remove file.
16149         * modules/gen-uni-tables: New file.
16150         * modules/unictype/gen-ctype: Remove file.
16151         * modules/unilbrk/gen-lbrk: Remove file.
16152
16153 2009-02-07  Bruno Haible  <bruno@clisp.org>
16154
16155         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16156
16157         New module 'unistr/u32-strcoll'.
16158         * modules/unistr/u32-strcoll: New file.
16159         * lib/unistr/u32-strcoll.c: New file.
16160
16161         New module 'unistr/u16-strcoll'.
16162         * modules/unistr/u16-strcoll: New file.
16163         * lib/unistr/u16-strcoll.c: New file.
16164
16165         New module 'unistr/u8-strcoll'.
16166         * modules/unistr/u8-strcoll: New file.
16167         * lib/unistr/u8-strcoll.c: New file.
16168         * lib/unistr/u-strcoll.h: New file.
16169
16170 2009-02-07  Bruno Haible  <bruno@clisp.org>
16171
16172         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16173         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16174         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16175         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16176         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16177         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16178
16179 2009-02-07  Bruno Haible  <bruno@clisp.org>
16180
16181         Make 64-bit clean.
16182         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16183         output_combclass, output_bidi_category, output_decimal_digit,
16184         output_digit, output_numeric, output_mirror, output_scripts,
16185         output_ident_category): Use proper width specifier in format strings.
16186
16187 2009-02-07  Bruno Haible  <bruno@clisp.org>
16188
16189         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16190         failure behaviour.
16191
16192 2009-02-07  Jim Meyering  <meyering@redhat.com>
16193
16194         regex: avoid compilation failure with upcoming gcc-4.4
16195         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16196         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16197         "... error: integer overflow in preprocessor expression".
16198
16199 2009-02-05  Ben Pfaff  <blp@gnu.org>
16200
16201         Fix link errors on Windows when close module is used.
16202         * modules/close: Add $(LIB_CLOSE) to Link section.
16203         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16204         $(LIB_CLOSE) on Windows.
16205
16206 2009-02-05  Jim Meyering  <meyering@redhat.com>
16207
16208         still avoid unused-parameter warnings, but do it cleanly
16209         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16210         (get_fs_usage): Cast to void instead.
16211         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16212         (dev_from_mount_options, read_file_system_list): Cast to void.
16213         Prompted by Bruno Haible.
16214
16215 2009-02-04  Jim Meyering  <meyering@redhat.com>
16216
16217         fsusage.c: correct copyright year
16218         * lib/fsusage.c: Reflect year in which the change is pushed into
16219
16220         avoid misc. warnings
16221         * lib/fsusage.c (UNUSED_PARAM): Define.
16222         (get_fs_usage): Mark parameter "disk" as unused.
16223         * lib/getugroups.c (getgrent): Use "void" in prototype.
16224         * lib/mountlist.c: Mark unused parameters.
16225         (read_file_system_list): Declare a local with "const".
16226         * lib/nanosleep.c (getnow): Declare static.
16227         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16228
16229         dirfd: set errno upon failure
16230         * lib/dirfd.c: Include <errno.h>.
16231         Set errno to ENOTSUP when returning -1.
16232         * modules/dirfd (Depends-on): Add errno.
16233         Suggested by John Kodis <kodis@comcast.net>.
16234
16235 2009-02-01  Bruno Haible  <bruno@clisp.org>
16236
16237         Don't assume sizeof (long) >= sizeof (void *).
16238         * lib/memcmp.c: Include stdint.h.
16239         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16240         srcp2 to 'const byte *'.
16241         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16242         types to uintptr_t.
16243         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16244         * modules/memcmp (Depends-on): Add stdint.
16245         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16246
16247 2009-01-30  Eric Blake  <ebb9@byu.net>
16248
16249         fix more require-before-expand issues
16250         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16251         expand, AC_PROG_AWK.
16252         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16253
16254 2009-01-28  Eric Blake  <ebb9@byu.net>
16255
16256         version-etc: use consistent URL formatting
16257         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16258         Improve formatting.  Use fputs for string without %.
16259
16260 2009-01-28  Jim Meyering  <meyering@redhat.com>
16261
16262         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16263         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16264         "underquoted definition of NAME" from autoconf-2.59.
16265
16266 2009-01-28  Bruno Haible  <bruno@clisp.org>
16267
16268         * doc/gnulib.texi: Add "Obsolete modules" to index.
16269
16270 2009-01-28  Jim Meyering  <meyering@redhat.com>
16271
16272         useless-if-before-free: recognize more variants
16273         * build-aux/useless-if-before-free: Also recognize e.g.,
16274         if (NULL != p) free (p);
16275
16276 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16277
16278         test-getaddrinfo: skip (don't fail) this test when there's no network
16279         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16280         on the presumption that it means you lack network access.
16281
16282 2009-01-26  Jim Meyering  <meyering@redhat.com>
16283
16284         fflush: avoid warnings on modern systems
16285         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16286         pos and result, into scopes where they're used.
16287
16288 2009-01-26  Eric Blake  <ebb9@byu.net>
16289
16290         Silence warning reintroduced by recent extensions patch.
16291         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16292         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16293         autoconf.
16294
16295         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16296         * m4/00gnulib.m4: New file.
16297         * gnulib-tool (func_get_filelist): Always use it.
16298         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16299         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16300
16301 2009-01-25  Bruno Haible  <bruno@clisp.org>
16302
16303         Make test-quotearg work on MacOS X and AIX.
16304         * tests/test-quotearg.sh: New file.
16305         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16306         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16307         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16308         include <libintl.h>.
16309         (fake_locale): Remove variable.
16310         (gettext, dgettext, dcgettext): Remove functions.
16311         (main): Instead of setting a fake locale, set a real locale. Call
16312         textdomain and bindtextdomain.
16313         * modules/quotearg-tests (Files): Add the new files.
16314         (Depends-on): Add gettext, setenv, unsetenv.
16315         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16316         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16317         Augment TESTS_ENVIRONMENT.
16318
16319 2009-01-25  Bruno Haible  <bruno@clisp.org>
16320
16321         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16322         fr_FR.ISO8859-1 locale on MacOS X.
16323         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16324         ja_JP.eucJP locale on MacOS X.
16325         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16326         zh_CN.GB18030 locale on MacOS X.
16327
16328 2009-01-25  Bruno Haible  <bruno@clisp.org>
16329
16330         Avoid link errors on MacOS X 10.3.
16331         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16332         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16333
16334 2009-01-25  Bruno Haible  <bruno@clisp.org>
16335
16336         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16337         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16338         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16339         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16340         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16341         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16342         posix_spawnattr_init, posix_spawnattr_setsigmask,
16343         posix_spawnattr_setflags, posix_spawnattr_destroy.
16344
16345         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16346         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16347         * modules/execute (Files): Remove m4/posix_spawn.m4.
16348         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16349         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16350         posix_spawnattr_init, posix_spawnattr_setsigmask,
16351         posix_spawnattr_setflags, posix_spawnattr_destroy.
16352
16353 2009-01-25  Bruno Haible  <bruno@clisp.org>
16354
16355         * lib/glthread/threadlib.c: Include <stdlib.h>.
16356
16357 2009-01-25  Bruno Haible  <bruno@clisp.org>
16358
16359         * lib/glthread/threadlib.c (dummy): New declaration.
16360
16361 2009-01-25  Bruno Haible  <bruno@clisp.org>
16362
16363         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16364         multibyte characters also for the GB18030 encoding. Don't crash when
16365         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16366
16367 2009-01-25  Bruno Haible  <bruno@clisp.org>
16368
16369         Avoid redefining 'struct random_data' on OSF/1 5.1.
16370         * lib/stdlib.in.h: Include <random.h> if it exists.
16371         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16372         HAVE_RANDOM_H. Include <random.h> when testing whether
16373         'struct random_data' exists.
16374         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16375
16376 2009-01-25  Bruno Haible  <bruno@clisp.org>
16377
16378         Don't install charset.alias on MacOS X >= 10.3.
16379         * lib/localcharset.c (DARWIN7): New macro.
16380         (get_charset_aliases): Hardcode the result for Darwin7.
16381         * modules/localcharset (install-exec-local): Don't install
16382         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16383
16384 2009-01-25  Bruno Haible  <bruno@clisp.org>
16385
16386         Don't install charset.alias on mingw and Cygwin.
16387         * modules/localcharset (install-exec-local): Don't install
16388         charset.alias on mingw and Cygwin, if the file does not yet exist.
16389         The result for these platforms is hardcoded in localcharset.c.
16390
16391 2009-01-25  Bruno Haible  <bruno@clisp.org>
16392
16393         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16394         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16395         before requiring AC_USE_SYSTEM_EXTENSIONS.
16396
16397 2009-01-25  Jim Meyering  <meyering@redhat.com>
16398
16399         c-strtod: avoid warnings
16400         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16401         "assignment discards qualifiers from pointer target type" warnings.
16402
16403 2009-01-24  Bruno Haible  <bruno@clisp.org>
16404
16405         Add support for non-UTF-8 locales on MacOS X.
16406         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16407         canonical encodings. For Darwin 7 and newer, don't map traditional
16408         encodings to UTF-8.
16409         Reported by Vincent Lefevre <vincent@vinc17.org>
16410         at <http://savannah.gnu.org/bugs/?25235>.
16411
16412 2009-01-24  Bruno Haible  <bruno@clisp.org>
16413
16414         * doc/gnulib.texi (Obsolete modules): New section.
16415         Reported by Mike Frysinger <vapier@gentoo.org>.
16416
16417 2009-01-24  Bruno Haible  <bruno@clisp.org>
16418
16419         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16420         (%.dvi): New rule.
16421
16422 2009-01-24  Bruno Haible  <bruno@clisp.org>
16423
16424         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16425         Reported by Eric Blake.
16426
16427 2009-01-24  Bruno Haible  <bruno@clisp.org>
16428
16429         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16430         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16431         Reported by Gary V. Vaughan <gary@gnu.org>.
16432
16433 2009-01-24  Bruno Haible  <bruno@clisp.org>
16434
16435         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16436
16437 2009-01-23  Bruno Haible  <bruno@clisp.org>
16438
16439         Make c-strtod, c-strtold usable in libraries.
16440         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16441         (C_STRTOD): Call strdup instead of xstrdup.
16442         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16443         * modules/c-strtold (Depends-on): Likewise.
16444         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16445         * NEWS: Mention the change.
16446         Reported by Michael Gold <mgold@ncf.ca>.
16447
16448 2009-01-23  Jim Meyering  <meyering@redhat.com>
16449
16450         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16451         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16452         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16453
16454 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16455
16456         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16457         GNU CoreUtils.
16458         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16459         * modules/version-etc (Description): Update.
16460
16461 2009-01-22  Bruno Haible  <bruno@clisp.org>
16462
16463         Cache the C locale object.
16464         * lib/c-strtod.c (c_locale_cache): New variable.
16465         (c_locale): New function.
16466         (C_STRTOD): Use it, and don't call freelocale.
16467         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16468         Suggested by Paolo Bonzini.
16469
16470 2009-01-21  Bruno Haible  <bruno@clisp.org>
16471
16472         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16473         conditions other than overflow.
16474
16475 2009-01-21  Bruno Haible  <bruno@clisp.org>
16476
16477         * lib/c-strtod.c: Include errno.h.
16478         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16479         value from STRTOD_L and STRTOD.
16480
16481 2009-01-21  Bruno Haible  <bruno@clisp.org>
16482         and Jim Meyering  <meyering@redhat.com>
16483
16484         nanosleep: skip configure test (fail it) for apple universal builds
16485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16486         universal builds, assume that nanosleep does not work.
16487         * modules/nanosleep (Depends-on): Add multiarch.
16488
16489         mktime: skip configure test (fail it) for apple universal builds
16490         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16491         universal builds, assume that mktime does not work.
16492         * modules/mktime (Depends-on): Add multiarch.
16493
16494 2009-01-21  Eric Blake  <ebb9@byu.net>
16495
16496         multiarch: avoid expand-before-require warning
16497         * modules/multiarch (configure.ac): Require, rather than expand,
16498         gl_MULTIARCH.
16499         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16500         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16501         enforce that all clients require it.  Partial reversion of
16502         2008-12-29 patch.
16503
16504         error: avoid expand-before-require warning
16505         * modules/errno (configure.ac): Require, rather than expand,
16506         gl_HEADER_ERRNO_H.
16507         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16508         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16509         enforce that all clients require it.
16510
16511         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16512         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16513         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16514         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16515
16516 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16517
16518         Revert:
16519         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16520
16521         regex: do not depend on obsolete modules.
16522         * modules/regex: Remove memcmp and memmove.
16523
16524 2009-01-20  Bruno Haible  <bruno@clisp.org>
16525
16526         Make the 'link' module link on Windows NT 4.
16527         * lib/link.c (_WIN32_WINNT): Don't define.
16528         (CreateHardLinkFuncType): New type.
16529         (CreateHardLinkFunc, initialized): New variables.
16530         (initialize): New function.
16531         (link): Invoke CreateHardLink indirectly through the function pointer.
16532
16533 2009-01-20  Bruno Haible  <bruno@clisp.org>
16534
16535         Fix compilation failure on mingw.
16536         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16537
16538 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16539
16540         * doc/c-strtod.texi: Mention a couple of restrictions.
16541
16542 2009-01-20  Jim Meyering  <meyering@redhat.com>
16543
16544         gettimeofday: move more declarations out of functions
16545         * lib/gettimeofday.c: Move extern declarations of tzset and
16546         gmtime out of containing functions.  Prompted by Bruno Haible.
16547
16548 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16549
16550         regex: do not depend on obsolete modules.
16551         * modules/regex: Remove memcmp and memmove.
16552
16553 2009-01-19  Bruno Haible  <bruno@clisp.org>
16554
16555         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16556         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16557         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16558         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16559         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16560
16561 2009-01-19  Bruno Haible  <bruno@clisp.org>
16562
16563         * tests/test-link.c: Include <errno.h>.
16564         (main): Exit with code 77 when a hard link cannot be created due to
16565         the file system.
16566         * tests/test-link.sh: Skip test when a hard link cannot be created due
16567         to the file system.
16568         Suggested by Eric Blake.
16569
16570 2009-01-19  Martin Lambers  <marlam@marlam.de>
16571
16572         * modules/link-tests: New file.
16573         * tests/test-link.sh: New file.
16574         * tests/test-link.c: New file.
16575
16576 2009-01-19  Eric Blake  <ebb9@byu.net>
16577
16578         doc: mention another function added in cygwin 1.7.0
16579         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16580         Another new function in cygwin 1.7.
16581
16582 2009-01-19  Bruno Haible  <bruno@clisp.org>
16583
16584         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16585         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16586         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16587         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16588         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16589         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16590         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16591         * m4/md4.m4 (gl_MD4): Likewise.
16592         * m4/md5.m4 (gl_MD5): Likewise.
16593         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16594         * m4/sha1.m4 (gl_SHA1): Likewise.
16595         * m4/sha256.m4 (gl_SHA256): Likewise.
16596         * m4/sha512.m4 (gl_SHA512): Likewise.
16597
16598 2009-01-19  Bruno Haible  <bruno@clisp.org>
16599
16600         * modules/uniname/uniname-tests (Depends-on): Add progname.
16601         * tests/uniname/test-uninames.c: Include progname.h.
16602         (main): Call set_program_name.
16603
16604         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16605         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16606         (main): Call set_program_name.
16607
16608         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16609         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16610         (main): Call set_program_name.
16611
16612         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16613         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16614         (main): Call set_program_name.
16615
16616         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16617         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16618         (main): Call set_program_name.
16619
16620         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16621         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16622         (main): Call set_program_name.
16623
16624         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16625         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16626         (main): Call set_program_name.
16627
16628         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16629         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16630         (main): Call set_program_name.
16631
16632         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16633         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16634         (main): Call set_program_name.
16635
16636 2009-01-19  Eric Blake  <ebb9@byu.net>
16637
16638         test-unistd: test previous patch
16639         * tests/test-unistd.c: Test *_FILENO macros.
16640
16641         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16642         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16643         Guarantee a definition.
16644         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16645         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16646         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16647         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16648         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16649         Likewise.
16650         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16651         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16652         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16653         Likewise.
16654         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16655         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16656         (STDERR_FILENO): Likewise.
16657         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16658         (STDERR_FILENO): Likewise.
16659         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16660         (STDERR_FILENO): Likewise.
16661         Reported by Elbert Pol.
16662
16663 2009-01-19  Eric Blake  <ebb9@byu.net>
16664
16665         doc: mention more functions added in cygwin 1.7.0
16666         * doc/posix-functions/abort.texi (abort): Update wording related
16667         to cygwin.
16668         * doc/posix-functions/daylight.texi (daylight): Likewise.
16669         * doc/posix-functions/optarg.texi (optarg): Likewise.
16670         * doc/posix-functions/optarg.texi (opterr): Likewise.
16671         * doc/posix-functions/optarg.texi (optind): Likewise.
16672         * doc/posix-functions/optarg.texi (optopt): Likewise.
16673         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16674         worked in 1.5.x, and was withdrawn in 1.7.
16675         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16676         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16677         cygwin versions.
16678         * doc/posix-functions/perror.texi (perror): Likewise.
16679         * doc/posix-functions/printf.texi (printf): Likewise.
16680         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16681         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16682         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16683         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16684         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16685         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16686         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16687         Likewise.
16688         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16689         Likewise.
16690         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16691         this function.
16692         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16693         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16694         Likewise.
16695         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16696         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16697         * doc/posix-functions/confstr.texi (confstr): Likewise.
16698         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16699         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16700         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16701         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16702         * doc/posix-functions/fputws.texi (fputws): Likewise.
16703         * doc/posix-functions/fwide.texi (fwide): Likewise.
16704         * doc/posix-functions/getwc.texi (getwc): Likewise.
16705         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16706         * doc/posix-functions/putwc.texi (putwc): Likewise.
16707         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16708         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16709         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16710         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16711         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16712         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16713         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16714         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16715         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16716         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16717         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16718
16719 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16720
16721         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16722         * lib/ioctl.c: Include <sys/ioctl.h>.
16723
16724 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16725
16726         * modules/getdate-tests (Depends-on): Add progname.
16727         * tests/test-getdate.c: Use progname module, to avoid link errors
16728         on non-glibc systems.
16729
16730 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16731
16732         * modules/filenamecat-tests (Depends-on): Add progname.
16733         * modules/fstrcmp-tests (Depends-on): Likewise.
16734
16735         * tests/test-filenamecat.c: Use progname module, to avoid link
16736         errors on non-glibc systems.
16737         * tests/test-fstrcmp.c: Likewise.
16738
16739 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16740
16741         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16742         * lib/gettimeofday.c: Move extern declaration out of function.
16743
16744 2009-01-18  Bruno Haible  <bruno@clisp.org>
16745
16746         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16747         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16748         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16749
16750 2009-01-18  Bruno Haible  <bruno@clisp.org>
16751
16752         * lib/strftime.c (MEMPCPY): Remove unused macro.
16753         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16754
16755 2009-01-18  Martin Lambers  <marlam@marlam.de>
16756
16757         New module 'link'.
16758         * lib/unistd.in.h (link): New declaration.
16759         * lib/link.c: New file.
16760         * m4/link.m4: New file.
16761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16762         HAVE_LINK.
16763         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16764         * modules/link: New file.
16765         * doc/posix-functions/link.texi: Mention the new module.
16766
16767 2009-01-18  Bruno Haible  <bruno@clisp.org>
16768
16769         * tests/test-avltree_list.c (main): Call set_program_name.
16770         * tests/test-avltree_oset.c (main): Likewise.
16771         * tests/test-obstack-printf.c: Include progname.h.
16772         (main): Call set_program_name.
16773         * tests/test-quotearg.c: Include progname.h.
16774         (main): Call set_program_name.
16775         * tests/test-xmemdup0.c: Include progname.h.
16776         (main): Call set_program_name.
16777
16778 2009-01-18  Bruno Haible  <bruno@clisp.org>
16779
16780         New module 'alphasort'.
16781         * lib/dirent.in.h (alphasort): New declaration.
16782         * lib/alphasort.c: New file, from glibc with modifications.
16783         * m4/alphasort.m4: New file.
16784         * modules/alphasort: New file.
16785         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16786         HAVE_ALPHASORT.
16787         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16788         HAVE_ALPHASORT.
16789         * doc/posix-functions/alphasort.texi: Mention the new module and the
16790         portability problems.
16791
16792 2009-01-18  Bruno Haible  <bruno@clisp.org>
16793
16794         New module 'scandir'.
16795         * lib/dirent.in.h (scandir): New declaration.
16796         * lib/scandir.c: New file, from glibc with modifications.
16797         * m4/scandir.m4: New file.
16798         * modules/scandir: New file.
16799         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16800         HAVE_SCANDIR.
16801         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16802         HAVE_SCANDIR.
16803         * doc/posix-functions/scandir.texi: Mention the new module and the
16804         portability problems.
16805
16806 2009-01-17  Bruno Haible  <bruno@clisp.org>
16807
16808         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16809         Update documentation.
16810         (func_remove_suffix): Escape all dots in the suffix. Update
16811         documentation.
16812         (func_filter_filelist): Update documentation.
16813         Reported by Ralf Wildenhues.
16814
16815 2009-01-17  Bruno Haible  <bruno@clisp.org>
16816
16817         * modules/dprintf-posix-tests: New file.
16818         * tests/test-dprintf-posix.sh: New file.
16819         * tests/test-dprintf-posix.c: New file.
16820
16821         New modules 'dprintf', 'dprintf-posix'.
16822         * lib/stdio.in.h (dprintf): New declaration.
16823         * lib/dprintf.c: New file.
16824         * m4/dprintf.m4: New file.
16825         * m4/dprintf-posix.m4: New file.
16826         * modules/dprintf: New file.
16827         * modules/dprintf-posix: New file.
16828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16829         HAVE_DPRINTF, REPLACE_DPRINTF.
16830         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16831         HAVE_DPRINTF, REPLACE_DPRINTF.
16832         * doc/posix-functions/dprintf.texi: Mention the new modules.
16833
16834 2009-01-17  Bruno Haible  <bruno@clisp.org>
16835
16836         * modules/vdprintf-posix-tests: New file.
16837         * tests/test-vdprintf-posix.sh: New file.
16838         * tests/test-vdprintf-posix.c: New file.
16839
16840         New modules 'vdprintf', 'vdprintf-posix'.
16841         * lib/stdio.in.h (vdprintf): New declaration.
16842         * lib/vdprintf.c: New file.
16843         * m4/vdprintf.m4: New file.
16844         * m4/vdprintf-posix.m4: New file.
16845         * modules/vdprintf: New file.
16846         * modules/vdprintf-posix: New file.
16847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16848         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16849         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16850         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16851         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16852
16853 2009-01-17  Bruno Haible  <bruno@clisp.org>
16854
16855         Fix replacement of fopen on mingw.
16856         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16857         mingw.
16858
16859 2009-01-17  Bruno Haible  <bruno@clisp.org>
16860
16861         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16862         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16863
16864 2009-01-17  Bruno Haible  <bruno@clisp.org>
16865
16866         Avoid test-fflush2.sh failure on mingw.
16867         * tests/test-fflush2.c: Include binary-io.h.
16868         (main): Put standard input into binary mode.
16869         * modules/fflush-tests (Depends-on): Add binary-io.
16870
16871 2009-01-17  Bruno Haible  <bruno@clisp.org>
16872
16873         * lib/wchar.in.h: In another particular situation, include only the
16874         system's <wchar.h> file.
16875         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16876         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16877         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16878
16879 2009-01-17  Bruno Haible  <bruno@clisp.org>
16880
16881         Support for stripping executables in --enable-relocatable.
16882         * build-aux/install-reloc: Expect one more argument, or an environment
16883         variable RELOC_STRIP_PROG. If set, strip the destination program and
16884         its wrapper.
16885         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16886         RELOC_STRIP_PROG.
16887         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16888         to set RELOCATABLE_STRIP.
16889         * NEWS: Mention the new Makefile requirement.
16890
16891 2009-01-17  Bruno Haible  <bruno@clisp.org>
16892
16893         * build-aux/install-reloc: Remove debugging information left over by
16894         C compiler on MacOS X.
16895
16896 2009-01-17  Bruno Haible  <bruno@clisp.org>
16897
16898         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16899         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16900         _NSGetExecutablePath.
16901
16902 2009-01-16  Jim Meyering  <meyering@redhat.com>
16903
16904         strerror: avoid warnings about discarding "const"
16905         * lib/strerror.c (rpl_strerror): Instead of returning a const
16906         string from each and every "case", use a variable, and add a single
16907         cast after the switch.
16908
16909 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16910
16911         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16912
16913 2009-01-16  Bruno Haible  <bruno@clisp.org>
16914
16915         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16916         array initializer syntax that also works in C++ mode.
16917         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16918
16919 2009-01-16  Jim Meyering  <meyering@redhat.com>
16920
16921         poll: suppress a warning
16922         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16923         to ignore "...unsigned expression < 0 is always false" warnings.
16924
16925 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16926
16927         poll: remove declarations of unused variables
16928         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16929         sockbuf and optlen.
16930
16931 2009-01-15  Bruno Haible  <bruno@clisp.org>
16932
16933         Make fflush-after-ungetc POSIX compliant on BSD systems.
16934         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16935         (clear_ungetc_buffer): Implement also for other systems.
16936         (rpl_fflush): On glibc systems, invoke
16937         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16938         clear_ungetc_buffer after fetching the stream's position, not before.
16939
16940 2009-01-15  Bruno Haible  <bruno@clisp.org>
16941
16942         Make fflush-after-ungetc POSIX compliant on glibc systems.
16943         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16944         after ungetc.
16945         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16946         (rpl_fflush): On glibc systems, simply call the system's fflush
16947         function after clearing the ungetc buffer.
16948         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16949         Instead, lseek only to the end of file, then use the system's fseeko
16950         for the rest. On glibc systems, reset the EOF indicator bit.
16951
16952 2009-01-15  Jim Meyering  <meyering@redhat.com>
16953
16954         openmp.m4: revert quote-adding change, for portability to older autoconf
16955         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16956         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16957         Simon Josefsson noticed the problem when using autoconf-2.61.
16958
16959 2009-01-15  Bruno Haible  <bruno@clisp.org>
16960
16961         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16962         * tests/test-fflush2.c (ASSERT): Always fail.
16963         (main): Add two tests for fflush() after ungetc(), taking into account
16964         the Austin Group's clarification.
16965         Suggested by Eric Blake.
16966
16967 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16968
16969         mktime.m4: remove K&R-style function prototypes
16970         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16971         for the Sun C++ compiler.
16972
16973 2009-01-14  Bruno Haible  <bruno@clisp.org>
16974
16975         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16976         while including <wchar.h>.
16977         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16978         the system's <wchar.h> file.
16979         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16980
16981 2009-01-14  Bruno Haible  <bruno@clisp.org>
16982
16983         * m4/csharp.m4: Don't mention gettext on the serial number line.
16984         * m4/csharpexec.m4: Likewise.
16985         * m4/eaccess.m4: Likewise.
16986         * m4/javaexec.m4: Likewise.
16987         * m4/sig_atomic_t.m4: Likewise.
16988         * m4/tmpdir.m4: Likewise.
16989         * m4/intldir.m4: Bump gettext version.
16990         * m4/lib-ld.m4: Likewise.
16991
16992 2009-01-14  Bruno Haible  <bruno@clisp.org>
16993
16994         * lib/progname.c (set_program_name): Add more comments.
16995         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16996
16997 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16998
16999         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17000         were sys/stat.h does not define it.
17001
17002 2009-01-14  Jim Meyering  <meyering@redhat.com>
17003
17004         many *.m4 files: improve m4 quoting
17005         99% of this change was performed by running the following commands:
17006         git ls-files | grep '\.m4$' | xargs perl -pi \
17007           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17008           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17009           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17010           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17011         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17012         The remainder were to add Copyright dates, increment serial numbers,
17013         undo some changes in comments, exclude m4/intl.m4, and add quotes
17014         around the "1" in ",1" where the unusual spacing prohibited the
17015         above regexps from doing the job.  For more details, see
17016         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17017         * m4/acl.m4: Modified.
17018         * m4/afs.m4: Likewise.
17019         * m4/alloca.m4: Likewise.
17020         * m4/argp.m4: Likewise.
17021         * m4/argz.m4: Likewise.
17022         * m4/atexit.m4: Likewise.
17023         * m4/bison-i18n.m4: Likewise.
17024         * m4/bison.m4: Likewise.
17025         * m4/byteswap.m4: Likewise.
17026         * m4/c-stack.m4: Likewise.
17027         * m4/c-strtod.m4: Likewise.
17028         * m4/calloc.m4: Likewise.
17029         * m4/canonicalize-lgpl.m4: Likewise.
17030         * m4/chown.m4: Likewise.
17031         * m4/clock_time.m4: Likewise.
17032         * m4/codeset.m4: Likewise.
17033         * m4/copy-file.m4: Likewise.
17034         * m4/csharp.m4: Likewise.
17035         * m4/csharpcomp.m4: Likewise.
17036         * m4/csharpexec.m4: Likewise.
17037         * m4/d-ino.m4: Likewise.
17038         * m4/d-type.m4: Likewise.
17039         * m4/dirfd.m4: Likewise.
17040         * m4/double-slash-root.m4: Likewise.
17041         * m4/eaccess.m4: Likewise.
17042         * m4/eealloc.m4: Likewise.
17043         * m4/environ.m4: Likewise.
17044         * m4/errno_h.m4: Likewise.
17045         * m4/euidaccess.m4: Likewise.
17046         * m4/execute.m4: Likewise.
17047         * m4/fatal-signal.m4: Likewise.
17048         * m4/fchdir.m4: Likewise.
17049         * m4/fcntl_h.m4: Likewise.
17050         * m4/fileblocks.m4: Likewise.
17051         * m4/filenamecat.m4: Likewise.
17052         * m4/findprog.m4: Likewise.
17053         * m4/flexmember.m4: Likewise.
17054         * m4/fnmatch.m4: Likewise.
17055         * m4/fopen.m4: Likewise.
17056         * m4/fpending.m4: Likewise.
17057         * m4/fprintf-posix.m4: Likewise.
17058         * m4/free.m4: Likewise.
17059         * m4/frexp.m4: Likewise.
17060         * m4/frexpl.m4: Likewise.
17061         * m4/fsusage.m4: Likewise.
17062         * m4/ftruncate.m4: Likewise.
17063         * m4/gc-camellia.m4: Likewise.
17064         * m4/gc-random.m4: Likewise.
17065         * m4/gc.m4: Likewise.
17066         * m4/getaddrinfo.m4: Likewise.
17067         * m4/getcwd-abort-bug.m4: Likewise.
17068         * m4/getcwd-path-max.m4: Likewise.
17069         * m4/getdate.m4: Likewise.
17070         * m4/getdomainname.m4: Likewise.
17071         * m4/getgroups.m4: Likewise.
17072         * m4/gethostname.m4: Likewise.
17073         * m4/gethrxtime.m4: Likewise.
17074         * m4/getline.m4: Likewise.
17075         * m4/getloadavg.m4: Likewise.
17076         * m4/getndelim2.m4: Likewise.
17077         * m4/getpass.m4: Likewise.
17078         * m4/gettext.m4: Likewise.
17079         * m4/gettime.m4: Likewise.
17080         * m4/gettimeofday.m4: Likewise.
17081         * m4/gnulib-common.m4: Likewise.
17082         * m4/group-member.m4: Likewise.
17083         * m4/host-os.m4: Likewise.
17084         * m4/iconv.m4: Likewise.
17085         * m4/iconv_open.m4: Likewise.
17086         * m4/inet_ntop.m4: Likewise.
17087         * m4/inet_pton.m4: Likewise.
17088         * m4/inline.m4: Likewise.
17089         * m4/intldir.m4: Likewise.
17090         * m4/intlmacosx.m4: Likewise.
17091         * m4/intmax.m4: Likewise.
17092         * m4/intmax_t.m4: Likewise.
17093         * m4/inttypes.m4: Likewise.
17094         * m4/inttypes_h.m4: Likewise.
17095         * m4/inttypes-pri.m4: Likewise.
17096         * m4/isapipe.m4: Likewise.
17097         * m4/isnand.m4: Likewise.
17098         * m4/isnanf.m4: Likewise.
17099         * m4/isnanl.m4: Likewise.
17100         * m4/javacomp.m4: Likewise.
17101         * m4/javaexec.m4: Likewise.
17102         * m4/jm-winsz1.m4: Likewise.
17103         * m4/jm-winsz2.m4: Likewise.
17104         * m4/lchown.m4: Likewise.
17105         * m4/lcmessage.m4: Likewise.
17106         * m4/ldexpl.m4: Likewise.
17107         * m4/lib-ld.m4: Likewise.
17108         * m4/lib-link.m4: Likewise.
17109         * m4/libsigsegv.m4: Likewise.
17110         * m4/link-follow.m4: Likewise.
17111         * m4/localcharset.m4: Likewise.
17112         * m4/locale-fr.m4: Likewise.
17113         * m4/locale-ja.m4: Likewise.
17114         * m4/locale-tr.m4: Likewise.
17115         * m4/locale-zh.m4: Likewise.
17116         * m4/lock.m4: Likewise.
17117         * m4/longlong.m4: Likewise.
17118         * m4/ls-mntd-fs.m4: Likewise.
17119         * m4/lstat.m4: Likewise.
17120         * m4/malloc.m4: Likewise.
17121         * m4/mathl.m4: Likewise.
17122         * m4/mbrtowc.m4: Likewise.
17123         * m4/mbstate_t.m4: Likewise.
17124         * m4/mbswidth.m4: Likewise.
17125         * m4/memchr.m4: Likewise.
17126         * m4/memcmp.m4: Likewise.
17127         * m4/memcpy.m4: Likewise.
17128         * m4/memmem.m4: Likewise.
17129         * m4/memmove.m4: Likewise.
17130         * m4/mempcpy.m4: Likewise.
17131         * m4/memrchr.m4: Likewise.
17132         * m4/memset.m4: Likewise.
17133         * m4/minmax.m4: Likewise.
17134         * m4/mkdir-slash.m4: Likewise.
17135         * m4/mkdtemp.m4: Likewise.
17136         * m4/mktime.m4: Likewise.
17137         * m4/mmap-anon.m4: Likewise.
17138         * m4/mountlist.m4: Likewise.
17139         * m4/nanosleep.m4: Likewise.
17140         * m4/nls.m4: Likewise.
17141         * m4/nocrash.m4: Likewise.
17142         * m4/open.m4: Likewise.
17143         * m4/openat.m4: Likewise.
17144         * m4/openmp.m4: Likewise.
17145         * m4/pathmax.m4: Likewise.
17146         * m4/perl.m4: Likewise.
17147         * m4/physmem.m4: Likewise.
17148         * m4/pipe.m4: Likewise.
17149         * m4/po.m4: Likewise.
17150         * m4/poll.m4: Likewise.
17151         * m4/posixtm.m4: Likewise.
17152         * m4/posixver.m4: Likewise.
17153         * m4/printf-frexp.m4: Likewise.
17154         * m4/printf-frexpl.m4: Likewise.
17155         * m4/printf-posix.m4: Likewise.
17156         * m4/printf-posix-rpl.m4: Likewise.
17157         * m4/printf.m4: Likewise.
17158         * m4/progtest.m4: Likewise.
17159         * m4/putenv.m4: Likewise.
17160         * m4/readline.m4: Likewise.
17161         * m4/readlink.m4: Likewise.
17162         * m4/readutmp.m4: Likewise.
17163         * m4/realloc.m4: Likewise.
17164         * m4/regex.m4: Likewise.
17165         * m4/relocatable.m4: Likewise.
17166         * m4/relocatable-lib.m4: Likewise.
17167         * m4/rename-dest-slash.m4: Likewise.
17168         * m4/rename.m4: Likewise.
17169         * m4/rmdir-errno.m4: Likewise.
17170         * m4/rmdir.m4: Likewise.
17171         * m4/roundf.m4: Likewise.
17172         * m4/roundl.m4: Likewise.
17173         * m4/rpmatch.m4: Likewise.
17174         * m4/save-cwd.m4: Likewise.
17175         * m4/selinux-selinux-h.m4: Likewise.
17176         * m4/setenv.m4: Likewise.
17177         * m4/settime.m4: Likewise.
17178         * m4/sig2str.m4: Likewise.
17179         * m4/sig_atomic_t.m4: Likewise.
17180         * m4/signalblocking.m4: Likewise.
17181         * m4/signbit.m4: Likewise.
17182         * m4/sigpipe.m4: Likewise.
17183         * m4/sockets.m4: Likewise.
17184         * m4/sockpfaf.m4: Likewise.
17185         * m4/st_dm_mode.m4: Likewise.
17186         * m4/stat-time.m4: Likewise.
17187         * m4/stdbool.m4: Likewise.
17188         * m4/stdint.m4: Likewise.
17189         * m4/stdint_h.m4: Likewise.
17190         * m4/stpcpy.m4: Likewise.
17191         * m4/stpncpy.m4: Likewise.
17192         * m4/strcase.m4: Likewise.
17193         * m4/strchrnul.m4: Likewise.
17194         * m4/strcspn.m4: Likewise.
17195         * m4/strdup.m4: Likewise.
17196         * m4/strftime.m4: Likewise.
17197         * m4/strndup.m4: Likewise.
17198         * m4/strnlen.m4: Likewise.
17199         * m4/strpbrk.m4: Likewise.
17200         * m4/strptime.m4: Likewise.
17201         * m4/strsep.m4: Likewise.
17202         * m4/strtod.m4: Likewise.
17203         * m4/strtoimax.m4: Likewise.
17204         * m4/strtok_r.m4: Likewise.
17205         * m4/strtol.m4: Likewise.
17206         * m4/strtoll.m4: Likewise.
17207         * m4/strtoul.m4: Likewise.
17208         * m4/strtoull.m4: Likewise.
17209         * m4/strtoumax.m4: Likewise.
17210         * m4/strverscmp.m4: Likewise.
17211         * m4/threadlib.m4: Likewise.
17212         * m4/timegm.m4: Likewise.
17213         * m4/tm_gmtoff.m4: Likewise.
17214         * m4/tmpdir.m4: Likewise.
17215         * m4/tmpfile.m4: Likewise.
17216         * m4/tzset.m4: Likewise.
17217         * m4/uintmax_t.m4: Likewise.
17218         * m4/unlinkdir.m4: Likewise.
17219         * m4/unlocked-io.m4: Likewise.
17220         * m4/uptime.m4: Likewise.
17221         * m4/userspec.m4: Likewise.
17222         * m4/utimbuf.m4: Likewise.
17223         * m4/utime.m4: Likewise.
17224         * m4/utimes-null.m4: Likewise.
17225         * m4/utimes.m4: Likewise.
17226         * m4/vararrays.m4: Likewise.
17227         * m4/vasnprintf.m4: Likewise.
17228         * m4/vfprintf-posix.m4: Likewise.
17229         * m4/vprintf-posix.m4: Likewise.
17230         * m4/wait-process.m4: Likewise.
17231         * m4/wchar_t.m4: Likewise.
17232         * m4/wint_t.m4: Likewise.
17233         * m4/write-any-file.m4: Likewise.
17234         * m4/yield.m4: Likewise.
17235
17236 2009-01-13  Bruno Haible  <bruno@clisp.org>
17237
17238         Avoid test-copy-file.sh failures when ACL support insufficient.
17239         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17240         TESTS_ENVIRONMENT.
17241         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17242         Reported by Jim Meyering.
17243
17244 2009-01-13  Bruno Haible  <bruno@clisp.org>
17245
17246         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17247         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17248         * modules/unistdio/u8-printf-parse (Files): Likewise.
17249         * modules/unistdio/u32-printf-parse (Files): Likewise.
17250         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17251
17252 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17253
17254         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17255         and m4/inttypes_h.m4 too.
17256
17257 2009-01-12  Eric Blake  <ebb9@byu.net>
17258
17259         tests: IRIX 6.2 cc can't compile -0.0 into .data
17260         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17261         rather than at compile-time.
17262         * tests/test-floorl.c (minus_zero): Likewise.
17263         * tests/test-frexpl.c (minus_zero): Likewise.
17264         * tests/test-isnan.c (minus_zerol): Likewise.
17265         * tests/test-isnanl.h (minus_zero): Likewise.
17266         * tests/test-ldexpl.c (minus_zero): Likewise.
17267         * tests/test-roundl.c (minus_zero): Likewise.
17268         * tests/test-signbit.c (minus_zerol): Likewise.
17269         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17270         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17271         * tests/test-truncl.c (minus_zero): Likewise.
17272         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17273         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17274         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17275
17276 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17277
17278         regex: fix glibc bug 9697
17279         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17280         handling.
17281
17282 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17283
17284         regex: fix glibc bug 697
17285         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17286         being NULL also if there are no backreferences.
17287
17288 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17289
17290         regex: merge glibc changes
17291         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17292         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17293         re_string_skip_chars, re_string_reconstruct): Likewise.
17294         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17295
17296 2009-01-07  Jim Meyering  <meyering@redhat.com>
17297
17298         poll: filter through cppi
17299         * lib/poll.c: Indent cpp directives to reflect nesting.
17300
17301 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17302
17303         poll: don't return uninitialized
17304         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17305
17306 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17307
17308         avoid compile failure on AIX 6.1
17309         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17310         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17311
17312 2009-01-04  Jim Meyering  <meyering@redhat.com>
17313
17314         remove duplicate inclusion of <stdio.h>
17315         * tests/test-fprintf-posix.c: Likewise.
17316         * tests/test-printf-posix.c: Likewise.
17317         * tests/test-snprintf-posix.c: Likewise.
17318         * tests/test-sprintf-posix.c: Likewise.
17319         * tests/test-vasprintf-posix.c: Likewise.
17320         * tests/test-vfprintf-posix.c: Likewise.
17321         * tests/test-vprintf-posix.c: Likewise.
17322         * tests/test-vsnprintf-posix.c: Likewise.
17323         * tests/test-vsprintf-posix.c: Likewise.
17324
17325 2009-01-03  Jim Meyering  <meyering@redhat.com>
17326
17327         gnulib-tool: fix sed-based filtering
17328         * gnulib-tool (func_filter_filelist): Remove extra backslash
17329         in sed_fff_filter definition.
17330
17331 2009-01-02  Jim Meyering  <meyering@redhat.com>
17332
17333         strftime: avoid compilation failure on Solaris 2.6
17334         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17335         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17336         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17337         be available.  Reported by Tom G. Christensen.  Details in
17338         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17339
17340 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17341             Bruno Haible  <bruno@clisp.org>
17342
17343         Speed up gnulib-tool by doing more string processing through shell
17344         built-ins.
17345         * gnulib-tool (fast_func_append): New variable.
17346         (func_remove_prefix, func_remove_suffix): New functions.
17347         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17348         (func_filter_filelist): New function.
17349         (func_get_dependencies): Use func_remove_suffix instead of sed.
17350         (func_get_automake_snippet): Use func_filter_filelist instead of a
17351         subshell and sed invocation.
17352
17353 2009-01-01  Bruno Haible  <bruno@clisp.org>
17354
17355         Fix a security bug.
17356         * gnulib-tool (func_import, import, update): Don't allow the characters
17357         '"', '$', '`', '\' in macro arguments that become part of commands that
17358         are evaluated.
17359
17360 2009-01-01  Bruno Haible  <bruno@clisp.org>
17361
17362         * gnulib-tool (func_reset_sigpipe): Add more comments.
17363
17364 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17365
17366         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17367         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17368         already know the answer.
17369
17370 2009-01-01  Jim Meyering  <meyering@redhat.com>
17371
17372         * lib/version-etc.c (version_etc_va): Update copyright year.
17373
17374 2008-12-30  Bruno Haible  <bruno@clisp.org>
17375
17376         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17377         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17378         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17379
17380 2008-12-29  Eric Blake  <ebb9@byu.net>
17381
17382         multiarch: avoid autoconf AC_REQUIRE bug
17383         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17384         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17385         2.63 and older.
17386         Reported by Bruno Haible, and analyzed in
17387         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17388
17389 2008-12-29  Bruno Haible  <bruno@clisp.org>
17390
17391         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17392         files in subdirectories correctly.
17393         Reported by Ralf Wildenhues.
17394
17395 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17396
17397         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17398         rather than 'join FILE -', for Solaris join.
17399
17400 2008-12-29  Bruno Haible  <bruno@clisp.org>
17401
17402         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17403         quoting.
17404         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17405         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17406         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17407         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17408         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17409         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17410         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17411         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17412         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17413         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17414         * m4/nls.m4 (AM_NLS): Likewise.
17415         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17416         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17417         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17418         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17419         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17420         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17421         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17422         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17423         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17424         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17425         * m4/xsize.m4 (gl_XSIZE): Likewise.
17426         Suggested by Jim Meyering.
17427
17428 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17429
17430         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17431         * lib/parse-duration.c: use a switch instead of cascading if's.
17432
17433 2008-12-29  Eric Blake  <ebb9@byu.net>
17434
17435         wchar.h: supply WEOF on Irix 5.3
17436         * lib/wchar.in.h (wint_t): Also supply WEOF.
17437         * lib/wctype.in.h (wint_t): Likewise.
17438         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17439         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17440         Reported by Tom G. Christensen.
17441
17442 2008-12-26  Bruno Haible  <bruno@clisp.org>
17443
17444         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17445         i486, i586, i686.
17446
17447 2008-12-26  Bruno Haible  <bruno@clisp.org>
17448
17449         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17450
17451 2008-12-26  Bruno Haible  <bruno@clisp.org>
17452
17453         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17454         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17455         not __STDC_CONSTANT_MACROS.
17456         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17457
17458 2008-12-25  Bruno Haible  <bruno@clisp.org>
17459
17460         Add support for universal builds to vasnprintf.
17461         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17462         universal builds, guess no.
17463         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17464         * modules/vasprintf-posix (Depends-on): Likewise.
17465         * modules/fprintf-posix (Depends-on): Likewise.
17466         * modules/vfprintf-posix (Depends-on): Likewise.
17467         * modules/snprintf-posix (Depends-on): Likewise.
17468         * modules/vsnprintf-posix (Depends-on): Likewise.
17469         * modules/sprintf-posix (Depends-on): Likewise.
17470         * modules/vsprintf-posix (Depends-on): Likewise.
17471         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17472         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17473         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17474         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17475         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17476         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17477         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17478
17479         Add support for universal builds to <inttypes.h>.
17480         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17481         _SCNu64_PREFIX): In Apple
17482         universal builds, define directly, using _LP64.
17483         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17484         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17485         * modules/inttypes (Depends-on): Add multiarch.
17486         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17487
17488         Add support for universal builds to <stdint.h>.
17489         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17490         universal builds, define directly, using _LP64.
17491         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17492         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17493         and size_t.
17494         * modules/stdint (Depends-on): Add multiarch.
17495         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17496
17497         New module 'multiarch'.
17498         * modules/multiarch: New file.
17499         * m4/multiarch.m4: New file.
17500
17501 2008-12-25  Bruno Haible  <bruno@clisp.org>
17502
17503         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17504
17505 2008-12-25  Bruno Haible  <bruno@clisp.org>
17506
17507         * modules/btowc (License): Relicense under LGPLv2+.
17508         * modules/mbsinit (License): Likewise.
17509         * modules/mbrtowc (License): Likewise.
17510         * modules/wcrtomb (License): Likewise.
17511         * modules/streq (License): Likewise.
17512         Reported by David Lutterkort <lutter@redhat.com>.
17513
17514 2008-12-23  Bruno Haible  <bruno@clisp.org>
17515
17516         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17517
17518 2008-12-23  Bruno Haible  <bruno@clisp.org>
17519
17520         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17521         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17522         GETADDRINFO_LIB, not in LIBS.
17523         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17524         * modules/canon-host (Link): Likewise.
17525         * NEWS: Mention the change.
17526         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17527         GETADDRINFO_LIB.
17528
17529 2008-12-22  Bruno Haible  <bruno@clisp.org>
17530
17531         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17532         * doc/posix-functions/iswalpha_l.texi: Likewise.
17533         * doc/posix-functions/iswblank_l.texi: Likewise.
17534         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17535         * doc/posix-functions/iswctype_l.texi: Likewise.
17536         * doc/posix-functions/iswdigit_l.texi: Likewise.
17537         * doc/posix-functions/iswgraph_l.texi: Likewise.
17538         * doc/posix-functions/iswlower_l.texi: Likewise.
17539         * doc/posix-functions/iswprint_l.texi: Likewise.
17540         * doc/posix-functions/iswpunct_l.texi: Likewise.
17541         * doc/posix-functions/iswspace_l.texi: Likewise.
17542         * doc/posix-functions/iswupper_l.texi: Likewise.
17543         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17544         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17545         * doc/posix-functions/open_wmemstream.texi: Likewise.
17546         * doc/posix-functions/swscanf.texi: Likewise.
17547         * doc/posix-functions/towctrans_l.texi: Likewise.
17548         * doc/posix-functions/towlower.texi: Likewise.
17549         * doc/posix-functions/towlower_l.texi: Likewise.
17550         * doc/posix-functions/towupper.texi: Likewise.
17551         * doc/posix-functions/towupper_l.texi: Likewise.
17552         * doc/posix-functions/vfwprintf.texi: Likewise.
17553         * doc/posix-functions/vfwscanf.texi: Likewise.
17554         * doc/posix-functions/vswscanf.texi: Likewise.
17555         * doc/posix-functions/vwprintf.texi: Likewise.
17556         * doc/posix-functions/vwscanf.texi: Likewise.
17557         * doc/posix-functions/wcpcpy.texi: Likewise.
17558         * doc/posix-functions/wcpncpy.texi: Likewise.
17559         * doc/posix-functions/wcscasecmp.texi: Likewise.
17560         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17561         * doc/posix-functions/wcscoll_l.texi: Likewise.
17562         * doc/posix-functions/wcsdup.texi: Likewise.
17563         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17564         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17565         * doc/posix-functions/wcsnlen.texi: Likewise.
17566         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17567         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17568         * doc/posix-functions/wctrans_l.texi: Likewise.
17569         * doc/posix-functions/wctype_l.texi: Likewise.
17570         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17571         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17572         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17573         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17574         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17575         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17576         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17577         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17578         * doc/glibc-functions/wcschrnul.texi: Likewise.
17579         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17580         * doc/glibc-functions/wcstod_l.texi: Likewise.
17581         * doc/glibc-functions/wcstof_l.texi: Likewise.
17582         * doc/glibc-functions/wcstol_l.texi: Likewise.
17583         * doc/glibc-functions/wcstold_l.texi: Likewise.
17584         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17585         * doc/glibc-functions/wcstoq.texi: Likewise.
17586         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17587         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17588         * doc/glibc-functions/wcstouq.texi: Likewise.
17589         * doc/glibc-functions/wmempcpy.texi: Likewise.
17590
17591 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17592             Eric Blake  <ebb9@byu.net>
17593             Paolo Bonzini  <bonzini@gnu.org>
17594             Bruno Haible  <bruno@clisp.org>
17595
17596         Make c-stack work on Haiku.
17597         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17598         (c_stack_action): Use SA_ONSTACK flag.
17599
17600 2008-12-22  Bruno Haible  <bruno@clisp.org>
17601
17602         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17603
17604 2008-12-22  Bruno Haible  <bruno@clisp.org>
17605
17606         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17607         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17608         being overridden.
17609         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17610         New macros.
17611         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17613         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17614         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17615
17616 2008-12-22  Bruno Haible  <bruno@clisp.org>
17617
17618         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17619         from test code.
17620
17621 2008-12-22  Eric Blake  <ebb9@byu.net>
17622
17623         Avoid gcc warnings on cygwin.
17624         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17625         Avoid unused variable.
17626         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17627         Likewise.
17628
17629 2008-12-22  Bruno Haible  <bruno@clisp.org>
17630
17631         Remove HAVE_MBRTOWC conditionals.
17632         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17633         (mbscasecmp): Assume mbrtowc function.
17634         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17635         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17636         * lib/mbschr.c: Include mbuiter.h unconditionally.
17637         (mbschr): Assume mbrtowc function.
17638         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17639         (mbscspn): Assume mbrtowc function.
17640         * lib/mbslen.c: Include mbuiter.h unconditionally.
17641         (mbslen): Assume mbrtowc function.
17642         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17643         (mbsncasecmp): Assume mbrtowc function.
17644         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17645         (mbsnlen): Assume mbrtowc function.
17646         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17647         (mbspbrk): Assume mbrtowc function.
17648         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17649         (mbspcasecmp): Assume mbrtowc function.
17650         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17651         (mbsrchr): Assume mbrtowc function.
17652         * lib/mbssep.c: Include mbuiter.h unconditionally.
17653         (mbssep): Assume mbrtowc function.
17654         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17655         (mbsspn): Assume mbrtowc function.
17656         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17657         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17658         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17659         (mbstok_r): Assume mbrtowc function.
17660         * lib/propername.c: Include mbuiter.h unconditionally.
17661         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17662         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17663         (trim2): Assume mbrtowc function.
17664         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17665         (mbsnwidth): Assume mbrtowc function.
17666         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17667         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17668         fallback definitions.
17669         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17670
17671 2008-12-22  Bruno Haible  <bruno@clisp.org>
17672
17673         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17674
17675 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17676
17677         * modules/regex: Request emulations for the mb*/wc* functions we need.
17678         * m4/regex.m4: Don't look for those functions here.
17679         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17680
17681 2008-12-22  Bruno Haible  <bruno@clisp.org>
17682
17683         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17684
17685 2008-12-21  Bruno Haible  <bruno@clisp.org>
17686
17687         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17688         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17689         (Include): Remove conditionalization.
17690         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17691         (Include): Remove conditionalization.
17692         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17693         (Include): Remove conditionalization.
17694         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17695         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17696         * NEWS: Mention the change.
17697         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17698         via Sergey Poznyakoff <gray@gnu.org.ua>.
17699
17700 2008-12-21  Bruno Haible  <bruno@clisp.org>
17701
17702         * MODULES.html.sh (Extended multibyte and wide character utilities
17703         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17704         wcrtomb, wcsrtombs.
17705         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17706         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17707         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17708         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17709
17710 2008-12-21  Bruno Haible  <bruno@clisp.org>
17711
17712         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17713
17714 2008-12-21  Bruno Haible  <bruno@clisp.org>
17715
17716         * modules/wcsnrtombs-tests: New file.
17717         * tests/test-wcsnrtombs1.sh: New file.
17718         * tests/test-wcsnrtombs2.sh: New file.
17719         * tests/test-wcsnrtombs3.sh: New file.
17720         * tests/test-wcsnrtombs4.sh: New file.
17721         * tests/test-wcsnrtombs.c: New file.
17722
17723         New module 'wcsnrtombs'.
17724         * lib/wchar.in.h (wcsnrtombs): New declaration.
17725         * lib/wcsnrtombs.c: New file.
17726         * lib/wcsrtombs-state.c: New file.
17727         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17728         (internal_state): Remove variable.
17729         * m4/wcsnrtombs.m4: New file.
17730         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17731         compilation units.
17732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17733         HAVE_WCSNRTOMBS.
17734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17735         HAVE_WCSNRTOMBS.
17736         * modules/wcsnrtombs: New file.
17737         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17738         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17739
17740 2008-12-21  Bruno Haible  <bruno@clisp.org>
17741
17742         * modules/wcsrtombs-tests: New file.
17743         * tests/test-wcsrtombs1.sh: New file.
17744         * tests/test-wcsrtombs2.sh: New file.
17745         * tests/test-wcsrtombs3.sh: New file.
17746         * tests/test-wcsrtombs4.sh: New file.
17747         * tests/test-wcsrtombs.c: New file.
17748
17749         New module 'wcsrtombs'.
17750         * lib/wchar.in.h (wcsrtombs): New declaration.
17751         * lib/wcsrtombs.c: New file.
17752         * m4/wcsrtombs.m4: New file.
17753         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17754         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17756         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17757         * modules/wcsrtombs: New file.
17758         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17759         bugs.
17760
17761 2008-12-21  Bruno Haible  <bruno@clisp.org>
17762
17763         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17764         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17765         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17766         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17767         if not correct.
17768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17769         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17770         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17771         m4/locale-zh.m4, m4/codeset.m4.
17772         * doc/posix-functions/wcrtomb.texi: Document the bug.
17773
17774 2008-12-21  Bruno Haible  <bruno@clisp.org>
17775
17776         Work around a btowc() bug on IRIX 6.5.
17777         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17778         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17779         REPLACE_WTOBC if not.
17780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17781         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17782         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17783
17784 2008-12-21  Bruno Haible  <bruno@clisp.org>
17785
17786         * modules/wcrtomb-tests: New file.
17787         * tests/test-wcrtomb.sh: New file.
17788         * tests/test-wcrtomb.c: New file.
17789
17790         New module 'wcrtomb'.
17791         * lib/wchar.in.h (wcrtomb): New declaration.
17792         * lib/wcrtomb.c: New file.
17793         * m4/wcrtomb.m4: New file.
17794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17795         HAVE_WCRTOMB.
17796         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17797         HAVE_WCRTOMB.
17798         * modules/wcrtomb: New file.
17799         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17800
17801 2008-12-21  Bruno Haible  <bruno@clisp.org>
17802
17803         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17804         * modules/mbsrtowcs (Files): Likewise.
17805         * modules/wctob (Files): Likewise.
17806         * modules/c-strcase-tests (Files): Likewise.
17807         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17808         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17809         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17810         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17811         * modules/vasnprintf-posix-tests (Files): Likewise.
17812
17813 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17814
17815         gitlog-to-changelog: pass all command-line arguments to git-log
17816         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17817         it is sometimes convenient to filter the commits in various ways.
17818         gitlog-to-changelog only allows --since to specify a start date,
17819         but git-log itself supports many other filtering mechanisms.
17820         At the moment, I want to filter by branch name.  Rather than
17821         adding a --branch option to gitlog-to-changelog, it seems more
17822         flexible to simply pass all options directly to git-log and let
17823         git do the work.  Notice that this effectively makes --since a
17824         redundant option for gitlog-to-changelog, but removing it would
17825         require current usage to change since calls would then require
17826         an additional '--'.
17827
17828 2008-12-21  Bruno Haible  <bruno@clisp.org>
17829
17830         * modules/mbsnrtowcs-tests: New file.
17831         * tests/test-mbsnrtowcs1.sh: New file.
17832         * tests/test-mbsnrtowcs2.sh: New file.
17833         * tests/test-mbsnrtowcs3.sh: New file.
17834         * tests/test-mbsnrtowcs4.sh: New file.
17835         * tests/test-mbsnrtowcs.c: New file.
17836
17837         New module 'mbsnrtowcs'.
17838         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17839         * lib/mbsnrtowcs.c: New file.
17840         * lib/mbsrtowcs-state.c: New file.
17841         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17842         (internal_state): Remove variable.
17843         * m4/mbsnrtowcs.m4: New file.
17844         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17845         compilation units.
17846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17847         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17848         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17849         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17850         * modules/mbsnrtowcs: New file.
17851         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17852         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17853         portability problem.
17854
17855 2008-12-21  Bruno Haible  <bruno@clisp.org>
17856
17857         Work around mbsrtowcs bug.
17858         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17859         (gl_FUNC_MBSRTOWCS): Invoke it.
17860         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17861         m4/locale-zh.m4.
17862         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17863
17864 2008-12-21  Bruno Haible  <bruno@clisp.org>
17865
17866         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17867
17868 2008-12-21  Bruno Haible  <bruno@clisp.org>
17869
17870         Update doc for AIX.
17871         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17872         16-bit wchar_t type.
17873         * doc/posix-functions/btowc.texi: Likewise.
17874         * doc/posix-functions/fgetwc.texi: Likewise.
17875         * doc/posix-functions/fgetws.texi: Likewise.
17876         * doc/posix-functions/fputwc.texi: Likewise.
17877         * doc/posix-functions/fputws.texi: Likewise.
17878         * doc/posix-functions/fwide.texi: Likewise.
17879         * doc/posix-functions/fwprintf.texi: Likewise.
17880         * doc/posix-functions/fwscanf.texi: Likewise.
17881         * doc/posix-functions/getwchar.texi: Likewise.
17882         * doc/posix-functions/getwc.texi: Likewise.
17883         * doc/posix-functions/iswalnum.texi: Likewise.
17884         * doc/posix-functions/iswalpha.texi: Likewise.
17885         * doc/posix-functions/iswblank.texi: Likewise.
17886         * doc/posix-functions/iswcntrl.texi: Likewise.
17887         * doc/posix-functions/iswctype.texi: Likewise.
17888         * doc/posix-functions/iswdigit.texi: Likewise.
17889         * doc/posix-functions/iswgraph.texi: Likewise.
17890         * doc/posix-functions/iswlower.texi: Likewise.
17891         * doc/posix-functions/iswprint.texi: Likewise.
17892         * doc/posix-functions/iswpunct.texi: Likewise.
17893         * doc/posix-functions/iswspace.texi: Likewise.
17894         * doc/posix-functions/iswupper.texi: Likewise.
17895         * doc/posix-functions/iswxdigit.texi: Likewise.
17896         * doc/posix-functions/mbrtowc.texi: Likewise.
17897         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17898         * doc/posix-functions/mbstowcs.texi: Likewise.
17899         * doc/posix-functions/mbtowc.texi: Likewise.
17900         * doc/posix-functions/putwchar.texi: Likewise.
17901         * doc/posix-functions/putwc.texi: Likewise.
17902         * doc/posix-functions/swprintf.texi: Likewise.
17903         * doc/posix-functions/tolower.texi: Likewise.
17904         * doc/posix-functions/toupper.texi: Likewise.
17905         * doc/posix-functions/towctrans.texi: Likewise.
17906         * doc/posix-functions/ungetwc.texi: Likewise.
17907         * doc/posix-functions/vswprintf.texi: Likewise.
17908         * doc/posix-functions/wcrtomb.texi: Likewise.
17909         * doc/posix-functions/wcscat.texi: Likewise.
17910         * doc/posix-functions/wcschr.texi: Likewise.
17911         * doc/posix-functions/wcscmp.texi: Likewise.
17912         * doc/posix-functions/wcscoll.texi: Likewise.
17913         * doc/posix-functions/wcscpy.texi: Likewise.
17914         * doc/posix-functions/wcscspn.texi: Likewise.
17915         * doc/posix-functions/wcsftime.texi: Likewise.
17916         * doc/posix-functions/wcslen.texi: Likewise.
17917         * doc/posix-functions/wcsncat.texi: Likewise.
17918         * doc/posix-functions/wcsncmp.texi: Likewise.
17919         * doc/posix-functions/wcsncpy.texi: Likewise.
17920         * doc/posix-functions/wcspbrk.texi: Likewise.
17921         * doc/posix-functions/wcsrchr.texi: Likewise.
17922         * doc/posix-functions/wcsrtombs.texi: Likewise.
17923         * doc/posix-functions/wcsspn.texi: Likewise.
17924         * doc/posix-functions/wcsstr.texi: Likewise.
17925         * doc/posix-functions/wcstod.texi: Likewise.
17926         * doc/posix-functions/wcstof.texi: Likewise.
17927         * doc/posix-functions/wcstoimax.texi: Likewise.
17928         * doc/posix-functions/wcstok.texi: Likewise.
17929         * doc/posix-functions/wcstold.texi: Likewise.
17930         * doc/posix-functions/wcstoll.texi: Likewise.
17931         * doc/posix-functions/wcstol.texi: Likewise.
17932         * doc/posix-functions/wcstombs.texi: Likewise.
17933         * doc/posix-functions/wcstoull.texi: Likewise.
17934         * doc/posix-functions/wcstoul.texi: Likewise.
17935         * doc/posix-functions/wcstoumax.texi: Likewise.
17936         * doc/posix-functions/wcswidth.texi: Likewise.
17937         * doc/posix-functions/wcsxfrm.texi: Likewise.
17938         * doc/posix-functions/wctob.texi: Likewise.
17939         * doc/posix-functions/wctomb.texi: Likewise.
17940         * doc/posix-functions/wctrans.texi: Likewise.
17941         * doc/posix-functions/wctype.texi: Likewise.
17942         * doc/posix-functions/wcwidth.texi: Likewise.
17943         * doc/posix-functions/wmemchr.texi: Likewise.
17944         * doc/posix-functions/wmemcmp.texi: Likewise.
17945         * doc/posix-functions/wmemcpy.texi: Likewise.
17946         * doc/posix-functions/wmemmove.texi: Likewise.
17947         * doc/posix-functions/wmemset.texi: Likewise.
17948         * doc/posix-functions/wprintf.texi: Likewise.
17949         * doc/posix-functions/wscanf.texi: Likewise.
17950
17951 2008-12-21  Bruno Haible  <bruno@clisp.org>
17952
17953         Update doc for HP-UX 11.11.
17954         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17955         in HP-UX version 11.00, not in all versions of HP-UX 11.
17956         * doc/posix-functions/fwide.texi: Likewise.
17957         * doc/posix-functions/fwprintf.texi: Likewise.
17958         * doc/posix-functions/fwscanf.texi: Likewise.
17959         * doc/posix-functions/inet_ntop.texi: Likewise.
17960         * doc/posix-functions/inet_pton.texi: Likewise.
17961         * doc/posix-functions/mbrlen.texi: Likewise.
17962         * doc/posix-functions/mbrtowc.texi: Likewise.
17963         * doc/posix-functions/mbsinit.texi: Likewise.
17964         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17965         * doc/posix-functions/swprintf.texi: Likewise.
17966         * doc/posix-functions/swscanf.texi: Likewise.
17967         * doc/posix-functions/towctrans.texi: Likewise.
17968         * doc/posix-functions/vfwprintf.texi: Likewise.
17969         * doc/posix-functions/vswprintf.texi: Likewise.
17970         * doc/posix-functions/vwprintf.texi: Likewise.
17971         * doc/posix-functions/wcrtomb.texi: Likewise.
17972         * doc/posix-functions/wcsrtombs.texi: Likewise.
17973         * doc/posix-functions/wcsstr.texi: Likewise.
17974         * doc/posix-functions/wctob.texi: Likewise.
17975         * doc/posix-functions/wctrans.texi: Likewise.
17976         * doc/posix-functions/wmemchr.texi: Likewise.
17977         * doc/posix-functions/wmemcmp.texi: Likewise.
17978         * doc/posix-functions/wmemcpy.texi: Likewise.
17979         * doc/posix-functions/wmemmove.texi: Likewise.
17980         * doc/posix-functions/wmemset.texi: Likewise.
17981         * doc/posix-functions/wprintf.texi: Likewise.
17982         * doc/posix-functions/wscanf.texi: Likewise.
17983
17984 2008-12-21  Bruno Haible  <bruno@clisp.org>
17985
17986         Work around a portability problem.
17987         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17988         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17989
17990 2008-12-20  Bruno Haible  <bruno@clisp.org>
17991
17992         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17993         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17994         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17996         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17997
17998         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17999         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18000         set.
18001         (GNULIB_defined_mbstate_t): New macro.
18002         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18003         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18004         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18005         reuses the system's mbrtowc function but works around the bugs.
18006         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18007         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18008         macros.
18009         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18010         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18011         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18012         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18013         REPLACE_MBSINIT if mbsinit needs to be overridden.
18014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18015         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18016         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18017         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18018         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18019         m4/locale-zh.m4.
18020         (Depends): Add mbsinit.
18021         * modules/mbsinit (Depends): Add mbrtowc.
18022         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18023
18024 2008-12-20  Bruno Haible  <bruno@clisp.org>
18025
18026         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18027         so that there are no conversion errors on AIX.
18028         * tests/test-mbsrtowcs.c (main): LIkewise.
18029
18030 2008-12-20  Bruno Haible  <bruno@clisp.org>
18031
18032         Work around wctob bug on Solaris <= 9.
18033         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18034         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18035         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18036         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18037         * modules/wctob (Files): Add m4/locale-fr.m4.
18038         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18039
18040 2008-12-20  Bruno Haible  <bruno@clisp.org>
18041
18042         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18043         /dev/null.
18044         * tests/test-select-in.sh: Likewise.
18045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18046
18047 2008-12-20  Bruno Haible  <bruno@clisp.org>
18048
18049         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18050         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18051         Cygwin 1.5.x.
18052
18053 2008-12-20  Bruno Haible  <bruno@clisp.org>
18054
18055         Ensure mbstate_t is defined on HP-UX 11.11.
18056         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18057         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18058         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18059         AC_USE_SYSTEM_EXTENSIONS.
18060         * modules/fnmatch (Depends-on): Add extensions.
18061         * modules/mbrlen (Depends-on): Likewise.
18062         * modules/mbrtowc (Depends-on): Likewise.
18063         * modules/mbsinit (Depends-on): Likewise.
18064         * modules/mbsrtowcs (Depends-on): Likewise.
18065         * modules/mbswidth (Depends-on): Likewise.
18066         * modules/quotearg (Depends-on): Likewise.
18067         * modules/strftime (Depends-on): Likewise.
18068
18069 2008-12-20  Bruno Haible  <bruno@clisp.org>
18070
18071         Ensure wctob is declared on IRIX 6.5.
18072         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18073         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18074         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18076         of HAVE_WCTOB.
18077         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18078         HAVE_WCTOB.
18079         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18080
18081 2008-12-19  Bruno Haible  <bruno@clisp.org>
18082
18083         * modules/mbsrtowcs-tests: New file.
18084         * tests/test-mbsrtowcs1.sh: New file.
18085         * tests/test-mbsrtowcs2.sh: New file.
18086         * tests/test-mbsrtowcs3.sh: New file.
18087         * tests/test-mbsrtowcs4.sh: New file.
18088         * tests/test-mbsrtowcs.c: New file.
18089
18090         New module 'mbsrtowcs'.
18091         * lib/wchar.in.h (mbsrtowcs): New declaration.
18092         * lib/mbsrtowcs.c: New file.
18093         * m4/mbsrtowcs.m4: New file.
18094         * modules/mbsrtowcs: New file.
18095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18096         HAVE_MBSRTOWCS.
18097         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18098         HAVE_MBSRTOWCS.
18099         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18100
18101 2008-12-19  Bruno Haible  <bruno@clisp.org>
18102
18103         New module 'mbrlen'.
18104         * lib/wchar.in.h (mbrlen): New declaration.
18105         * lib/mbrlen.c: New file.
18106         * m4/mbrlen.m4: New file.
18107         * modules/mbrlen: New file.
18108         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18109         HAVE_MBRLEN.
18110         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18111         HAVE_MBRLEN.
18112         * doc/posix-functions/mbrlen.texi: Document the new module.
18113
18114 2008-12-19  Bruno Haible  <bruno@clisp.org>
18115
18116         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18117         * modules/mbrtowc (Depends-on): Add verify.
18118         Suggested by Paul Eggert.
18119
18120 2008-12-18  Bruno Haible  <bruno@clisp.org>
18121
18122         * modules/mbsinit-tests: New file.
18123         * tests/test-mbsinit.sh: New file.
18124         * tests/test-mbsinit.c: New file.
18125
18126 2008-12-18  Bruno Haible  <bruno@clisp.org>
18127
18128         * modules/mbrtowc-tests: New file.
18129         * tests/test-mbrtowc1.sh: New file.
18130         * tests/test-mbrtowc2.sh: New file.
18131         * tests/test-mbrtowc3.sh: New file.
18132         * tests/test-mbrtowc4.sh: New file.
18133         * tests/test-mbrtowc.c: New file.
18134
18135         New module 'mbrtowc'.
18136         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18137         mbsinit and mbrtowc.
18138         (mbrtowc): New declaration.
18139         * lib/mbrtowc.c: New file.
18140         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18141         * modules/mbrtowc: New file.
18142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18143         HAVE_MBRTOWC.
18144         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18145         HAVE_MBRTOWC.
18146         * doc/posix-functions/mbrtowc.texi: Document the new module.
18147
18148 2008-12-18  Bruno Haible  <bruno@clisp.org>
18149
18150         New module 'wctob'.
18151         * lib/wchar.in.h (wctob): New declaration.
18152         * lib/wctob.c: New file.
18153         * m4/wctob.m4: New file.
18154         * modules/wctob: New file.
18155         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18156         HAVE_WCTOB.
18157         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18158         * doc/posix-functions/wctob.texi: Document the new module.
18159
18160 2008-12-18  Bruno Haible  <bruno@clisp.org>
18161
18162         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18163         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18164
18165 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18166
18167         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18168         G. Christensen" <tgc@jupiterrise.com>.
18169
18170         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18171         G. Christensen" <tgc@jupiterrise.com>.
18172
18173         * lib/flock.c: Need to include string.h.  Reported by "Tom
18174         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18175         <ebb9@byu.net>.
18176
18177 2008-12-18  Bruno Haible  <bruno@clisp.org>
18178
18179         * m4/locale-ja.m4: New file, from GNU gettext.
18180
18181 2008-12-17  Bruno Haible  <bruno@clisp.org>
18182
18183         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18184         Suggested by Eric Blake.
18185
18186 2008-12-17  Bruno Haible  <bruno@clisp.org>
18187
18188         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18189
18190 2008-12-17  Bruno Haible  <bruno@clisp.org>
18191
18192         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18193         * modules/mbsinit (Depends-on): Add verify.
18194         Suggested by Paul Eggert.
18195
18196 2008-12-17  Bruno Haible  <bruno@clisp.org>
18197
18198         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18199         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18200         gl_FUNC_MBRTOWC.
18201         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18202         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18203         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18204         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18205         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18206         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18207         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18208         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18209         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18210         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18211         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18212         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18213         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18214         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18215         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18216         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18217         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18218         * modules/trim (configure.ac): Likewise.
18219
18220 2008-12-17  Bruno Haible  <bruno@clisp.org>
18221
18222         * modules/btowc-tests: New file.
18223         * tests/test-btowc1.sh: New file.
18224         * tests/test-btowc2.sh: New file.
18225         * tests/test-btowc.c: New file.
18226
18227         New module 'btowc'.
18228         * lib/wchar.in.h (btowc): New declaration.
18229         * lib/btowc.c: New file.
18230         * m4/btowc.m4: New file.
18231         * modules/btowc: New file.
18232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18233         HAVE_BTOWC.
18234         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18235         * doc/posix-functions/btowc.texi: Document the new module.
18236
18237 2008-12-17  Bruno Haible  <bruno@clisp.org>
18238
18239         New module 'mbsinit'.
18240         * lib/wchar.in.h (mbsinit): New declaration.
18241         * lib/mbsinit.c: New file.
18242         * m4/mbsinit.m4: New file.
18243         * modules/mbsinit: New file.
18244         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18245         HAVE_MBSINIT.
18246         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18247         HAVE_MBSINIT.
18248         * doc/posix-functions/mbsinit.texi: Document the new module.
18249
18250 2008-12-16  Bruno Haible  <bruno@clisp.org>
18251
18252         * lib/unistd.in.h: Add comment.
18253         * tests/test-environ.c: Don't include <stdlib.h>.
18254
18255 2008-12-16  Bruno Haible  <bruno@clisp.org>
18256
18257         * lib/parse-duration.h (parse_duration): Document return value
18258         convention.
18259         * lib/parse-duration.c: Include specification header first. Add
18260         comments.
18261         (_): Remove macro.
18262         (parse_year_month_day, parse_hour_minute_second): Move side effects
18263         outside of strchr call.
18264         (parse_non_iso8601): Move side effects outside of isspace call.
18265         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18266         call.
18267
18268 2008-12-16  Bruno Haible  <bruno@clisp.org>
18269
18270         * tests/test-parse-duration.sh: Produce no output when the test
18271         succeeds.
18272
18273 2008-12-16  Bruno Haible  <bruno@clisp.org>
18274
18275         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18276         expressions.
18277
18278 2008-12-15  Bruno Haible  <bruno@clisp.org>
18279
18280         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18281         * doc/glibc-functions/flistxattr.texi: Likewise.
18282         * doc/glibc-functions/fopencookie.texi: Likewise.
18283         * doc/glibc-functions/fremovexattr.texi: Likewise.
18284         * doc/glibc-functions/fsetxattr.texi: Likewise.
18285         * doc/glibc-functions/getxattr.texi: Likewise.
18286         * doc/glibc-functions/lgetxattr.texi: Likewise.
18287         * doc/glibc-functions/listxattr.texi: Likewise.
18288         * doc/glibc-functions/llistxattr.texi: Likewise.
18289         * doc/glibc-functions/lremovexattr.texi: Likewise.
18290         * doc/glibc-functions/lsetxattr.texi: Likewise.
18291         * doc/glibc-functions/removexattr.texi: Likewise.
18292         * doc/glibc-functions/setxattr.texi: Likewise.
18293         * doc/posix-functions/open_memstream.texi: Likewise.
18294
18295 2008-12-15  Eric Blake  <ebb9@byu.net>
18296
18297         Update doc for cygwin 1.7.
18298         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18299         functions.
18300         * doc/posix-functions/fchmodat.texi: Likewise.
18301         * doc/posix-functions/fchownat.texi: Likewise.
18302         * doc/posix-functions/fdopendir.texi: Likewise.
18303         * doc/posix-functions/fmemopen.texi: Likewise.
18304         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18305         * doc/posix-functions/fstatat.texi: Likewise.
18306         * doc/posix-functions/futimens.texi: Likewise.
18307         * doc/posix-functions/gai_strerror.texi: Likewise.
18308         * doc/posix-functions/getaddrinfo.texi: Likewise.
18309         * doc/posix-functions/getnameinfo.texi: Likewise.
18310         * doc/posix-functions/if_freenameindex.texi: Likewise.
18311         * doc/posix-functions/if_indextoname.texi: Likewise.
18312         * doc/posix-functions/if_nameindex.texi: Likewise.
18313         * doc/posix-functions/if_nametoindex.texi: Likewise.
18314         * doc/posix-functions/insque.texi: Likewise.
18315         * doc/posix-functions/linkat.texi: Likewise.
18316         * doc/posix-functions/llrint.texi: Likewise.
18317         * doc/posix-functions/llrintf.texi: Likewise.
18318         * doc/posix-functions/llrintl.texi: Likewise.
18319         * doc/posix-functions/lockf.texi: Likewise.
18320         * doc/posix-functions/lrintl.texi: Likewise.
18321         * doc/posix-functions/mkdirat.texi: Likewise.
18322         * doc/posix-functions/mkfifoat.texi: Likewise.
18323         * doc/posix-functions/mknodat.texi: Likewise.
18324         * doc/posix-functions/mq_close.texi: Likewise.
18325         * doc/posix-functions/mq_getattr.texi: Likewise.
18326         * doc/posix-functions/mq_notify.texi: Likewise.
18327         * doc/posix-functions/mq_open.texi: Likewise.
18328         * doc/posix-functions/mq_receive.texi: Likewise.
18329         * doc/posix-functions/mq_send.texi: Likewise.
18330         * doc/posix-functions/mq_setattr.texi: Likewise.
18331         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18332         * doc/posix-functions/mq_timedsend.texi: Likewise.
18333         * doc/posix-functions/mq_unlink.texi: Likewise.
18334         * doc/posix-functions/open_memstream.texi: Likewise.
18335         * doc/posix-functions/openat.texi: Likewise.
18336         * doc/posix-functions/posix_fadvise.texi: Likewise.
18337         * doc/posix-functions/posix_fallocate.texi: Likewise.
18338         * doc/posix-functions/posix_madvise.texi: Likewise.
18339         * doc/posix-functions/posix_memalign.texi: Likewise.
18340         * doc/posix-functions/posix_openpt.texi: Likewise.
18341         * doc/posix-functions/readlinkat.texi: Likewise.
18342         * doc/posix-functions/remque.texi: Likewise.
18343         * doc/posix-functions/renameat.texi: Likewise.
18344         * doc/posix-functions/rintl.texi: Likewise.
18345         * doc/posix-functions/sem_unlink.texi: Likewise.
18346         * doc/posix-functions/shm_open.texi: Likewise.
18347         * doc/posix-functions/shm_unlink.texi: Likewise.
18348         * doc/posix-functions/signgam.texi: Likewise.
18349         * doc/posix-functions/sigset.texi: Likewise.
18350         * doc/posix-functions/stpcpy.texi: Likewise.
18351         * doc/posix-functions/stpncpy.texi: Likewise.
18352         * doc/posix-functions/strerror.texi: Likewise.
18353         * doc/posix-functions/strtod.texi: Likewise.
18354         * doc/posix-functions/symlinkat.texi: Likewise.
18355         * doc/posix-functions/unlinkat.texi: Likewise.
18356         * doc/posix-functions/utimensat.texi: Likewise.
18357         * doc/glibc-functions/bindresvport.texi: Likewise.
18358         * doc/glibc-functions/dn_expand.texi: Likewise.
18359         * doc/glibc-functions/exp10.texi: Likewise.
18360         * doc/glibc-functions/exp10f.texi: Likewise.
18361         * doc/glibc-functions/fgetxattr.texi: Likewise.
18362         * doc/glibc-functions/flistxattr.texi: Likewise.
18363         * doc/glibc-functions/fopencookie.texi: Likewise.
18364         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18365         * doc/glibc-functions/fremovexattr.texi: Likewise.
18366         * doc/glibc-functions/fsetxattr.texi: Likewise.
18367         * doc/glibc-functions/getifaddrs.texi: Likewise.
18368         * doc/glibc-functions/getxattr.texi: Likewise.
18369         * doc/glibc-functions/lgetxattr.texi: Likewise.
18370         * doc/glibc-functions/listxattr.texi: Likewise.
18371         * doc/glibc-functions/llistxattr.texi: Likewise.
18372         * doc/glibc-functions/lremovexattr.texi: Likewise.
18373         * doc/glibc-functions/lsetxattr.texi: Likewise.
18374         * doc/glibc-functions/pow10.texi: Likewise.
18375         * doc/glibc-functions/pow10f.texi: Likewise.
18376         * doc/glibc-functions/rcmd_af.texi: Likewise.
18377         * doc/glibc-functions/removexattr.texi: Likewise.
18378         * doc/glibc-functions/res_init.texi: Likewise.
18379         * doc/glibc-functions/res_mkquery.texi: Likewise.
18380         * doc/glibc-functions/res_query.texi: Likewise.
18381         * doc/glibc-functions/res_querydomain.texi: Likewise.
18382         * doc/glibc-functions/res_send.texi: Likewise.
18383         * doc/glibc-functions/rresvport_af.texi: Likewise.
18384         * doc/glibc-functions/setxattr.texi: Likewise.
18385         * doc/glibc-functions/strcasestr.texi: Likewise.
18386
18387 2008-12-15  Bruno Haible  <bruno@clisp.org>
18388
18389         Fix compilation error on OSF/1 4.0.
18390         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18391         <sys/time.h>, simply delegate to the system header.
18392         Reported by Daniel Richard G. <oss@teragram.com>.
18393
18394 2008-12-15  Bruno Haible  <bruno@clisp.org>
18395
18396         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18397         * doc/posix-functions/fchmodat.texi: Likewise.
18398         * doc/posix-functions/fchownat.texi: Likewise.
18399         * doc/posix-functions/fdopendir.texi: Likewise.
18400         * doc/posix-functions/fstatat.texi: Likewise.
18401         * doc/posix-functions/mkdirat.texi: Likewise.
18402         * doc/posix-functions/unlinkat.texi: Likewise.
18403
18404 2008-12-14  Bruno Haible  <bruno@clisp.org>
18405
18406         Update doc for POSIX:2008.
18407         * doc/posix-functions/faccessat.texi: New file.
18408         * doc/posix-functions/fchmodat.texi: New file.
18409         * doc/posix-functions/fchownat.texi: New file.
18410         * doc/posix-functions/fdopendir.texi: New file.
18411         * doc/posix-functions/fstatat.texi: New file.
18412         * doc/posix-functions/futimens.texi: New file.
18413         * doc/posix-functions/linkat.texi: New file.
18414         * doc/posix-functions/mkdirat.texi: New file.
18415         * doc/posix-functions/mkfifoat.texi: New file.
18416         * doc/posix-functions/mknodat.texi: New file.
18417         * doc/posix-functions/open_wmemstream.texi: New file.
18418         * doc/posix-functions/openat.texi: New file.
18419         * doc/posix-functions/psiginfo.texi: New file.
18420         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18421         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18422         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18423         * doc/posix-functions/readlinkat.texi: New file.
18424         * doc/posix-functions/renameat.texi: New file.
18425         * doc/posix-functions/strerror_l.texi: New file.
18426         * doc/posix-functions/symlinkat.texi: New file.
18427         * doc/posix-functions/unlinkat.texi: New file.
18428         * doc/posix-functions/utimensat.texi: New file.
18429         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18430
18431 2008-12-14  Bruno Haible  <bruno@clisp.org>
18432
18433         Update doc for POSIX:2008.
18434         * doc/posix-functions/alphasort.texi: Renamed from
18435         doc/glibc-functions/alphasort.texi.
18436         * doc/posix-functions/dirfd.texi: Renamed from
18437         doc/glibc-functions/dirfd.texi.
18438         * doc/posix-functions/dprintf.texi: Renamed from
18439         doc/glibc-functions/dprintf.texi.
18440         * doc/posix-functions/duplocale.texi: Renamed from
18441         doc/glibc-functions/duplocale.texi.
18442         * doc/posix-functions/fexecve.texi: Renamed from
18443         doc/glibc-functions/fexecve.texi.
18444         * doc/posix-functions/fmemopen.texi: Renamed from
18445         doc/glibc-functions/fmemopen.texi.
18446         * doc/posix-functions/freelocale.texi: Renamed from
18447         doc/glibc-functions/freelocale.texi.
18448         * doc/posix-functions/getdate_err.texi: Renamed from
18449         doc/glibc-functions/getdate_err.texi.
18450         * doc/posix-functions/isalnum_l.texi: Renamed from
18451         doc/glibc-functions/isalnum_l.texi.
18452         * doc/posix-functions/isalpha_l.texi: Renamed from
18453         doc/glibc-functions/isalpha_l.texi.
18454         * doc/posix-functions/isblank_l.texi: Renamed from
18455         doc/glibc-functions/isblank_l.texi.
18456         * doc/posix-functions/iscntrl_l.texi: Renamed from
18457         doc/glibc-functions/iscntrl_l.texi.
18458         * doc/posix-functions/isdigit_l.texi: Renamed from
18459         doc/glibc-functions/isdigit_l.texi.
18460         * doc/posix-functions/isgraph_l.texi: Renamed from
18461         doc/glibc-functions/isgraph_l.texi.
18462         * doc/posix-functions/islower_l.texi: Renamed from
18463         doc/glibc-functions/islower_l.texi.
18464         * doc/posix-functions/isprint_l.texi: Renamed from
18465         doc/glibc-functions/isprint_l.texi.
18466         * doc/posix-functions/ispunct_l.texi: Renamed from
18467         doc/glibc-functions/ispunct_l.texi.
18468         * doc/posix-functions/isspace_l.texi: Renamed from
18469         doc/glibc-functions/isspace_l.texi.
18470         * doc/posix-functions/isupper_l.texi: Renamed from
18471         doc/glibc-functions/isupper_l.texi.
18472         * doc/posix-functions/iswalnum_l.texi: Renamed from
18473         doc/glibc-functions/iswalnum_l.texi.
18474         * doc/posix-functions/iswalpha_l.texi: Renamed from
18475         doc/glibc-functions/iswalpha_l.texi.
18476         * doc/posix-functions/iswblank_l.texi: Renamed from
18477         doc/glibc-functions/iswblank_l.texi.
18478         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18479         doc/glibc-functions/iswcntrl_l.texi.
18480         * doc/posix-functions/iswctype_l.texi: Renamed from
18481         doc/glibc-functions/iswctype_l.texi.
18482         * doc/posix-functions/iswdigit_l.texi: Renamed from
18483         doc/glibc-functions/iswdigit_l.texi.
18484         * doc/posix-functions/iswgraph_l.texi: Renamed from
18485         doc/glibc-functions/iswgraph_l.texi.
18486         * doc/posix-functions/iswlower_l.texi: Renamed from
18487         doc/glibc-functions/iswlower_l.texi.
18488         * doc/posix-functions/iswprint_l.texi: Renamed from
18489         doc/glibc-functions/iswprint_l.texi.
18490         * doc/posix-functions/iswpunct_l.texi: Renamed from
18491         doc/glibc-functions/iswpunct_l.texi.
18492         * doc/posix-functions/iswspace_l.texi: Renamed from
18493         doc/glibc-functions/iswspace_l.texi.
18494         * doc/posix-functions/iswupper_l.texi: Renamed from
18495         doc/glibc-functions/iswupper_l.texi.
18496         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18497         doc/glibc-functions/iswxdigit_l.texi.
18498         * doc/posix-functions/isxdigit_l.texi: Renamed from
18499         doc/glibc-functions/isxdigit_l.texi.
18500         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18501         doc/glibc-functions/mbsnrtowcs.texi.
18502         * doc/posix-functions/mkdtemp.texi: Renamed from
18503         doc/glibc-functions/mkdtemp.texi.
18504         * doc/posix-functions/newlocale.texi: Renamed from
18505         doc/glibc-functions/newlocale.texi.
18506         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18507         doc/glibc-functions/nl_langinfo_l.texi.
18508         * doc/posix-functions/open_memstream.texi: Renamed from
18509         doc/glibc-functions/open_memstream.texi.
18510         * doc/posix-functions/opterr.texi: Renamed from
18511         doc/glibc-functions/opterr.texi.
18512         * doc/posix-functions/optind.texi: Renamed from
18513         doc/glibc-functions/optind.texi.
18514         * doc/posix-functions/optopt.texi: Renamed from
18515         doc/glibc-functions/optopt.texi.
18516         * doc/posix-functions/psignal.texi: Renamed from
18517         doc/glibc-functions/psignal.texi.
18518         * doc/posix-functions/scandir.texi: Renamed from
18519         doc/glibc-functions/scandir.texi.
18520         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18521         doc/glibc-functions/sched_get_priority_min.texi.
18522         * doc/posix-functions/signgam.texi: Renamed from
18523         doc/glibc-functions/signgam.texi.
18524         * doc/posix-functions/stpcpy.texi: Renamed from
18525         doc/glibc-functions/stpcpy.texi.
18526         * doc/posix-functions/stpncpy.texi: Renamed from
18527         doc/glibc-functions/stpncpy.texi.
18528         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18529         doc/glibc-functions/strcasecmp_l.texi.
18530         * doc/posix-functions/strcoll_l.texi: Renamed from
18531         doc/glibc-functions/strcoll_l.texi.
18532         * doc/posix-functions/strfmon_l.texi: Renamed from
18533         doc/glibc-functions/strfmon_l.texi.
18534         * doc/posix-functions/strftime_l.texi: Renamed from
18535         doc/glibc-functions/strftime_l.texi.
18536         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18537         doc/glibc-functions/strncasecmp_l.texi.
18538         * doc/posix-functions/strndup.texi: Renamed from
18539         doc/glibc-functions/strndup.texi.
18540         * doc/posix-functions/strnlen.texi: Renamed from
18541         doc/glibc-functions/strnlen.texi.
18542         * doc/posix-functions/strsignal.texi: Renamed from
18543         doc/glibc-functions/strsignal.texi.
18544         * doc/posix-functions/strxfrm_l.texi: Renamed from
18545         doc/glibc-functions/strxfrm_l.texi.
18546         * doc/posix-functions/timer_gettime.texi: Renamed from
18547         doc/glibc-functions/timer_gettime.texi.
18548         * doc/posix-functions/tolower_l.texi: Renamed from
18549         doc/glibc-functions/tolower_l.texi.
18550         * doc/posix-functions/toupper_l.texi: Renamed from
18551         doc/glibc-functions/toupper_l.texi.
18552         * doc/posix-functions/towctrans_l.texi: Renamed from
18553         doc/glibc-functions/towctrans_l.texi.
18554         * doc/posix-functions/towlower_l.texi: Renamed from
18555         doc/glibc-functions/towlower_l.texi.
18556         * doc/posix-functions/towupper_l.texi: Renamed from
18557         doc/glibc-functions/towupper_l.texi.
18558         * doc/posix-functions/uselocale.texi: Renamed from
18559         doc/glibc-functions/uselocale.texi.
18560         * doc/posix-functions/vdprintf.texi: Renamed from
18561         doc/glibc-functions/vdprintf.texi.
18562         * doc/posix-functions/wcpcpy.texi:
18563         Renamed from doc/glibc-functions/wcpcpy.texi.
18564         * doc/posix-functions/wcpncpy.texi: Renamed from
18565         doc/glibc-functions/wcpncpy.texi.
18566         * doc/posix-functions/wcscasecmp.texi: Renamed from
18567         doc/glibc-functions/wcscasecmp.texi.
18568         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18569         doc/glibc-functions/wcscasecmp_l.texi.
18570         * doc/posix-functions/wcscoll_l.texi: Renamed from
18571         doc/glibc-functions/wcscoll_l.texi.
18572         * doc/posix-functions/wcsdup.texi: Renamed from
18573         doc/glibc-functions/wcsdup.texi.
18574         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18575         doc/glibc-functions/wcsncasecmp.texi.
18576         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18577         doc/glibc-functions/wcsncasecmp_l.texi.
18578         * doc/posix-functions/wcsnlen.texi: Renamed from
18579         doc/glibc-functions/wcsnlen.texi.
18580         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18581         doc/glibc-functions/wcsnrtombs.texi.
18582         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18583         doc/glibc-functions/wcsxfrm_l.texi.
18584         * doc/posix-functions/wctrans_l.texi: Renamed from
18585         doc/glibc-functions/wctrans_l.texi.
18586         * doc/posix-functions/wctype_l.texi: Renamed from
18587         doc/glibc-functions/wctype_l.texi.
18588         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18589         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18590         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18591         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18592         these subsections.
18593         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18594         Remove sections.
18595
18596 2008-12-14  Bruno Haible  <bruno@clisp.org>
18597
18598         Update doc for POSIX:2008.
18599         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18600
18601 2008-12-14  Bruno Haible  <bruno@clisp.org>
18602
18603         Update doc for POSIX:2008.
18604         * doc/pastposix-functions/bcmp.texi: Renamed from
18605         doc/posix-functions/bcmp.texi.
18606         * doc/pastposix-functions/bcopy.texi: Renamed from
18607         doc/posix-functions/bcopy.texi.
18608         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18609         doc/posix-functions/bsd_signal.texi.
18610         * doc/pastposix-functions/bzero.texi: Renamed from
18611         doc/posix-functions/bzero.texi.
18612         * doc/pastposix-functions/ecvt.texi: Renamed from
18613         doc/posix-functions/ecvt.texi.
18614         * doc/pastposix-functions/fcvt.texi: Renamed from
18615         doc/posix-functions/fcvt.texi.
18616         * doc/pastposix-functions/ftime.texi: Renamed from
18617         doc/posix-functions/ftime.texi.
18618         * doc/pastposix-functions/gcvt.texi: Renamed from
18619         doc/posix-functions/gcvt.texi.
18620         * doc/pastposix-functions/getcontext.texi: Renamed from
18621         doc/posix-functions/getcontext.texi.
18622         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18623         doc/posix-functions/gethostbyaddr.texi.
18624         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18625         doc/posix-functions/gethostbyname.texi.
18626         * doc/pastposix-functions/getwd.texi: Renamed from
18627         doc/posix-functions/getwd.texi.
18628         * doc/pastposix-functions/h_errno.texi: Renamed from
18629         doc/posix-functions/h_errno.texi.
18630         * doc/pastposix-functions/index.texi: Renamed from
18631         doc/posix-functions/index.texi.
18632         * doc/pastposix-functions/makecontext.texi: Renamed from
18633         doc/posix-functions/makecontext.texi.
18634         * doc/pastposix-functions/mktemp.texi: Renamed from
18635         doc/posix-functions/mktemp.texi.
18636         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18637         doc/posix-functions/pthread_attr_getstackaddr.texi.
18638         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18639         doc/posix-functions/pthread_attr_setstackaddr.texi.
18640         * doc/pastposix-functions/rindex.texi: Renamed from
18641         doc/posix-functions/rindex.texi.
18642         * doc/pastposix-functions/scalb.texi: Renamed from
18643         doc/posix-functions/scalb.texi.
18644         * doc/pastposix-functions/setcontext.texi: Renamed from
18645         doc/posix-functions/setcontext.texi.
18646         * doc/pastposix-functions/swapcontext.texi: Renamed from
18647         doc/posix-functions/swapcontext.texi.
18648         * doc/pastposix-functions/ualarm.texi: Renamed from
18649         doc/posix-functions/ualarm.texi.
18650         * doc/pastposix-functions/usleep.texi: Renamed from
18651         doc/posix-functions/usleep.texi.
18652         * doc/pastposix-functions/vfork.texi: Renamed from
18653         doc/posix-functions/vfork.texi.
18654         * doc/pastposix-functions/wcswcs.texi: Renamed from
18655         doc/posix-functions/wcswcs.texi.
18656         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18657         (Function Substitutes): Update.
18658
18659 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18660
18661         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18662         m4/strerror.m4.
18663
18664 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18665             Bruno Haible  <bruno@clisp.org>
18666
18667         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18668
18669 2008-12-13  Bruno Haible  <bruno@clisp.org>
18670
18671         * modules/strtoull (Depends-on): Remove unistd.
18672
18673 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18674
18675         * modules/strtoull (Depends-on): Add stdlib.
18676
18677 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18678
18679         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18680
18681 2008-12-10  Jim Meyering  <meyering@redhat.com>
18682
18683         gl_ASSERT: don't say assertions are disabled when they're not
18684         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18685         "checking whether to enable assertions... no", when they are in
18686         fact enabled.  This is solely a bug in the output of configure.
18687         In spite of saying "no", NDEBUG was not defined in that case.
18688         Also, as noted by Eric Blake, leave assertions enabled upon
18689         --enable-assert=INVALID.
18690
18691 2008-12-10  Bruno Haible  <bruno@clisp.org>
18692
18693         Change MODULES.html to refer to POSIX:2008 where possible.
18694         * MODULES.html.sh (POSIX2008_URL): New variable.
18695         (posix_headers): Remove sys/timeb, ucontext.
18696         (posix2001_headers): New variable.
18697         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18698         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18699         index, makecontext, mktemp, pthread_attr_getstackaddr,
18700         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18701         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18702         (posix2001_functions): New variable.
18703         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18704         otherwise.
18705
18706 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18707
18708         add missing include to parse-duration.c
18709         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18710         * modules/parse-duration (Depends-on): Add xalloc.
18711
18712         fix sed script reading maint.mk
18713         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18714         (syntax-check-rules): Use it.
18715
18716 2008-12-09  Bruno Haible  <bruno@clisp.org>
18717
18718         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18719         MacOS X 10.4/PowerPC.
18720         Reported by Simon Josefsson.
18721
18722 2008-12-08  Jim Meyering  <meyering@redhat.com>
18723
18724         work around mingw's lack of some S_IF definitions
18725         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18726         Reported by Simon Josefsson.
18727
18728 2008-12-08  Bruno Haible  <bruno@clisp.org>
18729
18730         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18731         applied to variables. Needed on MacOS X 10.4/PowerPC.
18732         Reported by Simon Josefsson.
18733
18734 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18735         and Eric Blake  <ebb9@byu.net>
18736
18737         assert: honor --enable-assert
18738         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18739         order to honor --enable-assert, rather than treating it as a
18740         synonym for --disable-assert.
18741
18742 2008-12-08  Jim Meyering  <meyering@redhat.com>
18743
18744         * lib/posixtm.c: Remove now-useless declaration of mktime.
18745
18746         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18747
18748 2008-12-07  Bruno Haible  <bruno@clisp.org>
18749
18750         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18751         test_once): Mark functions as static.
18752         * tests/test-tls.c (test_tls): Likewise.
18753
18754 2008-12-07  Bruno Haible  <bruno@clisp.org>
18755
18756         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18757         iconv_register_autodetect.
18758
18759 2008-12-07  Jim Meyering  <meyering@redhat.com>
18760
18761         posixtm.c: avoid a warning
18762         * lib/posixtm.c (posixtime): Don't initialize tm0.
18763         It's no longer needed to placate gcc4's -Wuninitialized,
18764         and the attempt to placate would elicit a new warning.
18765
18766         unicodeio.c: mark unused parameters
18767         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18768         (fallback_failure_callback): Likewise.
18769
18770 2008-12-07  Bruno Haible  <bruno@clisp.org>
18771
18772         * gnulib-tool (func_create_testdir): When building the tests
18773         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18774         Reported by Simon Josefsson.
18775
18776 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18777
18778         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18779
18780 2008-12-06  Bruno Haible  <bruno@clisp.org>
18781
18782         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18783         Suggested by Eric Blake.
18784
18785 2008-12-06  Bruno Haible  <bruno@clisp.org>
18786
18787         Fix a c-stack test failure on MacOS X.
18788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18789         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18790         handler for SIGBUS as well.
18791         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18792         install a signal handler for SIGBUS as well.
18793         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18794
18795 2008-12-06  Bruno Haible  <bruno@clisp.org>
18796
18797         Advocacy documentation.
18798         * doc/gnulib-intro.texi (Benefits): New section.
18799         * doc/gnulib.texi: Update.
18800
18801 2008-12-06  Bruno Haible  <bruno@clisp.org>
18802
18803         Document the 'manywarnings' module.
18804         * doc/manywarnings.texi: New file.
18805         * doc/gnulib.texi: Include it.
18806
18807 2008-12-05  Eric Blake  <ebb9@byu.net>
18808
18809         tests: silence some gcc warnings
18810         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18811         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18812         type mismatches.
18813
18814 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18815             Bruno Haible  <bruno@clisp.org>
18816
18817         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18818
18819 2008-11-29  Jim Meyering  <meyering@redhat.com>
18820
18821         unicodeio.c: mark unused parameters
18822         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18823         (fallback_failure_callback): Likewise.
18824
18825         fts: fix a thinko
18826         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18827         (set_stat_type): Return S_IF*-valued "type" directly.
18828         Prompted by James Youngman's spotting a related bug.
18829         Confirmed by further testing through find.
18830
18831         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18832         * lib/fts.c (D_TYPE): Define.
18833         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18834         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18835         (s_ifmt_shift_bits): New function.
18836         (set_stat_type): New function.
18837         (fts_build): When not calling fts_stat, call set_stat_type
18838         to propagate dirent.d_type info to fts_read caller.
18839         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18840         fts_statp->st_mode type information may be valid.
18841
18842 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18843
18844         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18845         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18846         <sds@gnu.org>.
18847
18848 2008-11-20  Bruno Haible  <bruno@clisp.org>
18849
18850         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18851         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18852         INCLUDE_NEXT.
18853         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18854         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18855         * modules/math (Makefile.am): Substitute
18856         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18857         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18858
18859 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18860             Bruno Haible  <bruno@clisp.org>
18861
18862         * lib/stdint.in.h: Define all type macros so that their expansion is
18863         a single typedef'ed token. Fixes a compilation failure in Boost which
18864         does "using ::int8_t;".
18865
18866 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18867
18868         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18869         gl_MANYWARN_ALL_GCC.
18870         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18871         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18872         * modules/manywarnings: New file.
18873         * MODULES.html.sh: Mention manywarnings module.
18874
18875 2008-11-18  Bruno Haible  <bruno@clisp.org>
18876
18877         * doc/gnulib-tool.texi (Unit tests): New section.
18878
18879 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18880
18881         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18882         paths like 'lib/po/foo.po'.
18883
18884 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18885
18886         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18887         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18888
18889 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18890
18891         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18892         parameter works.
18893
18894 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18895
18896         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18897
18898 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18899
18900         * modules/parse-duration-tests: New file.
18901         * tests/test-parse-duration.sh: New file.
18902         * tests/test-parse-duration.c: New file.
18903
18904         New module 'parse-duration'.
18905         * lib/parse-duration.h: New file.
18906         * lib/parse-duration.c: New file.
18907         * modules/parse-duration: New file.
18908
18909 2008-11-17  Bruno Haible  <bruno@clisp.org>
18910
18911         * tests/test-select-out.sh: Comment out the first pipe test.
18912         Reported by Simon Josefsson.
18913
18914 2008-11-17  Bruno Haible  <bruno@clisp.org>
18915
18916         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18917         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18918         gl_HOSTENT.
18919
18920 2008-11-17  Bruno Haible  <bruno@clisp.org>
18921
18922         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18923         -lnetwork and -lnet. Needed for Haiku and BeOS.
18924
18925 2008-11-16  Bruno Haible  <bruno@clisp.org>
18926
18927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18928
18929 2008-11-16  Bruno Haible  <bruno@clisp.org>
18930
18931         Avoid test failure on Haiku.
18932         * tests/test-fsync.c: Include <errno.h>.
18933         (main): Don't require that fsync (0) fails.
18934
18935 2008-11-15  Bruno Haible  <bruno@clisp.org>
18936
18937         New module 'hostent'.
18938         * modules/hostent: New file.
18939         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18940
18941 2008-11-15  Bruno Haible  <bruno@clisp.org>
18942
18943         New module 'servent'.
18944         * modules/servent: New file.
18945         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18946
18947 2008-11-15  Bruno Haible  <bruno@clisp.org>
18948
18949         Avoid generating same test program with two different rules.
18950         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18951         test-frexp to test-frexp-nolibm.
18952         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18953         test-frexpl to test-frexpl-nolibm.
18954
18955 2008-11-15  Bruno Haible  <bruno@clisp.org>
18956
18957         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18958         $(FREXPL_LIBM).
18959
18960 2008-11-15  Bruno Haible  <bruno@clisp.org>
18961
18962         * lib/netdb.in.h: Activate the definitions also when the system's
18963         <netdb.h> has 'struct addrinfo'.
18964         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18965         EAI_OVERFLOW or AI_NUMERICSERV.
18966         * doc/posix-headers/netdb.texi: Document the problem.
18967
18968 2008-11-15  Bruno Haible  <bruno@clisp.org>
18969
18970         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18971
18972         Make the 'sched' module work on platforms where <sched.h> exists but
18973         is incomplete (such as Haiku).
18974         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18975         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18976         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18977         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18978         HAVE_STRUCT_SCHED_PARAM.
18979         * modules/sched (Depends-on): Add include_next.
18980         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18981         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18982         * doc/posix-headers/sched.texi: Document the issue.
18983
18984 2008-11-13  Jim Meyering  <meyering@redhat.com>
18985
18986         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18987         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18988         test would fail due to the difference in the Report bugs to ...
18989         line.  The expected address is empty, "<>", while the actual
18990         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18991
18992 2008-11-12  Bruno Haible  <bruno@clisp.org>
18993
18994         lstat: don't compile lstat.c on systems lacking lstat
18995         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18996         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18997         Reported by Daniel P. Berrange via Jim Meyering.
18998
18999 2008-11-12  Jim Meyering  <meyering@redhat.com>
19000
19001         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19002
19003 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19004
19005         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19006         instead.
19007
19008 2008-11-12  Bruno Haible  <bruno@clisp.org>
19009
19010         * lib/unicodeio.c: Include unistr.h.
19011         (utf8_wctomb): Remove function.
19012         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19013
19014 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19015
19016         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19017         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19018         <bruno@clisp.org>.
19019         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19020
19021 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19022
19023         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19024         * doc/gnulib.texi: Add section for warnings.
19025
19026 2008-11-11  Bruno Haible  <bruno@clisp.org>
19027
19028         * lib/sockets.h: Add a comment.
19029
19030 2008-11-11  Karl Berry  <karl@gnu.org>
19031
19032         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19033
19034 2008-11-11  Eric Blake  <ebb9@byu.net>
19035
19036         fdl.texi: avoid git symlinks
19037         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19038
19039 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19040
19041         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19042
19043 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19044
19045         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19046         (gl_WARN_ADD): Substitute $2 if literal.
19047
19048 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19049
19050         * m4/warning.m4: Remove.
19051
19052 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19053
19054         * m4/warnings.m4: Almost complete rewrite. :-)
19055
19056 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19057
19058         * modules/warnings: New module.
19059         * m4/warnings.m4: New file.
19060         * MODULES.html.sh: Mention warnings module.
19061         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19062         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19063
19064 2008-11-10  Eric Blake  <ebb9@byu.net>
19065
19066         fdl.texi: make a symlink to the latest version
19067         * doc/standards.texi: Revert today's earlier change.
19068         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19069         * doc/fdl.texi: ...and replace this with a symlink to the newer
19070         fdl-1.3.texi.
19071
19072 2008-11-10  Bruno Haible  <bruno@clisp.org>
19073
19074         * tests/test-select-fd.c (main): Accept the result file name as fourth
19075         argument.
19076         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19077         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19078
19079 2008-11-10  Bruno Haible  <bruno@clisp.org>
19080
19081         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19082         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19083         as autoconf-substituted macros.
19084         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19085         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19086         gl_NETDB_H_DEFAULTS. Set these variables.
19087         * modules/netdb (Makefile.am): Substitute these variables.
19088
19089 2008-11-10  Eric Blake  <ebb9@byu.net>
19090
19091         standards.texi: include correct file for FDL 1.3
19092         * doc/standards.texi (GNU Free Documentation License): Change
19093         include file to pull in FDL 1.3, not 1.2.
19094
19095         fdl.texi: revert accidental change to license
19096         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19097
19098 2008-11-10  Bruno Haible  <bruno@clisp.org>
19099
19100         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19101         cross-compiling guesses also when the native compile gives no result.
19102
19103 2008-11-10  Bruno Haible  <bruno@clisp.org>
19104
19105         * lib/spawni.c (__spawni): Force variable into the stack.
19106
19107 2008-11-10  Bruno Haible  <bruno@clisp.org>
19108
19109         Add support for Haiku.
19110         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19111         glibc and BeOS, but also on Haiku.
19112         * lib/fpurge.c (fpurge): Likewise.
19113         * lib/freadable.c (freadable): Likewise.
19114         * lib/freadahead.c (freadahead): Likewise.
19115         * lib/freading.c (freading): Likewise.
19116         * lib/freadptr.c (freadptr): Likewise.
19117         * lib/freadseek.c (freadptrinc): Likewise.
19118         * lib/fseeko.c (rpl_fseeko): Likewise.
19119         * lib/fseterr.c (fseterr): Likewise.
19120         * lib/fwritable.c (fwritable): Likewise.
19121         * lib/fwriting.c (fwriting): Likewise.
19122         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19123
19124 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19125
19126         * lib/config.charset: Treat Haiku like BeOS.
19127
19128 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19129
19130         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19131         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19132
19133 2008-11-08  Bruno Haible  <bruno@clisp.org>
19134
19135         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19136         AC_CACHE_CHECK.
19137
19138 2008-11-08  Bruno Haible  <bruno@clisp.org>
19139
19140         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19141
19142 2008-11-08  Bruno Haible  <bruno@clisp.org>
19143
19144         * tests/test-select-fd.c: New file.
19145         * tests/test-select-in.sh: New file.
19146         * tests/test-select-out.sh: New file.
19147         * tests/test-select-stdin.c: New file.
19148         * modules/select-tests (Files): Add the new files.
19149         (Depends-on): Add gettimeofday.
19150         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19151         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19152         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19153
19154 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19155             Bruno Haible  <bruno@clisp.org>
19156
19157         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19158
19159 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19160
19161         * build-aux/pmccabe2html: Added support for C++ source files.
19162
19163 2008-11-05  Ben Pfaff  <blp@gnu.org>
19164
19165         Fix lib/close.c build on Windows.
19166         * modules/close (Files): Add lib/w32sock.h.
19167
19168 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19169
19170         Accept Bison's NEWS format.
19171         * build-aux/announce-gen (print_news_deltas): Tweak
19172         $re_prefix.
19173
19174 2008-11-04  Bruno Haible  <bruno@clisp.org>
19175
19176         * modules/random_r (Maintainer): Add glibc.
19177
19178 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19179
19180         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19181         by karl@freefriends.org (Karl Berry).
19182         * doc/alloca.texi: Likewise.
19183         * doc/c-ctype.texi: Likewise.
19184         * doc/c-strcase.texi: Likewise.
19185         * doc/c-strcaseeq.texi: Likewise.
19186         * doc/c-strcasestr.texi: Likewise.
19187         * doc/c-strstr.texi: Likewise.
19188         * doc/c-strtod.texi: Likewise.
19189         * doc/c-strtold.texi: Likewise.
19190         * doc/ctime.texi: Likewise.
19191         * doc/error.texi: Likewise.
19192         * doc/fdl.texi: Likewise.
19193         * doc/gcd.texi: Likewise.
19194         * doc/getdate.texi: Likewise.
19195         * doc/gnulib-intro.texi: Likewise.
19196         * doc/gnulib-tool.texi: Likewise.
19197         * doc/gnulib.texi: Likewise.
19198         * doc/inet_ntoa.texi: Likewise.
19199         * doc/maintain.texi: Likewise.
19200         * doc/make-stds.texi: Likewise.
19201         * doc/quote.texi: Likewise.
19202         * doc/regexprops-generic.texi: Likewise.
19203         * doc/standards.texi: Likewise.
19204         * doc/verify.texi: Likewise.
19205         * doc/visibility.texi: Likewise.
19206         * doc/gnulib.texi (GNU Free Documentation License): Include
19207         fdl-1.3.texi instead of fdl.texi.
19208
19209 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19210
19211         * doc/fdl-1.3.texi: New file, from
19212         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19213         * modules/fdl-1.3: Add.
19214         * MODULES.html.sh: Add fdl-1.3.
19215
19216 2008-11-03  Bruno Haible  <bruno@clisp.org>
19217
19218         Make determination of absolute name of header file work with AIX xlc.
19219         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19220         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19221         preprocessing.
19222         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19223         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19224
19225 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19226
19227         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19228         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19229         <ludo@gnu.org>.
19230
19231 2008-11-02  Bruno Haible  <bruno@clisp.org>
19232
19233         Mark 'strpbrk' obsolete.
19234         * modules/strpbrk (Status, Notice): New sections.
19235         * modules/strtok_r (Depends-on): Add strpbrk.
19236
19237 2008-11-02  Bruno Haible  <bruno@clisp.org>
19238
19239         Mark 'strdup' obsolete.
19240         * modules/strdup (Status, Notice): New sections.
19241         * modules/findprog (Depends-on): Add strdup.
19242         * modules/getaddrinfo (Depends-on): Likewise.
19243         * modules/localename (Depends-on): Likewise.
19244         * modules/relocatable-lib (Depends-on): Likewise.
19245         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19246         * modules/relocatable-prog (Depends-on): Likewise.
19247         * modules/trim (Depends-on): Likewise.
19248         * modules/unictype/gen-ctype (Depends-on): Likewise.
19249         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19250
19251 2008-11-02  Bruno Haible  <bruno@clisp.org>
19252
19253         Mark 'strcspn' obsolete.
19254         * modules/strcspn (Status, Notice): New sections.
19255
19256 2008-11-02  Bruno Haible  <bruno@clisp.org>
19257
19258         Mark 'rmdir' obsolete.
19259         * modules/rmdir (Status, Notice): New sections.
19260         * modules/clean-temp (Depends-on): Add rmdir.
19261         * modules/openat (Depends-on): Likewise.
19262
19263 2008-11-02  Bruno Haible  <bruno@clisp.org>
19264
19265         Mark 'raise' obsolete.
19266         * modules/raise (Status, Notice): New sections.
19267         (Include): Specify <signal.h>.
19268         * modules/stdio (Depends-on): Add raise.
19269         * modules/write (Depends-on): Likewise.
19270
19271 2008-11-02  Bruno Haible  <bruno@clisp.org>
19272
19273         Mark 'memset' obsolete.
19274         * modules/memset (Status, Notice): New sections.
19275
19276 2008-11-02  Bruno Haible  <bruno@clisp.org>
19277
19278         Mark 'memmove' obsolete.
19279         * modules/memmove (Status, Notice): New sections.
19280         * modules/argp (Depends-on): Add memmove.
19281         * modules/argz (Depends-on): Likewise.
19282         * modules/canonicalize (Depends-on): Likewise.
19283         * modules/canonicalize-lgpl (Depends-on): Likewise.
19284         * modules/fts (Depends-on): Likewise.
19285         * modules/getcwd (Depends-on): Likewise.
19286         * modules/human (Depends-on): Likewise.
19287         * modules/regex (Depends-on): Likewise.
19288         * modules/striconveh (Depends-on): Likewise.
19289         * modules/trim (Depends-on): Likewise.
19290         * modules/unistr/u8-move (Depends-on): Likewise.
19291         * modules/unistr/u16-move (Depends-on): Likewise.
19292         * modules/unistr/u32-move (Depends-on): Likewise.
19293
19294 2008-11-02  Bruno Haible  <bruno@clisp.org>
19295
19296         Mark 'memcpy' obsolete.
19297         * modules/memcpy (Status, Notice): New sections.
19298
19299 2008-11-02  Bruno Haible  <bruno@clisp.org>
19300
19301         Mark 'memcmp' obsolete.
19302         * modules/memcmp (Status, Notice): New sections.
19303         * modules/argmatch (Depends-on): Add memchr.
19304         * modules/backupfile (Depends-on): Likewise.
19305         * modules/c-strcasestr (Depends-on): Likewise.
19306         * modules/crypto/des (Depends-on): Likewise.
19307         * modules/csharpcomp (Depends-on): Likewise.
19308         * modules/fnmatch (Depends-on): Likewise.
19309         * modules/git-merge-changelog (Depends-on): Likewise.
19310         * modules/isnand (Depends-on): Likewise.
19311         * modules/isnand-nolibm (Depends-on): Likewise.
19312         * modules/isnanf (Depends-on): Likewise.
19313         * modules/isnanf-nolibm (Depends-on): Likewise.
19314         * modules/isnanl (Depends-on): Likewise.
19315         * modules/isnanl-nolibm (Depends-on): Likewise.
19316         * modules/mbchar (Depends-on): Likewise.
19317         * modules/memcoll (Depends-on): Likewise.
19318         * modules/quotearg (Depends-on): Likewise.
19319         * modules/regex (Depends-on): Likewise.
19320         * modules/relocatable-prog (Depends-on): Likewise.
19321         * modules/same (Depends-on): Likewise.
19322         * modules/signbit (Depends-on): Likewise.
19323         * modules/strcasestr-simple (Depends-on): Likewise.
19324         * modules/unictype/gen-ctype (Depends-on): Likewise.
19325         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19326         * modules/uniname/uniname (Depends-on): Likewise.
19327         * modules/unistr/u8-cmp (Depends-on): Likewise.
19328
19329 2008-11-02  Bruno Haible  <bruno@clisp.org>
19330
19331         Mark 'memchr' obsolete.
19332         * modules/memchr (Status, Notice): New sections.
19333         * modules/argp (Depends-on): Add memchr.
19334         * modules/base64 (Depends-on): Likewise.
19335         * modules/c-strcasestr (Depends-on): Likewise.
19336         * modules/chdir-long (Depends-on): Likewise.
19337         * modules/fnmatch (Depends-on): Likewise.
19338         * modules/getsubopt (Depends-on): Likewise.
19339         * modules/git-merge-changelog (Depends-on): Likewise.
19340         * modules/glob (Depends-on): Likewise.
19341         * modules/strcasestr-simple (Depends-on): Likewise.
19342         * modules/strnlen (Depends-on): Likewise.
19343
19344 2008-11-02  Bruno Haible  <bruno@clisp.org>
19345
19346         Mark 'atexit' obsolete.
19347         * modules/atexit (Status, Notice): New sections.
19348         * modules/chdir-long (Depends-on): Add atexit.
19349         * modules/wait-process (Depends-on): Likewise.
19350
19351 2008-11-02  Bruno Haible  <bruno@clisp.org>
19352
19353         * gnulib-tool: New option --with-obsolete.
19354         (func_usage): Document it.
19355         (func_modules_transitive_closure): Drop obsolete dependencies if
19356         incobsolete is not true.
19357         (func_import): Read and save the incobsolete variable to the cache.
19358
19359 2008-11-02  Bruno Haible  <bruno@clisp.org>
19360
19361         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19362         * gnulib-tool: New option --extract-status.
19363         (func_usage): Document it.
19364         (sed_extract_prog): Recognize it.
19365         (func_get_status): New function.
19366
19367 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19368
19369         * modules/sockets (License): Change from LGPL to LGPLv2+.
19370
19371 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19372
19373         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19374
19375 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19376
19377         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19378         Mention times and sys_times.
19379         * modules/sys_times, modules/sys_times-tests: New modules.
19380         * modules/times, modules/times-tests: Likewise
19381         * m4/sys_times_h.m4: New file.
19382         * lib/sys_times.in.h: Likewise
19383         * lib/times.c: Likewise.
19384         * tests/test-sys_times.c: Likewise.
19385         * tests/test-times.c: Likewise.
19386         * doc/posix-headers/sys_times.texi: Update.
19387         * doc/posix-functions/times.texi: Update.
19388
19389 2008-10-28  Jim Meyering  <meyering@redhat.com>
19390
19391         * modules/tempname (Depends-on): Add lstat.
19392
19393         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19394
19395 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19396
19397         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19398         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19399         using idiom used elsewhere in gnulib.
19400
19401 2008-10-27  Jim Meyering  <meyering@redhat.com>
19402
19403         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19404
19405 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19406
19407         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19408         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19409         programs.
19410         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19411
19412 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19413
19414         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19415
19416 2008-10-27  Bruno Haible  <bruno@clisp.org>
19417
19418         * tests/test-lstat.c: Include <stdio.h>.
19419
19420 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19421
19422         * modules/lstat-tests: New module.
19423         * tests/test-lstat.c: New file.
19424
19425 2008-10-26  Jim Meyering  <meyering@redhat.com>
19426
19427         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19428
19429 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19430             Bruno Haible  <bruno@clisp.org>
19431
19432         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19433         * modules/configmake (Include): Add a note that the include must come
19434         after all system headers.
19435         * lib/javaversion.c: Include configmake.h after all other includes.
19436
19437 2008-10-26  Bruno Haible  <bruno@clisp.org>
19438
19439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19440         HAVE_STRUCT_RANDOM_DATA to 1.
19441         (gl_STDLIB_H): Simplify.
19442
19443 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19444
19445         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19446         substitute HAVE_STRUCT_RANDOM_DATA.
19447         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19448         random_data.
19449         * modules/stdlib (Makefile.am): Substitute
19450         HAVE_STRUCT_RANDOM_DATA.
19451
19452 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19453
19454         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19455         * doc/gnulib-intro.texi (Copyright): Likewise.
19456
19457 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19458
19459         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19460         findings.
19461
19462 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19463             Bruno Haible  <bruno@clisp.org>
19464
19465         * lib/unistd.in.h: Include <winsock2.h>.
19466         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19467         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19468         Provide dummy declarations.
19469         (gethostname): Override.
19470         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19471         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19472         gl_PREREQ_SYS_H_WINSOCK2.
19473         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19474         * doc/posix-functions/gethostname.texi: More details.
19475
19476 2008-10-25  Bruno Haible  <bruno@clisp.org>
19477
19478         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19479         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19480         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19481
19482         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19483         here ...
19484         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19485         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19486         gl_UNISTD_H_DEFAULTS.
19487
19488 2008-10-25  Eric Blake  <ebb9@byu.net>
19489
19490         signbit: avoid spurious compiler failure
19491         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19492         declarations inside function.
19493
19494 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19495             Bruno Haible  <bruno@clisp.org>
19496
19497         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19498         * modules/random_r (Depends-on): Add stdint.
19499
19500 2008-10-24  Bruno Haible  <bruno@clisp.org>
19501
19502         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19503         Eggert.
19504         * modules/strerror (License): Likewise.
19505
19506 2008-10-24  Jim Meyering  <meyering@redhat.com>
19507
19508         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19509         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19510
19511 2008-10-24  Eric Blake  <ebb9@byu.net>
19512
19513         getgroups: fix compilation when getgroups is available
19514         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19515         but with <config.h> override of getgroups disabled.
19516
19517 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19518
19519         * doc/gnulib.texi (Header files): Add note about C++ problems.
19520         Explained by Bruno Haible <bruno@clisp.org>.
19521
19522 2008-10-23  Bruno Haible  <bruno@clisp.org>
19523
19524         Define a dummy SA_NODEFER macro on Interix.
19525         * lib/signal.in.h (SA_NODEFER): Define fallback.
19526         Reported by Aleksey Cheusov <cheusov@tut.by> via
19527         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19528
19529 2008-10-23  Bruno Haible  <bruno@clisp.org>
19530
19531         * modules/freadahead (License): Change to LGPLv2+.
19532         Suggested by Simon Josefsson.
19533
19534 2008-10-23  Jim Meyering  <meyering@redhat.com>
19535
19536         random_r: new module
19537         * modules/random_r: New file.
19538         * m4/random_r.m4: New file.
19539         * lib/random_r.c: New file, from glibc.
19540         * modules/random_r-tests: New file.
19541         * tests/test-random_r.c: New file.
19542         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19543          Declare.
19544         (RAND_MAX): Define.
19545         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19546         * modules/stdlib: Substitute them, too.
19547         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19548         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19549         * doc/glibc-functions/random_r.texi: Likewise.
19550         * doc/glibc-functions/setstate_r.texi: Likewise.
19551         * doc/glibc-functions/srandom_r.texi: Likewise.
19552         * config/srclist.txt: Mention it.
19553
19554 2008-10-23  David Lutterkort  <lutter@redhat.com>
19555
19556         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19557         link requirement
19558
19559 2008-10-23  Jim Meyering  <meyering@redhat.com>
19560
19561         selinux-h: mark parameters of stub functions as intentionally unused
19562         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19563         * lib/se-context.in.h: Likewise.
19564
19565 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19566
19567         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19568
19569 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19570
19571         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19572
19573 2008-10-22  Eric Blake  <ebb9@byu.net>
19574
19575         glthread/thread: avoid compiler warning
19576         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19577         Add unreachable abort to silence compiler.
19578
19579 2008-10-22  Eric Blake  <ebb9@byu.net>
19580
19581         netdb: also supply struct addrinfo for cygwin 1.5.x
19582         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19583         older cygwin.
19584         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19585         cygwin.
19586         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19587
19588 2008-10-22  Bruno Haible  <bruno@clisp.org>
19589
19590         * users.txt: Update entry about pspp.
19591
19592 2008-10-21  Bruno Haible  <bruno@clisp.org>
19593
19594         Simplification.
19595         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19596         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19597
19598         Simplification.
19599         * lib/ioctl.c (ioctl): Don't undefine.
19600         * lib/socket.c (socket): Don't undefine.
19601
19602         Remove unused module indicator macros.
19603         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19604         GNULIB_$1 as a C macro.
19605
19606         * doc/posix-functions/close.texi: Undo last change.
19607         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19608         Windows platforms.
19609
19610 2008-10-21  Bruno Haible  <bruno@clisp.org>
19611
19612         Add gethostname() declaration to <unistd.h>.
19613         * lib/unistd.in.h (gethostname): New declaration.
19614         * lib/gethostname.c: Include <unistd.h>.
19615         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19616         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19618         and HAVE_GETHOSTNAME.
19619         * modules/gethostname (Depends-on): Add unistd.
19620         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19621         (Include): Specify <unistd.h>.
19622         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19623         HAVE_GETHOSTNAME.
19624         * tests/test-gethostname.c: Include <unistd.h> first.
19625
19626 2008-10-21  Bruno Haible  <bruno@clisp.org>
19627
19628         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19629         * modules/select-tests (Depends-on): Likewise.
19630         Reported by Simon Josefsson.
19631
19632 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19633
19634         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19635         * lib/accept.c: New file, based on winsock.c.
19636         * lib/bind.c: New file, based on winsock.c.
19637         * lib/connect.c: New file, based on winsock.c.
19638         * lib/getpeername.c: New file, based on winsock.c.
19639         * lib/getsockname.c: New file, based on winsock.c.
19640         * lib/getsockopt.c: New file, based on winsock.c.
19641         * lib/ioctl.c: New file, based on winsock.c.
19642         * lib/listen.c: New file, based on winsock.c.
19643         * lib/recv.c: New file, based on winsock.c.
19644         * lib/recvfrom.c: New file, based on winsock.c.
19645         * lib/send.c: New file, based on winsock.c.
19646         * lib/sendto.c: New file, based on winsock.c.
19647         * lib/setsockopt.c: New file, based on winsock.c.
19648         * lib/shutdown.c: New file, based on winsock.c.
19649         * lib/socket.c: New file, based on winsock.c.
19650         * lib/w32sock.h: New file, based on winsock.c.
19651         * lib/winsock.c: Remove file.
19652         * modules/accept: Likewise.
19653         * modules/bind: Likewise.
19654         * modules/connect: Likewise.
19655         * modules/getpeername: Likewise.
19656         * modules/getsockname: Likewise.
19657         * modules/getsockopt: Likewise.
19658         * modules/ioctl: Likewise.
19659         * modules/listen: Likewise.
19660         * modules/recv: Likewise.
19661         * modules/recvfrom: Likewise.
19662         * modules/send: Likewise.
19663         * modules/sendto: Likewise.
19664         * modules/setsockopt: Likewise.
19665         * modules/shutdown: Likewise.
19666         * modules/socket: Use socket.c instead of winsock.c.
19667         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19668         * doc/posix-functions/accept.texi: Doc fix.
19669         * doc/posix-functions/bind.texi: Doc fix.
19670         * doc/posix-functions/close.texi: Doc fix.
19671         * doc/posix-functions/connect.texi: Doc fix.
19672         * doc/posix-functions/getpeername.texi: Doc fix.
19673         * doc/posix-functions/getsockname.texi: Doc fix.
19674         * doc/posix-functions/getsockopt.texi: Doc fix.
19675         * doc/posix-functions/ioctl.texi: Doc fix.
19676         * doc/posix-functions/listen.texi: Doc fix.
19677         * doc/posix-functions/recv.texi: Doc fix.
19678         * doc/posix-functions/recvfrom.texi: Doc fix.
19679         * doc/posix-functions/send.texi: Doc fix.
19680         * doc/posix-functions/sendto.texi: Doc fix.
19681         * doc/posix-functions/setsockopt.texi: Doc fix.
19682         * doc/posix-functions/shutdown.texi: Doc fix.
19683         * doc/posix-functions/socket.texi: Doc fix.
19684
19685 2008-10-20  Bruno Haible  <bruno@clisp.org>
19686
19687         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19688         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19689         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19690         as an alias for SIGABRT.
19691         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19692         (sigaction): Map it to SIGABRT.
19693         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19694
19695 2008-10-20  Bruno Haible  <bruno@clisp.org>
19696
19697         * lib/fts.c: Don't include lstat.h.
19698         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19699
19700         Move the lstat() declaration to <sys/stat.h>.
19701         * lib/lstat.h: Remove file.
19702         * lib/sys_stat.in.h: Add special invocation convention.
19703         (lstat): New declaration.
19704         * lib/lstat.c (orig_lstat): New function.
19705         (rpl_lstat): Use orig_lstat instead of lstat.
19706         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19707         AC_C_INLINE. Set REPLACE_LSTAT.
19708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19709         and REPLACE_LSTAT.
19710         * modules/lstat (Files): Remove lib/lstat.h.
19711         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19712         (Include): Specify <sys/stat.h> instead of lstat.h.
19713         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19714         REPLACE_LSTAT.
19715         * NEWS: Mention the change.
19716
19717 2008-10-20  Bruno Haible  <bruno@clisp.org>
19718
19719         * modules/posix_spawn-tests: New file.
19720         * tests/test-posix_spawn3.c: New file.
19721
19722 2008-10-20  Bruno Haible  <bruno@clisp.org>
19723
19724         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19725         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19726         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19727         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19728         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19729
19730 2008-10-20  Bruno Haible  <bruno@clisp.org>
19731
19732         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19733         of posix_spawn on AIX 5.3.
19734
19735 2008-10-20  Bruno Haible  <bruno@clisp.org>
19736
19737         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19738
19739 2008-10-20  Bruno Haible  <bruno@clisp.org>
19740
19741         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19742         of AC_LANG_PROGRAM.
19743
19744 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19745
19746         * lib/netdb.in.h: Don't define GNU specific constants until they
19747         are supported or needed.  Reported by Bruno Haible
19748         <bruno@clisp.org>.
19749
19750 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19751
19752         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19753
19754 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19755
19756         * lib/getaddrinfo.h: Remove file.
19757         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19758         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19759         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19760         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19761         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19762         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19763         * tests/test-getaddrinfo.c: Likewise.
19764         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19765         * NEWS: Mention change.
19766
19767 2008-10-19  Bruno Haible  <bruno@clisp.org>
19768
19769         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19770
19771 2008-10-19  Bruno Haible  <bruno@clisp.org>
19772
19773         * lib/wait-process.c: Include simply <sys/wait.h>.
19774         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19775         WIFSTOPPED): Remove fallback definitions.
19776         * modules/wait-process (Depends-on): Add sys_wait.
19777
19778         New module 'sys_wait'.
19779         * modules/sys_wait: New file.
19780         * lib/sys_wait.in.h: New file, partially copied from
19781         lib/wait-process.c.
19782         * m4/sys_wait_h.m4: New file.
19783         * doc/posix-headers/sys_wait.texi: Mention the new module.
19784
19785 2008-10-19  Bruno Haible  <bruno@clisp.org>
19786
19787         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19788
19789 2008-10-19  Bruno Haible  <bruno@clisp.org>
19790
19791         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19792         * lib/wait-process.c (WAIT_T): Remove type.
19793         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19794         (wait_subprocess): Update.
19795
19796 2008-10-19  Bruno Haible  <bruno@clisp.org>
19797
19798         New module 'atoll'.
19799         * modules/atoll: New file.
19800         * lib/stdlib.in.h (atoll): New declaration.
19801         * lib/atoll.c: New file, from glibc with modifications.
19802         * m4/atoll.m4: New file.
19803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19804         HAVE_ATOLL.
19805         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19806         * doc/posix-functions/atoll.texi: Mention the new module.
19807
19808 2008-10-19  Bruno Haible  <bruno@clisp.org>
19809
19810         Add strtoull() declaration to <stdlib.h>.
19811         * lib/stdlib.in.h (strtoull): New declaration.
19812         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19813         Set HAVE_STRTOULL.
19814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19815         HAVE_STRTOULL.
19816         * modules/strtoull (Depends-on): Add stdlib.
19817         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19818         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19819         HAVE_STRTOULL.
19820
19821 2008-10-19  Bruno Haible  <bruno@clisp.org>
19822
19823         Add strtoll() declaration to <stdlib.h>.
19824         * lib/stdlib.in.h (strtoll): New declaration.
19825         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19826         Set HAVE_STRTOLL.
19827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19828         HAVE_STRTOLL.
19829         * modules/strtoll (Depends-on): Add stdlib.
19830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19831         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19832
19833 2008-10-19  Bruno Haible  <bruno@clisp.org>
19834
19835         * modules/bcopy (Depends-on): Add strings.
19836         (Include): Specify <strings.h>.
19837
19838 2008-10-19  Bruno Haible  <bruno@clisp.org>
19839
19840         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19841
19842 2008-10-19  Bruno Haible  <bruno@clisp.org>
19843
19844         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19845         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19846         mingw.
19847
19848 2008-10-19  Bruno Haible  <bruno@clisp.org>
19849
19850         * lib/atanl.c: Don't include isnanl.h.
19851         * lib/cosl.c: Likewise.
19852         * lib/ldexpl.c: Likewise.
19853         * lib/logl.c: Likewise.
19854         * lib/sinl.c: Likewise.
19855         * lib/sqrtl.c: Likewise.
19856         * lib/tanl.c: Likewise.
19857
19858         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19859         * lib/isnanf.h: Remove file.
19860         * lib/isnand.h: Remove file.
19861         * lib/isnanl.h: Remove file.
19862         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19863         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19864         macros.
19865         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19866         HAVE_ISNANF, don't define it as a C macro.
19867         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19868         HAVE_ISNAND, don't define it as a C macro.
19869         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19870         HAVE_ISNANL, don't define it as a C macro.
19871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19872         HAVE_ISNAN[FDL].
19873         * modules/isnanf (Files): Remove lib/isnanf.h.
19874         (Depends-on): Add math.
19875         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19876         (Include): Specify <math.h> instead of isnanf.h.
19877         * modules/isnand (Files): Remove lib/isnand.h.
19878         (Depends-on): Add math.
19879         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19880         (Include): Specify <math.h> instead of isnand.h.
19881         * modules/isnanl (Files): Remove lib/isnanl.h.
19882         (Depends-on): Add math.
19883         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19884         (Include): Specify <math.h> instead of isnanl.h.
19885         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19886         HAVE_ISNAN[FDL].
19887         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19888         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19889         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19890         * NEWS: Mention the change.
19891
19892 2008-10-18  Bruno Haible  <bruno@clisp.org>
19893
19894         Add getusershell(), setusershell(), endusershell() declarations to
19895         <unistd.h>.
19896         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19897         declarations.
19898         * lib/getusershell.c: Include unistd.h.
19899         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19900         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19901         HAVE_GETUSERSHELL.
19902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19903         and HAVE_GETUSERSHELL.
19904         * modules/getusershell (Depends-on): Add unistd, extensions.
19905         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19906         (Include): Specify <unistd.h>.
19907         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19908         HAVE_GETUSERSHELL.
19909
19910 2008-10-18  Bruno Haible  <bruno@clisp.org>
19911
19912         Add a getloadavg() declaration to <stdlib.h>.
19913         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19914         getloadavg declaration.
19915         (getloadavg): New declaration.
19916         * lib/getloadavg.c: Include <stdlib.h> first.
19917         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19918         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19919         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19921         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19922         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19923         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19924         (Include): Specify <stdlib.h>.
19925         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19926         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19927
19928 2008-10-18  Bruno Haible  <bruno@clisp.org>
19929
19930         * lib/dirchownmod.c: Don't include lchmod.h.
19931
19932         Move the lchmod() declaration to <sys/stat.h>.
19933         * lib/lchmod.h: Remove file.
19934         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19935         (lchmod): New declaration, moved here from lib/lchown.h.
19936         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19937         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19938         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19939         and HAVE_LCHMOD.
19940         * modules/lchmod (Files): Remove lib/lchmod.h.
19941         (Depends-on): Add sys_stat, extensions.
19942         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19943         (Include): Specify <sys/stat.h> instead of lchmod.h.
19944         * modules/sys_stat (Depends-on): Add link-warning.
19945         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19946         definition of GL_LINK_WARNING.
19947         * NEWS: Mention the change.
19948
19949 2008-10-18  Bruno Haible  <bruno@clisp.org>
19950
19951         * lib/fchdir.c: Don't include dirfd.h.
19952         * lib/fts.c: Likewise.
19953         * lib/getcwd.c: Likewise.
19954         * lib/glob.c: Likewise.
19955
19956         Move the dirfd() declaration to <dirent.h>.
19957         * lib/dirfd.h: Remove file.
19958         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19959         (dirfd): New declaration.
19960         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19961         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19962         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19963         HAVE_DECL_DIRFD.
19964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19965         HAVE_DECL_DIRFD.
19966         * modules/dirfd (Files): Remove lib/dirfd.h.
19967         (Depends-on): Add dirent, extensions.
19968         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19969         (Include): Specify <dirent.h> instead of dirfd.h.
19970         * modules/dirent (Depends-on): Add link-warning.
19971         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19972         definition of GL_LINK_WARNING.
19973         * NEWS: Mention the change.
19974
19975 2008-10-18  Bruno Haible  <bruno@clisp.org>
19976
19977         Move the euidaccess() declaration to <unistd.h>.
19978         * lib/euidaccess.h: Remove file.
19979         * lib/unistd.in.h (euidaccess): New declaration.
19980         * lib/euidaccess.c: Don't include euidaccess.h.
19981         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19982         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19984         and HAVE_EUIDACCESS.
19985         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19986         (Depends-on): Add unistd.
19987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19988         (Include): Specify <unistd.h> instead of euidaccess.h.
19989         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19990         HAVE_EUIDACCESS.
19991         * NEWS: Mention the change.
19992
19993 2008-10-18  Bruno Haible  <bruno@clisp.org>
19994
19995         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19996
19997         Move the getdomainname() declaration to <unistd.h>.
19998         * lib/getdomainname.h: Remove file.
19999         * lib/unistd.in.h (getdomainname): New declaration.
20000         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20001         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20002         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20003         HAVE_GETDOMAINNAME.
20004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20005         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20006         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20007         (Depends-on): Add unistd, extensions.
20008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20009         (Includes): Specify <unistd.h> instead of getdomainname.h.
20010         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20011         HAVE_GETDOMAINNAME.
20012         * NEWS: Mention the change.
20013
20014 2008-10-18  Bruno Haible  <bruno@clisp.org>
20015
20016         * modules/dirent: New file.
20017         * m4/dirent_h.m4: New file.
20018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20019         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20020         * modules/fchdir (Files): Remove lib/dirent.in.h.
20021         (Depends-on): Add dirent.
20022         (Makefile.am): Move rules to modules/dirent.
20023         * doc/posix-headers/dirent.texi: Mention the new module.
20024
20025 2008-10-18  Bruno Haible  <bruno@clisp.org>
20026
20027         Avoid -Wunused-parameter warnings in public gnulib header files.
20028         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20029         macro.
20030         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20031
20032 2008-10-18  Bruno Haible  <bruno@clisp.org>
20033
20034         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20035         * doc/glibc-functions/error.texi: Mention the module 'error'.
20036         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20037         * doc/glibc-functions/getdomainname.texi: Mention the module
20038         'getdomainname'.
20039         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20040         * doc/glibc-functions/getpagesize.texi: Mention the module
20041         'getpagesize'.
20042         * doc/glibc-functions/getusershell.texi: Mention the module
20043         'getusershell'.
20044         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20045         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20046         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20047         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20048         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20049         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20050         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20051         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20052         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20053         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20054         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20055         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20056         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20057         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20058
20059 2008-10-17  Bruno Haible  <bruno@clisp.org>
20060
20061         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20062         HP-UX and IRIX, use -0.0L.
20063         * tests/test-ceill.c (minus_zero): Likewise.
20064         * tests/test-floorl.c (minus_zero): Likewise.
20065         * tests/test-frexpl.c (minus_zero): Likewise.
20066         * tests/test-isnan.c (minus_zerol): Likewise.
20067         * tests/test-isnanl.h (minus_zero): Likewise.
20068         * tests/test-ldexpl.c (minus_zero): Likewise.
20069         * tests/test-roundl.c (minus_zero): Likewise.
20070         * tests/test-signbit.c (minus_zerol): Likewise.
20071         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20072         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20073         * tests/test-truncl.c (minus_zero): Likewise.
20074         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20075         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20076         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20077         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20078
20079 2008-10-17  Bruno Haible  <bruno@clisp.org>
20080
20081         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20082         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20083         that it gets activated only for gcc >= 3.0.
20084         * lib/dirent.in.h: Likewise.
20085         * lib/errno.in.h: Likewise.
20086         * lib/fcntl.in.h: Likewise.
20087         * lib/float.in.h: Likewise.
20088         * lib/iconv.in.h: Likewise.
20089         * lib/inttypes.in.h: Likewise.
20090         * lib/locale.in.h: Likewise.
20091         * lib/math.in.h: Likewise.
20092         * lib/netdb.in.h: Likewise.
20093         * lib/netinet_in.in.h: Likewise.
20094         * lib/search.in.h: Likewise.
20095         * lib/signal.in.h: Likewise.
20096         * lib/spawn.in.h: Likewise.
20097         * lib/stdarg.in.h: Likewise.
20098         * lib/stdint.in.h: Likewise.
20099         * lib/stdio.in.h: Likewise.
20100         * lib/stdlib.in.h: Likewise.
20101         * lib/string.in.h: Likewise.
20102         * lib/strings.in.h: Likewise.
20103         * lib/sys_file.in.h: Likewise.
20104         * lib/sys_ioctl.in.h: Likewise.
20105         * lib/sys_select.in.h: Likewise.
20106         * lib/sys_socket.in.h: Likewise.
20107         * lib/sys_stat.in.h: Likewise.
20108         * lib/sys_time.in.h: Likewise.
20109         * lib/sysexits.in.h: Likewise.
20110         * lib/time.in.h: Likewise.
20111         * lib/unistd.in.h: Likewise.
20112         * lib/wchar.in.h: Likewise.
20113         * lib/wctype.in.h: Likewise.
20114         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20115
20116 2008-10-17  Jim Meyering  <meyering@redhat.com>
20117
20118         ignore-value: don't depend on inline module
20119         * modules/ignore-value (Depends-on): Remove 'inline'.
20120         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20121         Suggestion from Bruno Haible.
20122
20123 2008-10-17  Bruno Haible  <bruno@clisp.org>
20124
20125         New implementation of condition variables for Win32.
20126         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20127         (gl_linked_waitqueue_t): New type.
20128         (gl_cond_t): Use it.
20129         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20130         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20131         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20132         (glthread_cond_init_func, glthread_cond_wait_func,
20133         glthread_cond_timedwait_func, glthread_cond_signal_func,
20134         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20135         Reimplemented on the basis of gl_linked_waitqueue_t.
20136         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20137         gl_waitqueue_t.
20138         (gl_rwlock_t): Update.
20139         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20140
20141 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20142
20143         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20144         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20145
20146 2008-10-17  Jim Meyering  <meyering@redhat.com>
20147
20148         ignore-value: new module
20149         * modules/ignore-value: New file.
20150         * lib/ignore-value.h: New file.
20151         * MODULES.html.sh (Compiler warning management): New section,
20152         just for this module.  More to come.
20153
20154 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20155
20156         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20157         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20158         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20159
20160 2008-10-16  Jim Meyering  <meyering@redhat.com>
20161
20162         openat-die.c: avoid 'no previous prototype' warning
20163         * lib/openat-die.c: Include "openat.h".
20164         Reported by Reuben Thomas <rrt@sc3d.org>.
20165
20166 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20167
20168         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20169         * lib/netdb.in.h: Fix typo.
20170         Reported by Bruno Haible  <bruno@clisp.org>
20171
20172         * lib/netdb.in.h: Include sys/socket.h for platforms without
20173         netdb.h, to get structures like hostent on MinGW.
20174         * modules/netdb (Depends-on): Add sys_socket.
20175
20176 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20177
20178         * modules/netdb, modules/netdb-tests: New file.
20179         * m4/netdb_h.m4: New file.
20180         * lib/netdb.in.h: Add, currently just an empty file pending
20181         definitions.
20182         * tests/test-netdb.c: New file.
20183         * doc/posix-headers/netdb.texi: Mention that we replace it if
20184         needed.
20185         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20186         netdb.
20187
20188 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20189
20190         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20191         with code.
20192
20193 2008-10-13  Bruno Haible  <bruno@clisp.org>
20194
20195         * lib/glthread/cond.c (glthread_cond_wait_func,
20196         glthread_cond_timedwait_func): Add a comment.
20197
20198 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20199
20200         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20201         * tests/test-select.c: Likewise,
20202
20203 2008-10-13  Bruno Haible  <bruno@clisp.org>
20204
20205         * lib/glthread/cond.c (glthread_cond_wait_func,
20206         glthread_cond_timedwait_func): Fix variable name.
20207         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20208
20209 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20210
20211         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20212         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20213         struct sockaddr.sa_len.
20214         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20215
20216 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20217
20218         * build-aux/pmccabe2html: Add css and css_url parameters.
20219
20220 2008-10-12  Bruno Haible  <bruno@clisp.org>
20221
20222         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20223         calling aclx_get.
20224         Reported by Rainer Tammer <tammer@tammer.net>.
20225
20226 2008-10-12  Bruno Haible  <bruno@clisp.org>
20227
20228         Use msvcrt aware primitives for creation/termination of Win32 threads.
20229         * lib/glthread/thread.c: Include <process.h>.
20230         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20231         (wrapper_func): Update signature.
20232         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20233
20234 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20235             Bruno Haible  <bruno@clisp.org>
20236
20237         Provide a Win32 implementation of the 'cond' module.
20238         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20239         * lib/glthread/cond.c (glthread_cond_init_func,
20240         glthread_cond_wait_func, glthread_cond_timedwait_func,
20241         glthread_cond_signal_func, glthread_cond_broadcast_func,
20242         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20243         * modules/cond (Dependencies): Add gettimeofday.
20244
20245 2008-10-11  Bruno Haible  <bruno@clisp.org>
20246
20247         Make sleep work on older versions of mingw.
20248         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20249         only whether it exists.
20250         * doc/posix-functions/sleep.texi: Mention the problem with older
20251         versions of mingw.
20252
20253 2008-10-11  Bruno Haible  <bruno@clisp.org>
20254
20255         New module 'shutdown'.
20256         * modules/shutdown: New file.
20257         * lib/sys_socket.in.h (shutdown): New declaration.
20258         * lib/winsock.c (shutdown): New function.
20259         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20260         GNULIB_SHUTDOWN.
20261         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20262         * doc/posix-functions/shutdown.texi: Document the new module.
20263
20264 2008-10-11  Jim Meyering  <meyering@redhat.com>
20265
20266         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20267
20268 2008-10-11  Bruno Haible  <bruno@clisp.org>
20269
20270         New module 'fclose'.
20271         * modules/fclose: New file.
20272         * lib/stdio.in.h (fclose): New declaration.
20273         * lib/fclose.c: New file.
20274         * m4/fclose.m4: New file.
20275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20276         REPLACE_FCLOSE.
20277         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20278         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20279         REPLACE_FCLOSE.
20280         * modules/close (Depends-on): fclose.
20281         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20282
20283 2008-10-11  Bruno Haible  <bruno@clisp.org>
20284
20285         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20286         set errno and don't call _close.
20287
20288 2008-10-10  Bruno Haible  <bruno@clisp.org>
20289
20290         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20291         ACL, not afterwards. Fixes test failure on Cygwin.
20292
20293 2008-10-09  Ben Pfaff  <blp@gnu.org>
20294
20295         * build-aux/announce-gen: Fix gnulib version related part of usage
20296         message.  Die with a useful error message if no tarballs are
20297         found.
20298
20299 2008-10-10  Jim Meyering  <meyering@redhat.com>
20300
20301         bootstrap: use git's --depth=N option only if it's supported
20302         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20303         recognize the --depth option.  Reported by Pádraig Brady.
20304
20305 2008-10-09  Bruno Haible  <bruno@clisp.org>
20306
20307         New module 'ioctl'.
20308         * modules/ioctl: New file.
20309         * lib/sys_socket.in.h (ioctl): Remove declaration.
20310         * lib/winsock.c: Include <sys/ioctl.h>.
20311         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20312         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20313         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20314         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20315         * doc/posix-functions/ioctl.texi: Mention the new module.
20316
20317 2008-10-09  Bruno Haible  <bruno@clisp.org>
20318
20319         New module 'sys_ioctl'.
20320         * lib/sys_ioctl.in.h: New file.
20321         * m4/sys_ioctl_h.m4: New file.
20322         * modules/sys_ioctl: New file.
20323         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20324
20325 2008-10-09  Bruno Haible  <bruno@clisp.org>
20326
20327         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20328         * lib/winsock.c: Include <stdarg.h>.
20329         (rpl_ioctl): Change to second argument 'int' and then varargs.
20330
20331 2008-10-09  Bruno Haible  <bruno@clisp.org>
20332
20333         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20334         when the sys_socket module is present and the system has <winsock2.h>.
20335
20336 2008-10-09  Bruno Haible  <bruno@clisp.org>
20337
20338         * doc/posix-functions/close.texi: Mention module 'close' instead of
20339         module 'sys_socket'.
20340
20341 2008-10-09  Bruno Haible  <bruno@clisp.org>
20342
20343         * doc/glibc-headers/sys_ioctl.texi: New file.
20344         * doc/gnulib.texi: Include it.
20345
20346 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20347             Bruno Haible  <bruno@clisp.org>
20348
20349         Combine the two replacements of 'close'.
20350         * lib/sys_socket.in.h (close): Define to a reminder to include
20351         <unistd.h>.
20352         (_gl_close_fd_maybe_socket): New declaration.
20353         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20354         * lib/winsock.c (close): Remove undefinition.
20355         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20356         needed for the gnulib module 'close'.
20357         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20358         define to an error symbol or to a warning, if suitable.
20359         * lib/close.c: Include <sys/socket.h>.
20360         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20361         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20362         UNISTD_H_HAVE_WINSOCK2_H.
20363         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20365         UNISTD_H_HAVE_WINSOCK2_H.
20366         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20367         (configure.ac): Set a module indicator.
20368         (Makefile.am): Substitute GNULIB_CLOSE.
20369         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20370         * modules/poll-tests (Depends-on): Add close.
20371         * modules/select-tests (Depends-on): Likewise.
20372
20373 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20374             Bruno Haible  <bruno@clisp.org>
20375
20376         New module 'close'.
20377         * modules/close: New file.
20378         * lib/unistd.in.h (close): Move declaration out of the
20379         FCHDIR_REPLACEMENT scope.
20380         (_gl_unregister_fd): New declaration.
20381         * lib/close.c: New file.
20382         * lib/fchdir.c (rpl_close): Remove function.
20383         * m4/close.m4: New file.
20384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20385         close.
20386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20387         REPLACE_CLOSE.
20388         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20389         REPLACE_CLOSE.
20390         * modules/fchdir (Depends-on): Add close.
20391
20392 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20393             Bruno Haible  <bruno@clisp.org>
20394
20395         * lib/fcntl.in.h (open): Simplify conditionals.
20396         (_gl_register_fd): New declaration.
20397         * lib/fchdir.c (rpl_open): Remove function.
20398         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20399         also.
20400         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20402         open.
20403
20404 2008-10-09  Jim Meyering  <meyering@redhat.com>
20405
20406         GNUmakefile: use the more name-space-friendly "_version"
20407         * top/GNUmakefile (_dummy): Update.
20408         (_version): Rename from "version".
20409
20410 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20411             Bruno Haible  <bruno@clisp.org>
20412
20413         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20414         rpl_close.
20415         (_gl_register_fd): New function, extracted from rpl_open.
20416         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20417         (rpl_open, rpl_opendir): Use _gl_register_fd.
20418
20419 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20420
20421         Fix organization of 'open' replacement.
20422         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20423         (gl_FUNC_OPEN): Use it.
20424         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20425
20426 2008-10-08  Bruno Haible  <bruno@clisp.org>
20427
20428         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20429
20430 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20431
20432         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20433         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20434         listen).
20435
20436 2008-10-08  Eric Blake  <ebb9@byu.net>
20437
20438         GNUmakefile: add 'make version' target
20439         * top/GNUmakefile (_curr-ver): Split version update rules...
20440         (version): ...into a target.
20441
20442 2008-10-07  Bruno Haible  <bruno@clisp.org>
20443
20444         Use a more portable replacement expression for -0.0L.
20445         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20446         instead of -0.0L. Fix m4 quotation.
20447
20448         * tests/test-signbit.c: Include <float.h>.
20449         (minus_zero): New variable.
20450         (test_signbitl): Use minus_zero instead of -zero.
20451         * modules/signbit-tests (Depends-on): Add float.
20452
20453         * tests/test-ceill.c: Include <float.h>.
20454         (zero): Remove variable.
20455         (minus_zero): New variable.
20456         (main): Use minus_zero instead of -zero.
20457         * modules/ceill-tests (Depends-on): Add float.
20458
20459         * tests/test-floorl.c: Include <float.h>.
20460         (zero): Remove variable.
20461         (minus_zero): New variable.
20462         (main): Use minus_zero instead of -zero.
20463         * modules/floorl-tests (Depends-on): Add float.
20464
20465         * tests/test-roundl.c: Include <float.h>.
20466         (zero): Remove variable.
20467         (minus_zero): New variable.
20468         (main): Use minus_zero instead of -zero.
20469         * modules/roundl-tests (Depends-on): Add float.
20470
20471         * tests/test-truncl.c: Include <float.h>.
20472         (zero): Remove variable.
20473         (minus_zero): New variable.
20474         (main): Use minus_zero instead of -zero.
20475         * modules/truncl-tests (Depends-on): Add float.
20476
20477         * tests/test-frexpl.c (zero): Remove variable.
20478         (minus_zero): New variable.
20479         (main): Use minus_zero instead of -zero.
20480         * modules/frexpl-tests (Depends-on): Add float.
20481
20482         * tests/test-isnan.c (zerol): Remove variable.
20483         (minus_zerol): New variable.
20484         (test_long_double): Use minus_zerol instead of -zerol.
20485         * modules/isnan-tests (Depends-on): Add float.
20486
20487         * tests/test-isnanl.h (zero): Remove variable.
20488         (minus_zero): New variable.
20489         (main): Use minus_zero instead of -zero.
20490         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20491         * modules/isnanl-tests (Depends-on): Add float.
20492
20493         * tests/test-ldexpl.c (zero): Remove variable.
20494         (minus_zero): New variable.
20495         (main): Use minus_zero instead of -zero.
20496         * modules/ldexpl-tests (Depends-on): Add float.
20497
20498         * tests/test-snprintf-posix.h (zerol): Remove variable.
20499         (minus_zerol): New variable.
20500         (test_function): Use minus_zerol instead of -zerol.
20501         * modules/snprintf-posix-tests (Depends-on): Add float.
20502         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20503
20504         * tests/test-sprintf-posix.h (zerol): Remove variable.
20505         (minus_zerol): New variable.
20506         (test_function): Use minus_zerol instead of -zerol.
20507         * modules/sprintf-posix-tests (Depends-on): Add float.
20508         * modules/vsprintf-posix-tests (Depends-on): Add float.
20509
20510         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20511         (minus_zerol): New variable.
20512         (test_function): Use minus_zerol instead of -zerol.
20513         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20514
20515         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20516         (minus_zerol): New variable.
20517         (test_function): Use minus_zerol instead of -zerol.
20518         * modules/vasprintf-posix-tests (Depends-on): Add float.
20519
20520 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20521
20522         * MODULES.html.sh (Support for building documentation): Mention
20523         pmccabe2html.  Sort entries.
20524
20525         Add pmccabe2html module, from gnupdf.
20526         * build-aux/pmccabe.css: New file.
20527         * build-aux/pmccabe2html: New file.
20528         * m4/pmccabe2html.m4: New file.
20529         * modules/pmccabe2html: New file.
20530
20531 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20532
20533         flock: new module
20534         * MODULES.html.sh: Add to list of modules.
20535         * lib/flock.c: flock implementation for Windows and Unix systems
20536         which have fcntl.
20537         * doc/glibc-functions/flock.texi: Update documentation.
20538         * lib/sys_file.in.h: <sys/file.h> header file.
20539         * m4/flock.m4: M4 macros.
20540         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20541         * modules/flock: flock module.
20542         * modules/flock-tests: flock tests module.
20543         * modules/sys_file: sys/file.h module.
20544         * tests/test-flock.c: test suite for flock.
20545
20546 2008-10-06  Jim Meyering  <meyering@redhat.com>
20547
20548         bootstrap: check for LT_INIT more portably still ;-)
20549         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20550         Spotted by Bruno Haible.
20551
20552 2008-10-06  Eric Blake  <ebb9@byu.net>
20553
20554         test-signbit: avoid tripping Irix cc bug on -0.0L
20555         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20556         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20557         entire testsuite consistent and avoids an Irix 6.2 bug.
20558
20559 2008-10-05  Bruno Haible  <bruno@clisp.org>
20560             Jim Meyering  <jim@meyering.net>
20561
20562         Add an option for ignoring EPIPE during close_stdout.
20563         * lib/closeout.h: Include <stdbool.h>.
20564         (close_stdout_set_ignore_EPIPE): New declaration.
20565         * lib/closeout.c: Include <stdbool.h>.
20566         (ignore_EPIPE): New variable.
20567         (close_stdout_set_ignore_EPIPE): New function.
20568         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20569         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20570         failure.
20571         * modules/closeout (Depends-on): Add stdbool.
20572
20573 2008-10-05  Bruno Haible  <bruno@clisp.org>
20574
20575         * modules/accept: New file.
20576         * modules/bind: New file.
20577         * modules/connect: New file.
20578         * modules/getpeername: New file.
20579         * modules/getsockname: New file.
20580         * modules/getsockopt: New file.
20581         * modules/listen: New file.
20582         * modules/recv: New file.
20583         * modules/recvfrom: New file.
20584         * modules/send: New file.
20585         * modules/sendto: New file.
20586         * modules/setsockopt: New file.
20587         * modules/socket: New file.
20588         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20589         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20590         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20591         the particular module is requested. Add a link warning when the
20592         particular module is not requested.
20593         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20594         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20595         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20596         the particular module is requested.
20597         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20598         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20599         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20600         * modules/sys_socket (Depends-on): Add link-warning.
20601         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20602         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20603         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20604         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20605         GL_LINK_WARNING.
20606         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20607         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20608         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20609         * doc/posix-functions/getpeername.texi: Mention the new module
20610         'getpeername'.
20611         * doc/posix-functions/getsockname.texi: Mention the new module
20612         'getsockname'.
20613         * doc/posix-functions/getsockopt.texi: Mention the new module
20614         'getsockopt'.
20615         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20616         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20617         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20618         * doc/posix-functions/send.texi: Mention the new module 'send'.
20619         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20620         * doc/posix-functions/setsockopt.texi: Mention the new module
20621         'setsockopt'.
20622         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20623         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20624         listen, connect, accept.
20625         * modules/select-tests (Depends-on): Likewise.
20626
20627 2008-10-05  Bruno Haible  <bruno@clisp.org>
20628
20629         * lib/winsock.c (strerror): Remove unused #undef.
20630         (rpl_close): Remove unused local variable.
20631
20632         * modules/sys_socket (Depends-on); Add errno.
20633
20634 2008-10-05  Bruno Haible  <bruno@clisp.org>
20635
20636         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20637         (select): Add a link warning when the 'select' module is not used.
20638         * modules/sys_select (Depends-on): Add link-warning.
20639         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20640         Suggested by Paolo Bonzini.
20641
20642 2008-10-05  Jim Meyering  <meyering@redhat.com>
20643
20644         bootstrap: check for LT_INIT more portably
20645         * build-aux/bootstrap: Avoid using grep -E, since it's not
20646         portable enough.  Suggestion from Bruno Haible.
20647
20648 2008-10-05  Bruno Haible  <bruno@clisp.org>
20649
20650         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20651         as being fixed by gnulib.
20652
20653 2008-10-05  Bruno Haible  <bruno@clisp.org>
20654
20655         * modules/select-tests: New file, mostly copied from
20656         modules/sys_select-tests.
20657         * tests/test-select.c: New file, mostly copied from
20658         tests/test-sys_select.c.
20659         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20660         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20661         (Makefile.am): Remove test_sys_select_LDADD.
20662
20663         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20664         to an undefined symbol, for an error message.
20665         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20666         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20667         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20668         winsock-select.c here.
20669         * modules/sys_select (Files): Remove lib/winsock-select.c.
20670         (Depends-on): Remove alloca.
20671         (Makefile.am): Substitute GNULIB_SELECT.
20672         * modules/select: New file.
20673         * doc/posix-functions/select.texi: Update.
20674
20675 2008-10-05  Bruno Haible  <bruno@clisp.org>
20676
20677         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20678         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20679         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20680         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20681         getdtablesize.
20682         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20683         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20684
20685 2008-10-05  Bruno Haible  <bruno@clisp.org>
20686
20687         * modules/getdtablesize-tests: New file.
20688         * tests/test-getdtablesize.c: New file.
20689
20690         New module 'getdtablesize'.
20691         * lib/unistd.in.h (getdtablesize): New declaration.
20692         * lib/getdtablesize.c: New file.
20693         * m4/getdtablesize.m4: New file.
20694         * modules/getdtablesize: New file.
20695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20696         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20697         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20698         HAVE_GETDTABLESIZE.
20699         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20700
20701 2008-10-05  Bruno Haible  <bruno@clisp.org>
20702
20703         * modules/sched (Makefile.am): Fix typo.
20704         Reported by Simon Josefsson.
20705
20706 2008-10-05  Jim Meyering  <meyering@redhat.com>
20707
20708         bootstrap: check for LT_INIT, too
20709         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20710         are deprecated.  Suggestion from Ralf Wildenhues.
20711
20712 2008-10-05  Bruno Haible  <bruno@clisp.org>
20713
20714         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20715         overriding them by ours.
20716         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20717
20718 2008-10-05  Jim Meyering  <meyering@redhat.com>
20719
20720         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20721         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20722         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20723
20724 2008-10-04  Bruno Haible  <bruno@clisp.org>
20725
20726         * modules/dup2 (License): Change to LGPLv2+.
20727         * modules/sleep (License): Likewise.
20728         * modules/perror (License): Likewise.
20729         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20730         Blake.
20731         * modules/signal (License): Likewise.
20732         * modules/sigprocmask (License): Likewise.
20733         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20734         Meyering.
20735
20736 2008-10-04  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20739         Reported by Rainer Tammer <tammer@tammer.net>.
20740
20741 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20742             Bruno Haible  <bruno@clisp.org>
20743
20744         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20745         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20746         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20747
20748 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20749
20750         filevercmp: new module
20751         * lib/filevercmp.h: New function filevercmp comparing version strings.
20752         * lib/filevercmp.c: Implementation of filevercmp function.
20753         * modules/filevercmp: Module metadata.
20754         * tests/test-filevercmp.c: Unit test for new module.
20755         * modules/filevercmp-tests: Unit test metadata.
20756         * MODULES.html.sh: Add filevercmp module.
20757
20758 2008-10-03  Bruno Haible  <bruno@clisp.org>
20759
20760         * lib/c-ctype.h: Add comment.
20761         Reported by Jim Meyering.
20762
20763 2008-10-02  Bruno Haible  <bruno@clisp.org>
20764
20765         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20766
20767 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20768
20769         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20770         name of bootstrap.conf accordingly.
20771
20772 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20773
20774         * build-aux/bootstrap: Install git-merge-changelog configuration
20775         items into .gitconfig if needed.
20776
20777 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20778
20779         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20780         git repository, and initialize/update it accordingly.
20781
20782 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20783
20784         * modules/fsync-tests: New file.
20785         * tests/test-fsync.c: New file.
20786
20787         New module 'fsync'.
20788         * lib/fsync.c: New file.
20789         * m4/fsync.m4: New file.
20790         * modules/fsync: New file.
20791         * lib/unistd.in.h (fsync): New declaration.
20792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20793         GNULIB_FSYNC and HAVE_FSYNC.
20794         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20795         * MODULES.html.sh (posix_functions): Add fsync.
20796         * doc/posix-functions/fsync.texi: Mention the new module.
20797
20798 2008-10-02  Jim Meyering  <meyering@redhat.com>
20799
20800         fts.c: sync with similar code from coreutils' remove.c
20801         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20802         Guard also with "#if defined __linux__", since for now at least,
20803         this code is Linux-kernel-specific.
20804
20805 2008-10-02  Jim Meyering  <meyering@redhat.com>
20806
20807         fts: bug fixes
20808         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20809         Include <sys/vfs.h>, not <sys/statfs.h>.
20810
20811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20812         Include <sys/vfs.h>, not <sys/statfs.h>.
20813
20814 2008-10-01  Bruno Haible  <bruno@clisp.org>
20815
20816         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20817         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20818         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20819         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20820         * doc/posix-functions/posix_spawnp.texi: Likewise.
20821         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20822         whether posix_spawn actually works.
20823         * m4/pipe.m4 (gl_PIPE): Likewise.
20824         * modules/execute (Files): Add m4/posix_spawn.m4.
20825         * modules/pipe (Files): Add m4/posix_spawn.m4.
20826         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20827
20828 2008-10-01  Jim Meyering  <meyering@redhat.com>
20829
20830         remove trailing spaces
20831         * NEWS: Likewise.
20832         * lib/poll.c (poll): Likewise.
20833         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20834         * lib/winsock.c (rpl_close): Likewise.
20835         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20836         * modules/yield: Likewise.
20837         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20838         * tests/test-sys_select.c (connect_to_socket): Likewise.
20839
20840         fts.c: adjust a new interface to be more generally useful
20841         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20842         (fts_build): Adjust caller.
20843
20844 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20845
20846         * modules/cond-tests: New file.
20847         * tests/test-cond.c: New file.
20848
20849 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20850             Bruno Haible  <bruno@clisp.org>
20851
20852         * modules/cond (Dependencies): Add errno, time.
20853         * lib/glthread/cond.h: Include <time.h>.
20854         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20855         across platforms.
20856
20857 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20858             Bruno Haible  <bruno@clisp.org>
20859
20860         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20861
20862 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20863             Bruno Haible  <bruno@clisp.org>
20864
20865         * modules/tls-tests (Depends-on): Add thread, yield.
20866         (configure.ac): Remove all checks.
20867         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20868         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20869         gl_thread_self): Remove definitions. Include glthread/thread.h and
20870         glthread/yield.h instead.
20871         (test_tls): Pass an additional NULL argument to gl_thread_join.
20872
20873 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20874             Bruno Haible  <bruno@clisp.org>
20875
20876         * modules/lock-tests (Depends-on): Add thread, yield.
20877         (configure.ac): Remove all checks.
20878         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20879         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20880         gl_thread_self): Remove definitions. Include glthread/thread.h and
20881         glthread/yield.h instead.
20882         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20883         additional NULL argument to gl_thread_join.
20884
20885 2008-09-30  Bruno Haible  <bruno@clisp.org>
20886
20887         Fix the Win32 implementation of the 'thread' module.
20888         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20889         pointer type.
20890         (gl_thread_self): Invoke gl_thread_self_func.
20891         (gl_thread_self_func): New declaration.
20892         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20893         (do_init_self_key, init_self_key): New functions.
20894         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20895         Remove some fields.
20896         (running_threads, running_lock): Remove variables.
20897         (get_current_thread_handle): New function.
20898         (gl_thread_self_func, wrapper_func, glthread_create_func,
20899         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20900         simplified.
20901
20902 2008-09-30  Bruno Haible  <bruno@clisp.org>
20903
20904         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20905         files.
20906
20907 2008-09-30  Jim Meyering  <meyering@redhat.com>
20908
20909         fts.m4: correct the test for statfs.f_type
20910         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20911         when checking for statfs.f_type.
20912
20913 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20914
20915         tests: avoid some compiler warnings
20916         * tests/test-memchr.c (main): Pass NULL indirectly.
20917         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20918
20919 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
20920
20921         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20922         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20923         exactly specified dayshifts.
20924         (dayshift): New rule.
20925         (rel): Add dayshift.
20926         (relative_time_table) [tomorrow, yesterday, today, now]:
20927         Use tDAY_SHIFT in place of tDAY_UNIT.
20928         * tests/test-getdate.c: Add tests for now-disallowed countable
20929         dayshifts, e.g., "4 yesterday ago".
20930
20931 2008-09-29  Bruno Haible  <bruno@clisp.org>
20932
20933         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20934         * tests/test-posix_spawn1.in.sh: Renamed from
20935         tests/test-posix_spawn.in.sh.
20936         * tests/test-posix_spawn2.c: New file.
20937         * tests/test-posix_spawn2.in.sh: New file.
20938         * modules/posix_spawnp-tests (Files): Update.
20939         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20940
20941 2008-09-29  Bruno Haible  <bruno@clisp.org>
20942
20943         Propagate effects of putenv/setenv/unsetenv to child processes.
20944         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20945         * lib/pipe.c (create_pipe): Likewise.
20946
20947 2008-09-29  Bruno Haible  <bruno@clisp.org>
20948
20949         Enable use of shell scripts as executables in mingw.
20950         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20951         run the program as a shell script.
20952         * lib/pipe.c (create_pipe): Likewise.
20953         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20954         resulting array.
20955
20956 2008-09-29  Eric Blake  <ebb9@byu.net>
20957
20958         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20959
20960 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20961
20962         * doc/posix-functions/accept.texi: Update mingw problems.
20963         * doc/posix-functions/bind.texi: Update mingw problems.
20964         * doc/posix-functions/close.texi: Update mingw problems.
20965         * doc/posix-functions/connect.texi: Update mingw problems.
20966         * doc/posix-functions/getpeername.texi: Update mingw problems.
20967         * doc/posix-functions/getsockname.texi: Update mingw problems.
20968         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20969         * doc/posix-functions/ioctl.texi: Update mingw problems.
20970         * doc/posix-functions/listen.texi: Update mingw problems.
20971         * doc/posix-functions/recv.texi: Update mingw problems.
20972         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20973         * doc/posix-functions/select.texi: Update mingw problems.
20974         * doc/posix-functions/send.texi: Update mingw problems.
20975         * doc/posix-functions/sendto.texi: Update mingw problems.
20976         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20977         * doc/posix-functions/socket.texi: Update mingw problems.
20978
20979 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20980             Bruno Haible  <bruno@clisp.org>
20981
20982         * lib/sys_select.in.h: Include sys/time.h.
20983         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20984         * modules/sys_select: Depend on sys_time.
20985         * tests/test-sys_select.c: Test that sys/select.h defines struct
20986         timeval fully.
20987
20988 2008-09-29  Bruno Haible  <bruno@clisp.org>
20989
20990         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20991         * lib/sys_select.in.h: Likewise.
20992
20993 2008-09-29  Bruno Haible  <bruno@clisp.org>
20994
20995         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20996
20997 2008-09-29  Bruno Haible  <bruno@clisp.org>
20998
20999         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21000         Set LIBSOCKET instead of augmenting LIBS.
21001         * modules/sockets (Link): New section.
21002         * modules/sockets-tests (test_sockets_LDADD): New variable.
21003         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21004         * modules/poll-tests (test_poll_LDADD): New variable.
21005         * NEWS: Document the change.
21006
21007 2008-09-29  Bruno Haible  <bruno@clisp.org>
21008
21009         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21010         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21011         ARPA_INET_H directly.
21012         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21013
21014 2008-09-28  Bruno Haible  <bruno@clisp.org>
21015
21016         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21017         from gl_HEADER_SYS_SOCKET.
21018         (gl_HEADER_SYS_SOCKET): Invoke it.
21019         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21020
21021 2008-09-28  Bruno Haible  <bruno@clisp.org>
21022
21023         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21024         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21025         Needed on OSF/1 4.0.
21026
21027 2008-09-28  Bruno Haible  <bruno@clisp.org>
21028
21029         Override open more carefully.
21030         * lib/open.c (orig_open): New function.
21031         (rpl_open): Use orig_open instead of open.
21032         * lib/fcntl.in.h: Add special invocation convention.
21033         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21034         (gl_FUNC_OPEN): Invoke it.
21035
21036         Override freopen more carefully.
21037         * lib/freopen.c (orig_freopen): New function.
21038         (rpl_freopen): Use orig_freopen instead of freopen.
21039         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21040         (gl_FUNC_FREOPEN): Invoke it.
21041
21042         Override fopen more carefully.
21043         * lib/fopen.c (orig_fopen): New function.
21044         (rpl_fopen): Use orig_fopen instead of fopen.
21045         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21046         (gl_FUNC_FOPEN): Invoke it.
21047         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21048
21049 2008-09-28  Bruno Haible  <bruno@clisp.org>
21050
21051         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21052         SIGPIPE.
21053
21054 2008-09-28  Bruno Haible  <bruno@clisp.org>
21055
21056         * tests/test-sigaction.c (handler, main): Disable the check whether
21057         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21058         glibc systems with LinuxThreads.
21059
21060 2008-09-28  Bruno Haible  <bruno@clisp.org>
21061
21062         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21063
21064         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21065         with AIX xlc.
21066         * lib/fcntl.in.h (open): Likewise.
21067         Reported by Rainer Tammer <tammer@tammer.net>.
21068
21069 2008-09-28  Bruno Haible  <bruno@clisp.org>
21070
21071         * modules/posix_spawnp-tests: New file.
21072         * tests/test-posix_spawn.c: New file.
21073         * tests/test-posix_spawn.in.sh: New file.
21074
21075         New module 'posix_spawnp'.
21076         * modules/posix_spawnp: New file.
21077         * lib/spawnp.c: New file, from GNU libc with modifications.
21078         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21079
21080         New module 'posix_spawn'.
21081         * modules/posix_spawn: New file.
21082         * lib/spawn.c: New file, from GNU libc with modifications.
21083         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21084
21085         New module 'posix_spawnattr_destroy'.
21086         * modules/posix_spawnattr_destroy: New file.
21087         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21088         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21089         module.
21090
21091         New module 'posix_spawnattr_setsigmask'.
21092         * modules/posix_spawnattr_setsigmask: New file.
21093         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21094         modifications.
21095         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21096         new module.
21097
21098         New module 'posix_spawnattr_getsigmask'.
21099         * modules/posix_spawnattr_getsigmask: New file.
21100         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21101         modifications.
21102         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21103         new module.
21104
21105         New module 'posix_spawnattr_setsigdefault'.
21106         * modules/posix_spawnattr_setsigdefault: New file.
21107         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21108         modifications.
21109         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21110         new module.
21111
21112         New module 'posix_spawnattr_getsigdefault'.
21113         * modules/posix_spawnattr_getsigdefault: New file.
21114         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21115         modifications.
21116         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21117         new module.
21118
21119         New module 'posix_spawnattr_setschedpolicy'.
21120         * modules/posix_spawnattr_setschedpolicy: New file.
21121         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21122         modifications.
21123         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21124         new module.
21125
21126         New module 'posix_spawnattr_getschedpolicy'.
21127         * modules/posix_spawnattr_getschedpolicy: New file.
21128         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21129         modifications.
21130         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21131         new module.
21132
21133         New module 'posix_spawnattr_setschedparam'.
21134         * modules/posix_spawnattr_setschedparam: New file.
21135         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21136         modifications.
21137         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21138         new module.
21139
21140         New module 'posix_spawnattr_getschedparam'.
21141         * modules/posix_spawnattr_getschedparam: New file.
21142         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21143         modifications.
21144         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21145         new module.
21146
21147         New module 'posix_spawnattr_setpgroup'.
21148         * modules/posix_spawnattr_setpgroup: New file.
21149         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21150         modifications.
21151         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21152         module.
21153
21154         New module 'posix_spawnattr_getpgroup'.
21155         * modules/posix_spawnattr_getpgroup: New file.
21156         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21157         modifications.
21158         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21159         module.
21160
21161         New module 'posix_spawnattr_setflags'.
21162         * modules/posix_spawnattr_setflags: New file.
21163         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21164         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21165         module.
21166
21167         New module 'posix_spawnattr_getflags'.
21168         * modules/posix_spawnattr_getflags: New file.
21169         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21170         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21171         module.
21172
21173         New module 'posix_spawnattr_init'.
21174         * modules/posix_spawnattr_init: New file.
21175         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21176         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21177         module.
21178
21179         New module 'posix_spawn_file_actions_destroy'.
21180         * modules/posix_spawn_file_actions_destroy: New file.
21181         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21182         modifications.
21183         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21184         the new module.
21185
21186         New module 'posix_spawn_file_actions_addopen'.
21187         * modules/posix_spawn_file_actions_addopen: New file.
21188         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21189         modifications.
21190         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21191         the new module.
21192
21193         New module 'posix_spawn_file_actions_adddup2'.
21194         * modules/posix_spawn_file_actions_adddup2: New file.
21195         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21196         modifications.
21197         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21198         the new module.
21199
21200         New module 'posix_spawn_file_actions_addclose'.
21201         * modules/posix_spawn_file_actions_addclose: New file.
21202         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21203         modifications.
21204         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21205         the new module.
21206
21207         New module 'posix_spawn_file_actions_init'.
21208         * modules/posix_spawn_file_actions_init: New file.
21209         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21210         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21211         new module.
21212
21213         New module 'posix_spawn-internal'.
21214         * modules/posix_spawn-internal: New file.
21215         * lib/spawn_int.h: New file, from GNU libc with modifications.
21216         * lib/spawni.c: New file, from GNU libc with modifications.
21217         * m4/posix_spawn.m4: New file.
21218
21219         New module 'spawn'.
21220         * modules/spawn: New file.
21221         * lib/spawn.in.h: New file, from GNU libc with modifications.
21222         * m4/spawn_h.m4: New file.
21223         * doc/posix-headers/spawn.texi: Mention the new module.
21224
21225 2008-09-28  Bruno Haible  <bruno@clisp.org>
21226
21227         * modules/sched-tests: New file.
21228         * tests/test-sched.c: New file.
21229
21230         New module 'sched'.
21231         * modules/sched: New file.
21232         * lib/sched.in.h: New file.
21233         * m4/sched_h.m4: New file.
21234         * doc/posix-headers/sched.texi: Mention the new module.
21235
21236 2008-09-27  Eric Blake  <ebb9@byu.net>
21237
21238         Fix previous patch, and tweak references to $0.
21239         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21240         (func_version, func_gnulib_dir): Don't call this program
21241         gnulib-tool.
21242         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21243         with using $0 in function.
21244         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21245         (func_fatal_error): Reuse the name the user invoked us with.
21246
21247 2008-09-27  Bruno Haible  <bruno@clisp.org>
21248
21249         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21250         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21251         (gl_ICONV_H): Not here.
21252         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21253         instead of assigning ICONV_H directly.
21254
21255         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21257         WCHAR_H directly.
21258
21259 2008-09-27  Bruno Haible  <bruno@clisp.org>
21260
21261         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21262         * modules/arpa_inet (Depends-on): Add link-warning.
21263         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21264         * modules/unistd (Makefile.am): Likewise.
21265
21266 2008-09-26  Bruno Haible  <bruno@clisp.org>
21267
21268         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21269         variables.
21270         (func_version): Essentially copied from gnulib-tool.
21271         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21272         func_readlink): Copied from gnulib-tool.
21273
21274 2008-09-26  Bruno Haible  <bruno@clisp.org>
21275
21276         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21277         invoking git-version-gen.
21278
21279 2008-09-26  Bruno Haible  <bruno@clisp.org>
21280
21281         * posix-modules: Update to directory names changed on 2008-01-19.
21282         Remove commas in output before splitting into words. No more need to
21283         avoid 'ftruncate' since 2007-02-19.
21284
21285 2008-09-26  Bruno Haible  <bruno@clisp.org>
21286
21287         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21288
21289 2008-09-26  Bruno Haible  <bruno@clisp.org>
21290
21291         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21292         * modules/fwriteerror (Depends-on): Add errno.
21293
21294 2008-09-26  Bruno Haible  <bruno@clisp.org>
21295
21296         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21297         * tests/test-vc-list-files-cvs.sh: Likewise.
21298
21299 2008-09-26  Bruno Haible  <bruno@clisp.org>
21300
21301         * doc/posix-headers/sys_resource.texi: Reorder items.
21302
21303 2008-09-26  Jim Meyering  <meyering@redhat.com>
21304
21305         fts: tweak inode comparison function
21306         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21307         inode numbers, as documented.
21308
21309         fts: sort dirent entries on inode number before traversing
21310         This avoids a quadratic, seek-related performance penalty when
21311         operating on a directory containing many entries (measurable at 10k;
21312         3.5 hours at 2 million entries with a cold cache) on certain types
21313         of file systems, including ext3 and ext4, but not tmpfs.
21314         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21315         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21316         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21317         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21318         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21319         (fts_build): Set the stat.st_ino member from D_INO.
21320         If it is likely to be useful, sort dirent entries on inode number.
21321
21322         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21323         and the struct statfs.f_type member.
21324         * modules/fts (Depends-on): Add d-ino.
21325
21326 2008-09-26  Bruno Haible  <bruno@clisp.org>
21327
21328         * modules/sigpipe-die (Depends-on): Add sigpipe.
21329
21330         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21331         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21332         and GNULIB_STDIO_H_SIGPIPE are set.
21333         * lib/stdio-write.c: New file.
21334         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21335         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21336         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21337         REPLACE_STDIO_WRITE_FUNCS.
21338         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21339         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21340         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21341         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21342         * modules/stdio (Files): Add lib/stdio-write.c.
21343         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21344         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21345         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21346         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21347         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21348         REPLACE_FPRINTF_POSIX.
21349         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21350         REPLACE_PRINTF_POSIX.
21351         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21352         REPLACE_VFPRINTF_POSIX.
21353         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21354         REPLACE_VPRINTF_POSIX.
21355         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21356         SIGPIPE issue.
21357         * doc/posix-functions/fputc.texi: Likewise.
21358         * doc/posix-functions/fputs.texi: Likewise.
21359         * doc/posix-functions/fwrite.texi: Likewise.
21360         * doc/posix-functions/printf.texi: Likewise.
21361         * doc/posix-functions/putc.texi: Likewise.
21362         * doc/posix-functions/putchar.texi: Likewise.
21363         * doc/posix-functions/puts.texi: Likewise.
21364         * doc/posix-functions/vfprintf.texi: Likewise.
21365         * doc/posix-functions/vprintf.texi: Likewise.
21366
21367         * modules/safe-write (Depends-on): Add write.
21368
21369         * modules/sigpipe-tests: New file.
21370         * tests/test-sigpipe.c: New file.
21371         * tests/test-sigpipe.sh: New file.
21372
21373         * modules/write: New file.
21374         * lib/unistd.in.h: Include <sys/types.h>.
21375         (write): New declaration.
21376         * lib/write.c: New file.
21377         * m4/write.m4: New file.
21378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21379         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21380         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21381         GNULIB_WRITE, REPLACE_WRITE.
21382         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21383         and the SIGPIPE issue.
21384
21385         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21386         (raise): New declaration.
21387         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21388         (ext_signal): New function.
21389         (rpl_raise): New function.
21390         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21391         GNULIB_SIGNAL_H_SIGPIPE.
21392         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21393         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21394
21395         * modules/sigpipe: New file.
21396         * m4/sigpipe.m4: New file.
21397
21398 2008-09-25  Derek Price  <derek@ximbiot.com>
21399             Bruno Haible  <bruno@clisp.org>
21400
21401         * gnulib-tool (func_import): Report all license incompatibilities, not
21402         just the first one.
21403
21404 2008-09-25  Bruno Haible  <bruno@clisp.org>
21405
21406         * gnulib-tool (func_import): When computing the edits, consider not
21407         only the Makefile.ams that exist but also those that will be generated.
21408
21409 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21410
21411         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21412         fixes gnulib-tool --test warning about duplicate dependency.
21413
21414 2008-09-25  Bruno Haible  <bruno@clisp.org>
21415
21416         * gnulib-tool: Don't ask the user to perform edits in the generated
21417         Makefile.ams.
21418         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21419         apply to the Makefile.am being generated.
21420         (func_emit_tests_Makefile_am): Execute edits that apply to the
21421         Makefile.am being generated.
21422         (func_import): Setup list of Makefile.am edits before emitting the
21423         Makefile.ams, not at the end.
21424         (func_create_testdir): Update.
21425         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21426
21427 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21428
21429         * gnulib-tool (func_import): Store the --tests-base option in the
21430         comment in gnulib-cache.m4.
21431
21432 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21433
21434         * NEWS: Document increased portability that sys_select now provides.
21435
21436         * lib/sys_select.in.h: Install select wrapper.
21437         * lib/sys_socket.in.h: Use more descriptive name when there is no
21438         select wrapper.
21439         * lib/winsock-select.c: New.
21440         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21441         Require gl_HEADER_SYS_SOCKET.
21442         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21443         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21444         * tests/test-sys_select.c: Add functional tests.
21445
21446 2008-09-24  Eric Blake  <ebb9@byu.net>
21447
21448         open, fopen: close fd leak in last patch
21449         * lib/open.c (rpl_open): Close fd before returning error.
21450         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21451         * doc/posix-functions/open.texi (open): Document that Irix also
21452         has the bug.
21453         * doc/posix-functions/fopen.texi (fopen): Likewise.
21454         Reported by Paolo Bonzini.
21455
21456 2008-09-24  Bruno Haible  <bruno@clisp.org>
21457
21458         Ensure that a filename ending in a slash cannot be used to access a
21459         non-directory.
21460         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21461         to check whether it's really a directory.
21462         * lib/fopen.c: Include fcntl.h, unistd.h.
21463         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21464         and fdopen().
21465         * modules/fopen (Depends-on): Add unistd.
21466         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21467         * tests/test-fopen.c (main): Likewise.
21468         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21469         * doc/posix-functions/fopen.texi: Likewise.
21470         Reported by Eric Blake.
21471
21472 2008-09-23  Eric Blake  <ebb9@byu.net>
21473
21474         c-stack: avoid compiler optimizations when provoking overflow
21475         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21476         recursion harder to optimize, to ensure a stack overflow occurs.
21477         * tests/test-c-stack.c (recurse): Likewise.
21478         Borrowed from libsigsegv.
21479
21480         c-stack: work around Irix sigaltstack bug
21481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21482         whether sigaltstack uses wrong end of stack_t (copied in part from
21483         libsigsegv).
21484         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21485         Irix bug, without requiring an over-allocation.
21486         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21487         bug.
21488
21489         fopen: document mingw bug on directories
21490         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21491         not allowing a stream visiting a directory, even though reading
21492         from such a stream is not portable.
21493
21494 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21495
21496         * lib/poll.c: Rewrite.
21497         * modules/poll: Depend on alloca.
21498
21499 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21500
21501         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21502         instead define prototypes for a full set of wrappers.  Ensure
21503         that Cygwin does not use the compatibility code, which is only
21504         for MinGW.
21505         * lib/winsock.c: New.
21506         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21507         * modules/sys_socket: Add lib/winsock.c.
21508
21509         * modules/poll-tests: Add errno and perror.
21510         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21511
21512 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21513
21514         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21515
21516 2008-09-23  Bruno Haible  <bruno@clisp.org>
21517
21518         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21519         * doc/glibc-functions/*: Likewise.
21520
21521 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21522
21523         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21524         success.
21525
21526 2008-09-22  Eric Blake  <ebb9@byu.net>
21527             Bruno Haible  <bruno@clisp.org>
21528
21529         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21530         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21531         supply %A but mishandle pseudo-NaN.
21532         Reported by Simon Josefsson.
21533
21534 2008-09-21  Bruno Haible  <bruno@clisp.org>
21535
21536         * tests/test-lock.c (main): Tweak skip message.
21537         * tests/test-tls.c (main): Likewise.
21538
21539 2008-09-21  Bruno Haible  <bruno@clisp.org>
21540
21541         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21542         whether 'struct sigaction' has sa_sigaction here...
21543         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21544         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21545
21546 2008-09-21  Bruno Haible  <bruno@clisp.org>
21547
21548         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21549         section.
21550         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21551         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21552         the new section.
21553         (Support for obsolete systems lacking POSIX:2001): New section.
21554         (String handling <string.h>): Move strdup to the new section.
21555         Suggested by Simon Josefsson and Paolo Bonzini.
21556
21557 2008-09-21  Bruno Haible  <bruno@clisp.org>
21558
21559         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21560         exponents in %e and %g results on 'long double'. Needed for mingw's
21561         improved *printf functions.
21562         * tests/test-vasprintf-posix.c (test_function): Likewise.
21563         * tests/test-snprintf-posix.h (test_function): Likewise.
21564         * tests/test-sprintf-posix.h (test_function): Likewise.
21565         Reported by Eric Blake.
21566
21567 2008-09-21  Bruno Haible  <bruno@clisp.org>
21568
21569         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21570         * tests/test-sprintf-posix.h (test_function): Likewise.
21571
21572 2008-09-21  Bruno Haible  <bruno@clisp.org>
21573
21574         * modules/getpass (Depends-on): Add strdup-posix.
21575
21576         New module 'strdup-posix'.
21577         * modules/strdup-posix: New file.
21578         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21579         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21581         REPLACE_STRDUP.
21582         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21583         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21584         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21585         strdup-posix.
21586
21587         * modules/strdup (Depends-on): Remove malloc-posix.
21588
21589 2008-09-20  Bruno Haible  <bruno@clisp.org>
21590
21591         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21592         Wildenhues.
21593
21594 2008-09-20  Bruno Haible  <bruno@clisp.org>
21595
21596         Ensure that wint_t gets defined on IRIX 5.3.
21597         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21598         * lib/wctype.in.h (wint_t): Likewise.
21599         (__wctype_wint_t): Remove type.
21600         (isw*): Use wint_t instead of __wctype_wint_t.
21601         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21602         * modules/wchar (Files): Add m4/wint_t.m4.
21603         (Makefile.am): Substitute HAVE_WINT_T.
21604         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21605         * tests/test-wctype.c: Check that wint_t is defined.
21606         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21607         * doc/posix-headers/wctype.texi: Likewise.
21608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21609
21610 2008-09-18  Bruno Haible  <bruno@clisp.org>
21611
21612         * gnulib-tool (func_exit): Update comment.
21613
21614 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21615
21616         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21617         assumes strdup exists and does not depend on strdup to return
21618         ENOMEM on out of memory conditions.
21619
21620 2008-09-18  Bruno Haible  <bruno@clisp.org>
21621
21622         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
21623         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21624         digits for the exponent.
21625
21626 2008-09-18  Jim Meyering  <meyering@redhat.com>
21627             Bruno Haible  <bruno@clisp.org>
21628
21629         * lib/vasnprintf.c (decimal_point_char): Define also if
21630         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21631
21632 2008-09-16  Bruno Haible  <bruno@clisp.org>
21633         and Eric Blake  <ebb9@byu.net>
21634
21635         vasnprintf: support Irix 5.3
21636         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21637         that mishandle long double infinity.
21638         Reported by Tom G. Christensen.
21639
21640 2008-09-16  Bruno Haible  <bruno@clisp.org>
21641
21642         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21643         Solaris 9.
21644         * doc/glibc-functions/alphasort.texi: Likewise.
21645         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21646
21647 2008-09-16  Jim Meyering  <meyering@redhat.com>
21648
21649         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21650         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21651         a umask modification leak out of a subshell.  Otherwise, the
21652         opensolaris /bin/sh would be accepted and thus cause unwarranted
21653         failures in the coreutils test suite.
21654
21655 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21656
21657         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21658         to succeed.
21659
21660 2008-09-16  Jim Meyering  <meyering@redhat.com>
21661
21662         avoid spurious test failure when library is built without ACL support
21663         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21664         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21665         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21666         * tests/test-copy-acl.sh: Likewise.
21667
21668 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21669
21670         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21671         based on character occurrence counts.
21672
21673 2008-09-15  Eric Blake  <ebb9@byu.net>
21674
21675         tests: avoid some compiler warnings
21676         * tests/test-memchr.c (main): Pass NULL indirectly.
21677         * tests/test-closein.c (main): Avoid unused variable.
21678
21679 2008-09-15  Bruno Haible  <bruno@clisp.org>
21680
21681         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21682         are missing on OpenBSD 4.0 individually.
21683         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21684
21685 2008-09-15  Bruno Haible  <bruno@clisp.org>
21686
21687         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21688         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21689         * doc/posix-functions/perror.texi: Likewise.
21690         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21691         is missing.
21692         Reported by Eric Blake.
21693
21694         * lib/errno.in.h: Use replacement values >= 2000.
21695         Reported by Eric Blake.
21696
21697 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21698
21699         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21700         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21701         limit.
21702         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21703         compareseq was aborted.
21704
21705 2008-09-14  Bruno Haible  <bruno@clisp.org>
21706
21707         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21708         yvec_edit_count.
21709         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21710         (fstrcmp_bounded): Simplify result computation accordingly.
21711
21712 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21713
21714         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21715         (fstrcmp): Define in terms of fstrcmp_bounded.
21716         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21717         lower_bound argument.
21718         Return quickly if the result is certainly < lower_bound.
21719         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21720
21721 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21722
21723         * lib/diffseq.h (EARLY_ABORT): New macro.
21724         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21725         evaluates to true.
21726
21727 2008-09-14  Bruno Haible  <bruno@clisp.org>
21728
21729         * modules/perror-tests: New file.
21730         * tests/test-perror.sh: New file.
21731         * tests/test-perror.c: New file.
21732
21733         New module 'perror'.
21734         * lib/stdio.in.h (perror): New declaration.
21735         * lib/perror.c: New file.
21736         * m4/perror.m4: New file.
21737         * modules/perror: New file.
21738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21739         * doc/posix-functions/perror.texi: Mention the perror module.
21740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21741         REPLACE_PERROR.
21742         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21743         REPLACE_PERROR.
21744
21745 2008-09-14  Bruno Haible  <bruno@clisp.org>
21746
21747         * modules/stdio (Makefile.am): Reorder to match the order in
21748         lib/stdio.in.h.
21749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21750
21751 2008-09-13  Bruno Haible  <bruno@clisp.org>
21752
21753         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21754
21755 2008-09-13  Bruno Haible  <bruno@clisp.org>
21756
21757         Extend strerror to cover the added errno values.
21758         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21759         (rpl_strerror): Provide error messages for the added errno values and
21760         for the WSA* values.
21761         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21762         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21763         strerror.
21764         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21765         * modules/strerror (Depends-on): Add errno.
21766         * doc/posix-functions/strerror.texi: Document the change.
21767         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21768         and EOVERFLOW.
21769
21770 2008-09-13  Bruno Haible  <bruno@clisp.org>
21771
21772         * modules/EOVERFLOW: Remove file.
21773         * m4/eoverflow.m4: Remove file.
21774         * modules/EOVERFLOW-tests: Remove file.
21775         * tests/test-EOVERFLOW.c: Remove file.
21776         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21777         * modules/ftell (Depends-on): Likewise.
21778         * modules/getdelim (Depends-on): Likewise.
21779         * modules/getugroups (Depends-on): Likewise.
21780         * modules/poll (Depends-on): Likewise.
21781         * modules/snprintf (Depends-on): Likewise.
21782         * modules/sprintf-posix (Depends-on): Likewise.
21783         * modules/vasnprintf (Depends-on): Likewise.
21784         * modules/vasprintf (Depends-on): Likewise.
21785         * modules/vfprintf-posix (Depends-on): Likewise.
21786         * modules/vsnprintf (Depends-on): Likewise.
21787         * modules/vsprintf-posix (Depends-on): Likewise.
21788         * modules/xvasprintf (Depends-on): Likewise.
21789         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21790         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21791         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21792         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21793         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21794         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21795         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21796         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21797         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21798         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21799         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21800         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21801         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21802         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21803         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21804         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21805         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21806         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21807         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21808         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21809         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21810         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21811         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21812         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21813         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21814         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21815         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21816         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21817         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21818         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21819         * MODULES.html.sh: Remove EOVERFLOW.
21820         * NEWS: Mention the change.
21821
21822 2008-09-13  Bruno Haible  <bruno@clisp.org>
21823
21824         * modules/errno-tests: New file.
21825         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21826
21827         * lib/errno.in.h: New file.
21828         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21829         * modules/errno: New file.
21830         * doc/posix-headers/errno.texi: Update documentation.
21831         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21832
21833 2008-09-13  Bruno Haible  <bruno@clisp.org>
21834
21835         * tests/test-poll.c: Use #if for native Windows, rather than testing
21836         __MSVCRT__.
21837
21838 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21839             Bruno Haible  <bruno@clisp.org>
21840
21841         * lib/glob.c: Don't include <pwd.h> on native Windows.
21842         (WINDOWS32): New macro.
21843         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21844
21845 2008-09-13  Bruno Haible  <bruno@clisp.org>
21846
21847         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21848         (ETIMEDOUT): Remove macro.
21849         (glthread_cond_timedwait_multithreaded): New declaration.
21850         (glthread_cond_timedwait): Use it.
21851         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21852         (glthread_cond_timedwait_multithreaded): New function.
21853
21854 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21855
21856         * modules/poll-tests: Do not check for io.h.
21857         * tests/test-poll.c: Check for __MSVCRT__ instead.
21858
21859 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21860
21861         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21862         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21863         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21864
21865 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21866
21867         * modules/poll-tests: New.
21868         * tests/test-poll.c: New.
21869
21870 2008-09-12  Eric Blake  <ebb9@byu.net>
21871
21872         frexp: test for NetBSD failure on -0.0
21873         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21874         not all, bugs from NetBSD 3.0 have been fixed.
21875         * doc/posix-functions/frexp.texi (frexp): Document bug.
21876         Reported by Thomas Klausner.
21877
21878         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21879         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21880         literal -0.0.
21881         Reported by Jonathan C. Patschke <jp@centtech.com>.
21882
21883 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21884
21885         * lib/glthread/cond.h: Use dummy implementation also if
21886         USE_WIN32_THREADS.
21887
21888 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21889
21890         * modules/fnmatch-posix (License): Change to LGPLv2+.
21891         * modules/fnmatch-gnu (License): Likewise.
21892
21893 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21894
21895         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21896
21897 2008-09-11  Jim Meyering  <meyering@redhat.com>
21898
21899         * users.txt: Add gtk-vnc.
21900
21901 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21902
21903         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21904         rotate amounts.
21905
21906         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21907         required for 16-bit and 8-bit rotates.
21908         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21909         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21910         UINT8_MAX instead of hard-coded constants.
21911         Suggested by Paul Eggert.
21912
21913 2008-09-07  Bruno Haible  <bruno@clisp.org>
21914
21915         * tests/test-striconveh.c (main): Check behaviour when converting from
21916         UTF-7.
21917
21918         Make striconveh work better with stateful encodings.
21919         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21920         that iconv does not increment the inptr when returning -1/EINVAL.
21921
21922 2008-09-07  Bruno Haible  <bruno@clisp.org>
21923
21924         * build-aux/config.rpath: Update according to libtool-2.2.6.
21925         * build-aux/config.libpath: Likewise.
21926
21927 2008-09-06  Bruno Haible  <bruno@clisp.org>
21928
21929         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21930         * lib/freadptr.c (freadptr): Likewise.
21931         * lib/freadseek.c (freadptrinc): Likewise.
21932         Reported by Simon Josefsson.
21933
21934 2008-09-06  Bruno Haible  <bruno@clisp.org>
21935
21936         * modules/freadptr (License): Change to LGPLv2+.
21937         * modules/freadseek (License): Likewise.
21938         Suggested by Eric Blake.
21939
21940         * modules/memchr2 (License): Change to LGPLv2+.
21941         Approved by Eric Blake.
21942
21943 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21944             Bruno Haible  <bruno@clisp.org>
21945
21946         Make gnulib-tool work with native 'sed' on AIX.
21947         * gnulib-tool (sed_noop): New variable.
21948         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21949         func_add_or_update, func_create_testdir): Use it to initialize sed
21950         script variables.
21951         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21952
21953 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21954             Bruno Haible  <bruno@clisp.org>
21955
21956         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21957         also works after #include directives.
21958
21959 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
21960
21961         getdate.y: reject an out-of-range timezone value
21962         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21963         the range [-24...+24].  When specified with only one or two digits,
21964         * tests/test-getdate.c: Tests for the fix.
21965         * doc/getdate.texi: Document this change.
21966
21967 2008-09-03  Bruno Haible  <bruno@clisp.org>
21968
21969         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21970
21971 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21972
21973         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21974         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21975         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21976         Blake <ebb9@byu.net>.
21977
21978         * tests/test-bitrotate.c: Add more test vectors.
21979
21980 2008-09-02  Eric Blake  <ebb9@byu.net>
21981
21982         vasnprintf-posix: handle large precision via %.*d
21983         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21984         when handling it ourselves.
21985         * tests/test-vasnprintf-posix.c (test_function): Add test.
21986         * tests/test-snprintf-posix.h (test_function): Likewise.
21987         * tests/test-sprintf-posix.h (test_function): Likewise.
21988         * tests/test-vasprintf-posix.c (test_function): Likewise.
21989         Reported by Alain Guibert.
21990
21991 2008-09-01  Eric Blake  <ebb9@byu.net>
21992
21993         c-stack: make configure-time check more robust
21994         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21995         successful sigaction call.
21996         Reported by Tom G. Christensen.
21997
21998 2008-09-01  Bruno Haible  <bruno@clisp.org>
21999
22000         New module 'findprog-lgpl'.
22001         * modules/findprog-lgpl: New file.
22002         * lib/findprog-lgpl.c: New file.
22003         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22004         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22005         to decide whether to use strdup or xstrdup, concatenated_filename or
22006         xconcatenated_filename.
22007
22008 2008-09-01  Bruno Haible  <bruno@clisp.org>
22009
22010         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22011         'xconcat-filename' (GPL).
22012         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22013         (License): Change to LGPLv2+.
22014         * modules/xconcat-filename: New file.
22015         * lib/concat-filename.h (concatenated_filename): Change specification.
22016         (xconcatenated_filename): New declaration.
22017         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22018         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22019         memory situations.
22020         * lib/xconcat-filename.c: New file.
22021         * NEWS: Mention the change.
22022         * lib/findprog.c: Include concat-filename.h, not filename.h.
22023         (find_in_path): Use xconcatenated_filename instead of
22024         concatenated_filename.
22025         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22026         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22027         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22028         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22029         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22030         instead of concatenated_filename.
22031         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22032         (execute_java_class): Use xconcatenated_filename instead of
22033         concatenated_filename.
22034         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22035         * modules/javacomp (Depends-on): Likewise.
22036         * modules/javaexec (Depends-on): Likewise.
22037
22038 2008-09-01  Bruno Haible  <bruno@clisp.org>
22039
22040         Split module 'filename' into 'filename' and 'concat-filename'.
22041         * modules/filename: Keep only lib/filename.h.
22042         (License): Change to LGPLv2+.
22043         * modules/concat-filename: New file, extracted from modules/filename.
22044         * lib/filename.h (concatenated_filename): Remove declaration.
22045         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22046         * lib/concat-filename.c: Include concat-filename.h.
22047         * NEWS: Mention the change.
22048
22049 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22050
22051         * lib/bitrotate.h (rotl8, rotr8): Add.
22052
22053         * modules/bitrotate (configure.ac): Need
22054         AC_REQUIRE([AC_C_INLINE]).
22055         (Description): Mention stdint.h.  Reported by Bruno Haible
22056         <bruno@clisp.org>.
22057
22058         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22059         Paolo Bonzini <bonzini@gnu.org>.
22060
22061 2008-08-31  Bruno Haible  <bruno@clisp.org>
22062
22063         Assume Solaris specific bi-arch conventions on Solaris systems.
22064         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22065         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22066         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22067         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22068         like acl_libdirstem.
22069         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22070         acl_libdirstem.
22071         * NEWS: Mention the change.
22072         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22073
22074 2008-08-31  Jim Meyering  <meyering@redhat.com>
22075
22076         * lib/strftime.h: Add comments describing the two added arguments.
22077
22078         remove duplicate #include directives
22079         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22080         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22081
22082 2008-08-31  Bruno Haible  <bruno@clisp.org>
22083
22084         New module 'sigpipe-die'.
22085         * modules/sigpipe-die: New file.
22086         * lib/sigpipe-die.h: New file.
22087         * lib/sigpipe-die.c: New file.
22088         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22089
22090 2008-08-31  Bruno Haible  <bruno@clisp.org>
22091
22092         Don't override previously installed signal handlers.
22093         * lib/fatal-signal.c (saved_sigactions): New variable.
22094         (uninstall_handlers): Reset the signal to the saved handler, not
22095         to SIG_DFL (except when ignored).
22096         (install_handlers): Save the previous handlers.
22097
22098 2008-08-30  Bruno Haible  <bruno@clisp.org>
22099
22100         * gnulib-tool (func_reset_sigpipe): New function.
22101         (func_get_automake_snippet, func_modules_transitive_closure,
22102         func_import): Invoke it before a join command that reads from stdin,
22103         to avoid "echo: write error: Broken pipe" error messages on stderr.
22104         Reported by Sam Steingold <sds@gnu.org>.
22105
22106 2008-08-30  Bruno Haible  <bruno@clisp.org>
22107
22108         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22109         Code copied from m4/open.m4.
22110         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22111         access and the filename ends in a slash. Code copied from lib/open.c.
22112         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22113         * tests/test-fopen.c (main): Check against bug with trailing slash.
22114
22115 2008-08-29  Bruno Haible  <bruno@clisp.org>
22116
22117         Avoid some "gcc -pedantic" warnings.
22118         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22119         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22120         * lib/dirent.in.h: Likewise.
22121         * lib/fcntl.in.h: Likewise.
22122         * lib/float.in.h: Likewise.
22123         * lib/iconv.in.h: Likewise.
22124         * lib/inttypes.in.h: Likewise.
22125         * lib/locale.in.h: Likewise.
22126         * lib/math.in.h: Likewise.
22127         * lib/netinet_in.in.h: Likewise.
22128         * lib/search.in.h: Likewise.
22129         * lib/signal.in.h: Likewise.
22130         * lib/stdarg.in.h: Likewise.
22131         * lib/stdint.in.h: Likewise.
22132         * lib/stdio.in.h: Likewise.
22133         * lib/stdlib.in.h: Likewise.
22134         * lib/string.in.h: Likewise.
22135         * lib/strings.in.h: Likewise.
22136         * lib/sys_select.in.h: Likewise.
22137         * lib/sys_socket.in.h: Likewise.
22138         * lib/sys_stat.in.h: Likewise.
22139         * lib/sys_time.in.h: Likewise.
22140         * lib/sysexits.in.h: Likewise.
22141         * lib/time.in.h: Likewise.
22142         * lib/unistd.in.h: Likewise.
22143         * lib/wchar.in.h: Likewise.
22144         * lib/wctype.in.h: Likewise.
22145         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22146         * modules/fchdir (Makefile.am): Likewise.
22147         * modules/fcntl (Makefile.am): Likewise.
22148         * modules/float (Makefile.am): Likewise.
22149         * modules/iconv_open (Makefile.am): Likewise.
22150         * modules/inttypes (Makefile.am): Likewise.
22151         * modules/locale (Makefile.am): Likewise.
22152         * modules/math (Makefile.am): Likewise.
22153         * modules/netinet_in (Makefile.am): Likewise.
22154         * modules/search (Makefile.am): Likewise.
22155         * modules/signal (Makefile.am): Likewise.
22156         * modules/stdarg (Makefile.am): Likewise.
22157         * modules/stdint (Makefile.am): Likewise.
22158         * modules/stdio (Makefile.am): Likewise.
22159         * modules/stdlib (Makefile.am): Likewise.
22160         * modules/string (Makefile.am): Likewise.
22161         * modules/strings (Makefile.am): Likewise.
22162         * modules/sys_select (Makefile.am): Likewise.
22163         * modules/sys_socket (Makefile.am): Likewise.
22164         * modules/sys_stat (Makefile.am): Likewise.
22165         * modules/sys_time (Makefile.am): Likewise.
22166         * modules/sysexits (Makefile.am): Likewise.
22167         * modules/time (Makefile.am): Likewise.
22168         * modules/unistd (Makefile.am): Likewise.
22169         * modules/wchar (Makefile.am): Likewise.
22170         * modules/wctype (Makefile.am): Likewise.
22171         Reported by Reuben Thomas <rrt@sc3d.org>.
22172
22173 2008-08-29  Bruno Haible  <bruno@clisp.org>
22174
22175         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22176         any more.
22177
22178 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22179
22180         * MODULES.html.sh (Misc): Add bitrotate.
22181
22182         * modules/bitrotate: New file.
22183
22184         * lib/bitrotate.h: New file.
22185
22186         * modules/bitrotate-tests: New file.
22187
22188         * tests/test-bitrotate.c: New file.
22189
22190         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22191         on the bitrotate module.
22192
22193         * lib/arctwo.c: Use new bitrotate module.
22194
22195 2008-08-29  Jim Meyering  <meyering@redhat.com>
22196
22197         bootstrap: merge changes from coreutils
22198         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22199         of copied files.  Remove a kludge, now that this is fixed.
22200         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22201         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22202         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22203
22204 2008-08-29  Bruno Haible  <bruno@clisp.org>
22205
22206         * MODULES.html.sh: Remove --cvs-urls option.
22207
22208 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22209
22210         maint.mk: adjust to file name change
22211         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22212
22213 2008-08-28  Jim Meyering  <meyering@redhat.com>
22214
22215         * modules/getndelim2 (License): Relicense to LGPLv2+.
22216         Approved by Richard Stallman for the version of 1995, and by
22217         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22218
22219 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22220
22221         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22222         dummy if one is not available.  Do not touch them if
22223         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22224         (getc_maybe_unlocked): New.
22225         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22226
22227 2008-08-26  Eric Blake  <ebb9@byu.net>
22228
22229         doc/INSTALL: resync from autoconf
22230         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22231         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22232         moving...
22233         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22234         * INSTALL: Regenerate.
22235         * INSTALL.ISO: New file.
22236         * INSTALL.UTF-8: Likewise.
22237
22238 2008-08-26  Jim Meyering  <meyering@redhat.com>
22239
22240         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22241         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22242         these definitions conditional, so that they may be overridden, too.
22243
22244 2008-08-26  Bruno Haible  <bruno@clisp.org>
22245
22246         Generate INSTALL file variants with prettier quotes.
22247         * doc/Makefile (INSTALL_PRELUDE): New macro.
22248         (INSTALL): Use it.
22249         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22250
22251 2008-08-26  Bruno Haible  <bruno@clisp.org>
22252
22253         Run makeinfo in an English locale.
22254         * doc/Makefile (MAKEINFO): New variable.
22255
22256 2008-08-26  Bruno Haible  <bruno@clisp.org>
22257
22258         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22259         Suggested by Eric Blake.
22260
22261 2008-08-25  Bruno Haible  <bruno@clisp.org>
22262
22263         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22264
22265 2008-08-25  Eric Blake  <ebb9@byu.net>
22266
22267         c-stack: test that stack overflow can be caught
22268         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22269         that platform allows handling stack overflow; at least OS/2 EMX
22270         has sigaltstack, but crashes before transferring control to
22271         handler on stack overflow.
22272         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22273         check for HAVE_STACK_OVERFLOW_HANDLING.
22274         Reported by Elbert Pol.
22275
22276 2008-08-25  Bruno Haible  <bruno@clisp.org>
22277
22278         * doc/posix-functions/strftime.texi: Fix description of strftime
22279         module.
22280
22281 2008-08-24  Bruno Haible  <bruno@clisp.org>
22282
22283         * tests/uniwidth/test-uc_width2.c: New file.
22284         * tests/uniwidth/test-uc_width2.sh: New file.
22285         * modules/uniwidth/width-tests (Files): Add the new files.
22286         (TESTS): Add uniwidth/test-uc_width2.sh.
22287         (TESTS_ENVIRONMENT): New variable.
22288         (check_PROGRAMS): Add test-uc_width2.
22289         (test_uc_width2_SOURCES): New variable.
22290
22291         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22292         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22293         not 0x00AB.
22294         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22295
22296 2008-08-22  Eric Blake  <ebb9@byu.net>
22297
22298         test-lock, test-tls: mention why a test is skipped
22299         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22300         skipped.
22301         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22302
22303         count-one-bits: relax license
22304         * modules/count-one-bits (License): Relicense to LGPLv2+.
22305         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22306
22307 2008-08-22  Andreas Schwab  <schwab@suse.de>
22308
22309         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22310         Remove spurious space in assignment.
22311
22312 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22313
22314         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22315         Paul Eggert <eggert@CS.UCLA.EDU>.
22316
22317 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22318
22319         * modules/gettext: Add m4/threadlib.m4.
22320
22321 2008-08-19  Eric Blake  <ebb9@byu.net>
22322
22323         test-c-stack: fix compilation failure on FreeBSD 5.0
22324         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22325         headers before <sys/resource.h>.
22326         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22327         the bug.
22328         Reported by Nelson H. F. Beebe.
22329
22330         strverscmp: migrate from "strverscmp.h" to <string.h>
22331         * modules/string (Makefile.am): Add new hooks.
22332         * modules/strverscmp (Files): Remove strverscmp.h.
22333         (Depends-on): Add string.
22334         (configure.ac): Add indicator.
22335         (Include): Mention new header.
22336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22337         defaults.
22338         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22339         results.
22340         * lib/strverscmp.h: Delete.
22341         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22342         * tests/test-strverscmp.c (includes): Adjust client.
22343         * lib/check-version.c (includes): Likewise.
22344         * NEWS: Document the change.
22345
22346         strverscmp: add unit test
22347         * modules/strverscmp-tests: New file.
22348         * tests/test-strverscmp.c: Likewise.
22349
22350 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22351
22352         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22353         regarding Windows crypto stuff, from Mono.
22354
22355 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22356
22357         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22358         if present, for intel RND.  Return error on failures.
22359
22360 2008-08-18  Ben Pfaff  <blp@gnu.org>
22361
22362         gitlog-to-changelog: give better diagnostic for failed pipe-open
22363         * build-aux/gitlog-to-changelog: Improve error message: suggest
22364         that the version of Git may be too old.
22365
22366 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22367
22368         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22369         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22370
22371 2008-08-18  Bruno Haible  <bruno@clisp.org>
22372
22373         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22374         pthread_in_use().
22375
22376 2008-08-18  Bruno Haible  <bruno@clisp.org>
22377
22378         * lib/glthread/threadlib.c: Include <pthread.h>.
22379
22380 2008-08-18  Bruno Haible  <bruno@clisp.org>
22381
22382         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22383         glthread_recursive_lock_* macros.
22384         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22385         Fix syntax error.
22386
22387 2008-08-18  Bruno Haible  <bruno@clisp.org>
22388
22389         * lib/glthread/thread.c: Avoid forcing a context switch right after
22390         thread creation.
22391
22392 2008-08-17  Bruno Haible  <bruno@clisp.org>
22393
22394         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22395         * lib/glthread/thread.h: Provide Win32 specific implementation.
22396         * modules/thread (Files): Add lib/glthread/thread.c.
22397         (Depends-on): Add lock.
22398         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22399
22400 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22401
22402         New module 'yield'.
22403         * modules/yield: New file.
22404         * lib/glthread/yield.h: New file.
22405         * m4/yield.m4: New file.
22406         * MODULES.html.sh (Multithreading): Add yield.
22407
22408 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22409
22410         New module 'thread'.
22411         * modules/thread: New file.
22412         * lib/glthread/thread.h: New file.
22413         * m4/thread.m4: New file.
22414         * MODULES.html.sh (Multithreading): Add thread.
22415
22416 2008-08-17  Bruno Haible  <bruno@clisp.org>
22417
22418         * lib/glthread/lock.h: Include <stdlib.h> always.
22419         * lib/glthread/tls.h: Likewise.
22420         * lib/glthread/cond.h: Likewise.
22421
22422 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22423
22424         New module 'cond'.
22425         * modules/cond: New file.
22426         * lib/glthread/cond.h: New file.
22427         * lib/glthread/cond.c: New file.
22428         * m4/cond.m4: New file.
22429         * MODULES.html.sh (Multithreading): Add cond.
22430
22431 2008-08-16  Eric Blake  <ebb9@byu.net>
22432
22433         c-stack: fix regression on Irix 5.3 from 2008-06-21
22434         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22435         sa_sigaction...
22436         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22437         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22438         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22439         * modules/signal (Makefile.am): Use the value.
22440         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22441         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22442         * doc/posix-headers/signal.texi (signal.h): Document this
22443         portability issue.
22444         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22445         Reported by Tom G. Christensen.
22446
22447 2008-08-17  Bruno Haible  <bruno@clisp.org>
22448
22449         New module 'threadlib'.
22450         * modules/threadlib: New file.
22451         * lib/glthread/threadlib.c: New file, extracted from
22452         lib/glthread/lock.c.
22453         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22454         functions.
22455         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22456         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22457         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22458         macros.
22459         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22460         (gl_DISABLE_THREADS): Remove macro.
22461         * modules/lock (Files): Remove build-aux/config.rpath.
22462         (Depends-on): Remove havelib. Add threadlib.
22463         (configure.ac-early): Remove section.
22464         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22465         * modules/tls (Depends-on): Remove lock. Add threadlib.
22466         (Link): New section, copied from threadlib.
22467         * MODULES.html.sh (Multithreading): Add threadlib.
22468
22469 2008-08-14  Bruno Haible  <bruno@clisp.org>
22470
22471         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22472         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22473         glthread_rwlock_unlock, glthread_rwlock_destroy,
22474         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22475         glthread_recursive_lock_destroy): Define as macros always.
22476         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22477         glthread_lock_lock.
22478         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22479         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22480         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22481         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22482         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22483         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22484         (glthread_recursive_lock_lock_func): Renamed from
22485         glthread_recursive_lock_lock.
22486         (glthread_recursive_lock_unlock_func): Renamed from
22487         glthread_recursive_lock_unlock.
22488         (glthread_recursive_lock_destroy_func): Renamed from
22489         glthread_recursive_lock_destroy.
22490
22491 2008-08-14  Bruno Haible  <bruno@clisp.org>
22492
22493         * lib/glthread/lock.h: Renamed from lib/lock.h.
22494         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22495         * lib/glthread/tls.h: Renamed from lib/tls.h.
22496         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22497         * lib/fstrcmp.c: Update includes.
22498         * lib/strsignal.c: Update includes.
22499         * modules/lock (Files, Makefile.am): Update.
22500         (Include): Change to "glthread/lock.h".
22501         * modules/tls (Files, Makefile.am): Update.
22502         (Include): Change to "glthread/tls.h".
22503         * tests/test-lock.c: Update includes.
22504         * tests/test-tls.c: Update includes.
22505         * NEWS: Mention the renamed header files.
22506
22507 2008-08-11  Jim Meyering  <meyering@redhat.com>
22508
22509         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22510
22511 2008-08-11  Eric Blake  <ebb9@byu.net>
22512
22513         test-c-stack: avoid C99-ism
22514         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22515         before statement.
22516         Reported by Alain Guibert.
22517
22518 2008-08-10  Jim Meyering  <meyering@redhat.com>
22519
22520         ensure that return value of uinttostr et al are not ignored
22521         * lib/inttostr.h (__GNUC_PREREQ): Define.
22522         (__attribute_warn_unused_result__): Define.
22523         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22524
22525 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22526
22527         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22528         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22529
22530 2008-08-07  Jim Meyering  <meyering@redhat.com>
22531
22532         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22533
22534         * modules/mkstemp (License): Relicense under LGPLv2+.
22535         * modules/tempname (License): Likewise.
22536
22537 2008-08-06  Bruno Haible  <bruno@clisp.org>
22538
22539         * lib/poll.c (poll): Further micro-optimization.
22540
22541 2008-08-06  Jim Meyering  <meyering@redhat.com>
22542
22543         inet_pton.c: use locale-independent tolower
22544         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22545         (inet_pton6): Use c_tolower rather than tolower.
22546         * modules/inet_pton (Depends-on): Add c-ctype.
22547
22548 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22549
22550         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22551         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22552
22553 2008-08-06  Jim Meyering  <meyering@redhat.com>
22554
22555         * modules/inet_pton (License): Relicense under LGPLv2+.
22556
22557 2008-08-03  Bruno Haible  <bruno@clisp.org>
22558
22559         Additional non-aborting API for lock and tls.
22560         * lib/lock.h: Include <errno.h>.
22561         (glthread_lock_init): New macro/function.
22562         (gl_lock_init): Define as wrapper around glthread_lock_init.
22563         (glthread_lock_lock): New macro/function.
22564         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22565         (glthread_lock_unlock): New macro/function.
22566         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22567         (glthread_lock_destroy): New macro/function.
22568         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22569         (glthread_rwlock_init): New macro/function.
22570         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22571         (glthread_rwlock_rdlock): New macro/function.
22572         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22573         (glthread_rwlock_wrlock): New macro/function.
22574         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22575         (glthread_rwlock_unlock): New macro/function.
22576         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22577         (glthread_rwlock_destroy): New macro/function.
22578         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22579         (glthread_recursive_lock_init): New macro/function.
22580         (gl_recursive_lock_init): Define as wrapper around
22581         glthread_recursive_lock_init.
22582         (glthread_recursive_lock_lock): New macro/function.
22583         (gl_recursive_lock_lock): Define as wrapper around
22584         glthread_recursive_lock_lock.
22585         (glthread_recursive_lock_unlock): New macro/function.
22586         (gl_recursive_lock_unlock): Define as wrapper around
22587         glthread_recursive_lock_unlock.
22588         (glthread_recursive_lock_destroy): New macro/function.
22589         (gl_recursive_lock_destroy): Define as wrapper around
22590         glthread_recursive_lock_destroy.
22591         (glthread_once): New macro/function.
22592         (gl_once): Define as wrapper around glthread_once.
22593         Update function declarations.
22594         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22595         glthread_rwlock_init. Return error code.
22596         (glthread_rwlock_rdlock_multithreaded): Renamed from
22597         glthread_rwlock_rdlock. Return error code.
22598         (glthread_rwlock_wrlock_multithreaded): Renamed from
22599         glthread_rwlock_wrlock. Return error code.
22600         (glthread_rwlock_unlock_multithreaded): Renamed from
22601         glthread_rwlock_unlock. Return error code.
22602         (glthread_rwlock_destroy_multithreaded): Renamed from
22603         glthread_rwlock_destroy. Return error code.
22604         (glthread_recursive_lock_init_multithreaded): Renamed from
22605         glthread_recursive_lock_init. Return error code.
22606         (glthread_recursive_lock_lock_multithreaded): Renamed from
22607         glthread_recursive_lock_lock. Return error code.
22608         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22609         glthread_recursive_lock_unlock. Return error code.
22610         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22611         glthread_recursive_lock_destroy. Return error code.
22612         (glthread_once_call): Make static.
22613         (glthread_once_multithreaded): Renamed from glthread_once.
22614         * lib/tls.h: Include <errno.h>.
22615         (glthread_tls_key_init): New macro/function.
22616         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22617         (glthread_tls_set): New macro/function.
22618         (gl_tls_set): Define as wrapper around glthread_tls_set.
22619         (glthread_tls_key_destroy): New macro/function.
22620         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22621         Update function declarations.
22622         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22623         glthread_tls_get.
22624         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22625
22626 2008-08-04  Eric Blake  <ebb9@byu.net>
22627
22628         gnumakefile: use space, not TAB, outside of targets
22629         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22630
22631 2008-08-02  Jim Meyering  <meyering@redhat.com>
22632
22633         getdate.y: avoid locale-dependent date parsing failure
22634         In Turkish locales, getdate would fail to recognize keywords
22635         containing a lowercase "i".  The solution is not to rely on
22636         locale-sensitive case-conversion.
22637         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22638         (lookup_word): Use c_toupper in place of toupper.
22639         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22640         Reported by Vefa Bicakci <bicave@superonline.com> in
22641         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22642         * modules/getdate (Depends-on): Add c-ctype.
22643
22644 2008-08-02  Bruno Haible  <bruno@clisp.org>
22645
22646         * gnulib-tool (func_import): When updating or creating a .gitignore
22647         file, prepend each added line with a slash, and ignore leading slashes
22648         from the existing lines.
22649         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22650
22651 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22652
22653         Portability fix for GNU make 3.79.1.
22654         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22655         versions do not understand.
22656
22657 2008-08-01  Bruno Haible  <bruno@clisp.org>
22658
22659         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22660         * tests/test-isnanf.h (zero): New variable.
22661         (main): Avoid literal -0.0f.
22662         * tests/test-isnand.h (zero): New variable.
22663         (main): Avoid literal -0.0.
22664         * tests/test-isnanl.h (zero): New variable.
22665         (main): Avoid literal -0.0L.
22666         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22667         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22668         -0.0, -0.0L.
22669         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22670         (test_signbitd): Avoid literal -0.0.
22671         (test_signbitl): Avoid literal -0.0L.
22672         * tests/test-ceilf1.c (zero): New variable.
22673         (main): Avoid literal -0.0f.
22674         * tests/test-ceill.c (zero): New variable.
22675         (main): Avoid literal -0.0L.
22676         * tests/test-floorf1.c (zero): New variable.
22677         (main): Avoid literal -0.0f.
22678         * tests/test-floorl.c (zero): New variable.
22679         (main): Avoid literal -0.0L.
22680         * tests/test-roundf1.c (zero): New variable.
22681         (main): Avoid literal -0.0f.
22682         * tests/test-round1.c (zero): New variable.
22683         (main): Avoid literal -0.0.
22684         * tests/test-roundl.c (zero): New variable.
22685         (main): Avoid literal -0.0L.
22686         * tests/test-truncf1.c (zero): New variable.
22687         (main): Avoid literal -0.0f.
22688         * tests/test-trunc1.c (zero): New variable.
22689         (main): Avoid literal -0.0.
22690         * tests/test-truncl.c (zero): New variable.
22691         (main): Avoid literal -0.0L.
22692         * tests/test-frexp.c (zero): New variable.
22693         (main): Avoid literal -0.0.
22694         * tests/test-frexpl.c (zero): New variable.
22695         (main): Avoid literal -0.0L.
22696         * tests/test-ldexpl.c (zero): New variable.
22697         (main): Avoid literal -0.0L.
22698         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22699         (zerod, zerol): New variables.
22700         (test_function): Avoid literals -0.0, -0.0L.
22701         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22702         (zerod, zerol): New variables.
22703         (test_function): Avoid literals -0.0, -0.0L.
22704         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22705         (zerod, zerol): New variables.
22706         (test_function): Avoid literals -0.0, -0.0L.
22707         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22708         (zerod, zerol): New variables.
22709         (test_function): Avoid literals -0.0, -0.0L.
22710         * tests/test-strtod.c (zero): New variable.
22711         (main): Avoid literal -0.0.
22712         Reported by Jonathan C. Patschke <jp@centtech.com>.
22713
22714 2008-07-31  Jim Meyering  <meyering@redhat.com>
22715
22716         sha256.h: correct definition of SHA224_DIGEST_SIZE
22717         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22718         Reported by Paulie Pena IV <paulie4@gmail.com>.
22719         Define as 224 / 8, rather than as a literal.
22720         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22721         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22722         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22723
22724 2008-07-31  Bruno Haible  <bruno@clisp.org>
22725
22726         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22727         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22728         Reported by Jonathan Patschke <jp@centtech.com>.
22729
22730 2008-07-31  Bruno Haible  <bruno@clisp.org>
22731
22732         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22733         Reported by Paolo Bonzini <bonzini@gnu.org>.
22734
22735 2008-07-30  Eric Blake  <ebb9@byu.net>
22736
22737         test-strtod: allow compilation without -lm
22738         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22739         Reported by Dennis Clarke <blastwave@gmail.com>.
22740
22741 2008-07-28  Jim Meyering  <meyering@redhat.com>
22742
22743         bootstrap: work also when there are no .po files in po/
22744         * build-aux/bootstrap (update_po_files): Complete the change
22745         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22746
22747 2008-07-27  Jim Meyering  <meyering@redhat.com>
22748
22749         * users.txt: Add zile.
22750
22751 2008-07-26  Ben Pfaff  <blp@gnu.org>
22752
22753         Add missing dependencies on new m4/exponent[fdl].m4 files.
22754         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22755         * modules/isnand-nolibm: Add m4/exponentd.m4.
22756         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22757         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22758         m4/isnan[fdl].m4, because the macros actually used moved.
22759         Reported by Jim Meyering.
22760
22761 2008-07-14  Ben Pfaff  <blp@gnu.org>
22762
22763         Add isinf module.
22764         * lib/isinf.c: New file.
22765         * lib/math.in.h: Define isinf macro if we have decided to replace
22766         it.
22767         * m4/isinf.m4: New file.
22768         * m4/math_h.m4: Initialize and substitute variables for isinf
22769         module.
22770         * modules/isinf: New file.
22771         * modules/isinf-tests: New file.
22772         * modules/math: Add substitutions for new module.
22773         * tests/test-isinf.c: New file.
22774         * doc/posix-functions/isinf.texi: Mention new module.
22775         * MODULES.html.sh: Mention new module.
22776
22777 2008-07-14  Ben Pfaff  <blp@gnu.org>
22778
22779         Factor out some macros for use by additional modules.
22780         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22781         exponentf.m4.
22782         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22783         exponentd.m4.
22784         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22785         file exponentl.m4.
22786         * m4/exponentf.m4: New file.
22787         * m4/exponentd.m4: New file.
22788         * m4/exponentl.m4: New file.
22789         * modules/isnanf: Use new file m4/exponentf.m4.
22790         * modules/isnand: Use new file m4/exponentd.m4.
22791         * modules/isnanl: Use new file m4/exponentl.m4.
22792
22793 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22794
22795         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22796         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22797         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22798         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22799
22800         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22801         readlink on platforms without PATH_MAX.
22802
22803 2008-07-21  Eric Blake  <ebb9@byu.net>
22804
22805         Warn, not fail, on stale version.
22806         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22807
22808         Don't allow installation with stale devel version number.
22809         * top/GNUmakefile (_is-install-target): New macro.
22810         (_curr-ver): Forbid installation with stale version number.
22811
22812 2008-07-20  Bruno Haible  <bruno@clisp.org>
22813
22814         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22815         TESTS_ENVIRONMENT.
22816         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22817
22818 2008-07-20  Bruno Haible  <bruno@clisp.org>
22819
22820         * lib/c-stack.h (c_stack_action): Add documentation.
22821         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22822
22823 2008-07-20  Bruno Haible  <bruno@clisp.org>
22824
22825         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22826         * modules/readlink (License): Likewise.
22827
22828 2008-07-17  Eric Blake  <ebb9@byu.net>
22829
22830         * modules/c-stack (Link): Fix typo.
22831
22832         Make c-stack use libsigsegv, when available.
22833         * modules/c-stack (Depends-on): Add libsigsegv.
22834         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22835         needed.
22836         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22837         (segv_handler, overflow_handler, c_stack_action)
22838         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22839         implementation when libsigsegv is available, but only when using
22840         the library is necessary.
22841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22842         comment, explaining why XSI check fails on Linux.
22843         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22844         * tests/test-c-stack2.sh: Tweak skip message.
22845         * NEWS: Document new link-time requirements.
22846
22847 2008-07-16  Eric Blake  <ebb9@byu.net>
22848
22849         c-stack: Expose false positives when not using libsigsegv.
22850         * modules/c-stack-tests (Files): Expand test.
22851         * tests/test-c-stack.c (main): Add means to conditionally trigger
22852         non-overflow SIGSEGV.
22853         * tests/test-c-stack2.sh: New file.
22854
22855 2008-07-14  Bruno Haible  <bruno@clisp.org>
22856
22857         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22858         Reported by Eric Blake.
22859
22860 2008-07-14  Sam Steingold  <sds@gnu.org>
22861             Bruno Haible  <bruno@clisp.org>
22862
22863         New module libsigsegv.
22864         * modules/libsigsegv: New file.
22865         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22866         modifications.
22867         * MODULES.html.sh (Signal handling): New section.
22868
22869 2008-07-14  Bruno Haible  <bruno@clisp.org>
22870
22871         * modules/unictype/ctype-* (Description): Add the word "function".
22872         Improves the resulting doc in MODULES.html.
22873
22874 2008-07-12  Ben Pfaff  <blp@gnu.org>
22875
22876         Add longlong module.
22877         * modules/longlong: New file.
22878
22879 2008-07-12  Bruno Haible  <bruno@clisp.org>
22880
22881         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22882         to empty.
22883
22884 2008-07-10  Ben Pfaff  <blp@gnu.org>
22885
22886         Add isnan module.
22887         * doc/posix-functions/isnan.texi: Mention new module.
22888         * lib/math.in.h: Define isnan macro if we have decided to replace
22889         it.
22890         * m4/isnan.m4: New file.
22891         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22892         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22893         also.
22894         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22895         redundancy.
22896         * m4/math_h.m4: Initialize and substitute variables for isnan
22897         module.
22898         * modules/isnan: New file.
22899         * modules/isnan-tests: New file.
22900         * modules/math: Add substitutions for new module.
22901         * tests/test-isnan.c: New file.
22902         * MODULES.html.sh: Mention new module.
22903
22904 2008-07-10  Ben Pfaff  <blp@gnu.org>
22905
22906         Add isnanf module.
22907         * lib/isnanf.m4: New file.
22908         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22909         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22910         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22911         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22912         * modules/isnanf: New file.
22913         * modules/isnanf-tests: New file.
22914         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22915         files.
22916         * tests/test-isnanf-nolibm.c: factored most of its contents into
22917         new file tests/test-isnanf.h.
22918         * tests/test-isnanf.h: New file.
22919         * tests/test-isnanf.c: New file.
22920         * MODULES.html.sh: Mention new module.
22921         * doc/glibc-functions/isnanf.texi: Mention new module.
22922
22923 2008-07-10  Ben Pfaff  <blp@gnu.org>
22924
22925         Add isnand module.
22926         * lib/isnand.h: New file.
22927         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22928         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22929         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22930         functionality also.
22931         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22932         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22933         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22934         * modules/isnand: New file.
22935         * modules/isnand-tests: New file.
22936         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22937         files.
22938         * tests/test-isnand-nolibm.c: factored most of its contents into
22939         new file tests/test-isnand.h.
22940         * tests/test-isnand.h: New file.
22941         * tests/test-isnand.c: New file.
22942         * MODULES.html.sh: Mention new module.
22943
22944 2008-07-10  Ben Pfaff  <blp@gnu.org>
22945
22946         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22947         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22948         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22949         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22950         * modules/isnanf-nolibm: Update references to renamed files.
22951         * modules/isnand-nolibm: Likewise.
22952         * modules/isnanf-nolibm-tests: Likewise.
22953         * modules/isnand-nolibm-tests: Likewise.
22954         * lib/frexp.c: Likewise.
22955         * lib/isfinite.c: Likewise.
22956         * lib/signbitd.c: Likewise.
22957         * lib/signbitf.c: Likewise.
22958         * lib/vasnprintf.c: Likewise.
22959         * tests/test-ceilf1.c: Likewise.
22960         * tests/test-ceilf2.c: Likewise.
22961         * tests/test-floorf1.c: Likewise.
22962         * tests/test-floorf2.c: Likewise.
22963         * tests/test-frexp.c: Likewise.
22964         * tests/test-round1.c: Likewise.
22965         * tests/test-round2.c: Likewise.
22966         * tests/test-roundf1.c: Likewise.
22967         * tests/test-strtod.c: Likewise.
22968         * tests/test-trunc1.c: Likewise.
22969         * tests/test-trunc2.c: Likewise.
22970         * tests/test-truncf1.c: Likewise.
22971         * tests/test-truncf2.c: Likewise.
22972         * NEWS: Mention the renamed header files.
22973
22974 2008-07-11  Jim Meyering  <meyering@redhat.com>
22975
22976         vc-list-files: make the last-resort awk code more portable
22977         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22978         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22979         does not support it.
22980
22981 2008-07-10  Eric Blake  <ebb9@byu.net>
22982
22983         Work with tar's bootstrap.
22984         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22985         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22986         an m4 comment.
22987
22988 2008-07-09  Jim Meyering  <meyering@redhat.com>
22989
22990         posix-shell.m4: fix typo that made this test malfunction
22991         * m4/posix-shell.m4: Remove capitalization in variable name.
22992
22993 2008-07-08  Bruno Haible  <bruno@clisp.org>
22994
22995         * m4/onceonly.m4: Update comments.
22996         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22997
22998 2008-07-04  Jim Meyering  <meyering@redhat.com>
22999
23000         * users.txt: Add vc-dwim.
23001         (bison, coreutils): Use the gitweb URL.
23002
23003 2008-07-03  Jim Meyering  <meyering@redhat.com>
23004
23005         * users.txt: Add libffcall.  From Sam Steingold.
23006
23007 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23008
23009         getdate.y: do not ignore TZ with relative day, month or year offset
23010         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23011         relative-date-handling, since otherwise, the latter would clobber the
23012         sole output (an updated Start value) of the tz-handling block.
23013         * tests/test-getdate.c: Tests for the fix
23014
23015 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23016
23017         Recognize 'foo_LIBRARIES += libgnu.a'.
23018         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23019         makefile snippet has already specified an installation location,
23020         also using '+='.
23021
23022 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23023
23024         getdate.y: factor out common actions
23025         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23026         Use them in place of open-coded actions.
23027
23028 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23029
23030         Add self-test for getdate module.
23031         * modules/getdate-tests: New file.
23032         * tests/test-getdate.c: New file.
23033
23034 2008-06-29  Bruno Haible  <bruno@clisp.org>
23035
23036         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23037         .gitignore.
23038         Reported by Sylvain Beucler <beuc@beuc.net>.
23039
23040 2008-06-29  Bruno Haible  <bruno@clisp.org>
23041
23042         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23043         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23044
23045 2008-06-29  Bruno Haible  <bruno@clisp.org>
23046
23047         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23048         EXTRA_DIST.
23049         Reported by Sylvain Beucler <beuc@beuc.net>.
23050
23051 2008-06-26  Jim Meyering  <meyering@redhat.com>
23052
23053         make several modules depend on the "open" module
23054         This provides slightly increased consistency when opening-for-write
23055         the name of a non-directory spelled with a trailing slash.
23056         * modules/chdir-safer: Likewise.
23057         * modules/chown: Likewise.
23058         * modules/clean-temp: Likewise.
23059         * modules/copy-file: Likewise.
23060         * modules/fchdir: Likewise.
23061         * modules/fcntl-safer: Likewise.
23062         * modules/pipe: Likewise.
23063         * modules/utime: Likewise.
23064         Prompted by Eric Blake and Bruno Haible.
23065
23066 2008-06-24  Andreas Schwab  <schwab@suse.de>
23067
23068         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23069         literals can be used as initializers for global variables.
23070
23071 2008-06-23  Eric Blake  <ebb9@byu.net>
23072
23073         Make gnulib-cache.m4 easier to diff.
23074         * gnulib-tool (func_import): Allow newlines when reading cached
23075         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23076
23077 2008-06-23  Bruno Haible  <bruno@clisp.org>
23078
23079         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23080         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23081         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23082         m4/signalblocking.m4.
23083         (gl_PREREQ_SIGACTION): Don't invoke it.
23084         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23085         gl_PREREQ_SIG_HANDLER_H.
23086         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23087         Don't check for sigaction here.
23088
23089 2008-06-23  Bruno Haible  <bruno@clisp.org>
23090
23091         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23092         (install_handlers): Don't set the SA_RESETHAND flag.
23093
23094 2008-06-23  Bruno Haible  <bruno@clisp.org>
23095
23096         * m4/sigaction.m4: Comment fixes.
23097         * lib/signal.in.h: Likewise.
23098
23099 2008-06-23  Eric Blake  <ebb9@byu.net>
23100
23101         Fix typo.
23102         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23103
23104         Avoid SA_ namespace.
23105         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23106         Reported by Ralf Wildenhues.
23107
23108         Avoid test failure due to SA_RESTORER.
23109         * tests/test-sigaction.c (SA_MASK): New macro.
23110         (main): Avoid failing due to extension flags being set.
23111         Reported by Jim Meyering.
23112
23113         Revert use of sig-handler.h in sigprocmask.c.
23114         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23115         it requires the existence of struct sigaction.
23116         * lib/sigprocmask.c (handler_t): Restore typedef.
23117         (rpl_signal, old_handlers): Use local type.
23118
23119 2008-06-22  Bruno Haible  <bruno@clisp.org>
23120
23121         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23122         conditionally.
23123         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23124
23125 2008-06-22  Bruno Haible  <bruno@clisp.org>
23126
23127         * doc/posix-functions/siginterrupt.texi: Move note.
23128
23129         * lib/signal.in.h (SA_RESTART): New macro.
23130         * lib/sigaction.c: Update comment.
23131
23132         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23133
23134         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23135         (gl_PREREQ_SIGPROCMASK): Invoke it.
23136         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23137
23138         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23139
23140         * lib/sigprocmask.c: Update a comment.
23141
23142 2008-06-21  Eric Blake  <ebb9@byu.net>
23143
23144         Use sigaction module rather than signal().
23145         * modules/c-stack (Depends-on): Add sigaction.
23146         * modules/fatal-signal (Depends-on): Likewise.
23147         * modules/nanosleep (Depends-on): Likewise.
23148         * modules/sigprocmask (Files): Add sig-handler.h.
23149         * modules/sigaction (Files): Likewise.
23150         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23151         Eggert.
23152         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23153         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23154         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23155         (init_fatal_signals): Likewise.
23156         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23157         (siginterrupt): Delete fallback.
23158         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23159         instead.
23160         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23161         siginterrupt.
23162
23163         New module sigaction, for mingw.
23164         * modules/sigaction: New module...
23165         * modules/sigaction-tests: ...and its test.
23166         * m4/sigaction.m4: New file.
23167         * lib/sigaction.c: Likewise.
23168         * tests/test-sigaction.c: Likewise.
23169         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23170         * modules/signal (Makefile.am): Likewise.
23171         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23172         needed.
23173         * doc/posix-headers/signal.texi (signal.h): Mention provided
23174         types.
23175         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23176         that sigaction is preferable.
23177         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23178         module.
23179         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23180         sigaction.
23181
23182         Improve robustness of sigprocmask by overriding signal.
23183         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23184         is in use.
23185         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23186         (SIGKILL, SIGSTOP): Provide fallbacks.
23187         (rpl_signal): Implement.
23188         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23189         signal can be called inside handlers.
23190
23191         Fix nanosleep module on mingw.
23192         * modules/nanosleep (Depends-on): Add sys_select.
23193         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23194
23195         Fix licensing of sigprocmask.
23196         * modules/raise (License): Relicense as LGPL.
23197
23198 2008-06-21  Bruno Haible  <bruno@clisp.org>
23199
23200         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23201         result if it contains question marks.
23202         Reported by Michael Geng <linux@michaelgeng.de>.
23203
23204 2008-06-19  Bruno Haible  <bruno@clisp.org>
23205
23206         Fix CVS-ism.
23207         * doc/gnulib.texi: Include updated-stamp.texi.
23208         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23209         (updated-stamp.texi): New rule.
23210         (gnulib.info): Depend on it.
23211         * doc/.gitignore: Add updated-stamp.texi.
23212         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23213
23214 2008-06-19  Bruno Haible  <bruno@clisp.org>
23215
23216         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23217         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23218
23219 2008-06-19  Eric Blake  <ebb9@byu.net>
23220
23221         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23222         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23223         Reported by Stepan Kasal.
23224
23225 2008-06-18  Bruno Haible  <bruno@clisp.org>
23226
23227         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23228         Reported by Eric Blake.
23229
23230 2008-06-18  Eric Blake  <ebb9@byu.net>
23231
23232         Work around cygwin 1.5.25 strsignal bug.
23233         * tests/test-strsignal.c: Allow for const char *.
23234         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23235
23236 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23237
23238         * users.txt: Update URL to article and add author/date
23239         information.
23240
23241 2008-06-17  Bruno Haible  <bruno@clisp.org>
23242
23243         New macro gl_DISABLE_THREADS.
23244         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23245         if the user did not pass --enable-threads or --disable-threads option.
23246         (gl_DISABLE_THREADS): New macro.
23247         Reported by Eric Blake <ebb9@byu.net>.
23248
23249 2008-06-17  Bruno Haible  <bruno@clisp.org>
23250
23251         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23252         when the macro ignores it.
23253         Based on a patch by Eric Blake <ebb9@byu.net>.
23254
23255 2008-06-17  Bruno Haible  <bruno@clisp.org>
23256
23257         * modules/tls (License): Change to LGPLv2+.
23258         Reported by Eric Blake.
23259
23260 2008-06-17  Eric Blake  <ebb9@byu.net>
23261
23262         Simplify c-stack prerequisites.
23263         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23265         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23266         check.
23267         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23268         <sys/resource.h>.
23269
23270         Move c-stack test into testsuite.
23271         * modules/c-stack-tests: New file.
23272         * lib/c-stack.c [DEBUG]: Move test program...
23273         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23274         fail test if sigaltstack is lacking.
23275         * tests/test-c-stack.sh: New driver file.
23276
23277 2008-06-16  Eric Blake  <ebb9@byu.net>
23278
23279         Use raise module consistently.
23280         * modules/fatal-signal (Depends-on): Add raise.
23281         * modules/sigprocmask (Depends-on): Likewise.
23282         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23283         * lib/sigprocmask.c (sigprocmask): Likewise.
23284         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23285         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23286
23287         Fix compliance bug in sigpending.
23288         * lib/sigprocmask.c (sigpending): Return pending array via
23289         parameter, not return value.
23290
23291 2008-06-14  Eric Blake  <ebb9@byu.net>
23292
23293         Improve obstack-printf test code.
23294         * tests/test-obstack-printf.c (test_function): Fix comment, and
23295         simplify usage of obstack_* in macros.  Add a test for coverage.
23296         Reported by Bruno Haible.
23297
23298 2008-06-14  Bruno Haible  <bruno@clisp.org>
23299
23300         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23301         array size as a constant, not as a const variable.
23302         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23303         AC_USE_SYSTEM_EXTENSIONS.
23304         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23305         Test whether the obstack_printf function actually exists.
23306         * modules/obstack-printf (Depends-on): Add extensions.
23307         (Include): Remove obstack.h.
23308         * modules/obstack-printf-posix (Depends-on): Add extensions.
23309         (Include): Remove obstack.h.
23310
23311 2008-06-13  Eric Blake  <ebb9@byu.net>
23312
23313         Add obstack-printf and obstack-printf-posix modules.
23314         * modules/obstack-printf: New file.
23315         * modules/obstack-printf-posix: Likewise.
23316         * MODULES.html.sh (Misc): Mention them.
23317         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23318         Likewise.
23319         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23320         Likewise.
23321         * modules/stdio (Makefile.am): Accomodate new modules.
23322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23323         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23324         Declare.
23325         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23326         functions.
23327         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23328         (gl_REPLACE_OBSTACK_PRINTF): New macros
23329         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23330         * tests/test-obstack-printf.c: New file.
23331         * modules/obstack-printf-tests: Likewise.
23332         * modules/obstack-printf-posix-tests: Likewise.
23333
23334 2008-06-11  Bruno Haible  <bruno@clisp.org>
23335
23336         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23337         * lib/open.c: Include errno.h.
23338         (open): Fail when attempting to write to a file that has a trailing
23339         slash.
23340         * tests/test-open.c (main): Test against trailing slash bug.
23341         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23342
23343 2008-06-10  Bruno Haible  <bruno@clisp.org>
23344
23345         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23346         for $? to work inside the trap command, with various /bin/sh-s.
23347         * tests/test-vc-list-files-cvs.sh: Likewise.
23348
23349 2008-06-10  Bruno Haible  <bruno@clisp.org>
23350
23351         * lib/acl-internal.h: Don't include gettext.h here.
23352         * lib/set-mode-acl.c: Include gettext.h here.
23353         * lib/copy-acl.c: Likewise.
23354
23355 2008-06-10  Bruno Haible  <bruno@clisp.org>
23356
23357         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23358         * lib/wait-process.c (wait_subprocess): Likewise.
23359         * lib/execute.h (execute): Add termsigp argument.
23360         * lib/execute.c (execute): Likewise.
23361         * lib/csharpcomp.c (compile_csharp_using_pnet,
23362         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23363         * lib/csharpexec.c (execute_csharp_using_pnet,
23364         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23365         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23366         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23367         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23368         is_jikes_present): Update.
23369         * lib/javaexec.c (execute_java_class): Update.
23370         * lib/javaversion.c (execute_and_read_line): Update.
23371         * NEWS: Document the changes.
23372         Reported by Eric Blake.
23373
23374 2008-06-10  Eric Blake  <ebb9@byu.net>
23375
23376         Add missing include.
23377         * tests/test-strstr.c (includes): Add <signal.h>.
23378         * tests/test-strcasestr.c (includes): Likewise.
23379         * tests/test-memmem.c (includes): Likewise.
23380
23381 2008-06-10  Bruno Haible  <bruno@clisp.org>
23382
23383         * lib/wait-process.c (wait_subprocess): Add an assertion.
23384
23385 2008-06-10  Bruno Haible  <bruno@clisp.org>
23386
23387         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23388
23389 2008-06-10  Bruno Haible  <bruno@clisp.org>
23390
23391         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23392         using alarm().
23393         * tests/test-strcasestr.c (main): Likewise.
23394         * tests/test-strstr.c (main): Likewise.
23395
23396 2008-06-09  Bruno Haible  <bruno@clisp.org>
23397
23398         Work around the Solaris 10 ACE ACLs ABI change.
23399         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23400         declare if ACL_NO_TRIVIAL is present.
23401         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23402         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23403         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23404         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23405         define if ACL_NO_TRIVIAL is present.
23406         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23407         and use the current ABI.
23408         (file_has_acl): Use same #if condition as elsewhere.
23409         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23410         in use, and use the current ABI.
23411         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23412         Reported by Jim Meyering.
23413
23414 2008-06-09  Eric Blake  <ebb9@byu.net>
23415
23416         Work around environments that (stupidly) ignore SIGALRM.
23417         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23418         before using alarm().
23419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23421         Reported by Ian Beckwith <ianb@erislabs.net>.
23422
23423         Produce autobuild blurb earlier in log.
23424         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23425
23426 2008-06-09  Jim Meyering  <meyering@redhat.com>
23427         and OndÅ™ej Vašík  <ovasik@redhat.com>
23428
23429         utimens.c: correct kernel bug work-around
23430         OndÅ™ej Vašík found that the invalid return value of 280 indicates
23431         failure, not success, and the kernel bug we're trying to work
23432         around affects not just the utimensat call, but also the fallback
23433         futimens call.
23434         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23435         not success.
23436         [HAVE_FUTIMENS]: Use the same work-around, here.
23437
23438 2008-06-09  Jim Meyering  <meyering@redhat.com>
23439
23440         add more guards around definition of ACE_-related code
23441         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23442         ALLOW and ACE_OWNER are also defined.
23443
23444 2008-06-08  Bruno Haible  <bruno@clisp.org>
23445
23446         * lib/acl-internal.h: Add me as co-author.
23447         * lib/file-has-acl.c: Likewise.
23448         * lib/set-mode-acl.c: Likewise.
23449         * lib/copy-acl.c: Likewise.
23450
23451 2008-06-08  Bruno Haible  <bruno@clisp.org>
23452
23453         Add support for AIX ACLs.
23454         * lib/acl-internal.h (acl_nontrivial): New declaration.
23455         * lib/file-has-acl.c (acl_nontrivial): New function.
23456         (file_has_acl): Add implementation using AIX 4 ACL API.
23457         * lib/set-mode-acl.c (qset_acl): Likewise.
23458         * lib/copy-acl.c (qcopy_acl): Likewise.
23459
23460 2008-06-08  Bruno Haible  <bruno@clisp.org>
23461
23462         Add support for HP-UX ACLs.
23463         * lib/acl-internal.h (acl_nontrivial): New declaration.
23464         * lib/file-has-acl.c (acl_nontrivial): New function.
23465         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23466         * lib/set-mode-acl.c (qset_acl): Likewise.
23467         * lib/copy-acl.c (qcopy_acl): Likewise.
23468
23469 2008-06-08  Bruno Haible  <bruno@clisp.org>
23470
23471         Add support for Cygwin ACLs.
23472         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23473         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23474         the chmod_or_fchmod call.
23475         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23476
23477 2008-06-08  Bruno Haible  <bruno@clisp.org>
23478
23479         Fix bug with setuid modes in Solaris 10+ code.
23480         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23481         succeeded, when the mode contains some special bits.
23482
23483 2008-06-08  Bruno Haible  <bruno@clisp.org>
23484
23485         Add support for Solaris 7..10 ACLs.
23486         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23487         declarations.
23488         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23489         functions.
23490         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23491         * lib/set-mode-acl.c (qset_acl): Likewise.
23492         * lib/copy-acl.c (qcopy_acl): Likewise.
23493
23494 2008-06-08  Bruno Haible  <bruno@clisp.org>
23495
23496         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23497         declaration.
23498         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23499         (acl_access_nontrivial): Remove MacOS X case.
23500         (file_has_acl): Use acl_extended_nontrivial.
23501         * lib/copy-acl.c (qcopy_acl): Likewise.
23502
23503 2008-06-08  Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23506
23507 2008-06-08  Jim Meyering  <meyering@redhat.com>
23508
23509         * modules/acl (Maintainer): Add Bruno Haible.
23510
23511 2008-06-07  Bruno Haible  <bruno@clisp.org>
23512
23513         Improve support for Tru64 ACLs.
23514         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23515         ACL on OSF/1.
23516
23517 2008-06-07  Bruno Haible  <bruno@clisp.org>
23518
23519         Add support for MacOS X ACLs.
23520         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23521         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23522         * lib/set-mode-acl.c (qset_acl): Likewise.
23523         * lib/copy-acl.c (qcopy_acl): Likewise.
23524
23525 2008-06-07  Bruno Haible  <bruno@clisp.org>
23526
23527         Fix memory leak introduced on 2008-05-22.
23528         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23529         use.
23530
23531 2008-06-07  Bruno Haible  <bruno@clisp.org>
23532
23533         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23534         to construct an empty ACL.
23535
23536 2008-06-07  Bruno Haible  <bruno@clisp.org>
23537
23538         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23539         precisely.
23540         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23541
23542 2008-06-07  Bruno Haible  <bruno@clisp.org>
23543
23544         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23545         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23546
23547 2008-06-07  Bruno Haible  <bruno@clisp.org>
23548
23549         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23550         regardless of POSIX.
23551         * doc/posix-functions/_longjmp.texi: Likewise.
23552         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23553         SystemV platform in this case.
23554
23555 2008-06-06  Eric Blake  <ebb9@byu.net>
23556
23557         Document abort() bugs.
23558         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23559
23560         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23561         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23562         sigsetjmp.
23563         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23564         siglongjmp, but only as a macro.
23565         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23566         is obsolete.
23567         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23568
23569         Tweak documentation to cover cygwin argz bugs.
23570         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23571         argz bug fix; no code change needed since no cygwin releases
23572         occurred between the last fix and the bug being tested.
23573         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23574         module and recently fixed cygwin bugs.
23575         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23576         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23577         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23578         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23579         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23580         Likewise.
23581         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23582         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23583         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23584         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23585         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23586         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23587         Likewise.
23588
23589         Avoid gcc warning on cygwin.
23590         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23591         !ACL_NO_TRIVIAL]: Avoid unused variable.
23592
23593 2008-06-05  Eric Blake  <ebb9@byu.net>
23594
23595         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23596         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23597         git-version-gen fails to come up with a version.
23598         Reported by Simon Josefsson.
23599
23600 2008-06-05  Jim Meyering  <meyering@redhat.com>
23601             Paul Eggert  <eggert@cs.ucla.edu>
23602
23603         utimens.c: work around a probable Linux kernel bug
23604         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23605         appears to be a kernel bug that causes utimensat to return 280
23606         instead of 0, indicating success.
23607
23608 2008-06-04  Bruno Haible  <bruno@clisp.org>
23609
23610         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23611         2008-06-01 commit.
23612
23613 2008-06-04  Bruno Haible  <bruno@clisp.org>
23614
23615         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23616         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23617         (file_has_acl): Use it. Save errno afterwards.
23618         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23619
23620 2008-06-03  Bruno Haible  <bruno@clisp.org>
23621
23622         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23623         draft code. Simplify #ifs.
23624         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23625         Put Solaris code after POSIX-draft code. Fix comments regarding
23626         Solaris 10, HP-UX. Mention Cygwin.
23627         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23628
23629 2008-06-03  Eric Blake  <ebb9@byu.net>
23630
23631         Provide fallback for older kernels.
23632         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23633         Provide runtime fallback if kernel lacks support.
23634         Reported by Mike Frysinger.
23635
23636 2008-06-02  Bruno Haible  <bruno@clisp.org>
23637
23638         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23639         it exists.
23640
23641 2008-06-02  Bruno Haible  <bruno@clisp.org>
23642
23643         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23644         * lib/copy-acl.c (qcopy_acl): Update comment.
23645
23646 2008-06-02  Bruno Haible  <bruno@clisp.org>
23647
23648         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23649         like ACL APIs.
23650
23651 2008-06-02  Bruno Haible  <bruno@clisp.org>
23652
23653         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23654         * tests/test-set-mode-acl.sh: Likewise.
23655         * tests/test-copy-acl.sh: Likewise.
23656         * tests/test-copy-file.sh: Likewise.
23657
23658 2008-06-02  Bruno Haible  <bruno@clisp.org>
23659
23660         * tests/test-file-has-acl.sh: Remove unused code.
23661
23662 2008-06-01  Bruno Haible  <bruno@clisp.org>
23663
23664         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23665         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23666         messages.
23667         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23668
23669 2008-06-01  Bruno Haible  <bruno@clisp.org>
23670
23671         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23672         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23673         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23674         APIs.
23675         * modules/acl-tests (configure.ac): Remove tests now contained in
23676         m4/acl.m4.
23677
23678 2008-06-02  Jim Meyering  <meyering@redhat.com>
23679
23680         announce-gen: use a better key-server host name
23681         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23682         it may be more consistently reliable.  Suggested by Werner Koch
23683         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23684
23685 2008-06-01  Bruno Haible  <bruno@clisp.org>
23686
23687         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23688         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23689
23690 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23691
23692         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23693
23694 2008-06-01  Bruno Haible  <bruno@clisp.org>
23695
23696         New ACL tests.
23697         * tests/test-file-has-acl.sh: New file.
23698         * tests/test-file-has-acl.c: New file.
23699         * tests/test-set-mode-acl.sh: New file.
23700         * tests/test-set-mode-acl.c: New file.
23701         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23702         * tests/test-copy-acl.c: New file.
23703         * modules/acl-tests: New file, based on modules/copy-file-tests.
23704         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23705         (Depends-on): Add acl-tests.
23706         (configure.ac): Remove checks.
23707         (Makefile.am): Don't create test-sameacls program here any more.
23708
23709 2008-06-01  Bruno Haible  <bruno@clisp.org>
23710
23711         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23712         * tests/test-sameacls.c: Include progname.h.
23713         (main): Invoke set_program_name. Portability fixes for MacOS X,
23714         Solaris, HP-UX.
23715
23716 2008-06-01  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23719         function.
23720         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23721
23722 2008-06-01  Bruno Haible  <bruno@clisp.org>
23723
23724         * modules/rpmatch (Depends-on): Add strdup.
23725
23726 2008-06-01  Bruno Haible  <bruno@clisp.org>
23727
23728         * lib/pipe.c: Include unistd-safer.h.
23729         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23730         * modules/pipe (Depends-on): Add unistd-safer.
23731
23732 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23733
23734         * modules/autobuild (configure.ac): Call AB_INIT.
23735
23736 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23737
23738         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23739         Suggested by Bruno Haible <bruno@clisp.org>.
23740
23741 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23742
23743         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23744         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23745         <bruno@clisp.org>.
23746
23747 2008-05-29  Eric Blake  <ebb9@byu.net>
23748
23749         Prefer new POSIX 200x interfaces over futimesat.
23750         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23751         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23752         when available.
23753         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23754
23755 2008-05-28  Bruno Haible  <bruno@clisp.org>
23756
23757         * modules/stpcpy (License): Change to LGPLv2+.
23758         Requested by David Lutterkort <dlutter@redhat.com>.
23759
23760 2008-05-27  Bruno Haible  <bruno@clisp.org>
23761
23762         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23763         current mingw.
23764         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23765
23766 2008-05-27  Bruno Haible  <bruno@clisp.org>
23767
23768         * modules/iconv_open (Link): New section, from module 'iconv'.
23769         * modules/striconv (Link): Likewise.
23770         * modules/striconveh (Link): Likewise.
23771         * modules/xstriconv (Link): Likewise.
23772         * modules/unicodeio (Link): Likewise.
23773         * modules/propername (Link): Likewise.
23774         Reported by Jim Meyering.
23775
23776 2008-05-26  Jim Meyering  <meyering@redhat.com>
23777
23778         sha256: do not artificially restrict buffer length to be < 2^32
23779         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23780         uint32_t to size_t.
23781         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23782         to match.
23783
23784         avoid unaligned access errors, e.g., on sparc
23785         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23786         direct access through a possibly-unaligned uint64* pointer.
23787         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23788         direct access through a possibly-unaligned uint32* pointer.
23789         Prompted by this patch from Tom "spot" Callaway:
23790         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23791
23792         sha512.c: fix typo in comment
23793         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23794
23795 2008-05-25  Bruno Haible  <bruno@clisp.org>
23796
23797         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23798         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23799         (Makefile.am): Update lib_SOURCES.
23800
23801 2008-05-25  Bruno Haible  <bruno@clisp.org>
23802
23803         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23804
23805 2008-05-25  Jim Meyering  <meyering@redhat.com>
23806
23807         useless-if-before-free: freed expr may have white-space differences
23808         * build-aux/useless-if-before-free: Recognize cases in which the
23809         freed expression differs from the tested one in embedded white
23810         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23811         $1 was used, so we can't make any regexp shy.  Improved tests now
23812         detect this.
23813
23814         useless-if-before-free: accept white space in the expression.
23815         * build-aux/useless-if-before-free: For now, any white space
23816         in the expression must be identical in the free argument.
23817
23818         useless-if-before-free: efficiency tweak
23819         * build-aux/useless-if-before-free: Make the expression-matching
23820         regexp "shy".
23821         Make the *outer* regexp shy, not the expr-matching one.
23822
23823         update code-in-comment to accept cast of free arg
23824         * build-aux/useless-if-before-free: Update regexp.
23825
23826 2008-05-25  Bruno Haible  <bruno@clisp.org>
23827
23828         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23829         * modules/copy-file-tests (Files, Makefile.am): Update.
23830         * tests/test-copy-file.c (func_test_copy): Update.
23831
23832 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23833
23834         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23835
23836 2008-05-23  Bruno Haible  <bruno@clisp.org>
23837
23838         Improve support for ACLs on OSF/1.
23839         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23840         Remove fallback for unknown flavors of ACLs.
23841
23842 2008-05-22  Bruno Haible  <bruno@clisp.org>
23843
23844         Add support for ACLs on OSF/1.
23845         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23846         replacements.
23847         (acl_free_text): New macro fallback.
23848         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23849         acl_free.
23850         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23851         acl_free_text function. Require AC_C_INLINE.
23852
23853 2008-05-22  Bruno Haible  <bruno@clisp.org>
23854
23855         Make copy_acl work on MacOS X 10.5.
23856         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23857         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23858         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23859         If MODE_INSIDE_ACL, don't assume that every system has the same text
23860         representation for ACLs as FreeBSD.
23861         * lib/copy-acl.c (copy_acl): Add support for platforms with
23862         !MODE_INSIDE_ACL.
23863         * lib/file-has-acl.c (file_has_acl): Likewise.
23864         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23865         FreeBSD, MacOS X, or IRIX, respectively.
23866
23867 2008-05-22  Bruno Haible  <bruno@clisp.org>
23868
23869         * lib/acl.h: Don't include <sys/acl.h>.
23870         (GETACLCNT): Move fallback to lib/acl-internal.h.
23871         * lib/acl-internal.h: Include <sys/acl.h> here.
23872         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23873
23874 2008-05-22  Bruno Haible  <bruno@clisp.org>
23875
23876         Split off copy_acl function to separate file.
23877         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23878         * lib/acl.c (copy_acl): Moved function to separate file.
23879         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23880         * modules/acl (Files): Add lib/copy-acl.c.
23881         (Makefiles.am): Augment lib_SOURCES.
23882
23883 2008-05-22  Bruno Haible  <bruno@clisp.org>
23884
23885         * modules/copy-file-tests: New file.
23886         * tests/test-copy-file.sh: New file.
23887         * tests/test-copy-file.c: New file.
23888         * tests/test-copy-file-sameacls.c: New file.
23889
23890 2008-05-22  Eric Blake  <ebb9@byu.net>
23891
23892         Avoid gcc warning.
23893         * tests/test-memcmp.c (main): Pass NULL indirectly.
23894
23895 2008-05-21  Bruno Haible  <bruno@clisp.org>
23896
23897         Add reference doc about ACLs.
23898         * doc/acl-resources.txt: New file.
23899         * doc/acl-cygwin.txt: New file.
23900
23901 2008-05-21  Bruno Haible  <bruno@clisp.org>
23902
23903         Avoid one more warning from gcc.
23904         * lib/vasnprintf.c (IF_LINT): Update comments.
23905         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23906
23907 2008-05-21  Jim Meyering  <meyering@redhat.com>
23908
23909         avoid a warning from gcc
23910         * lib/vasnprintf.c (IF_LINT): Define.
23911         (scale10_round_decimal_long_double):
23912         Use it to avoid a "may be used uninitialized" warning.
23913         (scale10_round_decimal_double): Likewise.
23914
23915 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23916
23917         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23918         declared.
23919
23920 2008-05-20  Bruno Haible  <bruno@clisp.org>
23921
23922         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23923         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23924
23925 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23926
23927         * modules/memcmp-tests: New file.
23928         * tests/test-memcmp.c: New file.
23929
23930 2008-05-19  Bruno Haible  <bruno@clisp.org>
23931
23932         * modules/propername (Notice, configure.ac): Put quoted "..." into
23933         --keyword option.
23934         * lib/propername.h: Update comments accordingly.
23935         Reported by Eric Blake.
23936
23937 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23938
23939         * modules/getpass-gnu (Depends-on): Add fseeko.
23940
23941 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23942
23943         * modules/base64-tests: New file.
23944
23945 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23946
23947         * lib/base64.c (base64_decode_ctx): If a decode context structure
23948         was passed in use it to ignore newlines.  If a context structure
23949         was _not_ passed in, continue to treat newlines as garbage (this
23950         is the historical behavior).  Formerly base64_decode.
23951         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23952         takes a decode context structure.
23953         * lib/base64.h (base64_decode): Macro for four-argument calls.
23954         (base64_decode_alloc): Likewise.
23955         * lib/base64.c (base64_decode_ctx): If a decode context structure
23956         was passed in use it to ignore newlines.  If a context structure
23957         was _not_ passed in, continue to treat newlines as garbage (this
23958         is the historical behavior).  Formerly base64_decode.
23959         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23960         takes a decode context structure.
23961         * lib/base64.h (base64_decode): Macro for four-argument calls.
23962         (base64_decode_alloc): Likewise.
23963
23964 2008-05-19  Jim Meyering  <meyering@redhat.com>
23965
23966         avoid a warning from gcc
23967         * lib/trim.c (IF_LINT): Define.
23968         (trim2): Use it to avoid a "may be used uninitialized" warning.
23969
23970         Fix doc typo.
23971         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23972
23973 2008-05-19  Bruno Haible  <bruno@clisp.org>
23974
23975         * doc/glibc-functions/getpass.texi: Document limits of other
23976         implementations.
23977
23978 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23979             Bruno Haible <bruno@clisp.org>
23980
23981         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23982
23983 2008-05-18  Bruno Haible  <bruno@clisp.org>
23984
23985         * modules/propername: New file, from GNU gettext.
23986         * lib/propername.h: New file, from GNU gettext.
23987         * lib/propername.c: New file, from GNU gettext.
23988         * MODULES.html.sh (Internationalization functions): Add propername.
23989
23990 2008-05-16  Jim Meyering  <meyering@redhat.com>
23991             Bruno Haible  <bruno@clisp.org>
23992
23993         Avoid some warnings from "gcc -Wshadow".
23994         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23995
23996 2008-05-15  Eric Blake  <ebb9@byu.net>
23997
23998         Extend previous patch to cygwin 1.7.0.
23999         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24000         fast implementation in cygwin >= 1.7.0.
24001         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24002         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24003
24004 2008-05-15  Bruno Haible  <bruno@clisp.org>
24005
24006         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24007         implementation in glibc >= 2.9.
24008         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24010
24011 2008-05-15  Bruno Haible  <bruno@clisp.org>
24012
24013         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24014         (Unicode string functions): Add unilbrk/*.
24015         Reported by Karl Berry.
24016
24017 2008-05-15  Eric Blake  <ebb9@byu.net>
24018
24019         Fix violation of <stdbool.h> replacement in regex.
24020         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24021         * lib/regexec.c (re_search_internal): Likewise.
24022         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24023
24024 2008-05-15  Jim Meyering  <meyering@redhat.com>
24025
24026         avoid distracting test output when git or cvs is not found
24027         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24028         * tests/test-vc-list-files-git.sh: Likewise.
24029
24030 2008-05-15  Eric Blake  <ebb9@byu.net>
24031
24032         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24033         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24034         glibc version.
24035         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24036         * doc/posix-functions/strstr.texi (strstr): Likewise.
24037         * lib/str-two-way.h (MAX): Sychronize with glibc.
24038
24039 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24040
24041         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24042         opr.ctx_type.
24043         (calc_first): Initialize constraint field.
24044         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24045         Fix grammar.
24046         (duplicate_node): Merge constraint field for all node types.
24047         (calc_eclosure_iter): Look at constraint field for all node types.
24048         * lib/regex_internal.c (create_cd_newstate): Don't look at
24049         opr.ctx_type.
24050
24051 2008-05-14  Bruno Haible  <bruno@clisp.org>
24052
24053         Help GCC to do better code generation.
24054         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24055         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24056         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24057         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24058         Declare with attribute 'malloc' if supported.
24059
24060 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24061
24062         use "echo STR|wc -c" rather than unportable "expr length STR"
24063         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24064         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24065
24066 2008-05-14  Jim Meyering  <meyering@redhat.com>
24067
24068         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24069         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24070         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24071         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24072         via Collin Lasse.
24073
24074 2008-05-14  Eric Blake  <ebb9@byu.net>
24075
24076         Avoid quadratic growth in gl_LIBSOURCES.
24077         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24078         Suggested by Bruno Haible.
24079
24080         Test xmemdup0.
24081         * modules/xmemdup0-tests: New file.
24082         * tests/test-xmemdup0.c: Likewise.
24083
24084 2008-05-13  Eric Blake  <ebb9@byu.net>
24085
24086         Split xmemdup0 into its own module.
24087         * modules/xmemdup0: New file.
24088         * lib/xmemdup0.h: Likewise.
24089         * lib/xmemdup0.c: Likewise.
24090         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24091         * lib/xalloc.h (xmemdup0): Remove.
24092         * lib/xmalloc.c (xmemdup0): Likewise.
24093
24094 2008-05-13  Eric Blake  <ebb9@byu.net>
24095             Bruno Haible  <bruno@clisp.org>
24096
24097         Reduce number of forks required during autoconf.
24098         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24099         and gl_LIBSOURCES_DIR.
24100         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24101         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24102         m4_syscmd per file.
24103         <m4_foreach_w>: Move...
24104         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24105
24106 2008-05-13  Eric Blake  <ebb9@byu.net>
24107
24108         * gnulib-tool: Fix various comment typos.
24109
24110 2008-05-12  Bruno Haible  <bruno@clisp.org>
24111
24112         Tailor the linebreaking algorithm.
24113         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24114
24115 2008-05-12  Bruno Haible  <bruno@clisp.org>
24116
24117         Update to Unicode 5.0.0.
24118         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24119         LBP_JV, LBP_JT. Redistribute values.
24120         (unilbrk_table): Change size.
24121         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24122         Unicode TR#14 rev. 22.
24123         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24124         LBP_JV, LBP_JT. Redistribute values.
24125         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24126         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24127         Update.
24128         * lib/unilbrk/lbrkprop1.h: Regenerated.
24129         * lib/unilbrk/lbrkprop2.h: Regenerated.
24130         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24131         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24132         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24133         Likewise.
24134         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24135         Likewise.
24136         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24137         result.
24138         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24139         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24140         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24141         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24142         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24143         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24144
24145 2008-05-11  Bruno Haible  <bruno@clisp.org>
24146
24147         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24148
24149 2008-05-11  Bruno Haible  <bruno@clisp.org>
24150
24151         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24152         * modules/unilbrk/gen-lbrk: New file.
24153
24154 2008-05-11  Bruno Haible  <bruno@clisp.org>
24155
24156         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24157         * m4/sha512.m4 (gl_SHA512): Likewise.
24158
24159 2008-05-11  Jim Meyering  <meyering@redhat.com>
24160
24161         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24162         * modules/crypto/sha256: New file.
24163         * modules/crypto/sha512: Likewise.
24164         * lib/sha256.c: Likewise.
24165         * lib/sha256.h: Likewise.
24166         * lib/sha512.c: Likewise.
24167         * lib/sha512.h: Likewise.
24168         * lib/u64.h: Likewise.
24169         * m4/sha256.m4: Likewise.
24170         * m4/sha512.m4: Likewise.
24171         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24172
24173 2008-05-10  Bruno Haible  <bruno@clisp.org>
24174
24175         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24176         (Input/Output <stdio.h>): Add xprintf.
24177         (Signal handling <signal.h>): Add strsignal.
24178         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24179         (Core language properties): Add func.
24180         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24181         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24182         strings.
24183         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24184         (Input/output): New section.
24185         (File system functions): Add openat-die, stat-macros.
24186         (Networking functions): Add sockets.
24187         (Unicode string functions): Add unictype/*.
24188         (Support for building libraries and executables): Add gperf.
24189         (Support for building documentation): Add agpl-3.0.
24190         (Misc): Add nocrash.
24191
24192 2008-05-10  Bruno Haible  <bruno@clisp.org>
24193
24194         * modules/unictype/gen-ctype: New file.
24195
24196 2008-05-10  Jim Meyering  <meyering@redhat.com>
24197
24198         Make chdir-safer.c more efficient on a system with no symlinks.
24199         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24200         also if ELOOP is zero.  Suggested by Bruno Haible.
24201
24202         Make chdir-safer.c slightly safer.
24203         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24204         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24205
24206         Avoid compile failure on systems without ELOOP (like mingw).
24207         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24208         Reported by Bruno Haible.
24209
24210 2008-05-10  Bruno Haible  <bruno@clisp.org>
24211
24212         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24213         (is_utf8_encoding): Use a case-insensitive comparison.
24214         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24215         streq.
24216
24217 2008-05-10  Bruno Haible  <bruno@clisp.org>
24218
24219         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24220         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24221         * lib/unilbrk/ulc-common.h (iconv_string_length,
24222         iconv_string_keeping_offsets): Remove declarations.
24223         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24224         Don't include <iconv.h>, streq.h, xsize.h.
24225         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24226         conversion.
24227         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24228         <iconv.h>, streq.h, xsize.h.
24229         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24230         conversion.
24231         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24232         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24233         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24234         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24235
24236 2008-05-10  Bruno Haible  <bruno@clisp.org>
24237
24238         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24239         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24240
24241         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24242         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24243
24244         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24245         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24246
24247         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24248         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24249
24250         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24251         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24252
24253         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24254         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24255
24256         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24257         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24258
24259         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24260         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24261
24262 2008-05-10  Bruno Haible  <bruno@clisp.org>
24263
24264         Split up 'linebreak' module.
24265         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24266         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24267         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24268         modifications.
24269         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24270         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24271         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24272         lib/linebreak.c.
24273         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24274         lib/linebreak.c.
24275         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24276         lib/linebreak.c.
24277         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24278         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24279         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24280         lib/linebreak.c.
24281         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24282         lib/linebreak.c.
24283         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24284         lib/linebreak.c.
24285         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24286         lib/linebreak.c.
24287         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24288         lib/linebreak.c.
24289         * modules/unilbrk/base: New file.
24290         * modules/unilbrk/tables: New file.
24291         * modules/unilbrk/u8-possible-linebreaks: New file.
24292         * modules/unilbrk/u16-possible-linebreaks: New file.
24293         * modules/unilbrk/u32-possible-linebreaks: New file.
24294         * modules/unilbrk/ulc-common: New file.
24295         * modules/unilbrk/ulc-possible-linebreaks: New file.
24296         * modules/unilbrk/u8-width-linebreaks: New file.
24297         * modules/unilbrk/u16-width-linebreaks: New file.
24298         * modules/unilbrk/u32-width-linebreaks: New file.
24299         * modules/unilbrk/ulc-width-linebreaks: New file.
24300         * lib/linebreak.h: Remove file.
24301         * lib/linebreak.c: Remove file.
24302         * m4/linebreak.m4: Remove file.
24303         * modules/linebreak: Remove file.
24304         * NEWS: Mention the changes.
24305
24306 2008-05-09  Eric Blake  <ebb9@byu.net>
24307
24308         Add xmemdup0.
24309         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24310         implementation.
24311         * lib/xmalloc.c (xmemdup0): New C implementation.
24312
24313 2008-05-08  Bruno Haible  <bruno@clisp.org>
24314
24315         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24316
24317 2008-05-07  Eric Blake  <ebb9@byu.net>
24318
24319         Support cross-compilation of <wctype.h>.
24320         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24321         AC_CACHE_CHECK.
24322
24323 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24324
24325         * build-aux/vc-list-files: Add support for bzr.
24326
24327 2008-05-03  Jim Meyering  <meyering@redhat.com>
24328
24329         avoid failed assertion with tight malloc
24330         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24331
24332 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24333
24334         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24335         are needed from arpa/inet.h.
24336         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24337         Reported by Bruno Haible.
24338
24339 2008-05-02  Jim Meyering  <meyering@redhat.com>
24340
24341         avoid compilation error on FreeBSD 6
24342         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24343
24344 2008-05-01  Jim Meyering  <meyering@redhat.com>
24345
24346         useless-if-before-free: correct --help's exit status description
24347         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24348         for one or more matches, etc.  Reported by Bruno Haible.
24349
24350         vc-list-files: make the stand-alone gnulib test work
24351         * modules/vc-list-files-tests (configure.ac):
24352         Define and AC_SUBST abs_aux_dir.
24353         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24354         $(abs_top_srcdir) to each script and having each of them
24355         duplicate the work of setting PATH, set PATH here, using
24356         the new variable, abs_aux_dir instead.
24357         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24358         * tests/test-vc-list-files-git.sh: Likewise.
24359         Reported by Bruno Haible.
24360
24361 2008-05-01  Bruno Haible  <bruno@clisp.org>
24362
24363         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24364         reallocation. Rename 'done' to 'found_delimiter'.
24365
24366 2008-05-01  Jim Meyering  <meyering@redhat.com>
24367
24368         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24369         * build-aux/vc-list-files: Use `...`, not $(...).
24370
24371 2008-04-30  Jim Meyering  <meyering@redhat.com>
24372
24373         add tests for vc-list-files
24374         * modules/vc-list-files-tests: New module.
24375         * tests/test-vc-list-files-cvs.sh: New file.
24376         * tests/test-vc-list-files-git.sh: New file.
24377
24378         avoid a warning from gcc
24379         * lib/getndelim2.c (IF_LINT): Define.
24380         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24381
24382         vc-list-files: work properly with build-aux/cvsu, too
24383         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24384         to all cvs-based clauses.
24385
24386         vc-list-files: work properly in the CVS+awk case, too
24387         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24388
24389         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24390         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24391         take more than one file argument, so .  Add quotes, just in case $dir
24392         ever contains a shell meta-character.  Prompted by Soren Hansen in
24393         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24394
24395 2008-04-29  Eric Blake  <ebb9@byu.net>
24396
24397         Optimize getndelim2 to use block operations when possible.
24398         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24399         freadseek, and memchr2.
24400         * lib/getndelim2.c (getndelim2): Use them for block reads.
24401
24402 2008-04-29  Bruno Haible  <bruno@clisp.org>
24403
24404         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24405         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24406         * modules/inet_ntop (Depends-on): Add extensions.
24407         * modules/inet_pton (Depends-on): Likewise.
24408         Reported by Simon Josefsson.
24409
24410 2008-04-29  Jim Meyering  <meyering@redhat.com>
24411
24412         When the is more than one match in a block, match all of them.
24413         * build-aux/useless-if-before-free: Iterate through each block
24414         until there are no more matches.
24415
24416         Fix broken useless-if-before-free script.
24417         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24418         the expression to match cast of argument to free-like function.
24419
24420 2008-04-29  Eric Blake  <ebb9@byu.net>
24421
24422         Use new header.
24423         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24424
24425 2008-04-29  Jim Meyering  <meyering@redhat.com>
24426
24427         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24428         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24429         by gnulib to exist and to declare e.g., inet_ntop.
24430         Don't include "inet_ntop.h", now removed.
24431
24432         * m4/arpa_inet_h.m4: Remove trailing blanks.
24433
24434 2008-04-29  Eric Blake  <ebb9@byu.net>
24435
24436         Silence valgrind on safe reads beyond potential array bounds.
24437         * lib/rawmemchr.valgrind: New file.
24438         * lib/strchrnul.valgrind: Likewise.
24439         * modules/rawmemchr (Files): Distribute new file.
24440         * modules/strchrnul (Files): Likewise.
24441         Suggested by Bruno Haible.
24442
24443 2008-04-29  Bruno Haible  <bruno@clisp.org>
24444
24445         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24446         (inet_ntop, inet_pton): Change portability warning's wording.
24447         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24448         Invoke gl_CHECK_NEXT_HEADERS.
24449         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24450         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24451         set ARPA_INET_H.
24452         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24453         * modules/arpa_inet (Description): No longer only for systems that
24454         lack it.
24455         (Depends-on): Add include_next.
24456         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24457         HAVE_ARPA_INET_H.
24458
24459 2008-04-29  Jim Meyering  <meyering@redhat.com>
24460
24461         * modules/mkdir (License): Re-license as LGPLv2+.
24462
24463 2008-04-29  Bruno Haible  <bruno@clisp.org>
24464
24465         * modules/rawmemchr (Maintainer): Set to Eric.
24466         * modules/strchrnul (Maintainer): Likewise.
24467
24468 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24469
24470         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24471         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24472
24473         * modules/arpa_inet (arpa/inet.h): Use them.
24474
24475 2008-04-28  Eric Blake  <ebb9@byu.net>
24476
24477         Test getndelim2.
24478         * modules/getndelim2-tests: New file.
24479         * tests/test-getndelim2.c: Likewise.
24480         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24481         stream.
24482         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24483
24484         * MODULES.html.sh: Document new module.
24485
24486 2008-04-20  Bruno Haible  <bruno@clisp.org>
24487
24488         * lib/c-stack.c (die): Use raise.
24489         * modules/c-stack (Depends-on): Add raise.
24490
24491 2008-04-28  Bruno Haible  <bruno@clisp.org>
24492
24493         Expect rpmatch to be declared.
24494         * lib/yesno.c (rpmatch): Remove declaration.
24495
24496         Declare rpmatch.
24497         * lib/stdlib.in.h (rpmatch): New declaration.
24498         * lib/rpmatch.c: Include <stdlib.h> first.
24499         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24500         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24502         HAVE_RPMATCH.
24503         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24504         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24505         (Include): Set to <stdlib.h>.
24506         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24507         HAVE_RPMATCH.
24508         * NEWS: Document the change.
24509
24510 2008-04-28  Bruno Haible  <bruno@clisp.org>
24511
24512         Change rpmatch to use nl_langinfo when appropriate.
24513         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24514         (N_): New macro.
24515         (localized_pattern): New function/macro.
24516         (try): Remove match, nomatch arguments. Copy the pattern into safe
24517         memory before caching it.
24518         (rpmatch): Use localized_pattern. Add translator comments.
24519         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24520         Suggested by Eric Blake.
24521         * modules/rpmatch (Depends-on): Add stdbool.
24522
24523 2008-04-28  Eric Blake  <ebb9@byu.net>
24524
24525         Add rawmemchr module, matching glibc.
24526         * modules/string (Makefile.am): New indicator.
24527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24528         * lib/string.in.h (rawmemchr): Declare when appropriate.
24529         * modules/rawmemchr: New file.
24530         * m4/rawmemchr.m4: Likewise.
24531         * lib/rawmemchr.c: Likewise.
24532         * modules/rawmemchr-tests: Likewise.
24533         * tests/test-rawmemchr.c: Likewise.
24534         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24535         module.
24536         * modules/strchrnul (Depends-on): Add rawmemchr.
24537         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24538
24539         Whitespace cleanup.
24540         * tests/test-strchrnul.c: Reindent.
24541         * lib/strchrnul.c: Likewise.
24542
24543         Optimize and test strchrnul.
24544         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24545         * modules/strchrnul-tests: New file.
24546         * tests/test-strchrnul.c: Likewise.
24547
24548         Remove intprops dependency.
24549         * modules/memchr (Depends-on): Remove intprops.
24550         * modules/memrchr (Depends-on): Likewise.
24551         * modules/memchr2 (Depends-on): Likewise.
24552         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24553         * lib/memrchr.c (__memrchr): Likewise.
24554         * lib/memrchr2.c (memchr2): Likewise.
24555         Reported by Simon Josefsson.
24556
24557 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24558
24559         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24560         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24561
24562 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24563
24564         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24565
24566         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24567
24568         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24569
24570         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24571         declarations.
24572         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24573
24574         * m4/inet_pton.m4: Don't check for header files.
24575
24576         * m4/inet_ntop.m4: Don't check for header files.
24577
24578 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24579
24580         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24581         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24582         trigger for cygwin).
24583         Reported by Bruno Haible  <bruno@clisp.org>.
24584
24585 2008-04-28  Bruno Haible  <bruno@clisp.org>
24586
24587         * doc/posix-functions/strdup.texi: Mention mingw problem.
24588
24589 2008-04-27  Bruno Haible  <bruno@clisp.org>
24590
24591         * modules/stat-time-tests (Depends-on): Add sleep.
24592         * tests/test-stat-time.c (force_unlink): New function.
24593         (cleanup): Use it.
24594         (test_mtime): Remove the ctime related tests.
24595         (test_ctime): New function, containing the ctime related tests.
24596         (main): Call test_ctime, except on native Windows platforms.
24597
24598 2008-04-27  Bruno Haible  <bruno@clisp.org>
24599
24600         * lib/rpmatch.c (rpmatch): Add some comments.
24601         Reported by James Youngman <jay@gnu.org>.
24602
24603 2008-04-27  Bruno Haible  <bruno@clisp.org>
24604
24605         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24606         quiet NaNs.
24607
24608 2008-04-27  Bruno Haible  <bruno@clisp.org>
24609
24610         Make test-yesno.sh work on mingw.
24611         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24612         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24613         (main): Set stdin to binary mode.
24614         * modules/yesno-tests (Depends-on): Add binary-io.
24615
24616 2008-04-27  Bruno Haible  <bruno@clisp.org>
24617
24618         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24619         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24620         argument that lie outside the IEEE 854 domain.
24621         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24622         (gl_ISFINITE): Use it.
24623         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24624
24625 2008-04-27  Bruno Haible  <bruno@clisp.org>
24626
24627         Allow local renaming in config.h.
24628         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24629
24630 2008-04-27  Bruno Haible  <bruno@clisp.org>
24631
24632         * lib/memchr.c (__memchr): Change type of 'i'.
24633         * lib/memchr2.c (memchr2): Likewise.
24634
24635 2008-04-26  Eric Blake  <ebb9@byu.net>
24636         and Bruno Haible  <bruno@clisp.org>
24637
24638         Optimize and test memrchr.
24639         * modules/memrchr (Depends-on): Add intprops.
24640         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24641         * modules/memrchr-tests: New file.
24642         * tests/test-memrchr.c: New file.
24643
24644 2008-04-26  Bruno Haible  <bruno@clisp.org>
24645
24646         Add tentative support for DragonFly BSD.
24647         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24648         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24649         fp.
24650         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24651         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24652         * lib/fpurge.c (fpurge): Likewise.
24653         * lib/freadable.c (freaadable): Likewise.
24654         * lib/freadahead.c (freadahead): Likewise.
24655         * lib/freading.c (freading): Likewise.
24656         * lib/freadptr.c (freadptr): Likewise.
24657         * lib/freadseek.c (freadptrinc): Likewise.
24658         * lib/fseeko.c (fseeko): Likewise.
24659         * lib/fseterr.c (fseterr): Likewise.
24660         * lib/fwritable.c (fwritable): Likewise.
24661         * lib/fwriting.c (fwriting): Likewise.
24662
24663 2008-04-26  Bruno Haible  <bruno@clisp.org>
24664
24665         * lib/stdio-impl.h: New file.
24666         * lib/fbufmode.c: Include stdio-impl.h.
24667         (fbufmode): Use fp_, remove redundant #defines.
24668         * lib/fflush.c: Include stdio-impl.h.
24669         (clear_ungetc_buffer): Remove redundant #defines.
24670         * lib/fpurge.c: Include stdio-impl.h.
24671         (fpurge): Remove redundant #defines.
24672         * lib/freadable.c: Include stdio-impl.h.
24673         (freadable): Remove redundant #defines.
24674         * lib/freadahead.c: Include stdio-impl.h.
24675         (freadahead): Remove redundant #defines.
24676         * lib/freading.c: Include stdio-impl.h.
24677         (freading): Remove redundant #defines.
24678         * lib/freadptr.c: Include stdio-impl.h.
24679         (freadptr): Remove redundant #defines.
24680         * lib/freadseek.c: Include stdio-impl.h.
24681         (freadptrinc): Remove redundant #defines.
24682         * lib/fseeko.c: Include stdio-impl.h.
24683         (rpl_fseeko): Remove redundant #defines.
24684         * lib/fseterr.c: Include stdio-impl.h.
24685         (fseterr): Remove redundant #defines.
24686         * lib/fwritable.c: Include stdio-impl.h.
24687         (fwritable: Remove redundant #defines.
24688         * lib/fwriting.c: Include stdio-impl.h.
24689         (fwriting): Remove redundant #defines.
24690         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24691         * modules/fflush (Files): Likewise.
24692         * modules/fpurge (Files): Likewise.
24693         * modules/freadable (Files): Likewise.
24694         * modules/freadahead (Files): Likewise.
24695         * modules/freading (Files): Likewise.
24696         * modules/freadptr (Files): Likewise.
24697         * modules/freadseek (Files): Likewise.
24698         * modules/fseeko (Files): Likewise.
24699         * modules/fseterr (Files): Likewise.
24700         * modules/fwritable (Files): Likewise.
24701         * modules/fwriting (Files): Likewise.
24702
24703 2008-04-26  Bruno Haible  <bruno@clisp.org>
24704
24705         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24706         restore_seek_optimization, update_fpos_cache): New functions, extracted
24707         from rpl_fflush.
24708         (rpl_fflush): Use them.
24709         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24710         (gl_REPLACE_FFLUSH): Use it.
24711
24712 2008-04-26  Bruno Haible  <bruno@clisp.org>
24713
24714         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24715         on Solaris.
24716         * tests/test-xstrtoimax.sh: Likewise.
24717         * tests/test-xstrtoumax.sh: Likewise.
24718         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24719
24720 2008-04-26  Bruno Haible  <bruno@clisp.org>
24721
24722         * modules/memchr-tests: New file.
24723         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24724
24725 2008-04-26  Eric Blake  <ebb9@byu.net>
24726             Bruno Haible  <bruno@clisp.org>
24727
24728         * lib/memchr.c: Include intprops.h.
24729         (__memchr): Optimize parallel detection of matching bytes. Rename local
24730         variables. Add explanatory comments.
24731
24732 2008-04-26  Bruno Haible  <bruno@clisp.org>
24733
24734         Fix module 'memchr', broken since 2000-10-28.
24735         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24736
24737 2008-04-26  Bruno Haible  <bruno@clisp.org>
24738
24739         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24740         comments.
24741
24742 2008-04-25  Eric Blake  <ebb9@byu.net>
24743
24744         Use native fstatat on cygwin 1.7.0.
24745         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24746         first.
24747
24748 2008-04-23  Eric Blake  <ebb9@byu.net>
24749
24750         Improve memchr2 performance.
24751         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24752         NUL bytes.
24753         * modules/memchr2 (Depends-on): Use intprops.h.
24754
24755 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24756
24757         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24758         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24759         <blp@cs.stanford.edu>.
24760
24761 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24762
24763         * lib/arpa_inet.in.h: New file.
24764
24765         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24766         (Makefile.am): Sed in substitute header file.
24767
24768         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24769         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24770
24771         * modules/inet_ntop (configure.ac): Use
24772         gl_ARPA_INET_MODULE_INDICATOR.
24773
24774         * modules/inet_pton (configure.ac): Use
24775         gl_ARPA_INET_MODULE_INDICATOR.
24776
24777 2008-04-22  Jim Meyering  <meyering@redhat.com>
24778
24779         * modules/verify (License): Re-license as LGPLv2+.
24780
24781 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24782
24783         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24784         parameter to void* as per POSIX standard (MinGW uses char*).
24785
24786 2008-04-21  Bruno Haible  <bruno@clisp.org>
24787
24788         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24789         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24790         Define to replacements if REPLACE_ISWCNTRL is 1.
24791         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24792         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24793         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24794         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24795         what it fixes.
24796         * doc/posix-functions/iswalpha.texi: Likewise.
24797         * doc/posix-functions/iswblank.texi: Likewise.
24798         * doc/posix-functions/iswcntrl.texi: Likewise.
24799         * doc/posix-functions/iswdigit.texi: Likewise.
24800         * doc/posix-functions/iswgraph.texi: Likewise.
24801         * doc/posix-functions/iswlower.texi: Likewise.
24802         * doc/posix-functions/iswprint.texi: Likewise.
24803         * doc/posix-functions/iswpunct.texi: Likewise.
24804         * doc/posix-functions/iswspace.texi: Likewise.
24805         * doc/posix-functions/iswupper.texi: Likewise.
24806         * doc/posix-functions/iswxdigit.texi: Likewise.
24807         Reported by Alain Guibert.
24808
24809 2008-04-21  Bruno Haible  <bruno@clisp.org>
24810
24811         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24812         Patch by Alain Guibert.
24813
24814 2008-04-21  Bruno Haible  <bruno@clisp.org>
24815
24816         Fix test failures on mingw.
24817         * tests/test-xstrtol.c (print_no_progname): New function.
24818         (main): Install it in error_print_progname hook.
24819         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24820         * tests/test-xstrtoimax.sh: Likewise.
24821         * tests/test-xstrtoumax.sh: Likewise.
24822
24823 2008-04-21  Bruno Haible  <bruno@clisp.org>
24824
24825         Fix test failure on mingw.
24826         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24827
24828 2008-04-21  Bruno Haible  <bruno@clisp.org>
24829
24830         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24831         Actually assign a value.
24832
24833 2008-04-20  Bruno Haible  <bruno@clisp.org>
24834
24835         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24836         take 2.
24837         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24838         'canonicalize-lgpl' module is also used.
24839         * lib/canonicalize-lgpl.c: Undo last change.
24840         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24841
24842 2008-04-20  Bruno Haible  <bruno@clisp.org>
24843
24844         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24845         config.h. Provide _mkdir based fallback for mingw.
24846         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24847         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24848         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24849         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24850         rather than defining mkdir in config.h.
24851         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24852         (gl_SYS_STAT_H_DEFAULTS): New macro.
24853         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24854         HAVE_IO_H any more.
24855         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24856         HAVE_DECL_MKDIR and HAVE_IO_H.
24857
24858 2008-04-20  Bruno Haible  <bruno@clisp.org>
24859
24860         * lib/isapipe.c: Port to native Windows platforms.
24861
24862 2008-04-20  Bruno Haible  <bruno@clisp.org>
24863
24864         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24865
24866 2008-04-21  Eric Blake  <ebb9@byu.net>
24867
24868         Work around preprocessors that don't handle UINTMAX_MAX.
24869         * lib/memchr2.c (memchr2): Avoid embedded #if.
24870         Reported by Alain Guibert, fix suggested by Bruno Haible.
24871
24872 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24873
24874         * doc/posix-functions/strftime.texi (strftime): Explain better
24875         Windows incompatibility.  Suggested by Micah Cowan
24876         <micah@cowan.name>.
24877
24878 2008-04-20  Bruno Haible  <bruno@clisp.org>
24879
24880         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24881         unistr/u8-mblen.
24882
24883 2008-04-20  Bruno Haible  <bruno@clisp.org>
24884
24885         Fix test failure on platforms with non-GNU iconv.
24886         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24887         (U_TO_U8): Use it, rather than u16_to_u8.
24888         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24889         units at the end of the input string.
24890         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24891
24892 2008-04-20  Bruno Haible  <bruno@clisp.org>
24893
24894         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24895         when the resulting length is 0.
24896         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24897
24898 2008-04-20  Bruno Haible  <bruno@clisp.org>
24899
24900         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24901         works.
24902         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24903
24904 2008-04-20  Bruno Haible  <bruno@clisp.org>
24905
24906         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24907         * modules/tsearch-tests (configure.ac): Test for initstate function.
24908
24909 2008-04-20  Bruno Haible  <bruno@clisp.org>
24910
24911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24912         for nlink_t if missing.
24913         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24914
24915 2008-04-19  Bruno Haible  <bruno@clisp.org>
24916
24917         Work around snprintf bug on Linux libc5.
24918         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24920         gl_SNPRINTF_SIZE1.
24921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24922         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24923         that test failed.
24924         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24925         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24926         * modules/snprintf (Files): Add m4/printf.m4.
24927         * modules/vsnprintf (Files): Likewise.
24928         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24929         * doc/posix-functions/vsnprintf.texi: Likewise.
24930
24931 2008-04-19  Bruno Haible  <bruno@clisp.org>
24932
24933         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24934         from 0.0058 to less than 10^-7.
24935
24936 2008-04-19  Bruno Haible  <bruno@clisp.org>
24937
24938         Fix rounding when a precision is given.
24939         * lib/vasnprintf.c (is_borderline): New function.
24940         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24941         9...9x.
24942         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24943         %e, %g.
24944         * tests/test-vasprintf-posix.c (test_function): Likewise.
24945         * tests/test-snprintf-posix.h (test_function): Likewise.
24946         * tests/test-sprintf-posix.h (test_function): Likewise.
24947         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24948         * tests/test-printf-posix.h (test_function): Likewise.
24949         * tests/test-printf-posix.output: Update.
24950         Reported by John Darrington <john@darrington.wattle.id.au> via
24951         Ben Pfaff <blp@cs.stanford.edu>.
24952
24953 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24954
24955         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24956         Suggested by Bruno Haible <bruno@clisp.org>.
24957
24958 2008-04-17  Bruno Haible  <bruno@clisp.org>
24959
24960         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24961         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24962         implementation.
24963         Patch by Bruce Merry <bmerry@gmail.com>.
24964
24965 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24966
24967         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24968         doesn't work under Windows.
24969
24970 2008-04-16  Bruno Haible  <bruno@clisp.org>
24971
24972         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24973         New macros.
24974         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24975         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24976         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24977         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24978         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24979         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24980         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24981         macros.
24982         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24983         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24984         Northern Sotho, Uighur.
24985
24986 2008-04-16  Bruno Haible  <bruno@clisp.org>
24987
24988         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24989         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24990         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24991         Reported by Daniel Bergström <daniel@octocode.com>.
24992
24993 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24994             Bruno Haible  <bruno@clisp.org>
24995
24996         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24997         function.
24998         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24999         New functions, mostly extracted from gl_locale_name_default.
25000         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25001
25002 2008-04-16  Eric Blake  <ebb9@byu.net>
25003
25004         Adjust strtod detection to catch glibc 2.7 bug.
25005         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25006         Reported by John Gatewood Ham.
25007
25008 2008-04-16  Bruno Haible  <bruno@clisp.org>
25009
25010         Add tentative support for Linux libc5.
25011         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25012         * lib/fpurge.c (fpurge): Likewise.
25013         * lib/freadable.c (freadable): Likewise.
25014         * lib/freadahead.c (freadahead): Likewise.
25015         * lib/freading.c (freading): Likewise.
25016         * lib/freadptr.c (freadptr): Likewise.
25017         * lib/freadseek.c (freadptrinc): Likewise.
25018         * lib/fseeko.c (rpl_fseeko): Likewise.
25019         * lib/fseterr.c (fseterr): Likewise.
25020         * lib/fwritable.c (fwritable): Likewise.
25021         * lib/fwriting.c (fwriting): Likewise.
25022         Reported by Alain Guibert <alguibert+bts@free.fr>.
25023
25024 2008-04-15  Bruno Haible  <bruno@clisp.org>
25025
25026         * modules/mathl (configure.ac): Define module indicator.
25027
25028 2008-04-15  Bruno Haible  <bruno@clisp.org>
25029
25030         * lib/logl.c (logl): Remove unused variables.
25031
25032 2008-04-15  Bruno Haible  <bruno@clisp.org>
25033
25034         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25035         fails.
25036
25037 2008-04-15  Bruno Haible  <bruno@clisp.org>
25038
25039         * lib/trim.c (trim2): Fix argument of isspace() macro.
25040
25041 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25042
25043         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25044         to 0.
25045         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25046
25047 2008-04-14  Bruno Haible  <bruno@clisp.org>
25048
25049         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25050         AC_LANG_PROGRAM argument.
25051         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25052         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25054         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25055         * m4/math_h.m4 (gl_MATH_H): Likewise.
25056         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25057         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25058         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25059         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25060         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25061         * m4/regex.m4 (gl_REGEX): Likewise.
25062         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25063         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25064         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25065         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25066         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25067         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25069         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25070
25071 2008-04-14  Jim Meyering  <meyering@redhat.com>
25072
25073         test-strtod: fix typos: s/abs/fabs/
25074         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25075
25076 2008-04-13  Bruno Haible  <bruno@clisp.org>
25077
25078         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25079         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25080         module is also used and while not building the reloc-wrapper.
25081
25082 2008-04-13  Bruno Haible  <bruno@clisp.org>
25083
25084         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25085
25086 2008-04-13  Bruno Haible  <bruno@clisp.org>
25087
25088         Fix AIX compilation failure introduced on 2008-04-02.
25089         * tests/test-frexp.c (exp): Undefine before redefining.
25090         * tests/test-frexpl.c (exp): Likewise.
25091
25092 2008-04-13  Bruno Haible  <bruno@clisp.org>
25093
25094         Work around a HP-UX stdio bug.
25095         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25096         * tests/test-ftello.c (main): Likewise.
25097         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25098         * doc/posix-functions/ftello.texi: Likewise.
25099
25100 2008-04-13  Bruno Haible  <bruno@clisp.org>
25101
25102         Make test-signbit pass on HP-UX/hppa.
25103         * tests/test-signbit.c (minus_zerol): New variable.
25104         (test_signbitl): Use it.
25105
25106 2008-04-13  Bruno Haible  <bruno@clisp.org>
25107
25108         Make truncl work on OSF/1 4.0.
25109         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25110         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25111         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25113         HAVE_DECL_TRUNCL.
25114         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25115         HAVE_DECL_TRUNCL.
25116         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25117
25118 2008-04-13  Bruno Haible  <bruno@clisp.org>
25119
25120         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25121
25122 2008-04-13  Bruno Haible  <bruno@clisp.org>
25123
25124         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25125         expression, so as to avoid HP-UX 11 cc compiler bug.
25126
25127 2008-04-13  Bruno Haible  <bruno@clisp.org>
25128
25129         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25130
25131 2008-04-13  Bruno Haible  <bruno@clisp.org>
25132
25133         * lib/git-merge-changelog.c: Remove empty declaration outside of
25134         functions.
25135
25136 2008-04-13  Bruno Haible  <bruno@clisp.org>
25137
25138         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25139
25140 2008-04-13  Bruno Haible  <bruno@clisp.org>
25141
25142         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25143         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25145         also if it exists but lacks definitions of the SHUT_* macros.
25146         * modules/sys_socket (Description): Update.
25147         Reported by Elbert Pol <e.pol@chello.nl>.
25148
25149 2008-04-13  Bruno Haible  <bruno@clisp.org>
25150
25151         * lib/localcharset.c (OS2): Don't redefine if already defined.
25152         Reported by Elbert Pol <e.pol@chello.nl>.
25153
25154 2008-04-13  Bruno Haible  <bruno@clisp.org>
25155
25156         * lib/binary-io.h [__EMX__]: Include <io.h>.
25157         Reported by Elbert Pol <e.pol@chello.nl>.
25158
25159 2008-04-12  Bruno Haible  <bruno@clisp.org>
25160
25161         * lib/fpucw.h: Enable the definitions also for x86_64.
25162         Needed for NetBSD/x86_64.
25163         Reported by Thomas Klausner <tk@giga.or.at>.
25164
25165 2008-04-12  Bruno Haible  <bruno@clisp.org>
25166
25167         * tests/test-strtod.c: Include isnand.h.
25168         (main): Use isnand instead of isnan.
25169         Reported by Jim Meyering.
25170
25171 2008-04-12  Bruno Haible  <bruno@clisp.org>
25172
25173         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25174         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25175
25176 2008-04-12  Jim Meyering  <meyering@redhat.com>
25177
25178         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25179
25180 2008-04-12  Bruno Haible  <bruno@clisp.org>
25181
25182         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25183         Reported by Elbert Pol <e.pol@chello.nl>.
25184
25185 2008-04-12  Eric Blake  <ebb9@byu.net>
25186
25187         Work around Solaris 10 math.h bug.
25188         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25189         (gl_MATH_H_DEFAULTS): Set up default.
25190         * modules/math (Makefile.am): Replace new indicators.
25191         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25192         * tests/test-math.c (main): Test this.
25193         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25194         * doc/posix-headers/math.texi (math.h): Mention bug.
25195         Reported by Nelson H. F. Beebe and Jim Meyering.
25196
25197 2008-04-11  Bruno Haible  <bruno@clisp.org>
25198
25199         Adapt to future versions of Apple GCC.
25200         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25201         Reported by Peter O'Gorman <peter@pogma.com>.
25202
25203 2008-04-11  Bruno Haible  <bruno@clisp.org>
25204
25205         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25206
25207 2008-04-11  Bruno Haible  <bruno@clisp.org>
25208
25209         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25210
25211         * modules/getaddrinfo-tests (Makefile.am): Define
25212         test_getaddrinfo_LDADD.
25213
25214 2008-04-11  Bruno Haible  <bruno@clisp.org>
25215
25216         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25217         (init): Fix syntax error.
25218         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25219         is declared.
25220
25221 2008-04-11  Bruno Haible  <bruno@clisp.org>
25222
25223         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25224         * modules/glob (Depends-on): Add stdbool.
25225
25226 2008-04-11  Bruno Haible  <bruno@clisp.org>
25227
25228         * lib/trim.c: Include <string.h>.
25229
25230 2008-04-11  Eric Blake  <ebb9@byu.net>
25231
25232         Avoid compile failure on OS/2.
25233         * lib/regex_internal.h (internal_function): Disable optimization
25234         on OS/2 (__EMX__), where it caused compiler error.
25235         Reported by Elbert Pol.
25236
25237 2008-04-11  Bruno Haible  <bruno@clisp.org>
25238
25239         Flush the standard error stream before aborting. Needed on mingw.
25240         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25241         * tests/test-array_list.c (ASSERT): Likewise.
25242         * tests/test-array_oset.c (ASSERT): Likewise.
25243         * tests/test-avltree_list.c (ASSERT): Likewise.
25244         * tests/test-avltree_oset.c (ASSERT): Likewise.
25245         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25246         * tests/test-binary-io.c (ASSERT): Likewise.
25247         * tests/test-byteswap.c (ASSERT): Likewise.
25248         * tests/test-c-ctype.c (ASSERT): Likewise.
25249         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25250         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25251         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25252         * tests/test-c-strstr.c (ASSERT): Likewise.
25253         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25254         * tests/test-canonicalize.c (ASSERT): Likewise.
25255         * tests/test-carray_list.c (ASSERT): Likewise.
25256         * tests/test-ceilf1.c (ASSERT): Likewise.
25257         * tests/test-ceilf2.c (ASSERT): Likewise.
25258         * tests/test-ceill.c (ASSERT): Likewise.
25259         * tests/test-count-one-bits.c (ASSERT): Likewise.
25260         * tests/test-fbufmode.c (ASSERT): Likewise.
25261         * tests/test-fflush2.c (ASSERT): Likewise.
25262         * tests/test-floorf1.c (ASSERT): Likewise.
25263         * tests/test-floorf2.c (ASSERT): Likewise.
25264         * tests/test-floorl.c (ASSERT): Likewise.
25265         * tests/test-fopen.c (ASSERT): Likewise.
25266         * tests/test-fpending.c (ASSERT): Likewise.
25267         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25268         * tests/test-fpurge.c (ASSERT): Likewise.
25269         * tests/test-freadable.c (ASSERT): Likewise.
25270         * tests/test-freadahead.c (ASSERT): Likewise.
25271         * tests/test-freading.c (ASSERT): Likewise.
25272         * tests/test-freadptr.c (ASSERT): Likewise.
25273         * tests/test-freadptr2.c (ASSERT): Likewise.
25274         * tests/test-freadseek.c (ASSERT): Likewise.
25275         * tests/test-freopen.c (ASSERT): Likewise.
25276         * tests/test-frexp.c (ASSERT): Likewise.
25277         * tests/test-frexpl.c (ASSERT): Likewise.
25278         * tests/test-fseek.c (ASSERT): Likewise.
25279         * tests/test-fseeko.c (ASSERT): Likewise.
25280         * tests/test-fstrcmp.c (ASSERT): Likewise.
25281         * tests/test-ftell.c (ASSERT): Likewise.
25282         * tests/test-ftello.c (ASSERT): Likewise.
25283         * tests/test-func.c (ASSERT): Likewise.
25284         * tests/test-fwritable.c (ASSERT): Likewise.
25285         * tests/test-fwriting.c (ASSERT): Likewise.
25286         * tests/test-getdelim.c (ASSERT): Likewise.
25287         * tests/test-getline.c (ASSERT): Likewise.
25288         * tests/test-i-ring.c (ASSERT): Likewise.
25289         * tests/test-iconv-utf.c (ASSERT): Likewise.
25290         * tests/test-iconv.c (ASSERT): Likewise.
25291         * tests/test-isfinite.c (ASSERT): Likewise.
25292         * tests/test-isnand.c (ASSERT): Likewise.
25293         * tests/test-isnanf.c (ASSERT): Likewise.
25294         * tests/test-isnanl.h (ASSERT): Likewise.
25295         * tests/test-ldexpl.c (ASSERT): Likewise.
25296         * tests/test-linked_list.c (ASSERT): Likewise.
25297         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25298         * tests/test-localename.c (ASSERT): Likewise.
25299         * tests/test-lseek.c (ASSERT): Likewise.
25300         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25301         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25302         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25303         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25304         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25305         * tests/test-mbschr.c (ASSERT): Likewise.
25306         * tests/test-mbscspn.c (ASSERT): Likewise.
25307         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25308         * tests/test-mbspbrk.c (ASSERT): Likewise.
25309         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25310         * tests/test-mbsrchr.c (ASSERT): Likewise.
25311         * tests/test-mbsspn.c (ASSERT): Likewise.
25312         * tests/test-mbsstr1.c (ASSERT): Likewise.
25313         * tests/test-mbsstr2.c (ASSERT): Likewise.
25314         * tests/test-mbsstr3.c (ASSERT): Likewise.
25315         * tests/test-memchr2.c (ASSERT): Likewise.
25316         * tests/test-memmem.c (ASSERT): Likewise.
25317         * tests/test-open.c (ASSERT): Likewise.
25318         * tests/test-printf-frexp.c (ASSERT): Likewise.
25319         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25320         * tests/test-printf-posix.c (ASSERT): Likewise.
25321         * tests/test-quotearg.c (ASSERT): Likewise.
25322         * tests/test-rbtree_list.c (ASSERT): Likewise.
25323         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25324         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25325         * tests/test-round1.c (ASSERT): Likewise.
25326         * tests/test-roundf1.c (ASSERT): Likewise.
25327         * tests/test-roundl.c (ASSERT): Likewise.
25328         * tests/test-signbit.c (ASSERT): Likewise.
25329         * tests/test-sleep.c (ASSERT): Likewise.
25330         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25331         * tests/test-snprintf.c (ASSERT): Likewise.
25332         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25333         * tests/test-stat-time.c (ASSERT): Likewise.
25334         * tests/test-strcasestr.c (ASSERT): Likewise.
25335         * tests/test-strerror.c (ASSERT): Likewise.
25336         * tests/test-striconv.c (ASSERT): Likewise.
25337         * tests/test-striconveh.c (ASSERT): Likewise.
25338         * tests/test-striconveha.c (ASSERT): Likewise.
25339         * tests/test-strsignal.c (ASSERT): Likewise.
25340         * tests/test-strstr.c (ASSERT): Likewise.
25341         * tests/test-strtod.c (ASSERT): Likewise.
25342         * tests/test-trunc1.c (ASSERT): Likewise.
25343         * tests/test-trunc2.c (ASSERT): Likewise.
25344         * tests/test-truncf1.c (ASSERT): Likewise.
25345         * tests/test-truncf2.c (ASSERT): Likewise.
25346         * tests/test-truncl.c (ASSERT): Likewise.
25347         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25348         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25349         * tests/test-vasnprintf.c (ASSERT): Likewise.
25350         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25351         * tests/test-vasprintf.c (ASSERT): Likewise.
25352         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25353         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25354         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25355         * tests/test-vsnprintf.c (ASSERT): Likewise.
25356         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25357         * tests/test-wcwidth.c (ASSERT): Likewise.
25358         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25359         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25360         * tests/test-xvasprintf.c (ASSERT): Likewise.
25361         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25362         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25363         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25364         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25365         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25366         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25367         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25368         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25369         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25370         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25371         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25372         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25373         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25374         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25375         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25376         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25377         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25378         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25379         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25380         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25381         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25382         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25383         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25384         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25385         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25386         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25387         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25388         * tests/unictype/test-combining.c (ASSERT): Likewise.
25389         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25390         * tests/unictype/test-digit.c (ASSERT): Likewise.
25391         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25392         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25393         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25394         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25395         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25396         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25397         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25398         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25399         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25400         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25401         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25402         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25403         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25404         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25405         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25406         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25407         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25408         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25409         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25410         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25411         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25412         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25413         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25414         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25415         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25416         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25417         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25418         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25419         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25420         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25421         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25422         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25423         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25424         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25425         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25426         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25427         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25428         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25429         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25430         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25431         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25432         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25433         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25434         Reported by Eric Blake.
25435
25436 2008-04-11  Bruno Haible  <bruno@clisp.org>
25437
25438         * lib/wchar.in.h: Tweak comment.
25439
25440 2008-04-11  Bruno Haible  <bruno@clisp.org>
25441
25442         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25443         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25444         gl_COMMON.
25445         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25446
25447 2008-04-11  Bruno Haible  <bruno@clisp.org>
25448
25449         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25450
25451 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25452
25453         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25454         of attempting to use non-existing /dev/*random.  Based on patch
25455         from Adam Strzelecki <ono@java.pl> in
25456         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25457
25458 2008-04-08  Bruno Haible  <bruno@clisp.org>
25459
25460         Add tentative support for emx+gcc.
25461         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25462         * lib/fpurge.c (fpurge): Likewise.
25463         * lib/freadable.c (freadable): Likewise.
25464         * lib/freadahead.c (freadahead): Likewise.
25465         * lib/freading.c (freading): Likewise.
25466         * lib/freadptr.c (freadptr): Likewise.
25467         * lib/freadseek.c (freadptrinc): Likewise.
25468         * lib/fseeko.c (rpl_fseeko): Likewise.
25469         * lib/fseterr.c (fseterr): Likewise.
25470         * lib/fwritable.c (fwritable): Likewise.
25471         * lib/fwriting.c (fwriting): Likewise.
25472         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25473
25474 2008-04-09  Eric Blake  <ebb9@byu.net>
25475
25476         Avoid some autoconf warnings.
25477         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25478         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25479         * m4/afs.m4 (gl_AFS): Likewise.
25480         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25481         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25482         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25483         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25484         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25485         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25486         (AC_CHECK_DECLS_ONCE): Likewise.
25487         Rename file...
25488         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25489         gnulib-tool requires autoconf 2.59 or better.
25490         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25491
25492 2008-04-08  Eric Blake  <ebb9@byu.net>
25493
25494         Use 'git describe --match' if present (added in git 1.5.5).
25495         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25496         if possible.
25497
25498 2008-04-08  Bruno Haible  <bruno@clisp.org>
25499
25500         Add tentative support for OpenServer.
25501         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25502         _ptr, _cnt.
25503         * lib/fpurge.c (fpurge): Likewise.
25504         * lib/freadable.c (freadable): Likewise.
25505         * lib/freadahead.c (freadahead): Likewise.
25506         * lib/freading.c (freading): Likewise.
25507         * lib/freadptr.c (freadptr): Likewise.
25508         * lib/freadseek.c (freadptrinc): Likewise.
25509         * lib/fseeko.c (rpl_fseeko): Likewise.
25510         * lib/fseterr.c (fseterr): Likewise.
25511         * lib/fwritable.c (fwritable): Likewise.
25512         * lib/fwriting.c (fwriting): Likewise.
25513         Reported by Roger Cornelius <rac@tenzing.org> and
25514         Brian K. White <brian@aljex.com>.
25515
25516 2008-04-06  Jim Meyering  <meyering@redhat.com>
25517
25518         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25519
25520 2008-04-06  Bruno Haible  <bruno@clisp.org>
25521
25522         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25523         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25524         * tests/test-printf-posix.sh: Likewise.
25525         * tests/test-vfprintf-posix.sh: Likewise.
25526         * tests/test-vprintf-posix.sh: Likewise.
25527         * tests/test-xprintf-posix.sh: Likewise.
25528
25529 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25530
25531         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25532         hide error from 'ls', needed on OS/2.
25533         Report by Elbert Pol <elbert.pol@gmail.com>.
25534
25535 2008-04-04  Eric Blake  <ebb9@byu.net>
25536
25537         Make test-fseeko.c failures meaningful.
25538         * tests/test-fseeko.c: Print line number on failure.
25539         * tests/test-fseek.c: Likewise.
25540         Reported by Nelson H. F. Beebe.
25541
25542         Improve strtod bug detection check.
25543         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25544         required for Solaris 10.
25545         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25546
25547 2008-04-04  Bruno Haible  <bruno@clisp.org>
25548
25549         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25550         by m4/setenv.m4.
25551
25552 2008-04-03  Eric Blake  <ebb9@byu.net>
25553
25554         Ensure sane .version contents.
25555         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25556         version string.
25557         * build-aux/git-version-gen: Improve documentation.
25558
25559         Make GNU make output nicer.
25560         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25561         MAKECMDGOALS to enforce message for all command line targets.  Set
25562         srcdir for use in maint.mk.
25563
25564         Another maintainer tweak.
25565         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25566         a target that regenerates version.
25567
25568 2008-04-03  Jim Meyering  <meyering@redhat.com>
25569
25570         vc-list-files: don't cause coreutils "make po-check" failure
25571         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25572
25573 2008-04-03  Eric Blake  <ebb9@byu.net>
25574
25575         Allow VPATH usage of vc-list-files.
25576         * build-aux/vc-list-files (scriptversion): Add timestamp.
25577         (options): Add --help, --version, -C.
25578         (CVS): Support installed cvsu.
25579
25580 2008-04-02  Bruno Haible  <bruno@clisp.org>
25581
25582         Avoid some "statement with no effect" warnings from gcc.
25583         * tests/test-wctype.c (main): Explicitly ignore unused values.
25584         Reported by Jim Meyering.
25585
25586 2008-04-02  Jim Meyering  <meyering@redhat.com>
25587
25588         Avoid some warnings from "gcc -Wshadow".
25589         * tests/test-frexp.c (exp): Define to a different identifier.
25590         * tests/test-frexpl.c (exp): Likewise.
25591
25592 2008-04-03  Jim Meyering  <meyering@redhat.com>
25593
25594         bootstrap: remove dangling *.[ch] symlinks from lib
25595         * build-aux/bootstrap [dangling symlink removal]: Move find's
25596         -depth option to precede all others, to avoid a warning.
25597         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25598
25599 2008-04-02  Bruno Haible  <bruno@clisp.org>
25600
25601         Avoid some warnings from "gcc -Wshadow".
25602         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25603         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25604         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25605         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25606         Reported by Jim Meyering.
25607
25608 2008-04-01  Bruno Haible  <bruno@clisp.org>
25609
25610         Fix test to work on IRIX 6.5 with cc.
25611         * tests/test-math.c (numeric_equal): New function.
25612         (main): Use it.
25613
25614 2008-04-01  Bruno Haible  <bruno@clisp.org>
25615
25616         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25617
25618 2008-04-01  Bruno Haible  <bruno@clisp.org>
25619
25620         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25621         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25622         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25623         (Depends-on): Remove math.
25624
25625         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25626         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25627         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25628         (Depends-on): Remove math.
25629
25630         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25631         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25632         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25633         (Depends-on): Remove math.
25634         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25635         (Depends-on): Remove math.
25636
25637         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25638         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25639         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25640         (Depends-on): Remove math.
25641         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25642         (Depends-on): Remove math.
25643
25644         * tests/test-round1.c: Include nan.h.
25645         (main): Use NaNd instead of NAN.
25646         * modules/round-tests (Files): Add tests/nan.h.
25647
25648         * tests/test-trunc1.c: Include nan.h.
25649         (main): Use NaNd instead of NAN.
25650         * modules/trunc-tests (Files): Add tests/nan.h.
25651
25652         * tests/test-roundf1.c: Include nan.h.
25653         (main): Use NaNf instead of NAN.
25654         * modules/roundf-tests (Files): Add tests/nan.h.
25655
25656         * tests/test-truncf1.c: Include nan.h.
25657         (main): Use NaNf instead of NAN.
25658         * modules/truncf-tests (Files): Add tests/nan.h.
25659
25660         * tests/test-ceilf1.c: Include nan.h.
25661         (main): Use NaNf instead of NAN.
25662         * modules/ceilf-tests (Files): Add tests/nan.h.
25663
25664         * tests/test-floorf1.c: Include nan.h.
25665         (main): Use NaNf instead of NAN.
25666         * modules/floorf-tests (Files): Add tests/nan.h.
25667
25668         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25669         (main): Use NaNf instead of NAN.
25670         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25671
25672         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25673         (main): Use NaNd instead of NAN.
25674         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25675
25676         * tests/test-frexp.c: Include nan.h.
25677         (main): Use NaNd instead of NAN.
25678         * modules/frexp-tests (Files): Add tests/nan.h.
25679
25680         * lib/isnan.c: Don't include <math.h>.
25681         (FUNC): Don't use NAN macro.
25682         * modules/isnand-nolibm (Depends-on): Remove math.
25683         * modules/isnanf-nolibm (Depends-on): Remove math.
25684         * modules/isnanl (Depends-on): Remove math.
25685         * modules/isnanl-nolibm (Depends-on): Remove math.
25686
25687         * tests/nan.h: New file.
25688
25689 2008-04-01  Eric Blake  <ebb9@byu.net>
25690
25691         Fix typos.
25692         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25693         values to be the right type.
25694
25695         For now, cater to gnulib strtod inaccuracies.
25696         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25697         fractional results.  While not as nice from a QoI perspective, it
25698         is a quicker patch than correctly implementing decimal to binary
25699         rounding.
25700
25701 2008-03-31  Eric Blake  <ebb9@byu.net>
25702
25703         Guarantee a definition of NAN.
25704         * lib/math.in.h (NAN): Define if missing.
25705         * tests/test-math.c (main): Test it.
25706         * doc/posix-headers/math.texi (math.h): Document this.
25707         * lib/isnan.c (rpl_isnand): Use it.
25708         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25709         * tests/test-floorf1.c (NaN): Likewise.
25710         * tests/test-frexp.c (NaN): Likewise.
25711         * tests/test-isnand.c (NaN): Likewise.
25712         * tests/test-isnanf.c (NaN): Likewise.
25713         * tests/test-round1.c (NaN): Likewise.
25714         * tests/test-roundf1.c (NaN): Likewise.
25715         * tests/test-snprintf-posix.h (NaN): Likewise.
25716         * tests/test-sprintf-posix.h (NaN): Likewise.
25717         * tests/test-trunc1.c (NaN): Likewise.
25718         * tests/test-truncf1.c (NaN): Likewise.
25719         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25720         * tests/test-vasprintf-posix.c (NaN): Likewise.
25721         * modules/isnand-nolibm (Depends-on): Add math.
25722         * modules/isnanf-nolibm (Depends-on): Likewise.
25723         * modules/isnanl (Depends-on): Likewise.
25724         * modules/isnanl-nolibm (Depends-on): Likewise.
25725         * modules/snprintf-posix-tests (Depends-on): Likewise.
25726         * modules/sprintf-posix-tests (Depends-on): Likewise.
25727         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25728         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25729         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25730         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25731
25732 2008-03-31  Bruno Haible  <bruno@clisp.org>
25733
25734         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25735         * doc/posix-functions/strtod.texi: Likewise.
25736
25737 2008-03-31  Bruno Haible  <bruno@clisp.org>
25738
25739         * tests/test-strtod.c (main): Don't use C99 syntax.
25740
25741 2008-03-31  Bruno Haible  <bruno@clisp.org>
25742
25743         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25744         Reported by Eric Blake.
25745
25746 2008-03-31  Jim Meyering  <meyering@redhat.com>
25747
25748         Don't compare actual signbit return values.
25749         * tests/test-strtod.c (main): Rather, compare only their
25750         zero/non-zero nature.
25751
25752 2008-03-31  Eric Blake  <ebb9@byu.net>
25753
25754         More strtod documentation.
25755         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25756         failures as distinct bugs.
25757
25758 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25759
25760         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25761         Problem reported by Erik Benada in
25762         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25763
25764 2008-03-30  Bruno Haible  <bruno@clisp.org>
25765
25766         * tests/test-strtod.c: Add comments about which assertion fails on which
25767         platform.
25768         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25769
25770 2008-03-30  Eric Blake  <ebb9@byu.net>
25771
25772         Test signbit behavior on zeros.
25773         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25774         (test_signbitd, test_signbitl): Likewise.
25775
25776         More strtod touchups.
25777         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25778         sign of negative underflow, for now.  Use .5, not .1.
25779         * doc/posix-functions/strtod.texi (strtod): Mention these
25780         limitations.
25781         Reported by Jim Meyering.
25782
25783 2008-03-30  Bruno Haible  <bruno@clisp.org>
25784
25785         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25786         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25787
25788 2008-03-30  Bruno Haible  <bruno@clisp.org>
25789
25790         Avoid failure when attempting to return empty iconv results on some
25791         platforms.
25792         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25793         allocation, don't report ENOMEM when the resulting string is empty.
25794
25795 2008-03-30  Bruno Haible  <bruno@clisp.org>
25796
25797         Fix buffer overrun.
25798         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25799         Don't consider the width for tmp_length. Check count against tmp_length
25800         before doing the padding. Ensure enough allocation during padding.
25801
25802 2008-03-30  Eric Blake  <ebb9@byu.net>
25803
25804         strtod touchups.
25805         * lib/strtod.c (strtod): Avoid compiler warnings.
25806         Reported by Jim Meyering.
25807
25808 2008-03-30  Bruno Haible  <bruno@clisp.org>
25809
25810         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25811         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25812         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25813         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25814         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25815         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25816         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25817         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25818
25819         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25820         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25821         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25822         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25823         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25824         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25825         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25826         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25827
25828         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25829         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25830         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25831         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25832         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25833         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25834         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25835         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25836
25837         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25838         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25839
25840         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25841         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25842
25843         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25844         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25845
25846         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25848         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25849
25850         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25852         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25853
25854         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25855         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25856         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25857
25858         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25859         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25860         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25861
25862         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25863         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25864         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25865         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25866         (Depends-on): Add EOVERFLOW.
25867         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25868         (Depends-on): Add EOVERFLOW.
25869         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25870         (Depends-on): Add EOVERFLOW.
25871         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25872         (Depends-on): Add EOVERFLOW.
25873         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25874         (Depends-on): Add EOVERFLOW.
25875         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25876         (Depends-on): Add EOVERFLOW.
25877         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25878         (Depends-on): Add EOVERFLOW.
25879         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25880         (Depends-on): Add EOVERFLOW.
25881
25882         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25883         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25884         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25885
25886         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25888         * modules/snprintf (Depends-on): Add EOVERFLOW.
25889
25890         * lib/poll.c (EOVERFLOW): Remove fallback.
25891         * modules/poll (Depends-on): Add EOVERFLOW.
25892
25893         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25894         * modules/getugroups (Depends-on): Add EOVERFLOW.
25895
25896         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25897         * modules/getdelim (Depends-on): Add EOVERFLOW.
25898
25899         * lib/ftell.c (EOVERFLOW): Remove fallback.
25900         * modules/ftell (Depends-on): Add EOVERFLOW.
25901
25902         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25903         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25904         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25905
25906         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25907
25908         * modules/EOVERFLOW-tests: New file.
25909         * tests/test-EOVERFLOW.c: New file.
25910
25911         * modules/EOVERFLOW: New file.
25912         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25913
25914 2008-03-30  Bruno Haible  <bruno@clisp.org>
25915
25916         Fix bug introduced on 2007-06-10.
25917         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25918         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25919
25920 2008-03-30  Bruno Haible  <bruno@clisp.org>
25921
25922         Improve freadseek's efficiency after ungetc.
25923         * lib/freadseek.c: Include freadahead.h.
25924         (freadptrinc): New function, extracted from freadseek.
25925         (freadseek): Use it in a loop. Use freadahead to determine the number
25926         of loop iterations.
25927         * modules/freadseek (Depends-on): Add freadahead.
25928         (configure.ac): Require AC_C_INLINE.
25929
25930 2008-03-30  Bruno Haible  <bruno@clisp.org>
25931
25932         * lib/freadseek.c (freadseek): Don't ignore the return value of
25933         freadptr.
25934
25935 2008-03-29  Eric Blake  <ebb9@byu.net>
25936
25937         Add hex float support.
25938         * modules/strtod (Depends-on): Add c-ctype.
25939         (Link): Mention POW_LIB.
25940         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25941         whitespace between 'e' and exponent.
25942         * tests/test-strtod.c (main): Enable hex float tests.
25943         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25944         now provides.
25945
25946         Document various strtod bugs, with some fixes.
25947         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25948         "-0x", "inf", "nan", and hex constants.
25949         * doc/posix-functions/atof.texi (atof): Likewise.
25950         * modules/stdlib (Makefile.am): Support strtod.
25951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25952         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25953         detect additional strtod bugs.
25954         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25955         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25956         bool where appropriate.  Parse 'inf' and 'nan'.
25957         * tests/test-strtod.c: New file.
25958         * modules/strtod (Depends-on): Add stdbool, stdlib.
25959         (configure.ac): Turn on module indicator.
25960         * modules/strtod-tests: New module.
25961
25962 2008-03-29  Eric Blake  <ebb9@byu.net>
25963
25964         Fix ftell on mingw.
25965         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25966         * modules/ftell-tests (Depends-on): Add binary-io.
25967         * modules/ftello-tests (Depends-on): Likewise.
25968         * tests/test-ftell.c (main): Enhance test to cover behavior after
25969         ungetc.  Enforce binary mode.
25970         * tests/test-ftello.c (main): Likewise.
25971
25972         Pass test-freadseek on cygwin.
25973         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25974         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25975         ungetc buffer.
25976
25977         * tests/test-fflush2.c (main): Fix typo.
25978
25979 2008-03-29  Bruno Haible  <bruno@clisp.org>
25980
25981         * tests/test-fflush2.c (main): Temporarily disable the contents of
25982         this test.
25983         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25984         Reported by Eric Blake.
25985
25986 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25987
25988         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25989         (GC_SHA224_DIGEST_SIZE): Add.
25990
25991         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25992         (gc_hash_digest_length): Likewise.
25993         (gc_hash_buffer): Likewise.
25994
25995 2008-03-25  Bruno Haible  <bruno@clisp.org>
25996
25997         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25998         detail which gettext release to use.
25999         Reported by Simon Josefsson.
26000
26001 2008-03-26  Jim Meyering  <meyering@redhat.com>
26002
26003         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26004         * modules/gnumakefile (clean-GNUmakefile): Also, use
26005         test ... && ... || : syntax rather than if-then ... fi.
26006
26007         gnumakefile: Don't double-quote-expand $(VPATH) value.
26008         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26009
26010 2008-03-24  Eric Blake  <ebb9@byu.net>
26011
26012         Alter GNUmakefile to install into top directory.
26013         * modules/maintainer-makefile: Split, and add dependency...
26014         * modules/gnumakefile: to this new module.
26015         * build-aux/GNUmakefile: Move...
26016         * top/GNUmakefile: ...here.
26017         * build-aux/maint.mk: Move...
26018         * top/maint.mk: ...here.
26019         * MODULES.html.sh (Support for maintaining...): Document new
26020         module.
26021
26022 2008-03-23  Bruno Haible  <bruno@clisp.org>
26023
26024         * gnulib-tool: New options --vc-files, --no-vc-files.
26025         (func_usage): Document them.
26026         (vc_files): New variable.
26027         (func_import): Consider vc_files.
26028         (func_create_testdir): Set vc_files to empty.
26029         Suggested by Jim Meyering and Karl Berry.
26030
26031 2008-03-23  Bruno Haible  <bruno@clisp.org>
26032
26033         Fix regex compilation error on HP-UX 11.
26034         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26035         * modules/regex (Files): Add m4/mbstate_t.m4.
26036         Reported by Ton Voon <ton.voon@altinity.com>.
26037
26038 2008-03-23  Bruno Haible  <bruno@clisp.org>
26039
26040         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26041
26042 2008-03-23  Eric Blake  <ebb9@byu.net>
26043             Bruno Haible  <bruno@clisp.org>
26044
26045         Install files from top/ in the destination directory.
26046         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26047         augmentation also for the files from top/.
26048         (func_import, func_create_testdir): Rewrite file names:
26049         top/filename -> filename.
26050
26051 2008-03-23  Bruno Haible  <bruno@clisp.org>
26052
26053         Tweak "gnulib --version" output.
26054         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26055
26056 2008-03-23  Bruno Haible  <bruno@clisp.org>
26057
26058         Tweak "gnulib --version" output.
26059         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26060         rather than contents of ChangeLog, when possible.
26061
26062 2008-03-21  Eric Blake  <ebb9@byu.net>
26063
26064         More --version tweaks.
26065         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26066         date of last ChangeLog entry.
26067
26068 2008-03-21  Jim Meyering  <meyering@redhat.com>
26069
26070         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26071
26072 2008-03-20  Eric Blake  <ebb9@byu.net>
26073
26074         VPATH fix.
26075         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26076
26077 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26078
26079         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26080         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26081
26082 2008-03-20  Eric Blake  <ebb9@byu.net>
26083
26084         Sync GNUmakefile with coreutils.
26085         * build-aux/GNUmakefile (have-Makefile): Rename...
26086         (_have-Makefile): ...to this, for namespace consideration.
26087         (GNUmakefile.cfg): Include, if present.
26088         (_autoreconf): Define a default.
26089         (_is-dist-target): New rule for rebuilds to pick up intra-release
26090         version.
26091         (maint-cfg.mk): Rename...
26092         (cfg.mk): ...to this.
26093
26094 2008-03-18  Jim Meyering  <meyering@redhat.com>
26095
26096         New script and module: mktempd
26097         * MODULES.html.sh (maint+release support): Add mktempd.
26098         * build-aux/mktempd: New file.
26099         * modules/mktempd: New file.
26100
26101 2008-03-15  Jim Meyering  <meyering@redhat.com>
26102
26103         Undo last change.
26104         * lib/sha1.c, lib/md5.c: 63 != ~63.
26105         Reported by Andreas Schwab.
26106
26107         sha1.c, md5.c: Hoist a redundant expression.
26108         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26109         "ctx->buflen" only once, before calling *_process_block.
26110         * lib/md5.c (md5_process_bytes): Likewise.
26111
26112 2008-03-14  Eric Blake  <ebb9@byu.net>
26113
26114         Bump copyright year in files generated by gnulib-tool.
26115         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26116         gnulib-tool, rather than hard-coding it.
26117
26118         Fix 'gnulib-tool --version' output to work with git.
26119         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26120         (startup): ...here.
26121         (func_version): Use it to invoke git-version-gen, rather than
26122         relying on CVS keyword expansion.  Modernize wording.
26123         (cvsdatestamp, last_checkin_date, version): Kill unused
26124         variables.
26125
26126 2008-03-12  Jim Meyering  <meyering@redhat.com>
26127
26128         Recognize optional cast of the argument to free.
26129         * build-aux/useless-if-before-free: Update regexps.
26130
26131         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26132
26133 2008-03-11  Bruno Haible  <bruno@clisp.org>
26134
26135         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26136         by a single package.
26137         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26138         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26139         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26140         Reported by Sam Steingold <sds@gnu.org>.
26141
26142 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26143
26144         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26145         repositories.
26146
26147 2008-03-11  Bruno Haible  <bruno@clisp.org>
26148
26149         Avoid conflicts between local macro definitions.
26150         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26151         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26152
26153 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26154             Bruno Haible  <bruno@clisp.org>
26155
26156         Make va_copy work with some version of xlc on AIX 5.1.
26157         * lib/stdarg.in.h: New file.
26158         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26159         On AIX, use a <stdarg.h> file substitute.
26160         * modules/stdarg (Files): Add lib/stdarg.in.h.
26161         (Depends-on): Add include_next.
26162         (Makefile.am): Build a stdarg.h substitute if requested.
26163         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26164
26165 2008-03-10  Bruno Haible  <bruno@clisp.org>
26166
26167         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26168         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26169         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26170
26171 2008-03-10  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/stdlib (Depends-on): Add include_next, remove
26174         absolute-header.
26175
26176 2008-03-09  Bruno Haible  <bruno@clisp.org>
26177
26178         * lib/freadahead.h (freadahead): Document more precisely.
26179         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26180         the sum of both buffer sizes.
26181         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26182         * NEWS: Document the change.
26183
26184 2008-03-09  Bruno Haible  <bruno@clisp.org>
26185
26186         Extend freadptr to return also the buffer size.
26187         * lib/freadptr.h (freadptr): Add sizep argument.
26188         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26189         (freadptr): Add sizep argument. Determine buffer size like freadahead
26190         does.
26191         * tests/test-freadptr.c: Don't include freadahead.h.
26192         (main): Adapt for new calling convention of freadptr.
26193         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26194         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26195         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26196         tests/test-freadptr2.sh.
26197         (Depends): Remove freadahead.
26198         (TESTS): Add test-freadptr2.sh.
26199         (check_PROGRAMS): Add test-freadptr2.
26200
26201 2008-03-09  Bruno Haible  <bruno@clisp.org>
26202
26203         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26204         Report and solution by Simon Josefsson.
26205
26206 2008-03-06  Bruno Haible  <bruno@clisp.org>
26207
26208         Make fflush after ungetc work on BSD platforms.
26209         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26210         * tests/test-fflush2.c: New file.
26211         * tests/test-fflush2.sh: New file.
26212         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26213         tests/test-fflush2.c.
26214         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26215         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26216
26217 2008-03-06  Eric Blake  <ebb9@byu.net>
26218
26219         Likewise for ftello.
26220         * modules/ftello (Dependencies): Add extensions.
26221         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26222
26223 2008-03-06  Bruno Haible  <bruno@clisp.org>
26224
26225         * modules/fseeko (Dependencies): Add extensions.
26226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26227         Needed on glibc systems.
26228
26229 2008-03-06  Bruno Haible  <bruno@clisp.org>
26230
26231         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26232         email address.
26233         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26234
26235 2008-03-06  Bruno Haible  <bruno@clisp.org>
26236
26237         * users.txt: Add libgnupdf.
26238
26239 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26240
26241         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26242         (Header File Substitutes, Function Substitutes,
26243         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26244         (Build robot for gnulib): Fix typo.
26245
26246 2008-03-06  Bruno Haible  <bruno@clisp.org>
26247
26248         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26249         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26250
26251 2008-03-06  Bruno Haible  <bruno@clisp.org>
26252
26253         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26254         * doc/gnulib.texi: Include it.
26255
26256 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26257
26258         * modules/func (License): Change license to unlimited; there was
26259         no LGPL parts in the module anyway.
26260
26261 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26262
26263         * modules/__func__: Renamed to modules/func.
26264         * modules/__func__-tests: Renamed to modules/func-tests.
26265         * tests/test-__func__.c: Renamed to tests/test-func.c.
26266         * m4/__func__.m4: Renamed to m4/func.m4.
26267         * doc/gnulib.texi (__func__): Section renamed to func.
26268         Suggested by Eric Blake <ebb9@byu.net>.
26269
26270 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26271
26272         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26273         about __func__.  Make example self-contained.  Suggested by Eric
26274         Blake <ebb9@byu.net>.
26275
26276         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26277         Suggested by Eric Blake <ebb9@byu.net>.
26278
26279 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26280
26281         * modules/__func__: New file.
26282         * modules/__func__-tests: New file.
26283         * tests/test-__func__.c: New file.
26284         * m4/__func__.m4: New file.
26285         * doc/gnulib.texi (__func__): Document __func__ module.
26286
26287 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26288
26289         * modules/byteswap (License): Re-license as LGPLv2+.
26290
26291 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26292
26293         * doc/Makefile: Add pdf target.
26294
26295 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26296
26297         * modules/inline (License): Use 'unlimited', since there are only
26298         *.m4 files in this module.
26299
26300 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26301             Bruno Haible  <bruno@clisp.org>
26302
26303         Add support for HP C 7.1 on OpenVMS 8.3.
26304         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26305
26306 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26307
26308         Update VMS specifics.
26309         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26310
26311 2008-03-02  Jim Meyering  <meyering@redhat.com>
26312
26313         Remove the last dependency on the "free" module.
26314         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26315         Reported by Bob Proulx.
26316
26317         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26318
26319         Remove useless "if" tests before free.  Deprecate "free" module.
26320         * doc/posix-functions/free.texi: Mention that this
26321         module is no longer useful.
26322         * modules/free (Notice): Say this module is obsolete.
26323         * modules/readutmp (Depends-on): Remove free.
26324         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26325         * lib/putenv.c (putenv): Likewise.
26326         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26327         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26328         * tests/test-c-strcasestr.c (main): Likewise.
26329         * tests/test-c-strstr.c (main): Likewise.
26330         * tests/test-mbscasestr1.c (main): Likewise.
26331         * tests/test-mbscasestr2.c (main): Likewise.
26332         * tests/test-mbsstr1.c (main): Likewise.
26333         * tests/test-mbsstr2.c (main): Likewise.
26334         * tests/test-memmem.c (main): Likewise.
26335         * tests/test-strcasestr.c (main): Likewise.
26336         * tests/test-striconv.c (main): Likewise.
26337         * tests/test-striconveh.c (main): Likewise.
26338         * tests/test-striconveha.c (main): Likewise.
26339         * tests/test-strstr.c (main): Likewise.
26340
26341         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26342
26343         bootstrap: sync from coreutils again
26344         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26345
26346 2008-03-01  Jim Meyering  <meyering@redhat.com>
26347
26348         bootstrap: sync from coreutils
26349         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26350         also when the target doesn't exist.
26351
26352 2008-03-01  Eric Blake  <ebb9@byu.net>
26353
26354         Fix bugs in last patch.
26355         * lib/memchr2.c (memchr2): Fix typo.
26356         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26357         extension.
26358         Reported by Bruce Korb.
26359
26360         New module 'memchr2'.
26361         * modules/memchr2: New file.
26362         * modules/memchr2-tests: Likewise.
26363         * lib/memchr2.h: Likewise.
26364         * lib/memchr2.c: Likewise, based on memchr.c.
26365         * tests/test-memchr2.c: New test.
26366         * MODULES.html.sh (String handling): Add memchr2.
26367
26368 2008-02-29  Bruno Haible  <bruno@clisp.org>
26369
26370         * modules/freadseek-tests: New file.
26371         * tests/test-freadseek.sh: New file.
26372         * tests/test-freadseek.c: New file.
26373
26374         New module 'freadseek'.
26375         * modules/freadseek: New file.
26376         * lib/freadseek.h: New file.
26377         * lib/freadseek.c: New file.
26378         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26379
26380 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26381
26382         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26383         wydawca.
26384
26385         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26386         program_invocation_name and program_invocation_short_name are
26387         present.
26388
26389 2008-02-28  Bruno Haible  <bruno@clisp.org>
26390
26391         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26392         * tests/test-freadptr.sh: Also test non-seekable stdin.
26393
26394 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26395
26396         * build-aux/bootstrap (source_base, m4_base)
26397         (doc_base, tests_base): New variables.
26398         (gnulib_tool_options): Do not hardcode base directories, use
26399         the above variables instead.
26400
26401 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26402
26403         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26404
26405 2008-02-28  Bruno Haible  <bruno@clisp.org>
26406
26407         * modules/freadptr-tests: New file.
26408         * tests/test-freadptr.sh: New file.
26409         * tests/test-freadptr.c: New file.
26410
26411         New module 'freadptr'.
26412         * modules/freadptr: New file.
26413         * lib/freadptr.h: New file.
26414         * lib/freadptr.c: New file.
26415         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26416
26417 2008-02-26  Karl Berry  <karl@freefriends.org>
26418
26419         Sync from Libtool:
26420         * libltdl/argz.c (argz_add, argz_count): New functions.
26421         * libltdl/argz.in.h: Declare them.
26422         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26423
26424 2008-02-22  Bruno Haible  <bruno@clisp.org>
26425
26426         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26427         is a pointer type.  Needed for HP-UX 10.
26428         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26429         * doc/posix-functions/gmtime_r.texi: Likewise.
26430         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26431
26432 2008-02-24  Bruno Haible  <bruno@clisp.org>
26433
26434         * modules/environ-tests: New file.
26435         * tests/test-environ.c: New file.
26436
26437         New module 'environ'.
26438         * modules/environ: New file.
26439         * lib/unistd.in.h (environ): New declaration.
26440         * m4/environ.m4: New file.
26441         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26442         after use.
26443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26444         HAVE_DECL_ENVIRON.
26445         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26446         HAVE_DECL_ENVIRON.
26447         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26448         wrong claim that 'environ' is missing on some systems.
26449         * modules/execute (Depends-on): Add environ.
26450         * lib/execute.c (environ): Remove fallback declaration.
26451         * modules/pipe (Depends-on): Add environ.
26452         * lib/pipe.c (environ): Remove fallback declaration.
26453         * modules/setenv (Depends-on): Add environ.
26454         * lib/setenv.c (environ): Remove fallback declaration.
26455         * modules/unsetenv (Depends-on): Add environ.
26456         * lib/unsetenv.c (environ): Remove fallback declaration.
26457         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26458         m4/environ.m4.
26459         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26460         (gl_PREREQ_UNSETENV): Likewise.
26461
26462 2008-02-24  Bruno Haible  <bruno@clisp.org>
26463
26464         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26465
26466 2008-02-20  Bob Proulx  <bob@proulx.com>
26467
26468         Enable use of older two part flavor 'git describe'.
26469         * build-aux/git-version-gen: If using the older two part flavor of
26470         git version then recreate the third part now present in the
26471         newer three part flavor of git describe.
26472
26473 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26474
26475         * lib/fts.c (fts_build): Typo correction to comment.
26476
26477 2008-02-17  Bruno Haible  <bruno@clisp.org>
26478
26479         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26480         generating no-op conflicts.
26481
26482 2008-02-17  Bruno Haible  <bruno@clisp.org>
26483
26484         Speed up by 10%.
26485         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26486         result_entries, rather than an index-based loop.
26487
26488 2008-02-17  Bruno Haible  <bruno@clisp.org>
26489
26490         Speed up by 25%.
26491         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26492         'hashcode_cached'.
26493         (entry_create): New function.
26494         (entry_hashcode): Use the cached hashcode if possible.
26495         (read_changelog_file, try_split_merged_entry): Use entry_create.
26496
26497 2008-02-17  Bruno Haible  <bruno@clisp.org>
26498
26499         Speed up from O(n^2) to O(n) for long ChangeLog files.
26500         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26501         (read_changelog_file): Change implementation of entries_reversed list
26502         to rbtreehash.
26503         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26504
26505 2008-02-17  Bruno Haible  <bruno@clisp.org>
26506
26507         New option --split-merged-entry.
26508         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26509         (find_paragraph_end, try_split_merged_entry): New functions.
26510         (long_options): Add option --split-merged-entry.
26511         (usage): Document option --split-merged-entry.
26512         (main): Implement option --split-merged-entry.
26513         Reported by Eric Blake.
26514
26515 2008-02-17  Bruno Haible  <bruno@clisp.org>
26516
26517         * lib/git-merge-changelog.c: Include c-strstr.h.
26518         (main): Support the "git pull --rebase" situation.
26519         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26520         Reported by Eric Blake.
26521
26522 2008-02-16  Eric Blake  <ebb9@byu.net>
26523
26524         Avoid doubling \ in common case of "c-maybe" quoting style.
26525         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26526         eliding outer quotes.
26527         * lib/quotearg.h: Document this.
26528         * tests/test-quotearg.c (result_strings, inputs, results_g)
26529         (flag_results, locale_results): Test it by adding a new string to
26530         each test group.
26531         (compare_strings): Test new string.
26532
26533 2008-02-13  Eric Blake  <ebb9@byu.net>
26534
26535         Avoid trigraph quoting in default output.
26536         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26537         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26538         unless explicitly requested.
26539         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26540
26541 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26542
26543         Don't rely on signed integer overflowing to negative value.
26544         * lib/getugroups.c (getugroups): Include <limits.h>.
26545         Instead, compare against INT_MAX, and increment only if the test passes.
26546
26547 2008-02-13  Jim Meyering  <meyering@redhat.com>
26548         and Eric Blake  <ebb9@byu.net>
26549
26550         Avoid shadowing warning and compile errors on Linux.
26551         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26552         forwarding macros on Linux.
26553         (dcgettext): Define a stub, for Linux.
26554         (results_g, main): Avoid warnings.
26555
26556 2008-02-12  Eric Blake  <ebb9@byu.net>
26557
26558         Silence warning in last patch.
26559         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26560
26561         Quotearg part 4: add tests, fix c-maybe colon quoting.
26562         * lib/quotearg.h: Improve documentation.
26563         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26564         escapes when adding outer quotes.  When quoting trigraphs, use
26565         valid C notation.  When quoting NUL, omit extra characters if next
26566         character is not digit.  Alter prototype.
26567         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26568         callers.
26569         * modules/quotearg-tests: New module.
26570         * tests/test-quotearg.c: New test.
26571
26572 2008-02-07  Eric Blake  <ebb9@byu.net>
26573
26574         Quotearg part 3: add flag to control outer quote elision.
26575         * lib/quotearg.h (c_maybe_quoting_style): New style.
26576         (enum quoting_flags): Better documentation of flags.
26577         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26578         c-maybe style.
26579         (quotearg_buffer_restyled): Handle new flag to elide outer
26580         quotes.
26581
26582         Quotearg part 2: add flag that can control NUL elision.
26583         * lib/quotearg.h (set_quoting_flags): New prototype.
26584         * lib/quotearg.c (struct quoting_options): Add flag field.
26585         (set_quoting_flags): New function.
26586         (quotearg_buffer_restyled): Add flags parameter.
26587         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26588         (quotearg_n_options): Set the flag, since length cannot be
26589         returned.
26590         (quoting_options_from_style): Default flags correctly.
26591
26592         Quotearg part 1: more wrappers, restore quotearg_char state.
26593         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26594         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26595         (quotearg_colon_mem): New wrappers.
26596         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26597         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26598         functions.
26599         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26600         (quotearg_colon_mem): New functions.
26601
26602 2008-02-11  Bruno Haible  <bruno@clisp.org>
26603
26604         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26605         library in the current directory: it does not work with parallel make.
26606         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26607
26608 2008-02-11  Bruno Haible  <bruno@clisp.org>
26609
26610         * .gitattributes: New file.
26611
26612 2008-02-11  Jim Meyering  <meyering@redhat.com>
26613
26614         useless-if-before-free: Fix reversed exit values.
26615         * build-aux/useless-if-before-free: Use correct values
26616         for EXIT_MATCH and EXIT_NO_MATCH.
26617
26618         * build-aux/useless-if-before-free: Close stdout carefully.
26619
26620 2008-02-10  Bruno Haible  <bruno@clisp.org>
26621
26622         New module 'git-merge-changelog'.
26623         * modules/git-merge-changelog: New file.
26624         * lib/git-merge-changelog.c: New file.
26625
26626 2008-02-10  Jim Meyering  <meyering@redhat.com>
26627
26628         useless-if-before-free: New option: --list (-l).
26629
26630         useless-if-before-free: Don't exit immediately upon open failure.
26631         * build-aux/useless-if-before-free: Exit 2 for errors.
26632         Upon failure to open a file, don't exit immediately.
26633         Rather, just warn and continue with any remaining files.
26634
26635 2008-02-10  Bruno Haible  <bruno@clisp.org>
26636
26637         New abstract list operation 'node_set_value'.
26638         * lib/gl_list.h (gl_list_node_set_value): New function.
26639         (struct gl_list_implementation): New field node_set_value.
26640         * lib/gl_list.c (gl_list_node_set_value): New function.
26641         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26642         (gl_array_list_implementation): Update.
26643         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26644         (gl_carray_list_implementation): Update.
26645         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26646         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26647         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26648         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26649         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26650         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26651         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26652         Update.
26653         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26654         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26655         (gl_sublist_list_implementation): Update.
26656
26657 2008-02-10  Bruno Haible  <bruno@clisp.org>
26658
26659         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26660         Needed when ELEMENT is #defined to 'some_type *'.
26661
26662 2008-02-10  Jim Meyering  <meyering@redhat.com>
26663
26664         New script and module: useless-if-before-free
26665         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26666         * build-aux/useless-if-before-free: New file.
26667         * modules/useless-if-before-free: New file.
26668
26669         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26670
26671         xstrtol_error: Fix typo.
26672         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26673         s/exit_failure/exit_status/.
26674
26675 2008-02-09  Jim Meyering  <meyering@redhat.com>
26676
26677         New script and module: gitlog-to-changelog
26678         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26679         * modules/gitlog-to-changelog: New file.
26680         * build-aux/gitlog-to-changelog: New file.
26681
26682 2008-02-08  Jim Meyering  <meyering@redhat.com>
26683
26684         Avoid two "parameter unused" warnings.
26685         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26686         Mark "st" as used.
26687
26688         Use "git COMMAND", not "git-COMMAND".
26689         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26690         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26691         * build-aux/git-version-gen: Use "git status", not "git-status".
26692
26693 2008-02-07  Bruno Haible  <bruno@clisp.org>
26694
26695         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26696         Avoids a crash on Windows Vista.
26697         Reported by Adam Strzelecki <ono@java.pl> via
26698         Simon Josefsson <simon@josefsson.org>.
26699
26700 2008-02-06  Bruno Haible  <bruno@clisp.org>
26701
26702         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26703         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26704         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26706         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26707         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26708         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26709         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26711         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26712         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26713         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26715         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26716         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26717         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26718         left-adjust flag.
26719         * tests/test-snprintf-posix.h (test_function): Likewise.
26720         * tests/test-sprintf-posix.h (test_function): Likewise.
26721         * tests/test-vasprintf-posix.c (test_function): Likewise.
26722         * doc/posix-functions/fprintf.texi: Update.
26723         * doc/posix-functions/printf.texi: Update.
26724         * doc/posix-functions/snprintf.texi: Update.
26725         * doc/posix-functions/sprintf.texi: Update.
26726         * doc/posix-functions/vfprintf.texi: Update.
26727         * doc/posix-functions/vprintf.texi: Update.
26728         * doc/posix-functions/vsnprintf.texi: Update.
26729         * doc/posix-functions/vsprintf.texi: Update.
26730         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26731
26732 2008-02-06  Bruno Haible  <bruno@clisp.org>
26733
26734         Fix bug introduced on 2008-01-26.
26735         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26736
26737 2008-02-06  Bruno Haible  <bruno@clisp.org>
26738
26739         Fix bug introduced on 2007-06-10.
26740         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26741         !NEED_PRINTF_FLAG_ZERO.
26742
26743 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26744
26745         getloadavg: use libperfstat on AIX5
26746         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26747
26748 2008-02-03  Bruno Haible  <bruno@clisp.org>
26749
26750         * lib/diffseq.h: Add comments about required #includes.
26751         Reported by Michael Biggs <gnulib@doubleplum.net>.
26752
26753 2008-02-01  Bruno Haible  <bruno@clisp.org>
26754
26755         * users.txt: Add gnuit.
26756
26757 2008-01-31  Bruno Haible  <bruno@clisp.org>
26758
26759         * lib/md4.c (set_uint32): Mark as inline.
26760         * lib/md5.c (set_uint32): Likewise.
26761         * lib/sha1.c (set_uint32): Likewise.
26762         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26763         * m4/md5.m4 (gl_MD5): Likewise.
26764         * m4/sha1.m4 (gl_SHA1): Likewise.
26765
26766 2008-01-31  Jim Meyering  <meyering@redhat.com>
26767
26768         Use "sizeof VAR", rather than a literal "4".
26769         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26770         * lib/md4.c (md4_read_ctx): Likewise.
26771         * lib/sha1.c (sha1_read_ctx): Likewise.
26772
26773 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26774
26775         * tests/test-sha1.c: New file, based on test-md5.c.
26776
26777         * modules/crypto/sha1-tests: New file.
26778
26779 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26780
26781         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26782
26783 2008-01-31  Jim Meyering  <meyering@redhat.com>
26784
26785         Prefer "sizeof v" over the equivalent "4".
26786         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26787         * lib/md5.c (set_uint32): Likewise.
26788         * lib/sha1.c (set_uint32): Likewise.
26789
26790 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26791
26792         * lib/sha1.c (set_uint32): Mark function as static.
26793
26794 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26795
26796         md2: clarify comments to say that alignment is not required.
26797         * lib/md2.h: Remove warning about alignment in comment.
26798         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26799         never been required.
26800
26801 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26802
26803         md4: adapt alignment constraint fix from sha1.
26804         * lib/md4.c (set_uint32): New function, from sha1.c
26805         (md4_read_ctx): Use it.
26806         (md4_finish_ctx): Doc fix.
26807         * lib/md4.h: Doc fix.
26808
26809 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26810
26811         md5: adapt alignment constraint fix from sha1.
26812         * lib/md5.c (set_uint32): New function, from sha1.c
26813         (md5_read_ctx): Use it.
26814         (md5_finish_ctx): Doc fix.
26815         * lib/md5.h: Doc fix.
26816
26817 2008-01-30  Peter Palfrader  <weasel@debian.org>
26818
26819         sha1: remove the result buffer alignment constraint
26820         * lib/sha1.c (set_uint32): New function.
26821         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26822         constraint.
26823         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26824         * lib/sha1.h: Likewise.
26825
26826 2008-01-30  Andreas Schwab  <schwab@suse.de>
26827             Bruno Haible  <bruno@clisp.org>
26828
26829         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26830         correct definition of LDBL_MIN_EXP.
26831
26832 2008-01-30  Karl Berry  <karl@gnu.org>
26833
26834         * config/srclist-update: try to preserve x bit on updates.
26835         * config/srclistvars.sh: update for karl.
26836
26837 2008-01-29  Jim Meyering  <meyering@redhat.com>
26838
26839         vasnprintf.c: Avoid warning about unused label
26840         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26841         "overflow" label definition and associated code with the
26842         same cpp condition that guards the sole use of that label.
26843
26844 2008-01-26  Bruno Haible  <bruno@clisp.org>
26845
26846         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26847         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26848         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26849         * lib/isnanl-nolibm.h (isnanl): Likewise.
26850         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26851
26852 2008-01-26  Bruno Haible  <bruno@clisp.org>
26853
26854         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26855         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26856
26857 2008-01-26  Bruno Haible  <bruno@clisp.org>
26858
26859         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26860         GCC >= 4.0 built-in.
26861         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26862
26863 2008-01-26  Bruno Haible  <bruno@clisp.org>
26864
26865         Rename isnan, applicable to 'double' only, to isnand.
26866         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26867         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26868         (configure.ac): Update.
26869         (Include): Replace "isnan.h" with "isnand.h".
26870         * m4/isnand.m4: Renamed from m4/isnan.m4.
26871         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26872         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26873         instead of isnan.c.
26874         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26875         instead of HAVE_ISNAN_IN_LIBC.
26876         (isnand): Renamed from isnan.
26877         * lib/isnand.c: New file.
26878         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26879         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26880         (Makefile.am): Update.
26881         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26882         Include isnand.h instead of isnan.h.
26883         (main): Test isnand instead of isnan.
26884         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26885         isnan-nolibm.
26886         * modules/frexp (Depends-on): Likewise.
26887         * modules/frexp-tests (Depends-on): Likewise.
26888         * modules/frexp-nolibm (Depends-on): Likewise.
26889         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26890         * modules/isfinite (Depends-on): Likewise.
26891         * modules/round-tests (Depends-on): Likewise.
26892         * modules/signbit (Depends-on): Likewise.
26893         * modules/signbit-tests (Depends-on): Likewise.
26894         * modules/snprintf-posix (Depends-on): Likewise.
26895         * modules/sprintf-posix (Depends-on): Likewise.
26896         * modules/trunc-tests (Depends-on): Likewise.
26897         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26898         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26899         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26900         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26901         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26902         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26903         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26904         * modules/vasnprintf-posix (Depends-on): Likewise.
26905         * modules/vasprintf-posix (Depends-on): Likewise.
26906         * modules/vfprintf-posix (Depends-on): Likewise.
26907         * modules/vsnprintf-posix (Depends-on): Likewise.
26908         * modules/vsprintf-posix (Depends-on): Likewise.
26909         * lib/frexp.c: Include isnand.h instead of isnan.h.
26910         (ISNAN): Set to isnand instead of isnan.
26911         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26912         (gl_isfinited): Use isnand instead of isnan.
26913         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26914         (gl_signbitd): Use isnand instead of isnan.
26915         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26916         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26917         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26918         (main): Use isnand instead of isnan.
26919         * tests/test-round1.c: Include isnand.h.
26920         (main): Use isnand instead of isnan.
26921         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26922         (ISNAN): Set to isnand instead of isnan.
26923         * tests/test-trunc1.c: Include isnand.h.
26924         (main): Use isnand instead of isnan.
26925         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26926         (equal): Use isnand instead of isnan.
26927         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26928         isnand-nolibm.
26929         * NEWS: Mention the change.
26930
26931 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26932             Bruno Haible  <bruno@clisp.org>
26933
26934         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26935         the GCC builtins for signbits are present and set
26936         REPLACE_SIGNBIT_USING_GCC if so.
26937         * lib/math.in.h (signbit): Define using GCC builtins if
26938         REPLACE_SIGNBIT_USING_GCC is set.
26939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26940         REPLACE_SIGNBIT_USING_GCC.
26941         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26942
26943 2008-01-25  Jim Meyering  <meyering@redhat.com>
26944
26945         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26946         * lib/poll.c: Include <config.h>, not "config.h".
26947         * tests/test-getaddrinfo.c: Likewise.
26948
26949 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26950
26951         * modules/sockets-tests: New file.
26952
26953 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26954
26955         * modules/sockets: New module, can be used to call WSA_Startup and
26956         WSA_Cleanup when needed.
26957
26958         * lib/sockets.h, lib/sockets.c: New files.
26959
26960         * m4/sockets.m4: New file.
26961
26962         * tests/test-sockets.c: New file.
26963
26964 2008-01-19  Bruno Haible  <bruno@clisp.org>
26965
26966         * doc/posix-headers: Renamed from doc/headers.
26967         * doc/posix-functions: Renamed from doc/functions.
26968         * doc/gnulib.texi: Update.
26969
26970 2008-01-19  Bruno Haible  <bruno@clisp.org>
26971
26972         * doc/glibc-functions/strcasestr.texi: Include contents of
26973         doc/functions/strcasestr.texi, fixing the list of platforms.
26974         * doc/functions/strcasestr.texi: Remove file.
26975
26976 2008-01-19  Bruno Haible  <bruno@clisp.org>
26977
26978         * doc/glibc-functions/memmem.texi: Include contents of
26979         doc/functions/memmem.texi.
26980         * doc/functions/memmem.texi: Remove file.
26981
26982 2008-01-18  Bruno Haible  <bruno@clisp.org>
26983
26984         * doc/glibc-functions/*.texi: New files.
26985         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26986         to use the new files.
26987
26988 2008-01-17  Bruno Haible  <bruno@clisp.org>
26989
26990         * tests/test-gethostname.c (main): Fix printf statement.
26991
26992 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26993
26994         * modules/gethostname-tests: New file.
26995
26996         * tests/test-gethostname.c: New file.
26997
26998 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26999
27000         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27001         used by the UNAME case.  Reported by Bruno Haible
27002         <bruno@clisp.org>.
27003
27004 2008-01-17  Eric Blake  <ebb9@byu.net>
27005
27006         Convert c-strcasestr to be more efficient.
27007         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27008         (Depends-on): Add c-strcase, remove malloca, strnlen.
27009         * tests/test-c-strcasestr.c (main): Enhance test.
27010         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27011
27012 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27013
27014         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27015         Use it in creating po/Makevars.
27016
27017 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27018
27019         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27020         Applications that requires it should initialize libgcrypt
27021         manually.
27022
27023 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27024
27025         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27026
27027 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27028
27029         Fix problem with getdate on mingw32 reported by Simon Josefsson
27030         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27031         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27032         tzname", when deciding whether to declare tzname.
27033         * lib/strftime.c (tzname): Likewise.
27034
27035 2008-01-15  Bruno Haible  <bruno@clisp.org>
27036
27037         Work around a MacOS X 10.5 bug in frexpl().
27038         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27039         * doc/functions/frexpl.texi: Document the bug.
27040         Reported by Elias Pipping <pipping@gentoo.org>.
27041
27042 2008-01-14  Eric Blake  <ebb9@byu.net>
27043
27044         Touch up previous patch.
27045         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27046         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27047
27048         Convert strcasestr module to use Two-Way algorithm.
27049         * modules/strcasestr-simple: New module, based on the old
27050         strcasestr, but with Two-Way rather than KMP.
27051         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27052         * lib/string.in.h (rpl_strcasestr): Declare.
27053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27054         performance.
27055         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27056         * modules/string (Makefile.am): Support strcasestr.
27057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27058         * modules/strcasestr-tests (Depends-on): Check for alarm.
27059         * tests/test-strcasestr.c: Augment test.
27060         * lib/str-two-way.h: Clean up stray macro.
27061         * NEWS: Document new module.
27062         * MODULES.html.sh (string handling): Likewise.
27063         * doc/functions/strcasestr.texi: New file.
27064         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27065         here, since it is not a POSIX function.
27066
27067 2008-01-14  Colin Watson  <cjwatson@debian.org>
27068             Bruno Haible  <bruno@clisp.org>
27069
27070         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27071         works fine; if not, set REPLACE_STRSIGNAL.
27072         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27074         REPLACE_STRSIGNAL.
27075         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27076         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27077         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27078
27079 2008-01-14  Bruno Haible  <bruno@clisp.org>
27080
27081         * modules/strsignal (Include): Change to <string.h>.
27082
27083 2008-01-14  Colin Watson  <cjwatson@debian.org>
27084
27085         * modules/argp (Notice): Add a notice recommending to change
27086         XGETTEXT_OPTIONS.
27087         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27088
27089 2008-01-13  Colin Watson  <cjwatson@debian.org>
27090
27091         * modules/strsignal-tests: New file.
27092         * tests/test-strsignal.c: New file.
27093
27094         * lib/strsignal.c: New file, from glibc with modifications.
27095         * lib/siglist.h: New file, from glibc with modifications.
27096         * lib/string.in.h (strsignal): New declaration.
27097         * m4/strsignal.m4: New file.
27098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27099         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27100         * modules/strsignal: New file.
27101         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27102         HAVE_DECL_STRSIGNAL.
27103
27104 2008-01-13  Bruno Haible  <bruno@clisp.org>
27105
27106         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27107         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27108         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27110
27111 2008-01-13  Bruno Haible  <bruno@clisp.org>
27112
27113         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27114         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27115         * lib/argp.h (__attribute__): Likewise.
27116         * lib/c-stack.c (__attribute__): Likewise.
27117         * lib/error.h (__attribute__): Likewise.
27118         * lib/fts.c (__attribute__): Likewise.
27119         * lib/openat.h (__attribute__): Likewise.
27120         * lib/stdio.in.h (__attribute__): Likewise.
27121         * lib/string.in.h (__attribute__): Likewise.
27122         * lib/utimens.c (__attribute__): Likewise.
27123         * lib/vasnprintf.h (__attribute__): Likewise.
27124         * lib/xalloc.h (__attribute__): Likewise.
27125         * lib/xprintf.h (__attribute__): Likewise.
27126         * lib/xstrtol.h (__attribute__): Likewise.
27127         * lib/xvasprintf.h (__attribute__): Likewise.
27128
27129 2008-01-12  Bruno Haible  <bruno@clisp.org>
27130
27131         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27132         * doc/glibc-headers/a.out.texi: New file.
27133         * doc/glibc-headers/aliases.texi: New file.
27134         * doc/glibc-headers/alloca.texi: New file.
27135         * doc/glibc-headers/ar.texi: New file.
27136         * doc/glibc-headers/argp.texi: New file.
27137         * doc/glibc-headers/argz.texi: New file.
27138         * doc/glibc-headers/byteswap.texi: New file.
27139         * doc/glibc-headers/crypt.texi: New file.
27140         * doc/glibc-headers/endian.texi: New file.
27141         * doc/glibc-headers/envz.texi: New file.
27142         * doc/glibc-headers/err.texi: New file.
27143         * doc/glibc-headers/error.texi: New file.
27144         * doc/glibc-headers/execinfo.texi: New file.
27145         * doc/glibc-headers/fpu_control.texi: New file.
27146         * doc/glibc-headers/fstab.texi: New file.
27147         * doc/glibc-headers/fts.texi: New file.
27148         * doc/glibc-headers/getopt.texi: New file.
27149         * doc/glibc-headers/ieee754.texi: New file.
27150         * doc/glibc-headers/ifaddrs.texi: New file.
27151         * doc/glibc-headers/libintl.texi: New file.
27152         * doc/glibc-headers/mcheck.texi: New file.
27153         * doc/glibc-headers/mntent.texi: New file.
27154         * doc/glibc-headers/obstack.texi: New file.
27155         * doc/glibc-headers/paths.texi: New file.
27156         * doc/glibc-headers/printf.texi: New file.
27157         * doc/glibc-headers/pty.texi: New file.
27158         * doc/glibc-headers/resolv.texi: New file.
27159         * doc/glibc-headers/shadow.texi: New file.
27160         * doc/glibc-headers/sysexits.texi: New file.
27161         * doc/glibc-headers/ttyent.texi: New file.
27162
27163 2008-01-12  Jim Meyering  <meyering@redhat.com>
27164
27165         announce-gen: emit Gnulib's git-based version string.
27166         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27167         New option --gnulib-version=V, where V is expected to be
27168         the output of running git describe in the gnulib directory.
27169         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27170         not useful, and plan to stop publishing an xdelta file with each
27171         coreutils release.
27172
27173         * build-aux/announce-gen: Also check for lzma-compressed files.
27174
27175 2008-01-11  Bruno Haible  <bruno@clisp.org>
27176
27177         * tests/test-memmem.c (main): Increase maximum allowed time.
27178         * tests/test-strstr.c (main): Likewise.
27179
27180 2008-01-11  Bruno Haible  <bruno@clisp.org>
27181
27182         * doc/functions/memmem.texi: Add more precisions about platforms.
27183         * doc/functions/strstr.texi: Likewise.
27184
27185 2008-01-10  Eric Blake  <ebb9@byu.net>
27186
27187         * m4/strstr.m4: Delete cruft from copy-n-paste.
27188         Reported by Bruno Haible.
27189
27190 2008-01-10  Bruno Haible  <bruno@clisp.org>
27191
27192         Make c-strstr rely on strstr.
27193         * lib/c-strstr.c: Don't include str-kmp.h.
27194         (c_strstr): Define in terms of strstr.
27195         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27196         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27197
27198 2008-01-10  Bruno Haible  <bruno@clisp.org>
27199
27200         * doc/gnulib.texi (String Functions in C Locale): New section.
27201         * doc/c-ctype.texi: New file.
27202         * doc/c-strcase.texi: New file.
27203         * doc/c-strcaseeq.texi: New file.
27204         * doc/c-strcasestr.texi: New file.
27205         * doc/c-strstr.texi: New file.
27206         * doc/c-strtod.texi: New file.
27207         * doc/c-strtold.texi: New file.
27208
27209 2008-01-10  Eric Blake  <ebb9@byu.net>
27210
27211         * lib/relocatable.h: Fix a comment.
27212
27213 2008-01-10  Eric Blake  <ebb9@byu.net>
27214
27215         Share two-way algorithm.
27216         * lib/str-two-way.h: New file, merged from...
27217         * lib/memmem.c: ...here...
27218         * lib/strstr.c: ...and here.
27219         * modules/memmem (Files): Use it.
27220         * modules/strstr (Files): Likewise.
27221
27222         Avoid quadratic strstr implementations.
27223         * lib/strstr.c: New file.
27224         * m4/strstr.m4: Likewise.
27225         * modules/strstr: Likewise.
27226         * modules/strstr-tests: Likewise.
27227         * tests/test-strstr.c: Likewise.
27228         * lib/string.in.h (rpl_strstr): Declare.
27229         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27231         * modules/string (Makefile.am): Likewise.
27232         * MODULES.html.sh (string handling): Mention new module.
27233         * doc/functions/strstr.texi (strstr): Document the bug.
27234
27235 2008-01-10  Bruno Haible  <bruno@clisp.org>
27236
27237         * lib/relocatable.h (relocate): State whether result is freshly
27238         allocated or not.
27239         * lib/relocatable.c (relocate): Return a freshly allocated string
27240         instead of a pointer to a privately held string.
27241         Reported by Sylvain Beucler <beuc@gnu.org>.
27242
27243 2008-01-10  Colin Watson  <cjwatson@debian.org>
27244
27245         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27246         s/S_ISNLK/S_ISLNK/.
27247
27248 2008-01-09  Bruno Haible  <bruno@clisp.org>
27249
27250         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27251         and other files.
27252         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27253         if it's only a guess.
27254         * modules/memmem: Simplify by depending on memmem-simple.
27255
27256 2008-01-09  Bruno Haible  <bruno@clisp.org>
27257
27258         Work around OpenBSD 4.0 tdelete() bug.
27259         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27260         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27261         macros and don't redefine the enum values.
27262         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27263         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27264         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27265
27266 2008-01-09  Bruno Haible  <bruno@clisp.org>
27267
27268         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27269         (main): Don't perform the tests if setlocale did not install a UTF-8
27270         locale. Needed on OpenBSD 4.0.
27271         * modules/wcwidth-tests (Depends-on): Add localcharset.
27272
27273 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27274
27275         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27276         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27277         * NEWS: announce this.
27278         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27279
27280 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27281         and Eric Blake  <ebb9@byu.net>
27282
27283         Add memmem-simple module.
27284         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27285         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27286         * modules/memmem-simple: New file.
27287         * modules/memmem (Description): Tweak.
27288         * MODULES.html.sh (string handling): Mention new module.
27289         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27290         addressed by memmem-simple.
27291         * NEWS: Document the difference.
27292
27293 2008-01-09  Eric Blake  <ebb9@byu.net>
27294
27295         Give gcc some memmem optimization hints.
27296         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27297         (strcasestr): Declare as pure.
27298         * modules/memmem (Maintainer): Claim my implementation.
27299
27300 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27301
27302         Support AIX 6.1 and higher.
27303         * build-aux/config.libpath: Likewise.
27304         * build-aux/config.rpath: Likewise.
27305
27306 2008-01-08  Jim Meyering  <meyering@redhat.com>
27307             Bruno Haible  <bruno@clisp.org>
27308
27309         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27310         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27311         Reported by Peter Fales in
27312         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27313
27314 2008-01-08  Bruno Haible  <bruno@clisp.org>
27315
27316         * modules/unictype/category-of (Depends-on): Add
27317         unictype/category-none.
27318         * modules/unictype/category-and-tests (Depends-on): Add
27319         unictype/category-{L,N,Lu,Nd}.
27320         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27321         * modules/unictype/category-or-tests (Depends-on): Add
27322         unictype/category-{L,N}.
27323         * modules/unictype/category-name-tests (Depends-on): Add
27324         unictype/category-{Z,Nl}.
27325         Reported by Simon Josefsson.
27326
27327 2008-01-08  Bruno Haible  <bruno@clisp.org>
27328
27329         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27330         convention better.
27331         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27332         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27333         Reported by Peter Miller <millerp@canb.auug.org.au>.
27334
27335 2008-01-08  Eric Blake  <ebb9@byu.net>
27336
27337         Rewrite memmem to guarantee linear complexity without malloc.
27338         * lib/memmem.c (memmem): Use Two-Way rather than
27339         Knuth-Morris-Pratt, to allow O(1) space usage.
27340         (critical_factorization, two_way_short_needle)
27341         (two_way_long_needle): New functions.
27342         (knuth_morris_pratt): Delete.
27343         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27344         Add stdint.
27345         * tests/test-memmem.c (main): Add tests for periodic needle and
27346         sublinear performance.
27347         * doc/functions/memmem.texi (memmem): Document other deficiencies
27348         in cygwin and older glibc.
27349
27350 2008-01-08  Bruno Haible  <bruno@clisp.org>
27351
27352         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27353         augmentation.
27354
27355 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27356
27357         Add a configure time option: --disable-acl.
27358         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27359         AC_ARG_ENABLE(acl).
27360
27361 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27362
27363         * tests/test-localename.c: Don't include obsolete "setenv.h".
27364
27365         * modules/localename-tests (Depends-on): Need unsetenv.
27366
27367 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27368
27369         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27370
27371 2008-01-06  Colin Watson  <cjwatson@debian.org>
27372
27373         * users.txt: Add man-db.
27374
27375 2008-01-07  Bruno Haible  <bruno@clisp.org>
27376
27377         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27378         previous section name.
27379
27380 2008-01-07  Bruno Haible  <bruno@clisp.org>
27381
27382         * lib/progname.c (set_program_name): Don't strip off a leading
27383         "lt-" prefix outside a .libs directory.
27384         Suggested by Paul Eggert.
27385
27386 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27387             Bruno Haible  <bruno@clisp.org>
27388
27389         Improve memory cleanup in 'relocatable' module.
27390         * lib/relocatable.h (compute_curr_prefix): Change return type to
27391         'char *'.
27392         * lib/relocatable.c (compute_curr_prefix): Change return type to
27393         'char *'. Free curr_installdir after use.
27394         (relocate): Free curr_prefix_better after use.
27395         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27396
27397 2008-01-01  Bruno Haible  <bruno@clisp.org>
27398
27399         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27400         failure on older glibc systems.
27401         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27402
27403 2008-01-05  Eric Blake  <ebb9@byu.net>
27404
27405         Avoid quadratic system memmem.
27406         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27407         Reported by Ralf Wildenhues.
27408
27409         Fix memmem test for mingw.
27410         * modules/memmem-tests (configure.ac): Check for alarm.
27411         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27412         it.
27413         * doc/functions/memmem.texi: New file.
27414         * doc/gnulib.texi (Function Substitutes): Add memmem.
27415         Reported by Bruno Haible.
27416
27417 2008-01-04  Bruno Haible  <bruno@clisp.org>
27418
27419         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27420         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27421         gl_HEADER_STRING_H_DEFAULTS.
27422
27423 2008-01-04  Eric Blake  <ebb9@byu.net>
27424
27425         Shorten duration of memmem test.
27426         * tests/test-memmem.c (main): Use alarm to declare failure if test
27427         is taking too long.
27428         Reported by Ralf Wildenhues.
27429
27430 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27431
27432         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27433         string, needed by strerror.
27434
27435 2008-01-03  Colin Watson  <cjwatson@debian.org>
27436             Bruno Haible  <bruno@clisp.org>
27437
27438         * doc/gnulib-tool.texi (Localization): New section.
27439
27440 2008-01-02  Bruno Haible  <bruno@clisp.org>
27441
27442         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27443         variables to 'unsigned char *' type.
27444         Reported by Paul Eggert.
27445
27446 2008-01-02  Jim Meyering  <jim@meyering.net>
27447
27448         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27449
27450 2007-12-31  Jim Meyering  <jim@meyering.net>
27451
27452         Avoid use of private FTS type name.
27453         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27454
27455 2007-12-30  Karl Berry  <karl@gnu.org>
27456
27457         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27458         work around defect in Texinfo and/or the standalone Info browser.
27459
27460 2007-12-30  Bruno Haible  <bruno@clisp.org>
27461
27462         Unify 5 copies of the KMP code.
27463         * lib/str-kmp.h: New file.
27464         * lib/c-strcasestr.c: Include str-kmp.h.
27465         (knuth_morris_pratt): Remove function.
27466         (c_strcasestr): Update.
27467         * lib/c-strstr.c: Include str-kmp.h.
27468         (knuth_morris_pratt): Remove function.
27469         (c_strcasestr): Update.
27470         * lib/mbscasestr.c: Include str-kmp.h.
27471         (knuth_morris_pratt_unibyte): Remove function.
27472         * lib/mbsstr.c: Include str-kmp.h.
27473         (knuth_morris_pratt_unibyte): Remove function.
27474         * lib/strcasestr.c: Include str-kmp.h.
27475         (knuth_morris_pratt): Remove function.
27476         (strcasestr): Update.
27477         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27478         * modules/c-strstr (Files): Likewise.
27479         * modules/mbscasestr (Files): Likewise.
27480         * modules/mbsstr (Files): Likewise.
27481         * modules/strcasestr (Files): Likewise.
27482         Suggested by Paul Eggert.
27483
27484 2007-12-30  Bruno Haible  <bruno@clisp.org>
27485
27486         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27487         defined.
27488
27489 2007-12-30  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/xmalloca.h: Include xalloc.h.
27492         (xnmalloca): New macro.
27493
27494 2007-12-30  Bruno Haible  <bruno@clisp.org>
27495
27496         * lib/malloca.h (nmalloca): New macro.
27497         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27498         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27499         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27500         knuth_morris_pratt_multibyte): Likewise.
27501         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27502         knuth_morris_pratt_multibyte): Likewise.
27503         * lib/memmem.c (knuth_morris_pratt): Likewise.
27504         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27505
27506 2007-12-25  Bruno Haible  <bruno@clisp.org>
27507
27508         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27509         * lib/glob.c: Don't include openat.h.
27510         (link_exists2_p): Add back the code that deals with the
27511         !GLOB_ALTDIRFUNC case.
27512         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27513         let it do the filename concatenation.
27514         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27515         * modules/glob (Depends-on): Remove openat.
27516
27517 2007-12-31  Bruno Haible  <bruno@clisp.org>
27518
27519         * modules/dirfd (License): Change to LGPLv2+.
27520         Approved by Jim Meyering.
27521
27522 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27523
27524         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27525         when multiplying M by sizeof (size_t).
27526
27527 2007-12-10  Martin Lambers  <marlam@marlam.de>
27528
27529         Override getpagesize on mingw.
27530         * lib/getpagesize.c: New file.
27531         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27532         * modules/getpagesize (Files): Add lib/getpagesize.c.
27533         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27535         REPLACE_GETPAGESIZE.
27536         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27537
27538 2007-12-25  Bruno Haible  <bruno@clisp.org>
27539
27540         * modules/localcharset (Notice): New field.
27541         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27542         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27543
27544 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27545             Bruno Haible  <bruno@clisp.org>
27546
27547         Avoid using the syntax symbol() in formatted documentation.
27548         * MODULES.html.sh (func_module): When replacing symbol() with a
27549         hyperlink, remove the parentheses. Show an error if some remain.
27550         Recognize and render the '...' syntax.
27551         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27552         Rework. Add paragraph about GCC's inlining.
27553         * doc/alloca.texi: Likewise.
27554         * doc/error.texi: Remove parentheses from symbol reference.
27555         * doc/gnulib-intro.texi: Likewise.
27556         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27557         * modules/fnmatch (Description): Reword to say "the ... function".
27558         * modules/full-read (Description): Likewise.
27559         * modules/full-write (Description): Likewise.
27560         * modules/safe-read (Description): Likewise.
27561         * modules/safe-write (Description): Likewise.
27562         * modules/strchrnul (Description): Likewise.
27563         * modules/trim (Description): Likewise.
27564         * modules/error (Description): Remove parentheses from symbol
27565         references.
27566         * modules/verror (Description): Likewise.
27567         Reported by Karl Berry.
27568
27569 2007-12-25  Bruno Haible  <bruno@clisp.org>
27570
27571         Fixup after 2007-10-16 commit.
27572         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27573
27574 2007-12-24  Bruno Haible  <bruno@clisp.org>
27575
27576         Make --enable-relocatable work with DESTDIR.
27577         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27578         to compute installdir from destprog.
27579         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27580         also set the RELOC_DESTDIR variable.
27581         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27582
27583 2007-12-24  Bruno Haible  <bruno@clisp.org>
27584
27585         Fix link error due to xalloc_die().
27586         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27587         of xreadlink.
27588         * lib/relocwrapper.c: Update comments.
27589         * build-aux/install-reloc: Remove xreadlink.c from file list.
27590         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27591         xreadlink.c.
27592         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27593
27594 2007-12-24  Bruno Haible  <bruno@clisp.org>
27595
27596         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27597         * lib/setenv.h: Remove file.
27598         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27599         lib/setenv.h.
27600         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27601         (Depends-on): Add stdlib.
27602         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27603         gl_FUNC_UNSETENV.
27604         (Include): Replace setenv.h with <stdlib.h>.
27605         * modules/unsetenv: New file.
27606         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27607         * lib/unsetenv.c: Include <stdlib.h> first.
27608         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27609         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27610         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27611         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27612         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27613         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27615         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27616         * doc/functions/unsetenv.texi: Update.
27617         * modules/xsetenv (Depends-on): Add unsetenv.
27618         * modules/getdate (Depends-on): Likewise.
27619         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27620         * lib/xsetenv.c: Don't include setenv.h.
27621         * lib/getdate.y: Likewise.
27622         * lib/relocwrapper.c: Likewise.
27623         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27624         (Depends-on): Add stdlib.
27625         * NEWS: Mention the changes.
27626         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27627
27628 2007-12-23  Bruno Haible  <bruno@clisp.org>
27629
27630         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27631         indentation.
27632
27633 2007-12-23  Bruno Haible  <bruno@clisp.org>
27634
27635         * lib/c-strcasestr.c: Add more comments.
27636         * lib/c-strstr.c: Likewise.
27637         * lib/mbscasestr.c: Likewise.
27638         * lib/mbsstr.c: Likewise.
27639         * lib/strcasestr.c: Likewise.
27640         * lib/memmem.c: Likewise.
27641
27642 2007-12-23  Bruno Haible  <bruno@clisp.org>
27643
27644         * tests/test-memmem.c: Include <string.h> first.
27645
27646 2007-12-22  Bruno Haible  <bruno@clisp.org>
27647
27648         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27649         the contents of $testsbase.
27650         Reported by Ralf Wildenhues.
27651
27652 2007-12-22  Bruno Haible  <bruno@clisp.org>
27653
27654         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27655         two variables local_ldadd_before, local_ldadd_last.
27656
27657 2007-12-20  Eric Blake  <ebb9@byu.net>
27658
27659         Work around circular library issue when cross-compiling.
27660         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27661         that progname.o does not need to pull in rpl_memcmp.
27662
27663 2007-12-19  Eric Blake  <ebb9@byu.net>
27664
27665         Fix memmem to avoid O(n^2) worst-case complexity.
27666         * lib/memmem.c (knuth_morris_pratt): New function.
27667         (memmem): Use it if first few naive iterations fail.
27668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27669         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27670         * modules/memchr (License): Likewise.
27671         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27672         malloca.
27673         * tests/test-memmem.c: Rewrite, borrowing ideas from
27674         test-mbsstr1.c; the old version wouldn't even compile!
27675         * modules/memmem-tests: New file.
27676         * lib/string.in.h (rpl_memmem): Add declaration.
27677         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27679         REPLACE_MEMMEM.
27680
27681 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27682
27683         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27684         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27685         before any system include files, and undef after them all.  This
27686         should fix a problem on VMS reported by John E. Malmberg in
27687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27688
27689 2007-12-17  Eric Blake  <ebb9@byu.net>
27690
27691         Revert addition of verify, for BSD/OS.
27692         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27693         can't handle large files, for the sake of obsolete platforms.
27694         * modules/fseeko (Depends-on): Remove verify.
27695         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27696         * doc/functions/ftello.texi (ftello): Likewise.
27697         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27698         Reported by Larry Jones.
27699
27700 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27701
27702         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27703         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27704
27705 2007-12-17  Jim Meyering  <meyering@redhat.com>
27706
27707         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27708         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27709         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27710         * modules/getcwd (Depends-on): Add openat.
27711         Reported by Petr Salinger.
27712
27713 2007-12-17  Bruno Haible  <bruno@clisp.org>
27714
27715         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27716         avoid a segmentation fault of the configure test on x86_64 systems.
27717
27718 2007-12-15  Jim Meyering  <meyering@redhat.com>
27719
27720         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27721
27722 2007-12-13  Eric Blake  <ebb9@byu.net>
27723
27724         Another fseek test.
27725         * tests/test-fseek.c (main): Also test ungetc handling.
27726         * tests/test-fseeko.c (main): Likewise.
27727         * modules/fseeko (Depends-on): Add verify.
27728         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27729         large.
27730         Reported by Larry Jones.
27731
27732         Fix fseeko on mingw.
27733         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27734         seek.
27735
27736         Beef up fseek tests.
27737         * tests/test-fseek.c (main): Also test eof handling.
27738         * tests/test-fseeko.c (main): Likewise.
27739         Reported by Larry Jones.
27740
27741 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27742
27743         Fix fseeko on BSD-based platforms.
27744         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27745         successful seek.
27746
27747 2007-12-12  Eric Blake  <ebb9@byu.net>
27748
27749         Allow circular dependency of separate libtests.a
27750         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27751         when use_libtests.
27752
27753 2007-12-11  Eric Blake  <ebb9@byu.net>
27754
27755         Fix bug with -0.0L in previous patch.
27756         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27757         * tests/test-isnan.c (main): Also test on zeroes.
27758         * tests/test-isnanf.c (main): Likewise.
27759         * tests/test-isnanl.h (main): Likewise.
27760
27761         Detect pseudo-denormals on x86 even when cross-compiling.
27762         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27763         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27764         invalid bit patterns that happen to satisfy ==.
27765
27766         Avoid link failures with separate libtests.a.
27767         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27768         last, to satisfy circular dependencies.
27769
27770 2007-12-11  Eric Blake  <ebb9@byu.net>
27771         and Bruno Haible  <bruno@clisp.org>
27772
27773         Fix OpenBSD 4.0 <float.h> handling of long double.
27774         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27775         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27776         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27777
27778 2007-12-11  Jim Meyering  <meyering@redhat.com>
27779
27780         * users.txt: Add libvirt.
27781
27782         Support versions of autoconf prior to 2.59c.
27783         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27784         if it is not already defined.
27785
27786 2007-12-09  Bruno Haible  <bruno@clisp.org>
27787
27788         Let 'gnulib-tool --import' collect sources needed for the tests in
27789         tests/ rather than in lib/.
27790         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27791         argument. If true, add rules to generate libtests.a, and put libtests.a
27792         into $(LDADD). Consider source files in subdirectories and set
27793         uses_subdirs.
27794         (func_emit_initmacro_start, func_emit_initmacro_end,
27795         func_emit_initmacro_done): Pass all arguments explicitly.
27796         (func_import): Determine two module lists main_modules,
27797         testsrelated_modules. Determine use_libtests. Determine two variables
27798         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27799         instead of just sed_transform_lib_file. Determine two variables
27800         main_files and testsrelated_files. Compute 'files' as the union of
27801         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27802         func_add_or_update. In the generated gnulib-comp.m4, collect the
27803         object files for tests/ in different variables than those for lib/.
27804         Substitute LIBTESTS_LIBDEPS.
27805         (func_create_testdir): Combine the uses_subdirs results from
27806         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27807
27808 2007-12-09  Bruno Haible  <bruno@clisp.org>
27809
27810         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27811         the build-aux directory.
27812
27813 2007-12-09  Bruno Haible  <bruno@clisp.org>
27814
27815         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27816         introduced on 2006-09-09.
27817
27818 2007-12-07  Jim Meyering  <meyering@redhat.com>
27819
27820         Let these macros work also with autoconf-2.59.
27821         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27822         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27823         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27824
27825 2007-12-06  Jim Meyering  <meyering@redhat.com>
27826
27827         Avoid a configure-time syntax error in gl_FUNC_ACL.
27828         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27829         function in each branch, before testing the cache variable.
27830
27831 2007-12-04  Eric Blake  <ebb9@byu.net>
27832
27833         Make scripts executable.
27834         * build-aux/config.guess: Add execute permissions.
27835         * build-aux/config.sub: Likewise.
27836         * build-aux/gendocs.sh: Likewise.
27837
27838         Fix frexp on mingw.
27839         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27840         cross-compiling.
27841         * doc/functions/frexp.texi (frexp): Document the bug.
27842
27843         Make cygwin fseeko check more reliable.
27844         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27845         version numbers, rather than unrelated feature check.
27846         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27847         * doc/functions/ftello.texi (ftello): Likewise.
27848         Reported by Bruno Haible.
27849
27850         * m4/strerror.m4: Bump version number.
27851
27852 2007-12-03  Bruno Haible  <bruno@clisp.org>
27853
27854         * doc/functions/mprotect.texi: Mention the mingw problem.
27855
27856 2007-12-03  Eric Blake  <ebb9@byu.net>
27857
27858         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27859         REPLACE_STRERROR is initialized before this macro.
27860
27861 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27862
27863         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27864         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27865         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27866         put -lsec in even for programs other than 'ls'.  This fixes a problem
27867         for gettext reported by Bruno Haible in
27868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27869         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27870         Add support for Solaris 10.  This isn't efficient, but should get the
27871         job done for now.
27872
27873 2007-12-03  James Youngman  <jay@gnu.org>
27874
27875         * doc/regexprops-generic.texi: change "an close-group" to "a
27876         close-group" and "illegal" to "not allowed".
27877
27878 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27879
27880         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27881         pr_byname.h. Needed for the rare case when the maintainer has done
27882         "make maintainer-clean" in the source directory and then attempts a
27883         build outside the source directory.
27884         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27885         scripts_byname.h.
27886
27887 2007-12-02  Martin Lambers <marlam@marlam.de>
27888             Bruno Haible  <bruno@clisp.org>
27889
27890         * lib/getpagesize.h: Remove file.
27891         * lib/unistd.in.h: Include declaration of getpagesize here.
27892         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27893         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27894         HAVE_SYS_PARAM_H.
27895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27896         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27897         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27898         (Depends-on): Add unistd.
27899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27900         (Include): Use <unistd.h> instead of getpagesize.h.
27901         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27902         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27903         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27904         gl_GETPAGESIZE invocation, already handled by module dependency.
27905         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27906
27907 2007-12-02  Bruno Haible  <bruno@clisp.org>
27908
27909         * modules/strings-tests: New file.
27910         * tests/test-strings.c: New file.
27911
27912         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27913         * lib/strings.in.h: New file.
27914         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27915         * m4/strings_h.m4: New file.
27916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27917         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27918         * modules/strings: New file.
27919         * modules/string (Makefile.am): Update.
27920         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27921         Reported by Karl Berry.
27922
27923 2007-12-01  Eric Blake  <ebb9@byu.net>
27924
27925         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27926         accomodate fix in cygwin 1.5.25.
27927
27928 2007-12-01  Jim Meyering  <meyering@redhat.com>
27929
27930         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27931         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27932         that would inhibit utf8-optimization of a regexp containing line-
27933         or buffer-anchors, e.g., `^', `$'.
27934
27935 2007-11-30  Bruno Haible  <bruno@clisp.org>
27936
27937         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27938         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27939         glthread_recursive_lock_init.
27940         * lib/lock.c (glthread_recursive_lock_init)
27941         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27942         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27943
27944 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27945
27946         New function qset_acl, like set_acl but with syscall semantics.
27947         * lib/acl.h (qset_acl): New decl.
27948         * lib/acl.c (qset_acl): New function.
27949         (set_acl): Use new function.  Use more-consistent diagnostics.
27950
27951 2007-11-28  Jim Meyering  <meyering@redhat.com>
27952
27953         * modules/physmem (License): Change from GPL to LGPLv2+.
27954
27955 2007-11-26  Bruno Haible  <bruno@clisp.org>
27956
27957         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27958         'long double' type has excess precision.
27959         Reported by Jim Meyering in
27960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27961
27962 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27963
27964         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27965         Sync from <http://gnu.org/licenses>.
27966         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27967         with license text from same location.
27968         * doc/maintain.texi, doc/standards.texi:  Sync from
27969         <http://savannah.gnu.org/projects/gnustandards>.
27970
27971 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
27972         and Jim Meyering  <meyering@redhat.com>
27973
27974         Adjust getdate' grammar to accept a slightly more regular language.
27975         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27976         Before, the former was rejected.
27977         * lib/getdate.y (digits_to_date_time): New function, factored
27978         out of ...
27979         (number): ...here.  Just call digits_to_date_time.
27980         (hybrid): New non-terminal to handle an <unsigned number,
27981         signed relative offset> sequence consistently.
27982
27983 2007-11-18  Jim Meyering  <meyering@redhat.com>
27984
27985         Pull my changes from coreutils:
27986         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27987         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27988         use of $gnulib_tool_option_extras, so that it's separated from the
27989         preceding argument.
27990
27991         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27992         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27993         parent destination directories before copying a file into place.
27994
27995 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27996
27997         bootstrap: work also with 4-argument variant of AC_INIT
27998         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27999
28000 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28001
28002         Port test-getaddrinfo to Solaris.
28003         Problem reported by Bruno Haible in
28004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28005         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28006         explanation of setting 'hints'.
28007         Don't reject an implementation merely because it returns EAI_SERVICE.
28008         (EAI_SERVICE): Define to 0 if not defined.
28009
28010 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28011
28012         The license of gnu-make and posix-shell is now "GPLed build tool".
28013         * modules/gnu-make (License): Likewise.
28014         * modules/posix-shell (License): Likewise.
28015
28016         New module posix-shell, for determining a POSIX shell
28017         or perhaps something that is close enough to a POSIX shell.
28018         * m4/posix-shell.m4: New file.
28019         * modules/posix-shell: New file.
28020
28021         * MODULES.html.sh: Mention new module.
28022
28023         New module gnu-make, for determining whether we're using GNU Make.
28024         * m4/gnu-make.m4: New file.
28025         * modules/gnu-make: New file.
28026         * MODULES.html.sh: Mention new module.
28027
28028 2007-11-14  Jim Meyering  <meyering@redhat.com>
28029
28030         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28031         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28032         use this macro to create a function _definition_.
28033         Remove useless "#undef ARGMATCH_DIE".
28034
28035 2007-11-14  Bruno Haible  <bruno@clisp.org>
28036
28037         * lib/config.charset: Update for OpenBSD 4.1.
28038         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28039
28040 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28041
28042         Document 64-bit #if problems in stdint.texi.
28043         * doc/headers/stdint.texi (stdint.h): Mention problems with
28044         64-bit-#if, and how to work around them.
28045
28046         Don't insist on 'long long int' support in the preprocessor.  It
28047         breaks too many things.  For example, PRIdMAX still uses a 'long
28048         long int' format with the latest Sun compiler, even though
28049         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28050         preprocessor problem.  This causes the latest coreutils to dump
28051         core on Solaris 10 sparc with the Sun C compiler.
28052         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28053         the troublesome expressions at configure-time, not at #if-time.
28054         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28055         preprocessor.
28056         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28057         compile-time C checks, done at 'configure'-time.
28058         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28059         * modules/inttypes (Makefile): Substitute the new symbols that
28060         gl_INTTYPES_H now generates.
28061         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28062
28063 2007-11-12  Bruno Haible  <bruno@clisp.org>
28064
28065         Tests for Unicode character classification functions.
28066
28067         * modules/unictype/bidicategory-byname-tests: New file.
28068         * modules/unictype/bidicategory-name-tests: New file.
28069         * modules/unictype/bidicategory-of-tests: New file.
28070         * modules/unictype/bidicategory-test-tests: New file.
28071         * modules/unictype/block-list-tests: New file.
28072         * modules/unictype/block-of-tests: New file.
28073         * modules/unictype/block-test-tests: New file.
28074         * modules/unictype/category-C-tests: New file.
28075         * modules/unictype/category-Cc-tests: New file.
28076         * modules/unictype/category-Cf-tests: New file.
28077         * modules/unictype/category-Cn-tests: New file.
28078         * modules/unictype/category-Co-tests: New file.
28079         * modules/unictype/category-Cs-tests: New file.
28080         * modules/unictype/category-L-tests: New file.
28081         * modules/unictype/category-Ll-tests: New file.
28082         * modules/unictype/category-Lm-tests: New file.
28083         * modules/unictype/category-Lo-tests: New file.
28084         * modules/unictype/category-Lt-tests: New file.
28085         * modules/unictype/category-Lu-tests: New file.
28086         * modules/unictype/category-M-tests: New file.
28087         * modules/unictype/category-Mc-tests: New file.
28088         * modules/unictype/category-Me-tests: New file.
28089         * modules/unictype/category-Mn-tests: New file.
28090         * modules/unictype/category-N-tests: New file.
28091         * modules/unictype/category-Nd-tests: New file.
28092         * modules/unictype/category-Nl-tests: New file.
28093         * modules/unictype/category-No-tests: New file.
28094         * modules/unictype/category-P-tests: New file.
28095         * modules/unictype/category-Pc-tests: New file.
28096         * modules/unictype/category-Pd-tests: New file.
28097         * modules/unictype/category-Pe-tests: New file.
28098         * modules/unictype/category-Pf-tests: New file.
28099         * modules/unictype/category-Pi-tests: New file.
28100         * modules/unictype/category-Po-tests: New file.
28101         * modules/unictype/category-Ps-tests: New file.
28102         * modules/unictype/category-S-tests: New file.
28103         * modules/unictype/category-Sc-tests: New file.
28104         * modules/unictype/category-Sk-tests: New file.
28105         * modules/unictype/category-Sm-tests: New file.
28106         * modules/unictype/category-So-tests: New file.
28107         * modules/unictype/category-Z-tests: New file.
28108         * modules/unictype/category-Zl-tests: New file.
28109         * modules/unictype/category-Zp-tests: New file.
28110         * modules/unictype/category-Zs-tests: New file.
28111         * modules/unictype/category-and-not-tests: New file.
28112         * modules/unictype/category-and-tests: New file.
28113         * modules/unictype/category-byname-tests: New file.
28114         * modules/unictype/category-name-tests: New file.
28115         * modules/unictype/category-none-tests: New file.
28116         * modules/unictype/category-of-tests: New file.
28117         * modules/unictype/category-or-tests: New file.
28118         * modules/unictype/category-test-withtable-tests: New file.
28119         * modules/unictype/combining-class-tests: New file.
28120         * modules/unictype/ctype-alnum-tests: New file.
28121         * modules/unictype/ctype-alpha-tests: New file.
28122         * modules/unictype/ctype-blank-tests: New file.
28123         * modules/unictype/ctype-cntrl-tests: New file.
28124         * modules/unictype/ctype-digit-tests: New file.
28125         * modules/unictype/ctype-graph-tests: New file.
28126         * modules/unictype/ctype-lower-tests: New file.
28127         * modules/unictype/ctype-print-tests: New file.
28128         * modules/unictype/ctype-punct-tests: New file.
28129         * modules/unictype/ctype-space-tests: New file.
28130         * modules/unictype/ctype-upper-tests: New file.
28131         * modules/unictype/ctype-xdigit-tests: New file.
28132         * modules/unictype/decimal-digit-tests: New file.
28133         * modules/unictype/digit-tests: New file.
28134         * modules/unictype/mirror-tests: New file.
28135         * modules/unictype/numeric-tests: New file.
28136         * modules/unictype/property-alphabetic-tests: New file.
28137         * modules/unictype/property-ascii-hex-digit-tests: New file.
28138         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28139         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28140         * modules/unictype/property-bidi-block-separator-tests: New file.
28141         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28142         * modules/unictype/property-bidi-common-separator-tests: New file.
28143         * modules/unictype/property-bidi-control-tests: New file.
28144         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28145         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28146         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28147         * modules/unictype/property-bidi-european-digit-tests: New file.
28148         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28149         * modules/unictype/property-bidi-left-to-right-tests: New file.
28150         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28151         * modules/unictype/property-bidi-other-neutral-tests: New file.
28152         * modules/unictype/property-bidi-pdf-tests: New file.
28153         * modules/unictype/property-bidi-segment-separator-tests: New file.
28154         * modules/unictype/property-bidi-whitespace-tests: New file.
28155         * modules/unictype/property-byname-tests: New file.
28156         * modules/unictype/property-combining-tests: New file.
28157         * modules/unictype/property-composite-tests: New file.
28158         * modules/unictype/property-currency-symbol-tests: New file.
28159         * modules/unictype/property-dash-tests: New file.
28160         * modules/unictype/property-decimal-digit-tests: New file.
28161         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28162         * modules/unictype/property-deprecated-tests: New file.
28163         * modules/unictype/property-diacritic-tests: New file.
28164         * modules/unictype/property-extender-tests: New file.
28165         * modules/unictype/property-format-control-tests: New file.
28166         * modules/unictype/property-grapheme-base-tests: New file.
28167         * modules/unictype/property-grapheme-extend-tests: New file.
28168         * modules/unictype/property-grapheme-link-tests: New file.
28169         * modules/unictype/property-hex-digit-tests: New file.
28170         * modules/unictype/property-hyphen-tests: New file.
28171         * modules/unictype/property-id-continue-tests: New file.
28172         * modules/unictype/property-id-start-tests: New file.
28173         * modules/unictype/property-ideographic-tests: New file.
28174         * modules/unictype/property-ids-binary-operator-tests: New file.
28175         * modules/unictype/property-ids-trinary-operator-tests: New file.
28176         * modules/unictype/property-ignorable-control-tests: New file.
28177         * modules/unictype/property-iso-control-tests: New file.
28178         * modules/unictype/property-join-control-tests: New file.
28179         * modules/unictype/property-left-of-pair-tests: New file.
28180         * modules/unictype/property-line-separator-tests: New file.
28181         * modules/unictype/property-logical-order-exception-tests: New file.
28182         * modules/unictype/property-lowercase-tests: New file.
28183         * modules/unictype/property-math-tests: New file.
28184         * modules/unictype/property-non-break-tests: New file.
28185         * modules/unictype/property-not-a-character-tests: New file.
28186         * modules/unictype/property-numeric-tests: New file.
28187         * modules/unictype/property-other-alphabetic-tests: New file.
28188         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28189         * modules/unictype/property-other-grapheme-extend-tests: New file.
28190         * modules/unictype/property-other-id-continue-tests: New file.
28191         * modules/unictype/property-other-id-start-tests: New file.
28192         * modules/unictype/property-other-lowercase-tests: New file.
28193         * modules/unictype/property-other-math-tests: New file.
28194         * modules/unictype/property-other-uppercase-tests: New file.
28195         * modules/unictype/property-paired-punctuation-tests: New file.
28196         * modules/unictype/property-paragraph-separator-tests: New file.
28197         * modules/unictype/property-pattern-syntax-tests: New file.
28198         * modules/unictype/property-pattern-white-space-tests: New file.
28199         * modules/unictype/property-private-use-tests: New file.
28200         * modules/unictype/property-punctuation-tests: New file.
28201         * modules/unictype/property-quotation-mark-tests: New file.
28202         * modules/unictype/property-radical-tests: New file.
28203         * modules/unictype/property-sentence-terminal-tests: New file.
28204         * modules/unictype/property-soft-dotted-tests: New file.
28205         * modules/unictype/property-space-tests: New file.
28206         * modules/unictype/property-terminal-punctuation-tests: New file.
28207         * modules/unictype/property-test-tests: New file.
28208         * modules/unictype/property-titlecase-tests: New file.
28209         * modules/unictype/property-unassigned-code-value-tests: New file.
28210         * modules/unictype/property-unified-ideograph-tests: New file.
28211         * modules/unictype/property-uppercase-tests: New file.
28212         * modules/unictype/property-variation-selector-tests: New file.
28213         * modules/unictype/property-white-space-tests: New file.
28214         * modules/unictype/property-xid-continue-tests: New file.
28215         * modules/unictype/property-xid-start-tests: New file.
28216         * modules/unictype/property-zero-width-tests: New file.
28217         * modules/unictype/scripts-tests: New file.
28218         * modules/unictype/syntax-c-ident-tests: New file.
28219         * modules/unictype/syntax-c-whitespace-tests: New file.
28220         * modules/unictype/syntax-java-ident-tests: New file.
28221         * modules/unictype/syntax-java-whitespace-tests: New file.
28222         * tests/unictype/test-bidi_byname.c: New file.
28223         * tests/unictype/test-bidi_name.c: New file.
28224         * tests/unictype/test-bidi_of.c: New file.
28225         * tests/unictype/test-bidi_test.c: New file.
28226         * tests/unictype/test-block_list.c: New file.
28227         * tests/unictype/test-block_of.c: New file.
28228         * tests/unictype/test-block_test.c: New file.
28229         * tests/unictype/test-categ_and.c: New file.
28230         * tests/unictype/test-categ_and_not.c: New file.
28231         * tests/unictype/test-categ_byname.c: New file.
28232         * tests/unictype/test-categ_name.c: New file.
28233         * tests/unictype/test-categ_none.c: New file.
28234         * tests/unictype/test-categ_of.c: New file.
28235         * tests/unictype/test-categ_or.c: New file.
28236         * tests/unictype/test-categ_test_withtable.c: New file.
28237         * tests/unictype/test-combining.c: New file.
28238         * tests/unictype/test-decdigit.c: New file.
28239         * tests/unictype/test-digit.c: New file.
28240         * tests/unictype/test-mirror.c: New file.
28241         * tests/unictype/test-numeric.c: New file.
28242         * tests/unictype/test-pr_byname.c: New file.
28243         * tests/unictype/test-pr_test.c: New file.
28244         * tests/unictype/test-predicate-part1.h: New file.
28245         * tests/unictype/test-predicate-part2.h: New file.
28246         * tests/unictype/test-scripts.c: New file.
28247         * tests/unictype/test-sy_c_ident.c: New file.
28248         * tests/unictype/test-sy_java_ident.c: New file.
28249
28250         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28251         for Unicode 5.0.0.
28252         * tests/unictype/test-categ_Cc.c: Likewise.
28253         * tests/unictype/test-categ_Cf.c: Likewise.
28254         * tests/unictype/test-categ_Cn.c: Likewise.
28255         * tests/unictype/test-categ_Co.c: Likewise.
28256         * tests/unictype/test-categ_Cs.c: Likewise.
28257         * tests/unictype/test-categ_L.c: Likewise.
28258         * tests/unictype/test-categ_Ll.c: Likewise.
28259         * tests/unictype/test-categ_Lm.c: Likewise.
28260         * tests/unictype/test-categ_Lo.c: Likewise.
28261         * tests/unictype/test-categ_Lt.c: Likewise.
28262         * tests/unictype/test-categ_Lu.c: Likewise.
28263         * tests/unictype/test-categ_M.c: Likewise.
28264         * tests/unictype/test-categ_Mc.c: Likewise.
28265         * tests/unictype/test-categ_Me.c: Likewise.
28266         * tests/unictype/test-categ_Mn.c: Likewise.
28267         * tests/unictype/test-categ_N.c: Likewise.
28268         * tests/unictype/test-categ_Nd.c: Likewise.
28269         * tests/unictype/test-categ_Nl.c: Likewise.
28270         * tests/unictype/test-categ_No.c: Likewise.
28271         * tests/unictype/test-categ_P.c: Likewise.
28272         * tests/unictype/test-categ_Pc.c: Likewise.
28273         * tests/unictype/test-categ_Pd.c: Likewise.
28274         * tests/unictype/test-categ_Pe.c: Likewise.
28275         * tests/unictype/test-categ_Pf.c: Likewise.
28276         * tests/unictype/test-categ_Pi.c: Likewise.
28277         * tests/unictype/test-categ_Po.c: Likewise.
28278         * tests/unictype/test-categ_Ps.c: Likewise.
28279         * tests/unictype/test-categ_S.c: Likewise.
28280         * tests/unictype/test-categ_Sc.c: Likewise.
28281         * tests/unictype/test-categ_Sk.c: Likewise.
28282         * tests/unictype/test-categ_Sm.c: Likewise.
28283         * tests/unictype/test-categ_So.c: Likewise.
28284         * tests/unictype/test-categ_Z.c: Likewise.
28285         * tests/unictype/test-categ_Zl.c: Likewise.
28286         * tests/unictype/test-categ_Zp.c: Likewise.
28287         * tests/unictype/test-categ_Zs.c: Likewise.
28288         * tests/unictype/test-ctype_alnum.c: Likewise.
28289         * tests/unictype/test-ctype_alpha.c: Likewise.
28290         * tests/unictype/test-ctype_blank.c: Likewise.
28291         * tests/unictype/test-ctype_cntrl.c: Likewise.
28292         * tests/unictype/test-ctype_digit.c: Likewise.
28293         * tests/unictype/test-ctype_graph.c: Likewise.
28294         * tests/unictype/test-ctype_lower.c: Likewise.
28295         * tests/unictype/test-ctype_print.c: Likewise.
28296         * tests/unictype/test-ctype_punct.c: Likewise.
28297         * tests/unictype/test-ctype_space.c: Likewise.
28298         * tests/unictype/test-ctype_upper.c: Likewise.
28299         * tests/unictype/test-ctype_xdigit.c: Likewise.
28300         * tests/unictype/test-decdigit.h: Likewise.
28301         * tests/unictype/test-digit.h: Likewise.
28302         * tests/unictype/test-numeric.h: Likewise.
28303         * tests/unictype/test-pr_alphabetic.c: Likewise.
28304         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28305         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28306         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28307         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28308         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28309         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28310         * tests/unictype/test-pr_bidi_control.c: Likewise.
28311         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28312         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28313         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28314         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28315         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28316         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28317         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28318         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28319         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28320         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28321         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28322         * tests/unictype/test-pr_combining.c: Likewise.
28323         * tests/unictype/test-pr_composite.c: Likewise.
28324         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28325         * tests/unictype/test-pr_dash.c: Likewise.
28326         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28327         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28328         * tests/unictype/test-pr_deprecated.c: Likewise.
28329         * tests/unictype/test-pr_diacritic.c: Likewise.
28330         * tests/unictype/test-pr_extender.c: Likewise.
28331         * tests/unictype/test-pr_format_control.c: Likewise.
28332         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28333         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28334         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28335         * tests/unictype/test-pr_hex_digit.c: Likewise.
28336         * tests/unictype/test-pr_hyphen.c: Likewise.
28337         * tests/unictype/test-pr_id_continue.c: Likewise.
28338         * tests/unictype/test-pr_id_start.c: Likewise.
28339         * tests/unictype/test-pr_ideographic.c: Likewise.
28340         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28341         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28342         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28343         * tests/unictype/test-pr_iso_control.c: Likewise.
28344         * tests/unictype/test-pr_join_control.c: Likewise.
28345         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28346         * tests/unictype/test-pr_line_separator.c: Likewise.
28347         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28348         * tests/unictype/test-pr_lowercase.c: Likewise.
28349         * tests/unictype/test-pr_math.c: Likewise.
28350         * tests/unictype/test-pr_non_break.c: Likewise.
28351         * tests/unictype/test-pr_not_a_character.c: Likewise.
28352         * tests/unictype/test-pr_numeric.c: Likewise.
28353         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28354         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28355         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28356         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28357         * tests/unictype/test-pr_other_id_start.c: Likewise.
28358         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28359         * tests/unictype/test-pr_other_math.c: Likewise.
28360         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28361         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28362         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28363         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28364         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28365         * tests/unictype/test-pr_private_use.c: Likewise.
28366         * tests/unictype/test-pr_punctuation.c: Likewise.
28367         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28368         * tests/unictype/test-pr_radical.c: Likewise.
28369         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28370         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28371         * tests/unictype/test-pr_space.c: Likewise.
28372         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28373         * tests/unictype/test-pr_titlecase.c: Likewise.
28374         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28375         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28376         * tests/unictype/test-pr_uppercase.c: Likewise.
28377         * tests/unictype/test-pr_variation_selector.c: Likewise.
28378         * tests/unictype/test-pr_white_space.c: Likewise.
28379         * tests/unictype/test-pr_xid_continue.c: Likewise.
28380         * tests/unictype/test-pr_xid_start.c: Likewise.
28381         * tests/unictype/test-pr_zero_width.c: Likewise.
28382         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28383         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28384
28385 2007-11-12  Bruno Haible  <bruno@clisp.org>
28386
28387         Unicode character classification functions.
28388         * lib/unictype.h: New file.
28389         * modules/unictype/base: New file.
28390         * modules/unictype/category-L: New file.
28391         * modules/unictype/category-Lu: New file.
28392         * modules/unictype/category-Ll: New file.
28393         * modules/unictype/category-Lt: New file.
28394         * modules/unictype/category-Lm: New file.
28395         * modules/unictype/category-Lo: New file.
28396         * modules/unictype/category-M: New file.
28397         * modules/unictype/category-Mn: New file.
28398         * modules/unictype/category-Mc: New file.
28399         * modules/unictype/category-Me: New file.
28400         * modules/unictype/category-N: New file.
28401         * modules/unictype/category-Nd: New file.
28402         * modules/unictype/category-Nl: New file.
28403         * modules/unictype/category-No: New file.
28404         * modules/unictype/category-P: New file.
28405         * modules/unictype/category-Pc: New file.
28406         * modules/unictype/category-Pd: New file.
28407         * modules/unictype/category-Ps: New file.
28408         * modules/unictype/category-Pe: New file.
28409         * modules/unictype/category-Pi: New file.
28410         * modules/unictype/category-Pf: New file.
28411         * modules/unictype/category-Po: New file.
28412         * modules/unictype/category-S: New file.
28413         * modules/unictype/category-Sm: New file.
28414         * modules/unictype/category-Sc: New file.
28415         * modules/unictype/category-Sk: New file.
28416         * modules/unictype/category-So: New file.
28417         * modules/unictype/category-Z: New file.
28418         * modules/unictype/category-Zs: New file.
28419         * modules/unictype/category-Zl: New file.
28420         * modules/unictype/category-Zp: New file.
28421         * modules/unictype/category-C: New file.
28422         * modules/unictype/category-Cc: New file.
28423         * modules/unictype/category-Cf: New file.
28424         * modules/unictype/category-Cs: New file.
28425         * modules/unictype/category-Co: New file.
28426         * modules/unictype/category-Cn: New file.
28427         * modules/unictype/category-or: New file.
28428         * modules/unictype/category-of: New file.
28429         * modules/unictype/category-test: New file.
28430         * modules/unictype/category-test-withtable: New file.
28431         * modules/unictype/category-byname: New file.
28432         * modules/unictype/category-none: New file.
28433         * modules/unictype/category-and: New file.
28434         * modules/unictype/category-and-not: New file.
28435         * modules/unictype/category-name: New file.
28436         * modules/unictype/combining-class: New file.
28437         * modules/unictype/category-all: New file.
28438         * modules/unictype/bidicategory-all: New file.
28439         * modules/unictype/bidicategory-byname: New file.
28440         * modules/unictype/bidicategory-name: New file.
28441         * modules/unictype/bidicategory-of: New file.
28442         * modules/unictype/bidicategory-test: New file.
28443         * modules/unictype/decimal-digit: New file.
28444         * modules/unictype/digit: New file.
28445         * modules/unictype/numeric: New file.
28446         * modules/unictype/mirror: New file.
28447         * modules/unictype/property-white-space: New file.
28448         * modules/unictype/property-alphabetic: New file.
28449         * modules/unictype/property-other-alphabetic: New file.
28450         * modules/unictype/property-not-a-character: New file.
28451         * modules/unictype/property-default-ignorable-code-point: New file.
28452         * modules/unictype/property-other-default-ignorable-code-point: New
28453         file.
28454         * modules/unictype/property-deprecated: New file.
28455         * modules/unictype/property-logical-order-exception: New file.
28456         * modules/unictype/property-variation-selector: New file.
28457         * modules/unictype/property-private-use: New file.
28458         * modules/unictype/property-unassigned-code-value: New file.
28459         * modules/unictype/property-uppercase: New file.
28460         * modules/unictype/property-other-uppercase: New file.
28461         * modules/unictype/property-lowercase: New file.
28462         * modules/unictype/property-other-lowercase: New file.
28463         * modules/unictype/property-titlecase: New file.
28464         * modules/unictype/property-soft-dotted: New file.
28465         * modules/unictype/property-id-start: New file.
28466         * modules/unictype/property-other-id-start: New file.
28467         * modules/unictype/property-id-continue: New file.
28468         * modules/unictype/property-other-id-continue: New file.
28469         * modules/unictype/property-xid-start: New file.
28470         * modules/unictype/property-xid-continue: New file.
28471         * modules/unictype/property-pattern-white-space: New file.
28472         * modules/unictype/property-pattern-syntax: New file.
28473         * modules/unictype/property-join-control: New file.
28474         * modules/unictype/property-grapheme-base: New file.
28475         * modules/unictype/property-grapheme-extend: New file.
28476         * modules/unictype/property-other-grapheme-extend: New file.
28477         * modules/unictype/property-grapheme-link: New file.
28478         * modules/unictype/property-bidi-control: New file.
28479         * modules/unictype/property-bidi-left-to-right: New file.
28480         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28481         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28482         * modules/unictype/property-bidi-european-digit: New file.
28483         * modules/unictype/property-bidi-eur-num-separator: New file.
28484         * modules/unictype/property-bidi-eur-num-terminator: New file.
28485         * modules/unictype/property-bidi-arabic-digit: New file.
28486         * modules/unictype/property-bidi-common-separator: New file.
28487         * modules/unictype/property-bidi-block-separator: New file.
28488         * modules/unictype/property-bidi-segment-separator: New file.
28489         * modules/unictype/property-bidi-whitespace: New file.
28490         * modules/unictype/property-bidi-non-spacing-mark: New file.
28491         * modules/unictype/property-bidi-boundary-neutral: New file.
28492         * modules/unictype/property-bidi-pdf: New file.
28493         * modules/unictype/property-bidi-embedding-or-override: New file.
28494         * modules/unictype/property-bidi-other-neutral: New file.
28495         * modules/unictype/property-hex-digit: New file.
28496         * modules/unictype/property-ascii-hex-digit: New file.
28497         * modules/unictype/property-ideographic: New file.
28498         * modules/unictype/property-unified-ideograph: New file.
28499         * modules/unictype/property-radical: New file.
28500         * modules/unictype/property-ids-binary-operator: New file.
28501         * modules/unictype/property-ids-trinary-operator: New file.
28502         * modules/unictype/property-zero-width: New file.
28503         * modules/unictype/property-space: New file.
28504         * modules/unictype/property-non-break: New file.
28505         * modules/unictype/property-iso-control: New file.
28506         * modules/unictype/property-format-control: New file.
28507         * modules/unictype/property-dash: New file.
28508         * modules/unictype/property-hyphen: New file.
28509         * modules/unictype/property-punctuation: New file.
28510         * modules/unictype/property-line-separator: New file.
28511         * modules/unictype/property-paragraph-separator: New file.
28512         * modules/unictype/property-quotation-mark: New file.
28513         * modules/unictype/property-sentence-terminal: New file.
28514         * modules/unictype/property-terminal-punctuation: New file.
28515         * modules/unictype/property-currency-symbol: New file.
28516         * modules/unictype/property-math: New file.
28517         * modules/unictype/property-other-math: New file.
28518         * modules/unictype/property-paired-punctuation: New file.
28519         * modules/unictype/property-left-of-pair: New file.
28520         * modules/unictype/property-combining: New file.
28521         * modules/unictype/property-composite: New file.
28522         * modules/unictype/property-decimal-digit: New file.
28523         * modules/unictype/property-numeric: New file.
28524         * modules/unictype/property-diacritic: New file.
28525         * modules/unictype/property-extender: New file.
28526         * modules/unictype/property-ignorable-control: New file.
28527         * modules/unictype/property-test: New file.
28528         * modules/unictype/property-byname: New file.
28529         * modules/unictype/property-all: New file.
28530         * modules/unictype/scripts: New file.
28531         * modules/unictype/scripts-all: New file.
28532         * modules/unictype/block-of: New file.
28533         * modules/unictype/block-test: New file.
28534         * modules/unictype/block-list: New file.
28535         * modules/unictype/block-all: New file.
28536         * modules/unictype/syntax-c-whitespace: New file.
28537         * modules/unictype/syntax-java-whitespace: New file.
28538         * modules/unictype/syntax-c-ident: New file.
28539         * modules/unictype/syntax-java-ident: New file.
28540         * modules/unictype/ctype-alnum: New file.
28541         * modules/unictype/ctype-alpha: New file.
28542         * modules/unictype/ctype-cntrl: New file.
28543         * modules/unictype/ctype-digit: New file.
28544         * modules/unictype/ctype-graph: New file.
28545         * modules/unictype/ctype-lower: New file.
28546         * modules/unictype/ctype-print: New file.
28547         * modules/unictype/ctype-punct: New file.
28548         * modules/unictype/ctype-space: New file.
28549         * modules/unictype/ctype-upper: New file.
28550         * modules/unictype/ctype-xdigit: New file.
28551         * modules/unictype/ctype-blank: New file.
28552         * lib/unictype/bidi_byname.c: New file.
28553         * lib/unictype/bidi_name.c: New file.
28554         * lib/unictype/bidi_of.c: New file.
28555         * lib/unictype/bidi_test.c: New file.
28556         * lib/unictype/bitmap.h: New file.
28557         * lib/unictype/block_test.c: New file.
28558         * lib/unictype/blocks.c: New file.
28559         * lib/unictype/categ_C.c: New file.
28560         * lib/unictype/categ_Cc.c: New file.
28561         * lib/unictype/categ_Cf.c: New file.
28562         * lib/unictype/categ_Cn.c: New file.
28563         * lib/unictype/categ_Co.c: New file.
28564         * lib/unictype/categ_Cs.c: New file.
28565         * lib/unictype/categ_L.c: New file.
28566         * lib/unictype/categ_Ll.c: New file.
28567         * lib/unictype/categ_Lm.c: New file.
28568         * lib/unictype/categ_Lo.c: New file.
28569         * lib/unictype/categ_Lt.c: New file.
28570         * lib/unictype/categ_Lu.c: New file.
28571         * lib/unictype/categ_M.c: New file.
28572         * lib/unictype/categ_Mc.c: New file.
28573         * lib/unictype/categ_Me.c: New file.
28574         * lib/unictype/categ_Mn.c: New file.
28575         * lib/unictype/categ_N.c: New file.
28576         * lib/unictype/categ_Nd.c: New file.
28577         * lib/unictype/categ_Nl.c: New file.
28578         * lib/unictype/categ_No.c: New file.
28579         * lib/unictype/categ_P.c: New file.
28580         * lib/unictype/categ_Pc.c: New file.
28581         * lib/unictype/categ_Pd.c: New file.
28582         * lib/unictype/categ_Pe.c: New file.
28583         * lib/unictype/categ_Pf.c: New file.
28584         * lib/unictype/categ_Pi.c: New file.
28585         * lib/unictype/categ_Po.c: New file.
28586         * lib/unictype/categ_Ps.c: New file.
28587         * lib/unictype/categ_S.c: New file.
28588         * lib/unictype/categ_Sc.c: New file.
28589         * lib/unictype/categ_Sk.c: New file.
28590         * lib/unictype/categ_Sm.c: New file.
28591         * lib/unictype/categ_So.c: New file.
28592         * lib/unictype/categ_Z.c: New file.
28593         * lib/unictype/categ_Zl.c: New file.
28594         * lib/unictype/categ_Zp.c: New file.
28595         * lib/unictype/categ_Zs.c: New file.
28596         * lib/unictype/categ_and.c: New file.
28597         * lib/unictype/categ_and_not.c: New file.
28598         * lib/unictype/categ_byname.c: New file.
28599         * lib/unictype/categ_name.c: New file.
28600         * lib/unictype/categ_none.c: New file.
28601         * lib/unictype/categ_of.c: New file.
28602         * lib/unictype/categ_or.c: New file.
28603         * lib/unictype/categ_test.c: New file.
28604         * lib/unictype/combining.c: New file.
28605         * lib/unictype/ctype_alnum.c: New file.
28606         * lib/unictype/ctype_alpha.c: New file.
28607         * lib/unictype/ctype_blank.c: New file.
28608         * lib/unictype/ctype_cntrl.c: New file.
28609         * lib/unictype/ctype_digit.c: New file.
28610         * lib/unictype/ctype_graph.c: New file.
28611         * lib/unictype/ctype_lower.c: New file.
28612         * lib/unictype/ctype_print.c: New file.
28613         * lib/unictype/ctype_punct.c: New file.
28614         * lib/unictype/ctype_space.c: New file.
28615         * lib/unictype/ctype_upper.c: New file.
28616         * lib/unictype/ctype_xdigit.c: New file.
28617         * lib/unictype/decdigit.c: New file.
28618         * lib/unictype/digit.c: New file.
28619         * lib/unictype/identsyntaxmap.h: New file.
28620         * lib/unictype/mirror.c: New file.
28621         * lib/unictype/numeric.c: New file.
28622         * lib/unictype/pr_alphabetic.c: New file.
28623         * lib/unictype/pr_ascii_hex_digit.c: New file.
28624         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28625         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28626         * lib/unictype/pr_bidi_block_separator.c: New file.
28627         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28628         * lib/unictype/pr_bidi_common_separator.c: New file.
28629         * lib/unictype/pr_bidi_control.c: New file.
28630         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28631         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28632         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28633         * lib/unictype/pr_bidi_european_digit.c: New file.
28634         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28635         * lib/unictype/pr_bidi_left_to_right.c: New file.
28636         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28637         * lib/unictype/pr_bidi_other_neutral.c: New file.
28638         * lib/unictype/pr_bidi_pdf.c: New file.
28639         * lib/unictype/pr_bidi_segment_separator.c: New file.
28640         * lib/unictype/pr_bidi_whitespace.c: New file.
28641         * lib/unictype/pr_byname.c: New file.
28642         * lib/unictype/pr_byname.gperf: New file.
28643         * lib/unictype/pr_combining.c: New file.
28644         * lib/unictype/pr_composite.c: New file.
28645         * lib/unictype/pr_currency_symbol.c: New file.
28646         * lib/unictype/pr_dash.c: New file.
28647         * lib/unictype/pr_decimal_digit.c: New file.
28648         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28649         * lib/unictype/pr_deprecated.c: New file.
28650         * lib/unictype/pr_diacritic.c: New file.
28651         * lib/unictype/pr_extender.c: New file.
28652         * lib/unictype/pr_format_control.c: New file.
28653         * lib/unictype/pr_grapheme_base.c: New file.
28654         * lib/unictype/pr_grapheme_extend.c: New file.
28655         * lib/unictype/pr_grapheme_link.c: New file.
28656         * lib/unictype/pr_hex_digit.c: New file.
28657         * lib/unictype/pr_hyphen.c: New file.
28658         * lib/unictype/pr_id_continue.c: New file.
28659         * lib/unictype/pr_id_start.c: New file.
28660         * lib/unictype/pr_ideographic.c: New file.
28661         * lib/unictype/pr_ids_binary_operator.c: New file.
28662         * lib/unictype/pr_ids_trinary_operator.c: New file.
28663         * lib/unictype/pr_ignorable_control.c: New file.
28664         * lib/unictype/pr_iso_control.c: New file.
28665         * lib/unictype/pr_join_control.c: New file.
28666         * lib/unictype/pr_left_of_pair.c: New file.
28667         * lib/unictype/pr_line_separator.c: New file.
28668         * lib/unictype/pr_logical_order_exception.c: New file.
28669         * lib/unictype/pr_lowercase.c: New file.
28670         * lib/unictype/pr_math.c: New file.
28671         * lib/unictype/pr_non_break.c: New file.
28672         * lib/unictype/pr_not_a_character.c: New file.
28673         * lib/unictype/pr_numeric.c: New file.
28674         * lib/unictype/pr_other_alphabetic.c: New file.
28675         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28676         * lib/unictype/pr_other_grapheme_extend.c: New file.
28677         * lib/unictype/pr_other_id_continue.c: New file.
28678         * lib/unictype/pr_other_id_start.c: New file.
28679         * lib/unictype/pr_other_lowercase.c: New file.
28680         * lib/unictype/pr_other_math.c: New file.
28681         * lib/unictype/pr_other_uppercase.c: New file.
28682         * lib/unictype/pr_paired_punctuation.c: New file.
28683         * lib/unictype/pr_paragraph_separator.c: New file.
28684         * lib/unictype/pr_pattern_syntax.c: New file.
28685         * lib/unictype/pr_pattern_white_space.c: New file.
28686         * lib/unictype/pr_private_use.c: New file.
28687         * lib/unictype/pr_punctuation.c: New file.
28688         * lib/unictype/pr_quotation_mark.c: New file.
28689         * lib/unictype/pr_radical.c: New file.
28690         * lib/unictype/pr_sentence_terminal.c: New file.
28691         * lib/unictype/pr_soft_dotted.c: New file.
28692         * lib/unictype/pr_space.c: New file.
28693         * lib/unictype/pr_terminal_punctuation.c: New file.
28694         * lib/unictype/pr_test.c: New file.
28695         * lib/unictype/pr_titlecase.c: New file.
28696         * lib/unictype/pr_unassigned_code_value.c: New file.
28697         * lib/unictype/pr_unified_ideograph.c: New file.
28698         * lib/unictype/pr_uppercase.c: New file.
28699         * lib/unictype/pr_variation_selector.c: New file.
28700         * lib/unictype/pr_white_space.c: New file.
28701         * lib/unictype/pr_xid_continue.c: New file.
28702         * lib/unictype/pr_xid_start.c: New file.
28703         * lib/unictype/pr_zero_width.c: New file.
28704         * lib/unictype/scripts.c: New file.
28705         * lib/unictype/sy_c_ident.c: New file.
28706         * lib/unictype/sy_c_whitespace.c: New file.
28707         * lib/unictype/sy_java_ident.c: New file.
28708         * lib/unictype/sy_java_whitespace.c: New file.
28709
28710         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28711         Unicode 5.0.0.
28712         * lib/unictype/blocks.h: Likewise.
28713         * lib/unictype/categ_C.h: Likewise.
28714         * lib/unictype/categ_Cc.h: Likewise.
28715         * lib/unictype/categ_Cf.h: Likewise.
28716         * lib/unictype/categ_Cn.h: Likewise.
28717         * lib/unictype/categ_Co.h: Likewise.
28718         * lib/unictype/categ_Cs.h: Likewise.
28719         * lib/unictype/categ_L.h: Likewise.
28720         * lib/unictype/categ_Ll.h: Likewise.
28721         * lib/unictype/categ_Lm.h: Likewise.
28722         * lib/unictype/categ_Lo.h: Likewise.
28723         * lib/unictype/categ_Lt.h: Likewise.
28724         * lib/unictype/categ_Lu.h: Likewise.
28725         * lib/unictype/categ_M.h: Likewise.
28726         * lib/unictype/categ_Mc.h: Likewise.
28727         * lib/unictype/categ_Me.h: Likewise.
28728         * lib/unictype/categ_Mn.h: Likewise.
28729         * lib/unictype/categ_N.h: Likewise.
28730         * lib/unictype/categ_Nd.h: Likewise.
28731         * lib/unictype/categ_Nl.h: Likewise.
28732         * lib/unictype/categ_No.h: Likewise.
28733         * lib/unictype/categ_P.h: Likewise.
28734         * lib/unictype/categ_Pc.h: Likewise.
28735         * lib/unictype/categ_Pd.h: Likewise.
28736         * lib/unictype/categ_Pe.h: Likewise.
28737         * lib/unictype/categ_Pf.h: Likewise.
28738         * lib/unictype/categ_Pi.h: Likewise.
28739         * lib/unictype/categ_Po.h: Likewise.
28740         * lib/unictype/categ_Ps.h: Likewise.
28741         * lib/unictype/categ_S.h: Likewise.
28742         * lib/unictype/categ_Sc.h: Likewise.
28743         * lib/unictype/categ_Sk.h: Likewise.
28744         * lib/unictype/categ_Sm.h: Likewise.
28745         * lib/unictype/categ_So.h: Likewise.
28746         * lib/unictype/categ_Z.h: Likewise.
28747         * lib/unictype/categ_Zl.h: Likewise.
28748         * lib/unictype/categ_Zp.h: Likewise.
28749         * lib/unictype/categ_Zs.h: Likewise.
28750         * lib/unictype/categ_of.h: Likewise.
28751         * lib/unictype/combining.h: Likewise.
28752         * lib/unictype/ctype_alnum.h: Likewise.
28753         * lib/unictype/ctype_alpha.h: Likewise.
28754         * lib/unictype/ctype_blank.h: Likewise.
28755         * lib/unictype/ctype_cntrl.h: Likewise.
28756         * lib/unictype/ctype_digit.h: Likewise.
28757         * lib/unictype/ctype_graph.h: Likewise.
28758         * lib/unictype/ctype_lower.h: Likewise.
28759         * lib/unictype/ctype_print.h: Likewise.
28760         * lib/unictype/ctype_punct.h: Likewise.
28761         * lib/unictype/ctype_space.h: Likewise.
28762         * lib/unictype/ctype_upper.h: Likewise.
28763         * lib/unictype/ctype_xdigit.h: Likewise.
28764         * lib/unictype/decdigit.h: Likewise.
28765         * lib/unictype/digit.h: Likewise.
28766         * lib/unictype/mirror.h: Likewise.
28767         * lib/unictype/numeric.h: Likewise.
28768         * lib/unictype/pr_alphabetic.h: Likewise.
28769         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28770         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28771         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28772         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28773         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28774         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28775         * lib/unictype/pr_bidi_control.h: Likewise.
28776         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28777         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28778         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28779         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28780         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28781         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28782         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28783         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28784         * lib/unictype/pr_bidi_pdf.h: Likewise.
28785         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28786         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28787         * lib/unictype/pr_combining.h: Likewise.
28788         * lib/unictype/pr_composite.h: Likewise.
28789         * lib/unictype/pr_currency_symbol.h: Likewise.
28790         * lib/unictype/pr_dash.h: Likewise.
28791         * lib/unictype/pr_decimal_digit.h: Likewise.
28792         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28793         * lib/unictype/pr_deprecated.h: Likewise.
28794         * lib/unictype/pr_diacritic.h: Likewise.
28795         * lib/unictype/pr_extender.h: Likewise.
28796         * lib/unictype/pr_format_control.h: Likewise.
28797         * lib/unictype/pr_grapheme_base.h: Likewise.
28798         * lib/unictype/pr_grapheme_extend.h: Likewise.
28799         * lib/unictype/pr_grapheme_link.h: Likewise.
28800         * lib/unictype/pr_hex_digit.h: Likewise.
28801         * lib/unictype/pr_hyphen.h: Likewise.
28802         * lib/unictype/pr_id_continue.h: Likewise.
28803         * lib/unictype/pr_id_start.h: Likewise.
28804         * lib/unictype/pr_ideographic.h: Likewise.
28805         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28806         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28807         * lib/unictype/pr_ignorable_control.h: Likewise.
28808         * lib/unictype/pr_iso_control.h: Likewise.
28809         * lib/unictype/pr_join_control.h: Likewise.
28810         * lib/unictype/pr_left_of_pair.h: Likewise.
28811         * lib/unictype/pr_line_separator.h: Likewise.
28812         * lib/unictype/pr_logical_order_exception.h: Likewise.
28813         * lib/unictype/pr_lowercase.h: Likewise.
28814         * lib/unictype/pr_math.h: Likewise.
28815         * lib/unictype/pr_non_break.h: Likewise.
28816         * lib/unictype/pr_not_a_character.h: Likewise.
28817         * lib/unictype/pr_numeric.h: Likewise.
28818         * lib/unictype/pr_other_alphabetic.h: Likewise.
28819         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28820         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28821         * lib/unictype/pr_other_id_continue.h: Likewise.
28822         * lib/unictype/pr_other_id_start.h: Likewise.
28823         * lib/unictype/pr_other_lowercase.h: Likewise.
28824         * lib/unictype/pr_other_math.h: Likewise.
28825         * lib/unictype/pr_other_uppercase.h: Likewise.
28826         * lib/unictype/pr_paired_punctuation.h: Likewise.
28827         * lib/unictype/pr_paragraph_separator.h: Likewise.
28828         * lib/unictype/pr_pattern_syntax.h: Likewise.
28829         * lib/unictype/pr_pattern_white_space.h: Likewise.
28830         * lib/unictype/pr_private_use.h: Likewise.
28831         * lib/unictype/pr_punctuation.h: Likewise.
28832         * lib/unictype/pr_quotation_mark.h: Likewise.
28833         * lib/unictype/pr_radical.h: Likewise.
28834         * lib/unictype/pr_sentence_terminal.h: Likewise.
28835         * lib/unictype/pr_soft_dotted.h: Likewise.
28836         * lib/unictype/pr_space.h: Likewise.
28837         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28838         * lib/unictype/pr_titlecase.h: Likewise.
28839         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28840         * lib/unictype/pr_unified_ideograph.h: Likewise.
28841         * lib/unictype/pr_uppercase.h: Likewise.
28842         * lib/unictype/pr_variation_selector.h: Likewise.
28843         * lib/unictype/pr_white_space.h: Likewise.
28844         * lib/unictype/pr_xid_continue.h: Likewise.
28845         * lib/unictype/pr_xid_start.h: Likewise.
28846         * lib/unictype/pr_zero_width.h: Likewise.
28847         * lib/unictype/scripts.h: Likewise.
28848         * lib/unictype/scripts_byname.gperf: Likewise.
28849         * lib/unictype/sy_c_ident.h: Likewise.
28850         * lib/unictype/sy_c_whitespace.h: Likewise.
28851         * lib/unictype/sy_java_ident.h: Likewise.
28852         * lib/unictype/sy_java_whitespace.h: Likewise.
28853
28854         * lib/unictype/Makefile: New file.
28855         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28856         glibc.
28857         * lib/unictype/3level.h: New file, copied from glibc.
28858         * lib/unictype/3levelbit.h: New file.
28859
28860 2007-11-11  Bruno Haible  <bruno@clisp.org>
28861
28862         * modules/gperf: New file.
28863         * modules/iconv_open (Depends-on): Add it.
28864         (Makefile.am): Remove the GPERF definition.
28865
28866 2007-11-11  Bruno Haible  <bruno@clisp.org>
28867
28868         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28869         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28870
28871 2007-11-11  Bruno Haible  <bruno@clisp.org>
28872
28873         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28874         (usage): Remove function.
28875
28876 2007-11-11  Bruno Haible  <bruno@clisp.org>
28877
28878         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28879         gl_FUNC_CEILF_LIBS.
28880         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28881         gl_FUNC_CEIL_LIBS.
28882         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28883         gl_FUNC_CEILL_LIBS.
28884         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28885         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28886         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28887
28888 2007-11-11  Bruno Haible  <bruno@clisp.org>
28889
28890         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28891         roundf were declared but do not exist on functions.
28892         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28893         roundl were declared but do not exist on functions.
28894         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28895         HAVE_FLOORL_AND_CEILL, respectively.
28896         Needed for Sun C on Solaris 10.
28897
28898 2007-11-11  Bruno Haible  <bruno@clisp.org>
28899
28900         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28901         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28902         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28903         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28904         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28905         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28906         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28907         HAVE_DECL_ROUNDF.
28908         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28909         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28911         of HAVE_DECL_ROUND*.
28912         * modules/math (Makefile.am): Update.
28913
28914 2007-11-10  Bruno Haible  <bruno@clisp.org>
28915
28916         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28917         ptrdiff_t as m4/intl.m4.
28918
28919 2007-11-10  Jim Meyering  <meyering@redhat.com>
28920
28921         Avoid link failure for the argmatch test.
28922         * tests/test-argmatch.c (usage): Define function to avoid a link
28923         failure: argmatch_die requires a usage function.
28924
28925 2007-11-09  Bruno Haible  <bruno@clisp.org>
28926
28927         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28928         * doc/functions/vsnprintf.texi: Likewise.
28929         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28930         with a size argument < 2.
28931
28932 2007-11-09  Bruno Haible  <bruno@clisp.org>
28933
28934         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28935         buffer. Fixes an inefficiency introduced on 2007-11-03.
28936
28937 2007-11-09  Bruno Haible  <bruno@clisp.org>
28938
28939         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28940         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28941
28942 2007-11-08  Jim Meyering  <meyering@redhat.com>
28943
28944         Change cache variable name prefix "jm_" to "gl_" everywhere.
28945         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28946         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28947         * m4/uptime.m4: s/gl_/jm_/
28948
28949 2007-11-07  Bruno Haible  <bruno@clisp.org>
28950
28951         Update to GNU gettext 0.17.
28952         * m4/intl.m4: Update to GNU gettext 0.17.
28953         * m4/po.m4: Likewise.
28954         * modules/gettext (Files): Remove m4/ulonglong.m4.
28955         (configure.ac): Require gettext infrastructure from version 0.17.
28956
28957 2007-11-06  Bruno Haible  <bruno@clisp.org>
28958
28959         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28960         symbolic values are not defined in a public header.
28961         * lib/freadable.c (freadable) [QNX]: Likewise.
28962         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28963         * lib/freading.c (freading) [QNX]: Likewise.
28964         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28965         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28966         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28967         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28968         Reported by Alain Magloire.
28969
28970         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28971
28972 2007-11-05  Bruno Haible  <bruno@clisp.org>
28973
28974         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28975         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28976         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28977         Reported by Eric Blake.
28978
28979 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28980             Bruno Haible  <bruno@clisp.org>
28981
28982         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28983         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28984         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28985         (malloc): Undefine also before including <stdlib.h>.
28986         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28987         Needed on OSF/1 4.0.
28988
28989 2007-11-05  Jim Meyering  <meyering@redhat.com>
28990
28991         git-version-gen: sync from coreutils.
28992         * build-aux/git-version-gen: Add comments.
28993         Change the first '-' to '.' in the snapshot version string,
28994         e.g., 6.9-377-08144 -> 6.9.377-08144
28995         Remove first parameter.
28996         Don't declare a version "-dirty" merely because a time
28997         stamp has changed.
28998
28999 2007-11-04  Bruno Haible  <bruno@clisp.org>
29000
29001         * lib/lock.h: Protect all macro definitions containing an 'if'
29002         statement through a "do { ... } while (0)".
29003         * lib/tls.h: Likewise.
29004
29005 2007-11-04  Bruno Haible  <bruno@clisp.org>
29006
29007         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29008
29009 2007-11-04  Bruno Haible  <bruno@clisp.org>
29010
29011         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29012         * modules/fprintf-posix (Depends-on): Add nocrash.
29013         * modules/snprintf-posix (Depends-on): Likewise.
29014         * modules/sprintf-posix (Depends-on): Likewise.
29015         * modules/vasnprintf-posix (Depends-on): Likewise.
29016         * modules/vasprintf-posix (Depends-on): Likewise.
29017         * modules/vfprintf-posix (Depends-on): Likewise.
29018         * modules/vsnprintf-posix (Depends-on): Likewise.
29019         * modules/vsprintf-posix (Depends-on): Likewise.
29020         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29021         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29022         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29023         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29024         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29025         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29026         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29027
29028 2007-11-04  Bruno Haible  <bruno@clisp.org>
29029
29030         * modules/nocrash: New file.
29031         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29032         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29033
29034 2007-11-04  Bruno Haible  <bruno@clisp.org>
29035
29036         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29037         precision handling.
29038         * tests/test-vasprintf-posix.c (test_function): Likewise.
29039         * tests/test-snprintf-posix.h (test_function): Likewise.
29040         * tests/test-sprintf-posix.h (test_function): Likewise.
29041
29042         Fix *printf behaviour for large precisions on mingw and BeOS.
29043         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29044         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29046         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29048         gl_PRINTF_PRECISION and test its result. Invoke
29049         gl_PREREQ_VASNPRINTF_PRECISION.
29050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29051         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29054         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29056         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29057         * doc/functions/fprintf.texi: Update.
29058         * doc/functions/printf.texi: Update.
29059         * doc/functions/snprintf.texi: Update.
29060         * doc/functions/sprintf.texi: Update.
29061         * doc/functions/vfprintf.texi: Update.
29062         * doc/functions/vprintf.texi: Update.
29063         * doc/functions/vsnprintf.texi: Update.
29064         * doc/functions/vsprintf.texi: Update.
29065
29066 2007-11-04  Bruno Haible  <bruno@clisp.org>
29067
29068         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29069
29070 2007-11-04  Bruno Haible  <bruno@clisp.org>
29071
29072         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29073         Reported by Sylvain Beucler <beuc@gnu.org>.
29074
29075 2007-11-03  Bruno Haible  <bruno@clisp.org>
29076
29077         * tests/test-fprintf-posix2.sh: New file.
29078         * tests/test-fprintf-posix2.c: New file.
29079         * modules/fprintf-posix-tests (Files): Add them.
29080         (TESTS): Add test-fprintf-posix2.sh.
29081         (configure.ac): Check for getrlimit and setrlimit.
29082         (check_PROGRAMS): Add test-fprintf-posix2.
29083
29084         * tests/test-printf-posix2.sh: New file.
29085         * tests/test-printf-posix2.c: New file.
29086         * modules/printf-posix-tests (Files): Add them.
29087         (TESTS): Add test-printf-posix2.sh.
29088         (configure.ac): Check for getrlimit and setrlimit.
29089         (check_PROGRAMS): Add test-printf-posix2.
29090
29091         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29092         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29093         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29094         (decode_double): New function, copied from decode_long_double.
29095         (scale10_round_decimal_decoded): New function, extracted from
29096         scale10_round_decimal_long_double.
29097         (scale10_round_decimal_long_double): Use it.
29098         (scale10_round_decimal_double): New function.
29099         (floorlog10): New function.
29100         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29102         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29103         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29104         gl_PRINTF_ENOMEM and test its result. Invoke
29105         gl_PREREQ_VASNPRINTF_ENOMEM.
29106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29110         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29113         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29114         * modules/snprintf-posix (Depends-on): Likewise.
29115         * modules/sprintf-posix (Depends-on): Likewise.
29116         * modules/vasnprintf-posix (Depends-on): Likewise.
29117         * modules/vasprintf-posix (Depends-on): Likewise.
29118         * modules/vfprintf-posix (Depends-on): Likewise.
29119         * modules/vsnprintf-posix (Depends-on): Likewise.
29120         * modules/vsprintf-posix (Depends-on): Likewise.
29121         * doc/functions/fprintf.texi: Update.
29122         * doc/functions/printf.texi: Update.
29123         * doc/functions/snprintf.texi: Update.
29124         * doc/functions/sprintf.texi: Update.
29125         * doc/functions/vfprintf.texi: Update.
29126         * doc/functions/vprintf.texi: Update.
29127         * doc/functions/vsnprintf.texi: Update.
29128         * doc/functions/vsprintf.texi: Update.
29129
29130 2007-11-03  Bruno Haible  <bruno@clisp.org>
29131
29132         * modules/frexp-nolibm-tests: New file.
29133
29134         * modules/frexp-nolibm: New file.
29135         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29136
29137 2007-11-03  Bruno Haible  <bruno@clisp.org>
29138
29139         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29140         value is C99 compliant.
29141         Needed for OSF/1 5.1.
29142
29143 2007-11-03  Bruno Haible  <bruno@clisp.org>
29144
29145         Fix out-of-memory handling of vasnprintf.
29146         * lib/printf-parse.c: Include <errno.h>.
29147         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29148         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29149         is already set.
29150
29151 2007-11-02  Eric Blake  <ebb9@byu.net>
29152
29153         Fix tests on cygwin.
29154         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29155
29156 2007-11-01  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29159         warning.
29160         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29161         needed for POSIX compatibility.
29162
29163 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29164
29165         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29166         for compatibility with GNU.
29167
29168 2007-11-01  Bruno Haible  <bruno@clisp.org>
29169
29170         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29171         (putenv): Renamed from rpl_putenv. Change argument type from
29172         'const char *' to 'char *'.
29173         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29174         of defining putenv in config.h, just set REPLACE_PUTENV.
29175         * modules/putenv (Depends-on): Add stdlib.
29176         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29177         (Include): Use <stdlib.h>.
29178         * lib/stdlib.in.h (putenv): New declaration.
29179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29180         REPLACE_PUTENV.
29181         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29182         REPLACE_PUTENV.
29183         Needed for MacOS X 10.5.0.
29184         Reported by Peter O'Gorman <peter@pogma.com>.
29185
29186 2007-11-01  Jim Meyering  <meyering@redhat.com>
29187
29188         Treat an empty date string exactly like "0".
29189         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29190         if the remaining date string (to be parsed) is empty, use "0".
29191         Reported by Mischa Molhoek and discussed in this thread:
29192         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29193
29194 2007-10-31  Bruno Haible  <bruno@clisp.org>
29195
29196         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29197         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29198         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29199         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29200         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29201         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29202
29203 2007-10-31  Bruno Haible  <bruno@clisp.org>
29204
29205         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29206         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29207         (AC_TYPE_LONG_LONG_INT): Use it.
29208         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29209         it as well.
29210         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29211         to m4/longlong.m4.
29212         * modules/stdint (Files): Remove m4/ulonglong.m4.
29213         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29214         m4/ulonglong.m4.
29215         * modules/strtoumax (Files): Likewise.
29216
29217 2007-10-30  Bruno Haible  <bruno@clisp.org>
29218
29219         * modules/xvasprintf-posix: New file.
29220         Suggested by Eric Blake.
29221
29222 2007-10-30  Bruno Haible  <bruno@clisp.org>
29223
29224         * modules/xprintf-posix-tests: New file.
29225         * tests/test-xprintf-posix.sh: New file.
29226         * tests/test-xprintf-posix.c: New file.
29227         * tests/test-xfprintf-posix.c: New file.
29228
29229         * modules/xprintf-posix: New file.
29230
29231 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29232
29233         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29234         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29235         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29236
29237 2007-10-29  Bruno Haible  <bruno@clisp.org>
29238
29239         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29240         contain the special marker '_cv_'.
29241         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29242         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29243         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29244         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29245         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29246         Reported by Ralf Wildenhues.
29247
29248 2007-10-29  Bruno Haible  <bruno@clisp.org>
29249
29250         * gnulib-tool (func_import): When --lgpl is not specified, set
29251         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29252         GPLv3.
29253         Reported by Simon Josefsson.
29254
29255 2007-10-28  Bruno Haible  <bruno@clisp.org>
29256
29257         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29258         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29259         HAVE_DECL_ISFINITE.
29260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29261         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29262         HAVE_DECL_ISFINITE.
29263
29264 2007-10-28  Bruno Haible  <bruno@clisp.org>
29265
29266         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29267         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29268
29269 2007-10-28  Bruno Haible  <bruno@clisp.org>
29270
29271         Fix link errors with Sun C 5.0 on Solaris 10.
29272         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29273         function is declared but not present in the compiler's libm.
29274         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29275         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29276         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29277         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29278         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29279         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29280         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29282         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29283         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29284         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29285         HAVE_DECL_FLOORL.
29286
29287 2007-10-28  Bruno Haible  <bruno@clisp.org>
29288
29289         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29290         gl_FUNC_FLOORL. Cache the result.
29291         (gl_FUNC_FLOORL): Use it.
29292         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29293         gl_FUNC_CEILL. Cache the result.
29294         (gl_FUNC_CEILL): Use it.
29295
29296         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29297         gl_FUNC_FLOOR. Cache the result.
29298         (gl_FUNC_FLOOR): Use it.
29299         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29300         gl_FUNC_CEIL. Cache the result.
29301         (gl_FUNC_CEIL): Use it.
29302
29303         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29304         gl_FUNC_FLOORF. Cache the result.
29305         (gl_FUNC_FLOORF): Use it.
29306         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29307         gl_FUNC_CEILF. Cache the result.
29308         (gl_FUNC_CEILF): Use it.
29309
29310 2007-10-28  Bruno Haible  <bruno@clisp.org>
29311
29312         * gnulib-tool: Allow specifying the LGPL version number through
29313         --lgpl=2 or --lgpl=3.
29314         (func_usage): Document --lgpl with argument.
29315         Handle --lgpl=... arguments.
29316         (func_import): Recognize also gl_LGPL calls with an argument. When
29317         --lgpl=2 is used and the module's license is just LGPL, report an
29318         error. Set sed_transform_lib_file according to the lgpl variable. In
29319         the generated files, use --lgpl or gl_LGPL invocations with argument,
29320         if necessary.
29321         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29322         an LGPv2+ license.
29323         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29324         gl_LGPL macro.
29325
29326 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29327             Bruno Haible  <bruno@clisp.org>
29328
29329         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29330         (u16_uctomb_aux): Likewise.
29331         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29332         !HAVE_INLINE.
29333         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29334
29335 2007-10-28  Bruno Haible  <bruno@clisp.org>
29336
29337         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29338         Invoke AM_GETTEXT_OPTION if it exists.
29339         * modules/vasprintf: Likewise.
29340         * modules/verror: Likewise.
29341         * modules/xprintf: Likewise.
29342         * modules/xvasprintf: Likewise.
29343
29344 2007-10-27  Ben Pfaff  <blp@gnu.org>
29345
29346         * lib/math.in.h: Define isfinite macro and prototypes for
29347         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29348         implementations.
29349         * m4/math_h.m4: New substitutions for isfinite module.
29350         * lib/isfinite.c: New file.
29351         * m4/isfinite.m4: New file.
29352         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29353         * modules/isfinite: New file.
29354         * modules/isfinite-tests: New file.
29355         * tests/tests-isfinite.c: New file.
29356         * doc/functions/isfinite.texi: Mention isfinite module.
29357         * MODULES.html.sh: Mention new module.
29358
29359 2007-10-27  Ben Pfaff  <blp@gnu.org>
29360
29361         Ralf Wildenhues reported that Tru64 4.0D declares the round
29362         functions but does not have definitions.
29363         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29364         cannot be found in any library, set the output variable to
29365         "missing" instead of "".
29366         * m4/round.m4: Also use our substitute if we cannot find round in
29367         any library, even if it is declared.
29368         * m4/roundf.m4: Likewise for roundf.
29369         * m4/roundl.m4: Likewise for roundl.
29370         * lib/math.in.h: Undefine roundf, round, roundl before defining
29371         their replacements, to allow for hypothetical systems where these
29372         may be defined as macros but not available in libraries.
29373
29374 2007-10-27  Bruno Haible  <bruno@clisp.org>
29375
29376         * doc/gnulib.texi: Invoke @firstparagraphindent.
29377         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29378         changes in gnulib.
29379         (Source changes): New section.
29380
29381 2007-10-26  Bruno Haible  <bruno@clisp.org>
29382
29383         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29384         borrowed from autoconf.
29385
29386 2007-10-26  Bruno Haible  <bruno@clisp.org>
29387
29388         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29389         strerror returned the empty string. Needed on HP-UX 11.00.
29390
29391 2007-10-24  Micah Cowan  <micah@cowan.name>
29392
29393         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29394         * build-aux/bootstrap: Remove support for now-unnecessary option,
29395         --cvs-user, and envvars CVS_USER, CVS_RSH.
29396
29397 2007-10-24  Jim Meyering  <meyering@redhat.com>
29398
29399         Avoid diagnostics from sha1sum when there is no cached checksum.
29400         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29401         if the po.s1 file hasn't been created yet.
29402
29403         * build-aux/bootstrap: Sync from coreutils:
29404         2007-10-24  Jim Meyering  <meyering@redhat.com>
29405         Get gnulib from the git repository, not from an obsolete cvs one.
29406         * build-aux/bootstrap: Suggestion from Micah Cowan.
29407         2007-10-04  Jim Meyering  <jim@meyering.net>
29408         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29409         (update_po_files): Work also when there are no .po files in po/.
29410
29411 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29412
29413         * README: Append ".git" to git and cg examples.
29414         Problem reported by Benoit Sigoure.
29415
29416 2007-10-23  Micah Cowan  <micah@cowan.name>
29417
29418         * users.txt: Add wget.
29419
29420 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29421
29422         Fix linking of some unistdio tests on FreeBSD.
29423         * modules/unistdio/u16-vsnprintf-tests
29424         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29425         * modules/unistdio/u16-vsprintf-tests
29426         (test_u16_vsnprintf1_LDADD): Likewise.
29427         * modules/unistdio/u32-vsnprintf-tests
29428         (test_u32_vsnprintf1_LDADD): Likewise.
29429         * modules/unistdio/u32-vsprintf-tests
29430         (test_u32_vsprintf1_LDADD): Likewise.
29431         * modules/unistdio/u8-vsnprintf-tests
29432         (test_u8_vsnprintf1_LDADD): Likewise.
29433         * modules/unistdio/u8-vsprintf-tests
29434         (test_u8_vsprintf1_LDADD): Likewise.
29435         * modules/unistdio/ulc-vsnprintf-tests
29436         (test_ulc_vsnprintf1_LDADD): Likewise.
29437         * modules/unistdio/ulc-vsprintf-tests
29438         (test_ulc_vsprintf1_LDADD): Likewise.
29439
29440         Fix linking of some uniconv tests on FreeBSD.
29441         * modules/uniconv/u16-conv-from-enc-tests
29442         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29443         * modules/uniconv/u16-conv-to-enc-tests
29444         (test_u16_conv_to_enc_LDADD): Likewise.
29445         * modules/uniconv/u16-strconv-from-enc-tests
29446         (test_u16_strconv_from_enc_LDADD): Likewise.
29447         * modules/uniconv/u16-strconv-to-enc-tests
29448         (test_u16_strconv_to_enc_LDADD): Likewise.
29449         * modules/uniconv/u32-conv-from-enc-tests
29450         (test_u32_conv_from_enc_LDADD): Likewise.
29451         * modules/uniconv/u32-conv-to-enc-tests
29452         (test_u32_conv_to_enc_LDADD): Likewise.
29453         * modules/uniconv/u32-strconv-from-enc-tests
29454         (test_u32_strconv_from_enc_LDADD): Likewise.
29455         * modules/uniconv/u32-strconv-to-enc-tests
29456         (test_u32_strconv_to_enc_LDADD): Likewise.
29457         * modules/uniconv/u8-conv-from-enc-tests
29458         (test_u8_conv_from_enc_LDADD): Likewise.
29459         * modules/uniconv/u8-conv-to-enc-tests
29460         (test_u8_conv_to_enc_LDADD): Likewise.
29461         * modules/uniconv/u8-strconv-from-enc-tests
29462         (test_u8_strconv_from_enc_LDADD): Likewise.
29463         * modules/uniconv/u8-strconv-to-enc-tests
29464         (test_u8_strconv_to_enc_LDADD): Likewise.
29465
29466 2007-10-22  Bruno Haible  <bruno@clisp.org>
29467
29468         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29469         size.
29470
29471 2007-10-22  Eric Blake  <ebb9@byu.net>
29472
29473         Tweak x*printf documentation.
29474         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29475         variable name and comments.
29476         Suggested by Bruno Haible.
29477
29478 2007-10-22  Bruno Haible  <bruno@clisp.org>
29479
29480         * lib/acl.c (copy_acl): Fix file name in comment.
29481
29482 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29483
29484         Fix Tru64 problem with stdbool.h.
29485         * lib/stdbool.in.h (false, true):
29486         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29487         Don't declare as an enum in this situation; it runs afoul of Tru64.
29488         Problem reported by Steven M. Schweda in
29489         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29490
29491 2007-10-22  Eric Blake  <ebb9@byu.net>
29492
29493         Also wrap vf?printf.
29494         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29495         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29496         (xvprintf, xvfprintf): New functions.
29497
29498 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29499
29500         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29501         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29502
29503         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29504         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29505
29506 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29507
29508         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29509         by Bruno Haible.
29510
29511 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29512
29513         * lib/getloadavg.c
29514         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29515         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29516
29517         * tests/test-i-ring.c: Work for C89.
29518
29519 2007-10-22  Bruno Haible  <bruno@clisp.org>
29520
29521         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29522         -1u, in preprocessor expression, so that we don't test for the bug
29523         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29525
29526 2007-10-22  Eric Blake  <ebb9@byu.net>
29527
29528         * tests/test-yesno.sh: Silence stderr during test.
29529
29530 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29531
29532         * modules/crypto/gc-camellia: New file.
29533
29534         * m4/gc-camellia.m4: New file.
29535
29536         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29537
29538         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29539
29540 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29541
29542         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29543         --help to stdout.  Reported by sms@antinode.org (Steven
29544         M. Schweda).
29545
29546 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29547
29548         * users.txt: Fix link to libksba.
29549
29550 2007-10-21  Ben Pfaff  <blp@gnu.org>
29551
29552         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29553         round.c roundf implementation that depends on floorf and ceilf to
29554         be tested unconditionally.
29555
29556 2007-10-21  Ben Pfaff  <blp@gnu.org>
29557
29558         * m4/check-libm-func.m4: Removed.
29559         * m4/check-math-lib.m4: New file.
29560         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29561         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29562         definition and lack of AC_LIBOBJ([roundf]).
29563         * m4/roundl.m4: Ditto, and similarly for roundl.
29564         * modules/round: Reference new m4 file.
29565         * modules/roundf: Ditto.
29566         * modules/roundl: Ditto.
29567         * tests/test-round2.c (main): Use ROUND instead of round.
29568         Bug report from Bruno Haible.
29569
29570 2007-10-21  Bruno Haible  <bruno@clisp.org>
29571
29572         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29573         context.
29574
29575 2007-10-21  Bruno Haible  <bruno@clisp.org>
29576
29577         * tests/test-wcwidth.c (main): Allow negative result for some control
29578         characters.
29579
29580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29581         Needed on OSF/1 5.1.
29582
29583 2007-10-21  Bruno Haible  <bruno@clisp.org>
29584
29585         * tests/test-floorf1.c: Include isnanf.h.
29586         (main): Use isnanf() instead of isnan().
29587         * tests/test-ceilf1.c: Include isnanf.h.
29588         (main): Use isnanf() instead of isnan().
29589         * tests/test-truncf1.c: Include isnanf.h.
29590         (main): Use isnanf() instead of isnan().
29591         * tests/test-roundf1.c: Include isnanf.h.
29592         (main): Use isnanf() instead of isnan().
29593
29594 2007-10-21  Eric Blake  <ebb9@byu.net>
29595
29596         * users.txt: Update URL for m4.
29597
29598 2007-10-21  Bruno Haible  <bruno@clisp.org>
29599
29600         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29601
29602 2007-10-21  Bruno Haible  <bruno@clisp.org>
29603
29604         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29605         Git's management files if the CVS files are not present.
29606
29607 2007-10-20  Bruno Haible  <bruno@clisp.org>
29608
29609         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29610         gcc-3.4.x.
29611
29612 2007-10-20  Ben Pfaff  <blp@gnu.org>
29613
29614         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29615         implementations.
29616         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29617         * lib/round.c: New file.
29618         * lib/roundf.c: New file.
29619         * lib/roundl.c: New file.
29620         * m4/round.m4: New file.
29621         * m4/roundf.m4: New file.
29622         * m4/roundl.m4: New file.
29623         * m4/check-libm-func-m4: New file.
29624         * modules/math: Replace round, roundf, roundl related @VARS@ in
29625         math.in.h.
29626         * modules/round: New file.
29627         * modules/round-tests: New file.
29628         * modules/roundf: New file.
29629         * modules/roundf-tests: New file.
29630         * modules/roundl: New file.
29631         * modules/roundl-tests: New file.
29632         * tests/test-round1.c: New file.
29633         * tests/test-round2.c: New file.
29634         * tests/test-roundf1.c: New file.
29635         * tests/test-roundf2.c: New file.
29636         * tests/test-roundl.c: New file.
29637         * doc/functions/round.texi: Mention round module.
29638         * doc/functions/roundf.texi: Mention roundf module.
29639         * doc/functions/roundl.texi: Mention roundl module.
29640         * MODULES.html.sh: Mention new modules.
29641         Thanks to Bruno Haible for suggestions.
29642
29643 2007-10-20  Jim Meyering  <meyering@redhat.com>
29644
29645         * lib/xprintf.c: Include <config.h> unconditionally.
29646
29647         Change xprintf's license to GPL.
29648         * modules/xprintf (License): s/LGPL/GPL/, since this module
29649         depends on modules (exit and exitfail) which are GPL.
29650         Suggestion from Bruno Haible.
29651
29652         xprintf fixes.
29653         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29654         Use a clearer diagnostic.
29655         Patch from Bruno Haible.
29656
29657 2007-10-20  Bruno Haible  <bruno@clisp.org>
29658
29659         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29660         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29661         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29662
29663 2007-10-20  Bruno Haible  <bruno@clisp.org>
29664
29665         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29666         precision in the comparison result > x - 1 or similar.
29667         * tests/test-ceilf2.c (correct_result_p): Likewise.
29668         * tests/test-truncf2.c (correct_result_p): Likewise.
29669         * tests/test-trunc2.c (correct_result_p): Likewise.
29670         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29671
29672 2007-10-20  Bruno Haible  <bruno@clisp.org>
29673
29674         * modules/ceil: New file.
29675         * m4/ceil.m4: New file.
29676         * doc/functions/ceil.texi: Mention the 'ceil' module.
29677
29678 2007-10-20  Bruno Haible  <bruno@clisp.org>
29679
29680         * modules/floor: New file.
29681         * m4/floor.m4: New file.
29682         * doc/functions/floor.texi: Mention the 'floor' module.
29683
29684 2007-10-20  Bruno Haible  <bruno@clisp.org>
29685
29686         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29687         of %a.
29688         * modules/floorf-tests (Depends-on): Likewise.
29689         * modules/truncf-tests (Depends-on): Likewise.
29690         * modules/trunc-tests (Depends-on): Likewise.
29691         Reported by Ben Pfaff.
29692
29693 2007-10-19  Jim Meyering  <meyering@redhat.com>
29694
29695         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29696         Don't bother testing specific errno values.  Just test ferror.
29697
29698         New module: xprintf
29699         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29700
29701 2007-10-19  Bruno Haible  <bruno@clisp.org>
29702
29703         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29704         syntax.
29705         * modules/javaexec (Makefile.am): Likewise.
29706         * modules/relocatable-prog (Makefile.am): Likewise.
29707         Suggested by Jim Meyering.
29708
29709 2007-10-18  Bruno Haible  <bruno@clisp.org>
29710
29711         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29712         Reported by Jim Meyering.
29713
29714 2007-10-18  Eric Blake  <ebb9@byu.net>
29715
29716         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29717
29718 2007-10-18  Bruno Haible  <bruno@clisp.org>
29719
29720         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29721         the format string into writable memory. Needed in Fortify conditions.
29722
29723 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29724             Bruno Haible  <bruno@clisp.org>
29725
29726         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29727         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29728         * modules/trim (Depends-on): Add mbchar.
29729         (configure.ac): Add gl_FUNC_MBRTOWC.
29730         (Makefile.am): Augment lib_SOURCES.
29731
29732 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29733
29734         Modify glob.c to use fstatat and dirfd, to simplify it.
29735         Suggested by Eric Blake.
29736         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29737         Don't include <stdbool.h>; not used.
29738         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29739         (link_exists_p): Simplify implementation, since we can now assume
29740         dirfd and fstatat.
29741         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29742
29743 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29744
29745         * gnulib-tool (func_get_dependencies): Fix sed script to
29746         match only tests.
29747
29748 2007-10-17  Bruno Haible  <bruno@clisp.org>
29749
29750         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29751         allow locale names without encoding suffix.
29752         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29753         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29754
29755 2007-10-16  Bruno Haible  <bruno@clisp.org>
29756
29757         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29758         * lib/getgroups.c (getgroups): Likewise.
29759         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29760
29761 2007-10-16  Bruno Haible  <bruno@clisp.org>
29762
29763         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29764         * modules/malloc-posix (License): Likewise.
29765         * modules/realloc-posix (License): Likewise.
29766         * modules/calloc-posix (License): Likewise.
29767         * modules/intprops (License): Change from GPL to LGPL, with
29768         Paul Eggert's approval.
29769
29770 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29771
29772         Merge glibc changes into lib/glob.c.
29773
29774         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29775         2007-10-15 04:59:03 UTC.  Here are the changes:
29776
29777         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29778
29779         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29780
29781         * lib/glob.c: Add some branch prediction throughout.
29782
29783         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29784
29785         [BZ #5103]
29786         * lib/glob.c (glob): Recognize patterns starting \/.
29787
29788         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29789
29790         [BZ #3996]
29791         * lib/glob.c (attribute_hidden): Define if not defined.
29792         (glob): Unescape dirname, filename or username when needed and not
29793         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29794         is NULL.  Handle unescaped [ in pattern without closing ].
29795         Don't pass GLOB_CHECK down to recursive glob for directories.
29796         (__glob_pattern_type): New function.
29797         (__glob_pattern_p): Implement using __glob_pattern_type.
29798         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29799         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29800         Remove unreachable code.
29801
29802         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29803
29804         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29805         explain why there are no leaks.
29806
29807         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29808
29809         [BZ #3253]
29810         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29811         time, rather allocate increasingly bigger arrays of pointers, if
29812         possible with alloca, if too large with malloc.
29813
29814 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29815
29816         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29817         Problem reported by H.Merijn Brand in
29818         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29819         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29820         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29821
29822 2007-10-15  Bruno Haible  <bruno@clisp.org>
29823
29824         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29825         with explicit rpl_ prefix.
29826         * lib/fopen.c (fopen): Likewise.
29827         * lib/freopen.c (freopen): Likewise.
29828         * lib/iconv.c (iconv): Likewise.
29829         * lib/iconv_close.c (iconv_close): Likewise.
29830
29831 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29832
29833         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29834
29835 2007-10-15  Bruno Haible  <bruno@clisp.org>
29836
29837         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29838         <stddef.h> instead of <stdlib.h> since we only need NULL.
29839         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29840
29841 2007-10-15  Bruno Haible  <bruno@clisp.org>
29842
29843         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29844         Replace paragraph talking about LIBOBJS.
29845         Reported by Colin Watson <cjwatson@debian.org>.
29846
29847 2007-10-15  Bruno Haible  <bruno@clisp.org>
29848
29849         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29850         <stdlib.h> before using NULL.
29851
29852 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29853
29854         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29855         Reported by Albert Chin <china@thewrittenword.com>.
29856
29857 2007-10-14  Bruno Haible  <bruno@clisp.org>
29858
29859         * modules/iconv_open-utf-tests: New file.
29860         * tests/test-iconv-utf.c: New file.
29861
29862         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29863         * modules/iconv_open-utf: New file.
29864         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29865         (iconv, iconv_close): New declarations.
29866         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29867         be defined.
29868         (iconv_open): Add special handling of conversion between UTF-8 and
29869         UTF-{16,32}{BE,LE}.
29870         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29871         * lib/iconv_close.c: New file.
29872         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29873         gl_FUNC_ICONV_OPEN.
29874         (gl_FUNC_ICONV_OPEN): Use it.
29875         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29876         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29877         and REPLACE_ICONV_UTF.
29878         * modules/iconv_open (Depends-on): Add c-strcase.
29879         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29880         ICONV_CONST.
29881         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29882
29883 2007-10-13  Albert Chin  <china@thewrittenword.com>
29884             Bruno Haible  <bruno@clisp.org>
29885
29886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29887         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29888
29889 2007-10-13  Bruno Haible  <bruno@clisp.org>
29890
29891         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29892         defined, use the ISO C99 inline semantics.
29893         * lib/argp.h (ARGP_EI): Likewise.
29894
29895 2007-10-13  Bruno Haible  <bruno@clisp.org>
29896
29897         Handle 'inline' change in gcc 4.3.0.
29898         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29899         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29900         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29901         argp_fmtstream_point): Disable 'extern' declaration if the function
29902         definition is going to be provided inline.
29903         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29904         semantics, not the ISO C99 inline semantics.
29905         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29906         'extern' declaration if the function definition is going to be provided
29907         inline.
29908         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29909         the GNU C inline semantics, not the ISO C99 inline semantics. With
29910         GCC 4.2, avoid a warning.
29911
29912 2007-10-13  Bruno Haible  <bruno@clisp.org>
29913
29914         * lib/freading.h (freading): Enable the use of __freading for
29915         glibc >= 2.7.
29916         * lib/freading.c (freading): Likewise.
29917
29918 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29919
29920         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29921         "warning: C99 inline functions are not supported; using GNU89".
29922
29923 2007-10-12  Bruno Haible  <bruno@clisp.org>
29924
29925         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29926         of 2.
29927         * tests/test-ceilf2.c: New file.
29928         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29929
29930         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29931         * modules/ceilf-tests: Update.
29932
29933 2007-10-12  Bruno Haible  <bruno@clisp.org>
29934
29935         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29936         of 2.
29937         * tests/test-floorf2.c: New file.
29938         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29939
29940         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29941         * modules/floorf-tests: Update.
29942
29943 2007-10-12  Bruno Haible  <bruno@clisp.org>
29944
29945         * tests/test-trunc2.c: New file.
29946         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29947
29948         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29949         * modules/trunc-tests: Update.
29950
29951 2007-10-12  Bruno Haible  <bruno@clisp.org>
29952
29953         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29954         of 2.
29955         * tests/test-truncf2.c: New file.
29956         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29957
29958         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29959         * modules/truncf-tests: Update.
29960
29961 2007-10-11  Eric Blake  <ebb9@byu.net>
29962
29963         Don't claim strerror is broken on Interix.
29964         * doc/functions/strerror.texi (strerror): Known broken systems are
29965         now Solaris 8, and not Interix.
29966         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29967         Interix on cross-compile.
29968         Reported by Martin Koeppe in
29969         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29970
29971 2007-10-11  Bruno Haible  <bruno@clisp.org>
29972
29973         * modules/i-ring-tests: New file.
29974         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29975         instead of assert.
29976
29977 2007-10-11  Bruno Haible  <bruno@clisp.org>
29978
29979         * modules/filenamecat-tests: New file.
29980         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29981         * lib/filenamecat.c: Remove test code.
29982
29983 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29984
29985         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29986
29987         * lib/strerror.c: Include <string.h> always, to test interface,
29988         and to remove the need for the dummy.
29989         Include intprops.h to compute width instead of doing it ourselves
29990         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29991         (strerror): Define it to return NULL if there's no system strerror.
29992         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29993         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29994         ancient pre-strerror Unix systems well any more.  Saying "unknown
29995         system error" is enough.
29996         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29997         simpler strerror.c implementation.
29998         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29999         Simplify the tests to reflect the simpler strerror implementation.
30000         * modules/strerror (Depends-on): Add intprops.
30001
30002 2007-10-09  Eric Blake  <ebb9@byu.net>
30003
30004         Silence test-fpending.
30005         * modules/fpending-tests (Files): Add wrapper script.
30006         * tests/test-fpending.sh: New file.
30007
30008 2007-10-09  Bruno Haible  <bruno@clisp.org>
30009
30010         * MODULES.html.sh (func_module): Don't create a hyperlink for
30011         function names like 'printf_frexp'.
30012         (Misc): Add crc, memxor.
30013         (Characteristics of floating types): New section.
30014         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30015         isnanf-nolibm, signbit, trunc, truncf, truncl.
30016         (Enhancements for ISO C 99 functions): New subsection Input/output.
30017         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30018         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30019         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30020         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30021         (Enhancements for POSIX:2001 functions): Add chdir-long.
30022         (File system functions): Add areadlink, chdir-safer, read-file.
30023         Remove cycle-check.
30024         (File system as inode set): New section.
30025         (Date and time): Add gethrxtime.
30026         (Multithreading): Add openmp.
30027         (Internationalization functions): Add localename.
30028         (Unicode string functions): Add unistr/u*-mbsnlen.
30029         (Support for maintaining and releasing projects): Add git-version-gen.
30030         (Lone files): Remove directories.
30031
30032 2007-10-08  Ben Pfaff  <blp@gnu.org>
30033
30034         * lib/xmalloca.h: Fix typo in comment.
30035
30036 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30037
30038         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30039         when avoiding problems with integer overflow.  Use a portable test
30040         instead.
30041
30042 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30043
30044         * modules/dummy (License): Change to LGPLv2+.
30045         * modules/float (License): Likewise
30046         * modules/realloc (License): Likewise
30047         * modules/stdlib (License): Likewise
30048
30049 2007-10-07  Bruno Haible  <bruno@clisp.org>
30050
30051         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30052         * floor.c (TWO_MANT_DIG): Likewise.
30053         * ceil.c (TWO_MANT_DIG): Likewise.
30054         Reported by Ben Pfaff.
30055
30056 2007-10-07  Bruno Haible  <bruno@clisp.org>
30057
30058         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30059         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30060         * lib/frexp.c (FUNC): Likewise.
30061         * lib/printf-frexp.h (printf_frexp): Likewise.
30062         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30063         * lib/printf-frexp.c (FUNC): Likewise.
30064         Suggested by Jim Meyering.
30065
30066 2007-10-07  Jim Meyering  <meyering@redhat.com>
30067
30068         Make xnanosleep's integer overflow test more robust.
30069         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30070         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30071
30072 2007-10-07  Bruno Haible  <bruno@clisp.org>
30073
30074         * NEWS: Mention the license change.
30075
30076         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30077         abbreviations in the modules files.
30078
30079         Change copyright notice from GPLv2+ to GPLv3+.
30080         * README: Change copyright notice.
30081         * MODULES.html.sh: Likewise.
30082         * build-aux/bootstrap.conf: Likewise.
30083         * build-aux/config.libpath: Likewise.
30084         * build-aux/csharpcomp.sh.in: Likewise.
30085         * build-aux/csharpexec.sh.in: Likewise.
30086         * build-aux/install-reloc: Likewise.
30087         * build-aux/javacomp.sh.in: Likewise.
30088         * build-aux/javaexec.sh.in: Likewise.
30089         * build-aux/ldd.sh.in: Likewise.
30090         * build-aux/reloc-ldflags: Likewise.
30091         * build-aux/relocatable.sh.in: Likewise.
30092         * build-aux/x-to-1.in: Likewise.
30093         * check-module: Likewise.
30094         * config/srclistvars.sh: Likewise.
30095         * gnulib-tool: Likewise.
30096         * lib/acl-internal.h: Likewise.
30097         * lib/acl.c: Likewise.
30098         * lib/acl.h: Likewise.
30099         * lib/acl_entries.c: Likewise.
30100         * lib/areadlink-with-size.c: Likewise.
30101         * lib/areadlink.c: Likewise.
30102         * lib/areadlink.h: Likewise.
30103         * lib/argmatch.c: Likewise.
30104         * lib/argmatch.h: Likewise.
30105         * lib/argp-ba.c: Likewise.
30106         * lib/argp-eexst.c: Likewise.
30107         * lib/argp-fmtstream.c: Likewise.
30108         * lib/argp-fmtstream.h: Likewise.
30109         * lib/argp-fs-xinl.c: Likewise.
30110         * lib/argp-help.c: Likewise.
30111         * lib/argp-namefrob.h: Likewise.
30112         * lib/argp-parse.c: Likewise.
30113         * lib/argp-pin.c: Likewise.
30114         * lib/argp-pv.c: Likewise.
30115         * lib/argp-pvh.c: Likewise.
30116         * lib/argp-xinl.c: Likewise.
30117         * lib/argp.h: Likewise.
30118         * lib/at-func.c: Likewise.
30119         * lib/atanl.c: Likewise.
30120         * lib/backupfile.c: Likewise.
30121         * lib/backupfile.h: Likewise.
30122         * lib/basename.c: Likewise.
30123         * lib/binary-io.h: Likewise.
30124         * lib/byteswap.in.h: Likewise.
30125         * lib/c-stack.c: Likewise.
30126         * lib/c-stack.h: Likewise.
30127         * lib/c-strcasestr.c: Likewise.
30128         * lib/c-strcasestr.h: Likewise.
30129         * lib/c-strstr.c: Likewise.
30130         * lib/c-strstr.h: Likewise.
30131         * lib/c-strtod.c: Likewise.
30132         * lib/calloc.c: Likewise.
30133         * lib/canon-host.c: Likewise.
30134         * lib/canon-host.h: Likewise.
30135         * lib/canonicalize-lgpl.c: Likewise.
30136         * lib/canonicalize.c: Likewise.
30137         * lib/canonicalize.h: Likewise.
30138         * lib/ceil.c: Likewise.
30139         * lib/ceilf.c: Likewise.
30140         * lib/ceill.c: Likewise.
30141         * lib/chdir-long.c: Likewise.
30142         * lib/chdir-long.h: Likewise.
30143         * lib/chdir-safer.c: Likewise.
30144         * lib/chdir-safer.h: Likewise.
30145         * lib/chown.c: Likewise.
30146         * lib/classpath.c: Likewise.
30147         * lib/classpath.h: Likewise.
30148         * lib/clean-temp.c: Likewise.
30149         * lib/clean-temp.h: Likewise.
30150         * lib/cloexec.c: Likewise.
30151         * lib/close-stream.c: Likewise.
30152         * lib/closein.c: Likewise.
30153         * lib/closein.h: Likewise.
30154         * lib/closeout.c: Likewise.
30155         * lib/closeout.h: Likewise.
30156         * lib/concat-filename.c: Likewise.
30157         * lib/copy-file.c: Likewise.
30158         * lib/copy-file.h: Likewise.
30159         * lib/count-one-bits.h: Likewise.
30160         * lib/crc.c: Likewise.
30161         * lib/crc.h: Likewise.
30162         * lib/creat-safer.c: Likewise.
30163         * lib/csharpcomp.c: Likewise.
30164         * lib/csharpcomp.h: Likewise.
30165         * lib/csharpexec.c: Likewise.
30166         * lib/csharpexec.h: Likewise.
30167         * lib/cycle-check.c: Likewise.
30168         * lib/cycle-check.h: Likewise.
30169         * lib/diacrit.c: Likewise.
30170         * lib/diacrit.h: Likewise.
30171         * lib/diffseq.h: Likewise.
30172         * lib/dirchownmod.c: Likewise.
30173         * lib/dirent.in.h: Likewise.
30174         * lib/dirfd.c: Likewise.
30175         * lib/dirfd.h: Likewise.
30176         * lib/dirname.c: Likewise.
30177         * lib/dirname.h: Likewise.
30178         * lib/dummy.c: Likewise.
30179         * lib/dup-safer.c: Likewise.
30180         * lib/dup2.c: Likewise.
30181         * lib/eealloc.h: Likewise.
30182         * lib/error.c: Likewise.
30183         * lib/error.h: Likewise.
30184         * lib/euidaccess.c: Likewise.
30185         * lib/exclude.c: Likewise.
30186         * lib/exclude.h: Likewise.
30187         * lib/execute.c: Likewise.
30188         * lib/execute.h: Likewise.
30189         * lib/exitfail.c: Likewise.
30190         * lib/exitfail.h: Likewise.
30191         * lib/expl.c: Likewise.
30192         * lib/fatal-signal.c: Likewise.
30193         * lib/fatal-signal.h: Likewise.
30194         * lib/fbufmode.c: Likewise.
30195         * lib/fbufmode.h: Likewise.
30196         * lib/fchdir.c: Likewise.
30197         * lib/fchmodat.c: Likewise.
30198         * lib/fchownat.c: Likewise.
30199         * lib/fcntl--.h: Likewise.
30200         * lib/fcntl-safer.h: Likewise.
30201         * lib/fcntl.in.h: Likewise.
30202         * lib/fd-safer.c: Likewise.
30203         * lib/fflush.c: Likewise.
30204         * lib/file-has-acl.c: Likewise.
30205         * lib/file-set.c: Likewise.
30206         * lib/file-type.c: Likewise.
30207         * lib/file-type.h: Likewise.
30208         * lib/fileblocks.c: Likewise.
30209         * lib/filemode.c: Likewise.
30210         * lib/filemode.h: Likewise.
30211         * lib/filename.h: Likewise.
30212         * lib/filenamecat.c: Likewise.
30213         * lib/filenamecat.h: Likewise.
30214         * lib/findprog.c: Likewise.
30215         * lib/findprog.h: Likewise.
30216         * lib/float.in.h: Likewise.
30217         * lib/floor.c: Likewise.
30218         * lib/floorf.c: Likewise.
30219         * lib/floorl.c: Likewise.
30220         * lib/fopen-safer.c: Likewise.
30221         * lib/fopen.c: Likewise.
30222         * lib/fpending.c: Likewise.
30223         * lib/fpending.h: Likewise.
30224         * lib/fprintf.c: Likewise.
30225         * lib/fprintftime.h: Likewise.
30226         * lib/fpucw.h: Likewise.
30227         * lib/fpurge.c: Likewise.
30228         * lib/fpurge.h: Likewise.
30229         * lib/freadable.c: Likewise.
30230         * lib/freadable.h: Likewise.
30231         * lib/freadahead.c: Likewise.
30232         * lib/freadahead.h: Likewise.
30233         * lib/freading.c: Likewise.
30234         * lib/freading.h: Likewise.
30235         * lib/free.c: Likewise.
30236         * lib/freopen.c: Likewise.
30237         * lib/frexp.c: Likewise.
30238         * lib/frexpl.c: Likewise.
30239         * lib/fseek.c: Likewise.
30240         * lib/fseterr.c: Likewise.
30241         * lib/fseterr.h: Likewise.
30242         * lib/fstatat.c: Likewise.
30243         * lib/fstrcmp.c: Likewise.
30244         * lib/fstrcmp.h: Likewise.
30245         * lib/fsusage.c: Likewise.
30246         * lib/fsusage.h: Likewise.
30247         * lib/ftell.c: Likewise.
30248         * lib/ftello.c: Likewise.
30249         * lib/fts-cycle.c: Likewise.
30250         * lib/fts.c: Likewise.
30251         * lib/fts_.h: Likewise.
30252         * lib/full-read.c: Likewise.
30253         * lib/full-read.h: Likewise.
30254         * lib/full-write.c: Likewise.
30255         * lib/full-write.h: Likewise.
30256         * lib/fwritable.c: Likewise.
30257         * lib/fwritable.h: Likewise.
30258         * lib/fwriteerror.c: Likewise.
30259         * lib/fwriteerror.h: Likewise.
30260         * lib/fwriting.c: Likewise.
30261         * lib/fwriting.h: Likewise.
30262         * lib/gcd.c: Likewise.
30263         * lib/gcd.h: Likewise.
30264         * lib/getcwd.c: Likewise.
30265         * lib/getdate.h: Likewise.
30266         * lib/getdate.y: Likewise.
30267         * lib/getdomainname.c: Likewise.
30268         * lib/getdomainname.h: Likewise.
30269         * lib/getgroups.c: Likewise.
30270         * lib/gethostname.c: Likewise.
30271         * lib/gethrxtime.c: Likewise.
30272         * lib/gethrxtime.h: Likewise.
30273         * lib/getloadavg.c: Likewise.
30274         * lib/getndelim2.c: Likewise.
30275         * lib/getndelim2.h: Likewise.
30276         * lib/getnline.c: Likewise.
30277         * lib/getnline.h: Likewise.
30278         * lib/getopt.c: Likewise.
30279         * lib/getopt.in.h: Likewise.
30280         * lib/getopt1.c: Likewise.
30281         * lib/getopt_int.h: Likewise.
30282         * lib/getpagesize.h: Likewise.
30283         * lib/getsubopt.c: Likewise.
30284         * lib/gettime.c: Likewise.
30285         * lib/getugroups.c: Likewise.
30286         * lib/getugroups.h: Likewise.
30287         * lib/getusershell.c: Likewise.
30288         * lib/gl_anyavltree_list1.h: Likewise.
30289         * lib/gl_anyavltree_list2.h: Likewise.
30290         * lib/gl_anyhash_list1.h: Likewise.
30291         * lib/gl_anyhash_list2.h: Likewise.
30292         * lib/gl_anylinked_list1.h: Likewise.
30293         * lib/gl_anylinked_list2.h: Likewise.
30294         * lib/gl_anyrbtree_list1.h: Likewise.
30295         * lib/gl_anyrbtree_list2.h: Likewise.
30296         * lib/gl_anytree_list1.h: Likewise.
30297         * lib/gl_anytree_list2.h: Likewise.
30298         * lib/gl_anytree_oset.h: Likewise.
30299         * lib/gl_anytreehash_list1.h: Likewise.
30300         * lib/gl_anytreehash_list2.h: Likewise.
30301         * lib/gl_array_list.c: Likewise.
30302         * lib/gl_array_list.h: Likewise.
30303         * lib/gl_array_oset.c: Likewise.
30304         * lib/gl_array_oset.h: Likewise.
30305         * lib/gl_avltree_list.c: Likewise.
30306         * lib/gl_avltree_list.h: Likewise.
30307         * lib/gl_avltree_oset.c: Likewise.
30308         * lib/gl_avltree_oset.h: Likewise.
30309         * lib/gl_avltreehash_list.c: Likewise.
30310         * lib/gl_avltreehash_list.h: Likewise.
30311         * lib/gl_carray_list.c: Likewise.
30312         * lib/gl_carray_list.h: Likewise.
30313         * lib/gl_linked_list.c: Likewise.
30314         * lib/gl_linked_list.h: Likewise.
30315         * lib/gl_linkedhash_list.c: Likewise.
30316         * lib/gl_linkedhash_list.h: Likewise.
30317         * lib/gl_list.c: Likewise.
30318         * lib/gl_list.h: Likewise.
30319         * lib/gl_oset.c: Likewise.
30320         * lib/gl_oset.h: Likewise.
30321         * lib/gl_rbtree_list.c: Likewise.
30322         * lib/gl_rbtree_list.h: Likewise.
30323         * lib/gl_rbtree_oset.c: Likewise.
30324         * lib/gl_rbtree_oset.h: Likewise.
30325         * lib/gl_rbtreehash_list.c: Likewise.
30326         * lib/gl_rbtreehash_list.h: Likewise.
30327         * lib/gl_sublist.c: Likewise.
30328         * lib/gl_sublist.h: Likewise.
30329         * lib/group-member.c: Likewise.
30330         * lib/group-member.h: Likewise.
30331         * lib/hard-locale.c: Likewise.
30332         * lib/hard-locale.h: Likewise.
30333         * lib/hash-pjw.c: Likewise.
30334         * lib/hash-pjw.h: Likewise.
30335         * lib/hash-triple.c: Likewise.
30336         * lib/hash.c: Likewise.
30337         * lib/hash.h: Likewise.
30338         * lib/human.c: Likewise.
30339         * lib/human.h: Likewise.
30340         * lib/i-ring.c: Likewise.
30341         * lib/i-ring.h: Likewise.
30342         * lib/idcache.c: Likewise.
30343         * lib/imaxabs.c: Likewise.
30344         * lib/imaxdiv.c: Likewise.
30345         * lib/inet_pton.c: Likewise.
30346         * lib/inet_pton.h: Likewise.
30347         * lib/intprops.h: Likewise.
30348         * lib/inttostr.c: Likewise.
30349         * lib/inttostr.h: Likewise.
30350         * lib/inttypes.in.h: Likewise.
30351         * lib/isapipe.c: Likewise.
30352         * lib/isdir.c: Likewise.
30353         * lib/isnan.c: Likewise.
30354         * lib/isnan.h: Likewise.
30355         * lib/isnanf.c: Likewise.
30356         * lib/isnanf.h: Likewise.
30357         * lib/isnanl-nolibm.h: Likewise.
30358         * lib/isnanl.c: Likewise.
30359         * lib/isnanl.h: Likewise.
30360         * lib/javacomp.c: Likewise.
30361         * lib/javacomp.h: Likewise.
30362         * lib/javaexec.c: Likewise.
30363         * lib/javaexec.h: Likewise.
30364         * lib/javaversion.c: Likewise.
30365         * lib/javaversion.h: Likewise.
30366         * lib/javaversion.java: Likewise.
30367         * lib/lbrkprop.h: Likewise.
30368         * lib/lchmod.h: Likewise.
30369         * lib/lchown.c: Likewise.
30370         * lib/ldexpl.c: Likewise.
30371         * lib/linebreak.c: Likewise.
30372         * lib/linebreak.h: Likewise.
30373         * lib/linebuffer.c: Likewise.
30374         * lib/linebuffer.h: Likewise.
30375         * lib/locale.in.h: Likewise.
30376         * lib/logl.c: Likewise.
30377         * lib/long-options.c: Likewise.
30378         * lib/long-options.h: Likewise.
30379         * lib/lstat.c: Likewise.
30380         * lib/lstat.h: Likewise.
30381         * lib/math.in.h: Likewise.
30382         * lib/mbchar.c: Likewise.
30383         * lib/mbchar.h: Likewise.
30384         * lib/mbfile.h: Likewise.
30385         * lib/mbiter.h: Likewise.
30386         * lib/mbscasecmp.c: Likewise.
30387         * lib/mbscasestr.c: Likewise.
30388         * lib/mbschr.c: Likewise.
30389         * lib/mbscspn.c: Likewise.
30390         * lib/mbslen.c: Likewise.
30391         * lib/mbsncasecmp.c: Likewise.
30392         * lib/mbsnlen.c: Likewise.
30393         * lib/mbspbrk.c: Likewise.
30394         * lib/mbspcasecmp.c: Likewise.
30395         * lib/mbsrchr.c: Likewise.
30396         * lib/mbssep.c: Likewise.
30397         * lib/mbsspn.c: Likewise.
30398         * lib/mbsstr.c: Likewise.
30399         * lib/mbstok_r.c: Likewise.
30400         * lib/mbswidth.c: Likewise.
30401         * lib/mbswidth.h: Likewise.
30402         * lib/mbuiter.h: Likewise.
30403         * lib/memcasecmp.c: Likewise.
30404         * lib/memcasecmp.h: Likewise.
30405         * lib/memchr.c: Likewise.
30406         * lib/memcmp.c: Likewise.
30407         * lib/memcoll.c: Likewise.
30408         * lib/memcoll.h: Likewise.
30409         * lib/memcpy.c: Likewise.
30410         * lib/memrchr.c: Likewise.
30411         * lib/mkancesdirs.c: Likewise.
30412         * lib/mkdir-p.c: Likewise.
30413         * lib/mkdir-p.h: Likewise.
30414         * lib/mkdir.c: Likewise.
30415         * lib/mkdirat.c: Likewise.
30416         * lib/mkdtemp.c: Likewise.
30417         * lib/mkstemp-safer.c: Likewise.
30418         * lib/mkstemp.c: Likewise.
30419         * lib/modechange.c: Likewise.
30420         * lib/modechange.h: Likewise.
30421         * lib/mountlist.c: Likewise.
30422         * lib/mountlist.h: Likewise.
30423         * lib/mpsort.c: Likewise.
30424         * lib/nanosleep.c: Likewise.
30425         * lib/obstack.c: Likewise.
30426         * lib/obstack.h: Likewise.
30427         * lib/open-safer.c: Likewise.
30428         * lib/open.c: Likewise.
30429         * lib/openat-die.c: Likewise.
30430         * lib/openat-priv.h: Likewise.
30431         * lib/openat-proc.c: Likewise.
30432         * lib/openat.c: Likewise.
30433         * lib/openat.h: Likewise.
30434         * lib/pagealign_alloc.c: Likewise.
30435         * lib/pagealign_alloc.h: Likewise.
30436         * lib/physmem.c: Likewise.
30437         * lib/physmem.h: Likewise.
30438         * lib/pipe-safer.c: Likewise.
30439         * lib/pipe.c: Likewise.
30440         * lib/pipe.h: Likewise.
30441         * lib/posixtm.c: Likewise.
30442         * lib/posixtm.h: Likewise.
30443         * lib/posixver.c: Likewise.
30444         * lib/printf-frexp.c: Likewise.
30445         * lib/printf-frexp.h: Likewise.
30446         * lib/printf-frexpl.c: Likewise.
30447         * lib/printf-frexpl.h: Likewise.
30448         * lib/printf.c: Likewise.
30449         * lib/progname.c: Likewise.
30450         * lib/progname.h: Likewise.
30451         * lib/progreloc.c: Likewise.
30452         * lib/putenv.c: Likewise.
30453         * lib/quote.c: Likewise.
30454         * lib/quote.h: Likewise.
30455         * lib/quotearg.c: Likewise.
30456         * lib/quotearg.h: Likewise.
30457         * lib/raise.c: Likewise.
30458         * lib/readline.c: Likewise.
30459         * lib/readline.h: Likewise.
30460         * lib/readlink.c: Likewise.
30461         * lib/readtokens.c: Likewise.
30462         * lib/readtokens.h: Likewise.
30463         * lib/readtokens0.c: Likewise.
30464         * lib/readtokens0.h: Likewise.
30465         * lib/readutmp.c: Likewise.
30466         * lib/readutmp.h: Likewise.
30467         * lib/realloc.c: Likewise.
30468         * lib/relocwrapper.c: Likewise.
30469         * lib/rename-dest-slash.c: Likewise.
30470         * lib/rename.c: Likewise.
30471         * lib/rmdir.c: Likewise.
30472         * lib/rpmatch.c: Likewise.
30473         * lib/safe-read.c: Likewise.
30474         * lib/safe-read.h: Likewise.
30475         * lib/safe-write.c: Likewise.
30476         * lib/safe-write.h: Likewise.
30477         * lib/same-inode.h: Likewise.
30478         * lib/same.c: Likewise.
30479         * lib/same.h: Likewise.
30480         * lib/save-cwd.c: Likewise.
30481         * lib/save-cwd.h: Likewise.
30482         * lib/savedir.c: Likewise.
30483         * lib/savedir.h: Likewise.
30484         * lib/savewd.c: Likewise.
30485         * lib/savewd.h: Likewise.
30486         * lib/search.in.h: Likewise.
30487         * lib/setenv.c: Likewise.
30488         * lib/setenv.h: Likewise.
30489         * lib/settime.c: Likewise.
30490         * lib/sh-quote.c: Likewise.
30491         * lib/sh-quote.h: Likewise.
30492         * lib/sig2str.c: Likewise.
30493         * lib/sig2str.h: Likewise.
30494         * lib/signal.in.h: Likewise.
30495         * lib/signbitd.c: Likewise.
30496         * lib/signbitf.c: Likewise.
30497         * lib/signbitl.c: Likewise.
30498         * lib/sigprocmask.c: Likewise.
30499         * lib/sincosl.c: Likewise.
30500         * lib/sleep.c: Likewise.
30501         * lib/sprintf.c: Likewise.
30502         * lib/sqrtl.c: Likewise.
30503         * lib/stat-time.h: Likewise.
30504         * lib/stdio--.h: Likewise.
30505         * lib/stdio-safer.h: Likewise.
30506         * lib/stdlib--.h: Likewise.
30507         * lib/stdlib-safer.h: Likewise.
30508         * lib/stdlib.in.h: Likewise.
30509         * lib/stpcpy.c: Likewise.
30510         * lib/stpncpy.c: Likewise.
30511         * lib/strchrnul.c: Likewise.
30512         * lib/strcspn.c: Likewise.
30513         * lib/strerror.c: Likewise.
30514         * lib/strftime.c: Likewise.
30515         * lib/strftime.h: Likewise.
30516         * lib/striconveh.c: Likewise.
30517         * lib/striconveh.h: Likewise.
30518         * lib/striconveha.c: Likewise.
30519         * lib/striconveha.h: Likewise.
30520         * lib/stripslash.c: Likewise.
30521         * lib/strnlen1.c: Likewise.
30522         * lib/strnlen1.h: Likewise.
30523         * lib/strtod.c: Likewise.
30524         * lib/strtoimax.c: Likewise.
30525         * lib/strtok_r.c: Likewise.
30526         * lib/strtol.c: Likewise.
30527         * lib/strtoll.c: Likewise.
30528         * lib/strtoul.c: Likewise.
30529         * lib/strtoull.c: Likewise.
30530         * lib/sysexits.in.h: Likewise.
30531         * lib/tempname.c: Likewise.
30532         * lib/tempname.h: Likewise.
30533         * lib/timespec.h: Likewise.
30534         * lib/tls.c: Likewise.
30535         * lib/tls.h: Likewise.
30536         * lib/tmpdir.c: Likewise.
30537         * lib/tmpdir.h: Likewise.
30538         * lib/tmpfile-safer.c: Likewise.
30539         * lib/tmpfile.c: Likewise.
30540         * lib/trigl.c: Likewise.
30541         * lib/trigl.h: Likewise.
30542         * lib/trim.c: Likewise.
30543         * lib/trim.h: Likewise.
30544         * lib/trunc.c: Likewise.
30545         * lib/truncf.c: Likewise.
30546         * lib/truncl.c: Likewise.
30547         * lib/tsearch.c: Likewise.
30548         * lib/unicodeio.c: Likewise.
30549         * lib/unicodeio.h: Likewise.
30550         * lib/unistd--.h: Likewise.
30551         * lib/unistd-safer.h: Likewise.
30552         * lib/unistdio/ulc-fprintf.c: Likewise.
30553         * lib/unistdio/ulc-vfprintf.c: Likewise.
30554         * lib/unlinkdir.c: Likewise.
30555         * lib/unlinkdir.h: Likewise.
30556         * lib/unlocked-io.h: Likewise.
30557         * lib/unsetenv.c: Likewise.
30558         * lib/userspec.c: Likewise.
30559         * lib/utime.c: Likewise.
30560         * lib/utimecmp.c: Likewise.
30561         * lib/utimecmp.h: Likewise.
30562         * lib/utimens.c: Likewise.
30563         * lib/verify.h: Likewise.
30564         * lib/verror.c: Likewise.
30565         * lib/verror.h: Likewise.
30566         * lib/version-etc-fsf.c: Likewise.
30567         * lib/version-etc.c: Likewise.
30568         * lib/version-etc.h: Likewise.
30569         * lib/vfprintf.c: Likewise.
30570         * lib/vprintf.c: Likewise.
30571         * lib/vsprintf.c: Likewise.
30572         * lib/w32spawn.h: Likewise.
30573         * lib/wait-process.c: Likewise.
30574         * lib/wait-process.h: Likewise.
30575         * lib/wcwidth.c: Likewise.
30576         * lib/write-any-file.c: Likewise.
30577         * lib/xalloc-die.c: Likewise.
30578         * lib/xalloc.h: Likewise.
30579         * lib/xasprintf.c: Likewise.
30580         * lib/xgetcwd.c: Likewise.
30581         * lib/xgetcwd.h: Likewise.
30582         * lib/xgetdomainname.c: Likewise.
30583         * lib/xgetdomainname.h: Likewise.
30584         * lib/xgethostname.c: Likewise.
30585         * lib/xmalloc.c: Likewise.
30586         * lib/xmalloca.c: Likewise.
30587         * lib/xmalloca.h: Likewise.
30588         * lib/xmemcoll.c: Likewise.
30589         * lib/xnanosleep.c: Likewise.
30590         * lib/xreadlink.c: Likewise.
30591         * lib/xreadlink.h: Likewise.
30592         * lib/xsetenv.c: Likewise.
30593         * lib/xsetenv.h: Likewise.
30594         * lib/xstriconv.c: Likewise.
30595         * lib/xstriconv.h: Likewise.
30596         * lib/xstrndup.c: Likewise.
30597         * lib/xstrndup.h: Likewise.
30598         * lib/xstrtod.c: Likewise.
30599         * lib/xstrtod.h: Likewise.
30600         * lib/xstrtol-error.c: Likewise.
30601         * lib/xstrtol.c: Likewise.
30602         * lib/xstrtol.h: Likewise.
30603         * lib/xtime.h: Likewise.
30604         * lib/xvasprintf.c: Likewise.
30605         * lib/xvasprintf.h: Likewise.
30606         * lib/yesno.c: Likewise.
30607         * lib/yesno.h: Likewise.
30608         * posix-modules: Likewise.
30609         * tests/test-alloca-opt.c: Likewise.
30610         * tests/test-arcfour.c: Likewise.
30611         * tests/test-arctwo.c: Likewise.
30612         * tests/test-argmatch.c: Likewise.
30613         * tests/test-argp-2.sh: Likewise.
30614         * tests/test-argp.c: Likewise.
30615         * tests/test-arpa_inet.c: Likewise.
30616         * tests/test-array_list.c: Likewise.
30617         * tests/test-array_oset.c: Likewise.
30618         * tests/test-atexit.c: Likewise.
30619         * tests/test-avltree_list.c: Likewise.
30620         * tests/test-avltree_oset.c: Likewise.
30621         * tests/test-avltreehash_list.c: Likewise.
30622         * tests/test-base64.c: Likewise.
30623         * tests/test-binary-io.c: Likewise.
30624         * tests/test-byteswap.c: Likewise.
30625         * tests/test-c-ctype.c: Likewise.
30626         * tests/test-c-strcasecmp.c: Likewise.
30627         * tests/test-c-strcasestr.c: Likewise.
30628         * tests/test-c-strncasecmp.c: Likewise.
30629         * tests/test-c-strstr.c: Likewise.
30630         * tests/test-canonicalize-lgpl.c: Likewise.
30631         * tests/test-canonicalize.c: Likewise.
30632         * tests/test-carray_list.c: Likewise.
30633         * tests/test-ceilf.c: Likewise.
30634         * tests/test-ceill.c: Likewise.
30635         * tests/test-count-one-bits.c: Likewise.
30636         * tests/test-crc.c: Likewise.
30637         * tests/test-dirname.c: Likewise.
30638         * tests/test-fbufmode.c: Likewise.
30639         * tests/test-fcntl.c: Likewise.
30640         * tests/test-fflush.c: Likewise.
30641         * tests/test-floorf.c: Likewise.
30642         * tests/test-floorl.c: Likewise.
30643         * tests/test-fopen.c: Likewise.
30644         * tests/test-fprintf-posix.c: Likewise.
30645         * tests/test-fprintf-posix.h: Likewise.
30646         * tests/test-fpurge.c: Likewise.
30647         * tests/test-freadable.c: Likewise.
30648         * tests/test-freadahead.c: Likewise.
30649         * tests/test-freading.c: Likewise.
30650         * tests/test-freopen.c: Likewise.
30651         * tests/test-frexp.c: Likewise.
30652         * tests/test-frexpl.c: Likewise.
30653         * tests/test-fseek.c: Likewise.
30654         * tests/test-fseeko.c: Likewise.
30655         * tests/test-fseterr.c: Likewise.
30656         * tests/test-fstrcmp.c: Likewise.
30657         * tests/test-ftell.c: Likewise.
30658         * tests/test-ftello.c: Likewise.
30659         * tests/test-fwritable.c: Likewise.
30660         * tests/test-fwriting.c: Likewise.
30661         * tests/test-getaddrinfo.c: Likewise.
30662         * tests/test-getpass.c: Likewise.
30663         * tests/test-gettimeofday.c: Likewise.
30664         * tests/test-hmac-md5.c: Likewise.
30665         * tests/test-hmac-sha1.c: Likewise.
30666         * tests/test-iconv.c: Likewise.
30667         * tests/test-iconvme.c: Likewise.
30668         * tests/test-inttypes.c: Likewise.
30669         * tests/test-isnan.c: Likewise.
30670         * tests/test-isnanf.c: Likewise.
30671         * tests/test-isnanl-nolibm.c: Likewise.
30672         * tests/test-isnanl.c: Likewise.
30673         * tests/test-isnanl.h: Likewise.
30674         * tests/test-ldexpl.c: Likewise.
30675         * tests/test-linked_list.c: Likewise.
30676         * tests/test-linkedhash_list.c: Likewise.
30677         * tests/test-locale.c: Likewise.
30678         * tests/test-localename.c: Likewise.
30679         * tests/test-lock.c: Likewise.
30680         * tests/test-lseek.c: Likewise.
30681         * tests/test-malloca.c: Likewise.
30682         * tests/test-math.c: Likewise.
30683         * tests/test-mbscasecmp.c: Likewise.
30684         * tests/test-mbscasestr1.c: Likewise.
30685         * tests/test-mbscasestr2.c: Likewise.
30686         * tests/test-mbscasestr3.c: Likewise.
30687         * tests/test-mbscasestr4.c: Likewise.
30688         * tests/test-mbschr.c: Likewise.
30689         * tests/test-mbscspn.c: Likewise.
30690         * tests/test-mbsncasecmp.c: Likewise.
30691         * tests/test-mbspbrk.c: Likewise.
30692         * tests/test-mbspcasecmp.c: Likewise.
30693         * tests/test-mbsrchr.c: Likewise.
30694         * tests/test-mbsspn.c: Likewise.
30695         * tests/test-mbsstr1.c: Likewise.
30696         * tests/test-mbsstr2.c: Likewise.
30697         * tests/test-mbsstr3.c: Likewise.
30698         * tests/test-md5.c: Likewise.
30699         * tests/test-memmem.c: Likewise.
30700         * tests/test-netinet_in.c: Likewise.
30701         * tests/test-open.c: Likewise.
30702         * tests/test-printf-frexp.c: Likewise.
30703         * tests/test-printf-frexpl.c: Likewise.
30704         * tests/test-printf-posix.c: Likewise.
30705         * tests/test-printf-posix.h: Likewise.
30706         * tests/test-rbtree_list.c: Likewise.
30707         * tests/test-rbtree_oset.c: Likewise.
30708         * tests/test-rbtreehash_list.c: Likewise.
30709         * tests/test-read-file.c: Likewise.
30710         * tests/test-rijndael.c: Likewise.
30711         * tests/test-search.c: Likewise.
30712         * tests/test-signbit.c: Likewise.
30713         * tests/test-sleep.c: Likewise.
30714         * tests/test-snprintf-posix.c: Likewise.
30715         * tests/test-snprintf-posix.h: Likewise.
30716         * tests/test-snprintf.c: Likewise.
30717         * tests/test-sprintf-posix.c: Likewise.
30718         * tests/test-sprintf-posix.h: Likewise.
30719         * tests/test-stat-time.c: Likewise.
30720         * tests/test-stdbool.c: Likewise.
30721         * tests/test-stdint.c: Likewise.
30722         * tests/test-stdio.c: Likewise.
30723         * tests/test-stdlib.c: Likewise.
30724         * tests/test-stpncpy.c: Likewise.
30725         * tests/test-strcasestr.c: Likewise.
30726         * tests/test-striconv.c: Likewise.
30727         * tests/test-striconveh.c: Likewise.
30728         * tests/test-striconveha.c: Likewise.
30729         * tests/test-string.c: Likewise.
30730         * tests/test-sys_select.c: Likewise.
30731         * tests/test-sys_socket.c: Likewise.
30732         * tests/test-sys_stat.c: Likewise.
30733         * tests/test-sys_time.c: Likewise.
30734         * tests/test-sysexits.c: Likewise.
30735         * tests/test-time.c: Likewise.
30736         * tests/test-tls.c: Likewise.
30737         * tests/test-trunc.c: Likewise.
30738         * tests/test-truncf.c: Likewise.
30739         * tests/test-truncl.c: Likewise.
30740         * tests/test-unistd.c: Likewise.
30741         * tests/test-vasnprintf-posix.c: Likewise.
30742         * tests/test-vasnprintf-posix2.c: Likewise.
30743         * tests/test-vasnprintf.c: Likewise.
30744         * tests/test-vasprintf-posix.c: Likewise.
30745         * tests/test-vasprintf.c: Likewise.
30746         * tests/test-verify.c: Likewise.
30747         * tests/test-vfprintf-posix.c: Likewise.
30748         * tests/test-vprintf-posix.c: Likewise.
30749         * tests/test-vsnprintf-posix.c: Likewise.
30750         * tests/test-vsnprintf.c: Likewise.
30751         * tests/test-vsprintf-posix.c: Likewise.
30752         * tests/test-wchar.c: Likewise.
30753         * tests/test-wctype.c: Likewise.
30754         * tests/test-wcwidth.c: Likewise.
30755         * tests/test-xstrtol.c: Likewise.
30756         * tests/test-xvasprintf.c: Likewise.
30757         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30758         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30759         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30760         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30761         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30762         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30763         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30764         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30765         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30766         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30767         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30768         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30769         * tests/uniname/test-uninames.c: Likewise.
30770         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30771         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30772         * tests/unistdio/test-u16-printf1.h: Likewise.
30773         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30774         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30775         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30776         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30777         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30778         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30779         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30780         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30781         * tests/unistdio/test-u32-printf1.h: Likewise.
30782         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30783         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30784         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30785         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30786         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30787         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30788         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30789         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30790         * tests/unistdio/test-u8-printf1.h: Likewise.
30791         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30792         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30793         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30794         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30795         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30796         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30797         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30798         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30799         * tests/unistdio/test-ulc-printf1.h: Likewise.
30800         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30801         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30802         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30803         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30804         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30805         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30806         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30807         * tests/uniwidth/test-u16-width.c: Likewise.
30808         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30809         * tests/uniwidth/test-u32-width.c: Likewise.
30810         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30811         * tests/uniwidth/test-u8-width.c: Likewise.
30812         * tests/uniwidth/test-uc_width.c: Likewise.
30813         * config/srclist-update: Likewise.
30814         (fixlicense): Update to GPLv3+.
30815
30816         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30817         * tests/test-tsearch.c: Change copyright notice.
30818
30819         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30820         * lib/c-strcaseeq.h: Change copyright notice.
30821         * lib/streq.h: Likewise.
30822         * lib/uniconv.h: Likewise.
30823         * lib/uniconv/u-conv-from-enc.h: Likewise.
30824         * lib/uniconv/u-conv-to-enc.h: Likewise.
30825         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30826         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30827         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30828         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30829         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30830         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30831         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30832         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30833         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30834         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30835         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30836         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30837         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30838         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30839         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30840         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30841         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30842         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30843         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30844         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30845         * lib/uniname.h: Likewise.
30846         * lib/uniname/uniname.c: Likewise.
30847         * lib/unistdio.h: Likewise.
30848         * lib/unistdio/u-asnprintf.h: Likewise.
30849         * lib/unistdio/u-asprintf.h: Likewise.
30850         * lib/unistdio/u-printf-args.c: Likewise.
30851         * lib/unistdio/u-printf-args.h: Likewise.
30852         * lib/unistdio/u-printf-parse.h: Likewise.
30853         * lib/unistdio/u-snprintf.h: Likewise.
30854         * lib/unistdio/u-sprintf.h: Likewise.
30855         * lib/unistdio/u-vasprintf.h: Likewise.
30856         * lib/unistdio/u-vsnprintf.h: Likewise.
30857         * lib/unistdio/u-vsprintf.h: Likewise.
30858         * lib/unistdio/u16-asnprintf.c: Likewise.
30859         * lib/unistdio/u16-asprintf.c: Likewise.
30860         * lib/unistdio/u16-printf-parse.c: Likewise.
30861         * lib/unistdio/u16-snprintf.c: Likewise.
30862         * lib/unistdio/u16-sprintf.c: Likewise.
30863         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30864         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30865         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30866         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30867         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30868         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30869         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30870         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30871         * lib/unistdio/u16-vasnprintf.c: Likewise.
30872         * lib/unistdio/u16-vasprintf.c: Likewise.
30873         * lib/unistdio/u16-vsnprintf.c: Likewise.
30874         * lib/unistdio/u16-vsprintf.c: Likewise.
30875         * lib/unistdio/u32-asnprintf.c: Likewise.
30876         * lib/unistdio/u32-asprintf.c: Likewise.
30877         * lib/unistdio/u32-printf-parse.c: Likewise.
30878         * lib/unistdio/u32-snprintf.c: Likewise.
30879         * lib/unistdio/u32-sprintf.c: Likewise.
30880         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30881         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30882         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30883         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30884         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30885         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30886         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30887         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30888         * lib/unistdio/u32-vasnprintf.c: Likewise.
30889         * lib/unistdio/u32-vasprintf.c: Likewise.
30890         * lib/unistdio/u32-vsnprintf.c: Likewise.
30891         * lib/unistdio/u32-vsprintf.c: Likewise.
30892         * lib/unistdio/u8-asnprintf.c: Likewise.
30893         * lib/unistdio/u8-asprintf.c: Likewise.
30894         * lib/unistdio/u8-printf-parse.c: Likewise.
30895         * lib/unistdio/u8-snprintf.c: Likewise.
30896         * lib/unistdio/u8-sprintf.c: Likewise.
30897         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30898         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30899         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30900         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30901         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30902         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30903         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30904         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30905         * lib/unistdio/u8-vasnprintf.c: Likewise.
30906         * lib/unistdio/u8-vasprintf.c: Likewise.
30907         * lib/unistdio/u8-vsnprintf.c: Likewise.
30908         * lib/unistdio/u8-vsprintf.c: Likewise.
30909         * lib/unistdio/ulc-asnprintf.c: Likewise.
30910         * lib/unistdio/ulc-asprintf.c: Likewise.
30911         * lib/unistdio/ulc-printf-parse.c: Likewise.
30912         * lib/unistdio/ulc-snprintf.c: Likewise.
30913         * lib/unistdio/ulc-sprintf.c: Likewise.
30914         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30915         * lib/unistdio/ulc-vasprintf.c: Likewise.
30916         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30917         * lib/unistdio/ulc-vsprintf.c: Likewise.
30918         * lib/unistr.h: Likewise.
30919         * lib/unistr/u-cpy-alloc.h: Likewise.
30920         * lib/unistr/u-cpy.h: Likewise.
30921         * lib/unistr/u-endswith.h: Likewise.
30922         * lib/unistr/u-move.h: Likewise.
30923         * lib/unistr/u-set.h: Likewise.
30924         * lib/unistr/u-startswith.h: Likewise.
30925         * lib/unistr/u-stpcpy.h: Likewise.
30926         * lib/unistr/u-stpncpy.h: Likewise.
30927         * lib/unistr/u-strcat.h: Likewise.
30928         * lib/unistr/u-strcpy.h: Likewise.
30929         * lib/unistr/u-strcspn.h: Likewise.
30930         * lib/unistr/u-strdup.h: Likewise.
30931         * lib/unistr/u-strlen.h: Likewise.
30932         * lib/unistr/u-strncat.h: Likewise.
30933         * lib/unistr/u-strncpy.h: Likewise.
30934         * lib/unistr/u-strnlen.h: Likewise.
30935         * lib/unistr/u-strpbrk.h: Likewise.
30936         * lib/unistr/u-strspn.h: Likewise.
30937         * lib/unistr/u-strstr.h: Likewise.
30938         * lib/unistr/u-strtok.h: Likewise.
30939         * lib/unistr/u16-check.c: Likewise.
30940         * lib/unistr/u16-chr.c: Likewise.
30941         * lib/unistr/u16-cmp.c: Likewise.
30942         * lib/unistr/u16-cpy-alloc.c: Likewise.
30943         * lib/unistr/u16-cpy.c: Likewise.
30944         * lib/unistr/u16-endswith.c: Likewise.
30945         * lib/unistr/u16-mblen.c: Likewise.
30946         * lib/unistr/u16-mbsnlen.c: Likewise.
30947         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30948         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30949         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30950         * lib/unistr/u16-mbtouc.c: Likewise.
30951         * lib/unistr/u16-mbtoucr.c: Likewise.
30952         * lib/unistr/u16-move.c: Likewise.
30953         * lib/unistr/u16-next.c: Likewise.
30954         * lib/unistr/u16-prev.c: Likewise.
30955         * lib/unistr/u16-set.c: Likewise.
30956         * lib/unistr/u16-startswith.c: Likewise.
30957         * lib/unistr/u16-stpcpy.c: Likewise.
30958         * lib/unistr/u16-stpncpy.c: Likewise.
30959         * lib/unistr/u16-strcat.c: Likewise.
30960         * lib/unistr/u16-strchr.c: Likewise.
30961         * lib/unistr/u16-strcmp.c: Likewise.
30962         * lib/unistr/u16-strcpy.c: Likewise.
30963         * lib/unistr/u16-strcspn.c: Likewise.
30964         * lib/unistr/u16-strdup.c: Likewise.
30965         * lib/unistr/u16-strlen.c: Likewise.
30966         * lib/unistr/u16-strmblen.c: Likewise.
30967         * lib/unistr/u16-strmbtouc.c: Likewise.
30968         * lib/unistr/u16-strncat.c: Likewise.
30969         * lib/unistr/u16-strncmp.c: Likewise.
30970         * lib/unistr/u16-strncpy.c: Likewise.
30971         * lib/unistr/u16-strnlen.c: Likewise.
30972         * lib/unistr/u16-strpbrk.c: Likewise.
30973         * lib/unistr/u16-strrchr.c: Likewise.
30974         * lib/unistr/u16-strspn.c: Likewise.
30975         * lib/unistr/u16-strstr.c: Likewise.
30976         * lib/unistr/u16-strtok.c: Likewise.
30977         * lib/unistr/u16-to-u32.c: Likewise.
30978         * lib/unistr/u16-to-u8.c: Likewise.
30979         * lib/unistr/u16-uctomb-aux.c: Likewise.
30980         * lib/unistr/u16-uctomb.c: Likewise.
30981         * lib/unistr/u32-check.c: Likewise.
30982         * lib/unistr/u32-chr.c: Likewise.
30983         * lib/unistr/u32-cmp.c: Likewise.
30984         * lib/unistr/u32-cpy-alloc.c: Likewise.
30985         * lib/unistr/u32-cpy.c: Likewise.
30986         * lib/unistr/u32-endswith.c: Likewise.
30987         * lib/unistr/u32-mblen.c: Likewise.
30988         * lib/unistr/u32-mbsnlen.c: Likewise.
30989         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30990         * lib/unistr/u32-mbtouc.c: Likewise.
30991         * lib/unistr/u32-mbtoucr.c: Likewise.
30992         * lib/unistr/u32-move.c: Likewise.
30993         * lib/unistr/u32-next.c: Likewise.
30994         * lib/unistr/u32-prev.c: Likewise.
30995         * lib/unistr/u32-set.c: Likewise.
30996         * lib/unistr/u32-startswith.c: Likewise.
30997         * lib/unistr/u32-stpcpy.c: Likewise.
30998         * lib/unistr/u32-stpncpy.c: Likewise.
30999         * lib/unistr/u32-strcat.c: Likewise.
31000         * lib/unistr/u32-strchr.c: Likewise.
31001         * lib/unistr/u32-strcmp.c: Likewise.
31002         * lib/unistr/u32-strcpy.c: Likewise.
31003         * lib/unistr/u32-strcspn.c: Likewise.
31004         * lib/unistr/u32-strdup.c: Likewise.
31005         * lib/unistr/u32-strlen.c: Likewise.
31006         * lib/unistr/u32-strmblen.c: Likewise.
31007         * lib/unistr/u32-strmbtouc.c: Likewise.
31008         * lib/unistr/u32-strncat.c: Likewise.
31009         * lib/unistr/u32-strncmp.c: Likewise.
31010         * lib/unistr/u32-strncpy.c: Likewise.
31011         * lib/unistr/u32-strnlen.c: Likewise.
31012         * lib/unistr/u32-strpbrk.c: Likewise.
31013         * lib/unistr/u32-strrchr.c: Likewise.
31014         * lib/unistr/u32-strspn.c: Likewise.
31015         * lib/unistr/u32-strstr.c: Likewise.
31016         * lib/unistr/u32-strtok.c: Likewise.
31017         * lib/unistr/u32-to-u16.c: Likewise.
31018         * lib/unistr/u32-to-u8.c: Likewise.
31019         * lib/unistr/u32-uctomb.c: Likewise.
31020         * lib/unistr/u8-check.c: Likewise.
31021         * lib/unistr/u8-chr.c: Likewise.
31022         * lib/unistr/u8-cmp.c: Likewise.
31023         * lib/unistr/u8-cpy-alloc.c: Likewise.
31024         * lib/unistr/u8-cpy.c: Likewise.
31025         * lib/unistr/u8-endswith.c: Likewise.
31026         * lib/unistr/u8-mblen.c: Likewise.
31027         * lib/unistr/u8-mbsnlen.c: Likewise.
31028         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31029         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31030         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31031         * lib/unistr/u8-mbtouc.c: Likewise.
31032         * lib/unistr/u8-mbtoucr.c: Likewise.
31033         * lib/unistr/u8-move.c: Likewise.
31034         * lib/unistr/u8-next.c: Likewise.
31035         * lib/unistr/u8-prev.c: Likewise.
31036         * lib/unistr/u8-set.c: Likewise.
31037         * lib/unistr/u8-startswith.c: Likewise.
31038         * lib/unistr/u8-stpcpy.c: Likewise.
31039         * lib/unistr/u8-stpncpy.c: Likewise.
31040         * lib/unistr/u8-strcat.c: Likewise.
31041         * lib/unistr/u8-strchr.c: Likewise.
31042         * lib/unistr/u8-strcmp.c: Likewise.
31043         * lib/unistr/u8-strcpy.c: Likewise.
31044         * lib/unistr/u8-strcspn.c: Likewise.
31045         * lib/unistr/u8-strdup.c: Likewise.
31046         * lib/unistr/u8-strlen.c: Likewise.
31047         * lib/unistr/u8-strmblen.c: Likewise.
31048         * lib/unistr/u8-strmbtouc.c: Likewise.
31049         * lib/unistr/u8-strncat.c: Likewise.
31050         * lib/unistr/u8-strncmp.c: Likewise.
31051         * lib/unistr/u8-strncpy.c: Likewise.
31052         * lib/unistr/u8-strnlen.c: Likewise.
31053         * lib/unistr/u8-strpbrk.c: Likewise.
31054         * lib/unistr/u8-strrchr.c: Likewise.
31055         * lib/unistr/u8-strspn.c: Likewise.
31056         * lib/unistr/u8-strstr.c: Likewise.
31057         * lib/unistr/u8-strtok.c: Likewise.
31058         * lib/unistr/u8-to-u16.c: Likewise.
31059         * lib/unistr/u8-to-u32.c: Likewise.
31060         * lib/unistr/u8-uctomb-aux.c: Likewise.
31061         * lib/unistr/u8-uctomb.c: Likewise.
31062         * lib/unitypes.h: Likewise.
31063         * lib/uniwidth.h: Likewise.
31064         * lib/uniwidth/cjk.h: Likewise.
31065         * lib/uniwidth/u16-strwidth.c: Likewise.
31066         * lib/uniwidth/u16-width.c: Likewise.
31067         * lib/uniwidth/u32-strwidth.c: Likewise.
31068         * lib/uniwidth/u32-width.c: Likewise.
31069         * lib/uniwidth/u8-strwidth.c: Likewise.
31070         * lib/uniwidth/u8-width.c: Likewise.
31071         * lib/uniwidth/width.c: Likewise.
31072
31073 2007-10-07  Bruno Haible  <bruno@clisp.org>
31074
31075         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31076         The file is still under LGPL (see modules/inttypes).
31077
31078 2007-10-06  Bruno Haible  <bruno@clisp.org>
31079
31080         * modules/trunc (Dependencies): Add 'extensions'.
31081         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31082         Reported by Ben Pfaff <blp@gnu.org>.
31083
31084 2007-10-06  Bruno Haible  <bruno@clisp.org>
31085
31086         * modules/freopen-tests: New file.
31087         * tests/test-freopen.c: New file.
31088
31089         * modules/fopen-tests: New file.
31090         * tests/test-fopen.c: New file.
31091
31092         * modules/fopen: New file.
31093         * lib/fopen.c: New file.
31094         * m4/fopen.m4: New file.
31095         * modules/freopen: New file.
31096         * lib/freopen.c: New file.
31097         * m4/freopen.m4: New file.
31098         * lib/stdio.in.h (fopen, freopen): New declarations.
31099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31100         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31101         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31102         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31103         * doc/functions/fopen.texi: Mention the 'fopen' module.
31104         * doc/functions/freopen.texi: Mention the 'freopen' module.
31105
31106 2007-10-06  Bruno Haible  <bruno@clisp.org>
31107
31108         * modules/open-tests: New file.
31109         * tests/test-open.c: New file.
31110
31111         * modules/open: New file.
31112         * lib/open.c: New file.
31113         * m4/open.m4: New file.
31114         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31115         lib/open.c does.
31116         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31117         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31118         macros.
31119         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31120         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31121         REPLACE_OPEN.
31122         * doc/functions/open.texi: Mention the 'open' module.
31123
31124 2007-10-04  Bruno Haible  <bruno@clisp.org>
31125
31126         * modules/ceill-tests: New file.
31127         * tests/test-ceill.c: New file.
31128
31129         * modules/ceill: New file.
31130         * lib/ceill.c: Replace entire file.
31131         * m4/ceill.m4: New file.
31132         * lib/math.in.h (ceill): Replace declaration.
31133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31134         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31135         * doc/functions/ceill.texi: Mention the 'ceill' module.
31136         * modules/mathl (Files): Remove lib/ceill.c.
31137         (Depends-on): Add ceill.
31138
31139 2007-10-04  Bruno Haible  <bruno@clisp.org>
31140
31141         * modules/ceilf-tests: New file.
31142         * tests/test-ceilf.c: New file.
31143
31144         * modules/ceilf: New file.
31145         * lib/ceil.c: New file.
31146         * lib/ceilf.c: New file.
31147         * m4/ceilf.m4: New file.
31148         * lib/math.in.h (ceilf): New declaration.
31149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31150         HAVE_DECL_CEILF.
31151         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31152         HAVE_DECL_CEILF.
31153         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31154
31155 2007-10-04  Bruno Haible  <bruno@clisp.org>
31156
31157         * modules/floorl-tests: New file.
31158         * tests/test-floorl.c: New file.
31159
31160         * modules/floorl: New file.
31161         * lib/floorl.c: Replace entire file.
31162         * m4/floorl.m4: New file.
31163         * lib/math.in.h (floorl): Replace declaration.
31164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31165         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31166         * doc/functions/floorl.texi: Mention the 'floorl' module.
31167         * modules/mathl (Files): Remove lib/floorl.c.
31168         (Depends-on): Add floorl.
31169
31170 2007-10-04  Bruno Haible  <bruno@clisp.org>
31171
31172         * modules/floorf-tests: New file.
31173         * tests/test-floorf.c: New file.
31174
31175         * modules/floorf: New file.
31176         * lib/floor.c: New file.
31177         * lib/floorf.c: New file.
31178         * m4/floorf.m4: New file.
31179         * lib/math.in.h (floorf): New declaration.
31180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31181         HAVE_DECL_FLOORF.
31182         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31183         HAVE_DECL_FLOORF.
31184         * doc/functions/floorf.texi: Mention the 'floorf' module.
31185
31186 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31187             Bruno Haible  <bruno@clisp.org>
31188
31189         Advertise for the Git server instead of the CVS server.
31190         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31191         repository instead of the CVS one.
31192         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31193         about all VCS systems generically.
31194         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31195
31196 2007-10-04  Bruno Haible  <bruno@clisp.org>
31197
31198         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31199         means.
31200         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31201
31202 2007-10-04  Bruno Haible  <bruno@clisp.org>
31203
31204         * modules/truncl-tests: New file.
31205         * tests/test-truncl.c: New file.
31206
31207         * modules/truncl: New file.
31208         * lib/truncl.c: New file.
31209         * m4/truncl.m4: New file.
31210         * lib/math.in.h (truncl): New declaration.
31211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31212         HAVE_DECL_TRUNCL.
31213         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31214         HAVE_DECL_TRUNCL.
31215         * doc/functions/truncl.texi: Mention the 'truncl' module.
31216
31217 2007-10-04  Bruno Haible  <bruno@clisp.org>
31218
31219         * modules/truncf-tests: New file.
31220         * tests/test-truncf.c: New file.
31221
31222         * modules/truncf: New file.
31223         * lib/trunc.c: Make paramerizable through USE_* macros.
31224         * lib/truncf.c: New file.
31225         * m4/truncf.m4: New file.
31226         * lib/math.in.h (truncf): New declaration.
31227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31228         HAVE_DECL_TRUNCF.
31229         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31230         HAVE_DECL_TRUNCF.
31231         * doc/functions/truncf.texi: Mention the 'truncf' module.
31232
31233 2007-10-03  Bruno Haible  <bruno@clisp.org>
31234
31235         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31236         augmentation also for tests modules.
31237         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31238         * modules/atexit-tests (Makefile.am): Likewise.
31239         * modules/binary-io-tests (Makefile.am): Likewise.
31240         * modules/c-strcase-tests (Makefile.am): Likewise.
31241         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31242         * modules/canonicalize-tests (Makefile.am): Likewise.
31243         * modules/closein-tests (Makefile.am): Likewise.
31244         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31245         * modules/freadahead-tests (Makefile.am): Likewise.
31246         * modules/fseek-tests (Makefile.am): Likewise.
31247         * modules/fseeko-tests (Makefile.am): Likewise.
31248         * modules/ftell-tests (Makefile.am): Likewise.
31249         * modules/ftello-tests (Makefile.am): Likewise.
31250         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31251         * modules/isnanl-tests (Makefile.am): Likewise.
31252         * modules/lseek-tests (Makefile.am): Likewise.
31253         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31254         * modules/mbscasestr-tests (Makefile.am): Likewise.
31255         * modules/mbschr-tests (Makefile.am): Likewise.
31256         * modules/mbscspn-tests (Makefile.am): Likewise.
31257         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31258         * modules/mbspbrk-tests (Makefile.am): Likewise.
31259         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31260         * modules/mbsrchr-tests (Makefile.am): Likewise.
31261         * modules/mbsspn-tests (Makefile.am): Likewise.
31262         * modules/mbsstr-tests (Makefile.am): Likewise.
31263         * modules/printf-posix-tests (Makefile.am): Likewise.
31264         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31265         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31266         * modules/tsearch-tests (Makefile.am): Likewise.
31267         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31268         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31269         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31270         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31271         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31272         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31273         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31274         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31275         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31276         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31277         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31278         * modules/xstrtol-tests (Makefile.am): Likewise.
31279         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31280         * modules/yesno-tests (Makefile.am): Likewise.
31281
31282 2007-10-03  Bruno Haible  <bruno@clisp.org>
31283
31284         * modules/trunc-tests: New file.
31285         * tests/test-trunc.c: New file.
31286
31287         * modules/trunc: New file.
31288         * lib/trunc.c: New file.
31289         * m4/trunc.m4: New file.
31290         * lib/math.in.h (trunc): New declaration.
31291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31292         HAVE_DECL_TRUNC.
31293         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31294         HAVE_DECL_TRUNC.
31295         * doc/functions/trunc.texi: Mention the 'trunc' module.
31296
31297 2007-10-03  Bruno Haible  <bruno@clisp.org>
31298
31299         * tests/test-fpending.c: New file, mostly copied
31300         from coreutils/lib/t-fpending.c.
31301         * modules/fpending-tests: New file.
31302
31303 2007-10-03  Bruno Haible  <bruno@clisp.org>
31304
31305         Port the stdio extensions to QNX (untested).
31306         * lib/fseterr.c (fseterr): Add support for QNX.
31307         * lib/fbufmode.c (fbufmode): Likewise.
31308         * lib/freadable.c (freadable): Likewise.
31309         * lib/fwritable.c (fwritable): Likewise.
31310         * lib/freading.c (freading): Likewise.
31311         * lib/fwriting.c (fwriting): Likewise.
31312         * lib/freadahead.c (freadahed): Likewise.
31313         * lib/fpurge.c (fpurge): Likewise.
31314         * lib/fseeko.c (rpl_fseeko): Likewise.
31315
31316 2007-10-03  Bruno Haible  <bruno@clisp.org>
31317             Jim Meyering  <jim@meyering.net>
31318             Eric Blake  <ebb9@byu.net>
31319
31320         * doc/relocatable.texi: Use @command instead of @program.
31321
31322 2007-10-02  Jim Meyering  <jim@meyering.net>
31323
31324         Perform one more "_.h" -> ".in.h" substitution.
31325         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31326         instead of unistd_.h here, too.
31327
31328 2007-10-01  Bruno Haible  <bruno@clisp.org>
31329
31330         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31331         Needed for the alloca-opt module.
31332
31333 2007-09-30  Bruno Haible  <bruno@clisp.org>
31334
31335         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31336         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31337         alloca_.h.
31338         * lib/argz.in.h: Renamed from lib/argz_.h.
31339         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31340         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31341         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31342         byteswap_.h.
31343         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31344         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31345         dirent_.h.
31346         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31347         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31348         fcntl_.h.
31349         * lib/float.in.h: Renamed from lib/float_.h.
31350         * modules/float (Files, Makefile.am): Use float.in.h instead of
31351         float_.h.
31352         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31353         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31354         fnmatch_.h.
31355         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31356         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31357         getopt_.h.
31358         * lib/glob.in.h: Renamed from lib/glob_.h.
31359         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31360         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31361         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31362         iconv_.h.
31363         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31364         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31365         inttypes_.h.
31366         * lib/locale.in.h: Renamed from lib/locale_.h.
31367         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31368         locale_.h.
31369         * lib/math.in.h: Renamed from lib/math_.h.
31370         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31371         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31372         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31373         of netinet_in_.h. Add dependency.
31374         * lib/poll.in.h: Renamed from lib/poll_.h.
31375         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31376         * lib/search.in.h: Renamed from lib/search_.h.
31377         * modules/search (Files, Makefile.am): Use search.in.h instead of
31378         search_.h.
31379         * lib/signal.in.h: Renamed from lib/signal_.h.
31380         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31381         _signal.h.
31382         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31383         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31384         stdbool_.h.
31385         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31386         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31387         stdint_.h.
31388         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31389         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31390         stdio_.h.
31391         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31392         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31393         stdlib_.h.
31394         * lib/string.in.h: Renamed from lib/string_.h.
31395         * modules/string (Files, Makefile.am): Use string.in.h instead of
31396         string_.h.
31397         * doc/gnulib-tool.texi (Initial import): Update.
31398         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31399         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31400         of sys_select_.h. Add dependency.
31401         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31402         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31403         of sys_socket_.h.
31404         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31405         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31406         sys_stat_.h.
31407         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31408         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31409         sys_time_.h.
31410         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31411         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31412         sysexits_.h.
31413         * lib/time.in.h: Renamed from lib/time_.h.
31414         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31415         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31416         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31417         unistd_.h.
31418         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31419         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31420         wchar_.h.
31421         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31422         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31423         wctype_.h.
31424         * build-aux/bootstrap (slurp): Update.
31425         * lib/.cppi-disable: Update.
31426
31427 2007-09-30  Bruno Haible  <bruno@clisp.org>
31428
31429         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31430         Needed on BeOS.
31431
31432 2007-09-30  Bruno Haible  <bruno@clisp.org>
31433
31434         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31435
31436 2007-09-29  Bruno Haible  <bruno@clisp.org>
31437
31438         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31439
31440 2007-09-29  Bruno Haible  <bruno@clisp.org>
31441
31442         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31443         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31444         * build-aux/install-reloc: Compile also areadlink.c.
31445         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31446
31447 2007-09-29  Bruno Haible  <bruno@clisp.org>
31448
31449         * gnulib-tool (func_emit_initmacro_done): Indentation.
31450
31451 2007-09-29  Bruno Haible  <bruno@clisp.org>
31452
31453         * README: Add CVS checkout update instructions.
31454         Info from Bob Proulx <bob@proulx.com>.
31455
31456 2007-09-28  Eric Blake  <ebb9@byu.net>
31457
31458         Provide move-if-change.
31459         * build-aux/move-if-change: New file, based on best practice
31460         rather than any canonical upstream location.
31461
31462 2007-09-28  Jim Meyering  <jim@meyering.net>
31463
31464         Fix canonicalize loop-detection corner case.
31465         Do not attempt to stat the symlink values stored via seen_triple.
31466         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31467         on linux-2.6.18, (but not 2.6.22).
31468         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31469         triple_compare.  The former compares dev,ino,filename, while the latter
31470         would actually stat dirname(filename) when dev and ino were equal.
31471         * lib/hash-triple.c: Install <string.h>.
31472         (STREQ): Define.
31473         (triple_compare_ino_str): New function.
31474         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31475
31476 2007-09-28  Eric Blake  <ebb9@byu.net>
31477
31478         Enforce that AC_REPLACE_FUNCS files exist.
31479         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31480         override check for typos.
31481
31482         Fix test-closein on Solaris 10.
31483         * tests/test-closein.c (main): Don't assume stdin can be inherited
31484         closed on all systems.
31485         * tests/test-closein.sh: Likewise.
31486         Reported by Piotr Tarnowski.
31487
31488 2007-09-28  Jim Meyering  <jim@meyering.net>
31489
31490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31491
31492 2007-09-27  Jim Meyering  <jim@meyering.net>
31493
31494         canonicalize: Avoid a false-positive cycle failure.
31495         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31496         Sort.  Remove cycle-check.
31497         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31498         not cycle-check.h.
31499         (seen_triple): New function.
31500         (canonicalize_filename_mode): Use it instead of cycle-check.
31501         * tests/test-canonicalize.c: Add a test for this bug.
31502         * tests/test-canonicalize.sh: Set up and run the test.
31503
31504         New module, file-set, from coreutils.
31505         * modules/file-set: Define it.
31506         * lib/file-set.c, lib/file-set.h: Implement.
31507
31508         New module, hash-triple, from coreutils.
31509         * modules/hash-triple: Define it.
31510         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31511
31512 2007-09-25  Eric Blake  <ebb9@byu.net>
31513
31514         Fix strerror on Interix.
31515         * lib/string_.h (strerror): Declare replacement.
31516         * doc/functions/strerror.texi (strerror): Document the Interix
31517         shortcoming.
31518         * modules/string (Makefile.am): Support new hooks.
31519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31520         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31521         gl_FUNC_STRERROR_SEPARATE.
31522         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31523         * lib/strerror.c (rpl_strerror): Provide replacement.
31524         * modules/strerror (Depends-on): Add string.
31525         (configure.ac): Detect use of module.
31526         * tests/test-strerror.c: New file.
31527         * modules/strerror-tests: New test module.
31528         * modules/argp (Depends-on): Add strerror.
31529         * modules/error (Depends-on): Likewise.
31530         Reported by Martin Koeppe.
31531
31532 2007-09-24  Bruno Haible  <bruno@clisp.org>
31533
31534         * README: Update git instructions.
31535
31536 2007-09-24  Eric Blake  <ebb9@byu.net>
31537
31538         Revert fpending breakage from 2007-09-08.
31539         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31540         __fpending.c.
31541
31542 2007-09-24  Jim Meyering  <jim@meyering.net>
31543
31544         filenamecat.c: Add a test.
31545         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31546         showing how the function works when DIR is the empty string.
31547
31548 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31549
31550         * tests/test-canonicalize.sh: Turn on executable bit.
31551
31552 2007-09-19  Eric Blake  <ebb9@byu.net>
31553
31554         * README: Update CVS instructions.
31555
31556 2007-09-18  Bruno Haible  <bruno@clisp.org>
31557
31558         * modules/areadlink: New file.
31559         * lib/areadlink.h (areadlink): New declaration.
31560         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31561
31562 2007-09-17  Jim Meyering  <jim@meyering.net>
31563
31564         * lib/savewd.c (ESTALE) [!defined]: Define.
31565         Reported to be required on Interix by Martin Koeppe.
31566
31567 2007-09-17  Bruno Haible  <bruno@clisp.org>
31568
31569         * gnulib-tool (func_version): Use $version.
31570
31571 2007-09-16  Bruno Haible  <bruno@clisp.org>
31572
31573         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31574         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31575         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31576         Reported by Greg Schafer <gschafer@zip.com.au>.
31577
31578 2007-09-15  Bruno Haible  <bruno@clisp.org>
31579
31580         * gnulib-tool (sed): Try a little harder to make bash understand the
31581         alias.
31582         Reported by Bruce Korb <bruce.korb@gmail.com>.
31583
31584 2007-09-13  Eric Blake  <ebb9@byu.net>
31585
31586         * ChangeLog: Remove conflict markers.
31587
31588 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31589
31590         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31591         Reported by Bruno Haible <bruno@clisp.org>.
31592
31593 2007-09-12  Bruno Haible  <bruno@clisp.org>
31594
31595         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31596         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31597         is not defined.
31598
31599 2007-09-12  Eric Blake  <ebb9@byu.net>
31600
31601         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31602         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31603         Autoconf definition.
31604         * modules/euidaccess (Depends-on): Add extensions, for
31605         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31606         * modules/fnmatch (Depends-on): Likewise.
31607         * modules/getaddrinfo (Depends-on): Likewise.
31608         * modules/getdelim (Depends-on): Likewise.
31609         * modules/getline (Depends-on): Likewise.
31610         * modules/getsubopt (Depends-on): Likewise.
31611         * modules/gettext (Depends-on): Likewise.
31612         * modules/group-member (Depends-on): Likewise.
31613         * modules/mbchar (Depends-on): Likewise.
31614         * modules/memmem (Depends-on): Likewise.
31615         * modules/mempcpy (Depends-on): Likewise.
31616         * modules/memrchr (Depends-on): Likewise.
31617         * modules/pagealign_alloc (Depends-on): Likewise.
31618         * modules/readutmp (Depends-on): Likewise.
31619         * modules/stpcpy (Depends-on): Likewise.
31620         * modules/stpncpy (Depends-on): Likewise.
31621         * modules/strchrnul (Depends-on): Likewise.
31622         * modules/strndup (Depends-on): Likewise.
31623         * modules/strsep (Depends-on): Likewise.
31624         * modules/strverscmp (Depends-on): Likewise.
31625         * modules/vasprintf (Depends-on): Likewise.
31626         * modules/wcwidth (Depends-on): Likewise.
31627         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31628         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31629         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31630         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31631         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31632         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31633         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31634         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31635         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31636         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31637         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31638         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31639         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31640         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31641         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31642         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31643         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31644         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31645         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31646         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31647         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31648         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31649         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31650         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31651         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31653         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31654         so that lock.m4 can be used in gettext without extensions module.
31655
31656 2007-09-11  Bruno Haible  <bruno@clisp.org>
31657
31658         * m4/isc-posix.m4: Remove file.
31659         Suggested by Eric Blake.
31660
31661 2007-09-11  Eric Blake  <ebb9@byu.net>
31662
31663         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31664
31665 2007-09-10  Bruno Haible  <bruno@clisp.org>
31666
31667         * posix-modules: Fix typo in error message.
31668         Reported by Matt <mkraai@beckman.com>.
31669
31670 2007-09-09  Bruno Haible  <bruno@clisp.org>
31671
31672         * doc/functions/getdelim.texi: Update list of platforms lacking the
31673         function.
31674         * doc/functions/getline.texi: Likewise.
31675
31676 2007-09-09  Jim Meyering  <jim@meyering.net>
31677
31678         * lib/hash.c (hash_initialize): Detect calloc failure.
31679         Reported by Bruno Haible.
31680
31681 2007-09-09  Bruno Haible  <bruno@clisp.org>
31682
31683         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31684         malloc or realloc fails.
31685
31686 2007-09-09  Bruno Haible  <bruno@clisp.org>
31687
31688         * modules/getcwd (Depends-on): Add malloc-posix.
31689         * modules/glob (Depends-on): Likewise.
31690         * modules/putenv (Depends-on): Likewise.
31691         * modules/strdup (Depends-on): Likewise.
31692         * modules/getdelim (Depends-on): Add realloc-posix.
31693         * modules/read-file (Depends-on): Likewise.
31694
31695 2007-09-09  Bruno Haible  <bruno@clisp.org>
31696
31697         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31698         (gl_FUNC_MALLOC_POSIX): Require it.
31699         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31700         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31701         * modules/realloc (Files): Add m4/malloc.m4.
31702         * modules/calloc (Files): Likewise.
31703
31704 2007-09-09  Bruno Haible  <bruno@clisp.org>
31705
31706         * modules/malloc-posix: New file.
31707         * modules/malloc (Depends-on): Add malloc-posix.
31708         * lib/malloc.c: Include errno.h.
31709         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31710         and a POSIX-compatible malloc into a single function. Set ENOMEM
31711         when returning NULL.
31712         * m4/malloc.m4: New file.
31713         * doc/functions/malloc.texi: Mention the malloc-posix module.
31714         * lib/stdlib_.h (malloc): New declaration.
31715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31716         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31717         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31718         and HAVE_MALLOC_POSIX.
31719
31720 2007-09-09  Bruno Haible  <bruno@clisp.org>
31721
31722         * modules/realloc-posix: New file.
31723         * modules/realloc (Depends-on): Add realloc-posix.
31724         * lib/realloc.c: Include errno.h.
31725         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31726         and a POSIX-compatible realloc into a single function. Set ENOMEM
31727         when returning NULL.
31728         * m4/realloc.m4: New file.
31729         * doc/functions/realloc.texi: Mention the realloc-posix module.
31730         * lib/stdlib_.h (realloc): New declaration.
31731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31732         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31733         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31734         and HAVE_REALLOC_POSIX.
31735
31736 2007-09-09  Bruno Haible  <bruno@clisp.org>
31737
31738         * modules/calloc-posix: New file.
31739         * modules/calloc (Depends-on): Add calloc-posix.
31740         * lib/calloc.c: Include errno.h.
31741         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31742         and a POSIX-compatible calloc into a single function. Set ENOMEM
31743         when returning NULL.
31744         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31745         * doc/functions/calloc.texi: Mention the calloc-posix module.
31746         * lib/stdlib_.h (calloc): New declaration.
31747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31748         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31749         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31750         and HAVE_CALLOC_POSIX.
31751
31752 2007-09-09  Bruno Haible  <bruno@clisp.org>
31753
31754         Allow for modules to show an arbitrary notice.
31755         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31756         * gnulib-tool: New option --extract-notice.
31757         (func_usage): Document it.
31758         (sed_extract_prog): Update.
31759         (func_get_notice): New function.
31760         (func_modules_notice): New function.
31761         (func_import, func_create_testdir): Invoke it.
31762         Suggested by Jim Meyering.
31763
31764 2007-09-09  Bruno Haible  <bruno@clisp.org>
31765
31766         * gnulib-tool: New options --verbose, --quiet.
31767         (func_usage): Document them.
31768         (verbose): New variable.
31769         (func_execute_command): New function.
31770         (func_import): Don't show the module list and the file list if
31771         $verbose < 0.
31772         (func_create_testdir): Likewise. Use func_execute_command.
31773         (func_create_megatestdir): Use func_execute_command.
31774
31775 2007-09-08  Bruno Haible  <bruno@clisp.org>
31776
31777         * gnulib-tool (func_import): Prefer rsync over wget when available,
31778         for fetching the PO files.
31779
31780 2007-09-08  Bruno Haible  <bruno@clisp.org>
31781
31782         * posix-modules: New file. Portions copied from gnulib-tool.
31783         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31784
31785 2007-09-08  Jim Meyering  <jim@meyering.net>
31786
31787         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31788         * lib/fpending.h: Rename from __fpending.h.
31789         * lib/fpending.c: Rename from __fpending.c.
31790         Include "fpending.h", not "__fpending.h".
31791         * lib/__fpending.h, lib/__fpending.c: Remove files.
31792         * modules/fpending (Files): Reflect new file names.
31793         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31794
31795 2007-09-08  Bruno Haible  <bruno@clisp.org>
31796
31797         * m4/inttypes-h.m4: Remove stub file.
31798
31799 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31800
31801         * doc/headers/stdint.texi: Discuss #include_next issue.
31802
31803 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31804
31805         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31806
31807 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31808
31809         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31810         in variable name.
31811
31812 2007-09-03  Jim Meyering  <jim@meyering.net>
31813
31814         New module: git-version-gen.
31815         * modules/git-version-gen: New file.
31816
31817         Import changes from coreutils for bootstrap script.
31818
31819         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31820
31821         bootstrap: uses rsync to download the .po files
31822         * build-aux/bootstrap (po_download_command_format): New global.
31823         (download_po_files): Use rsync.
31824         (update_po_files): Don't remove .po files after download,
31825         so future rsync runs can take advantage of the copies.
31826
31827         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31828
31829         Solve the unnecessary-.po-file-regeneration problem once and for all.
31830         * build-aux/bootstrap (download_po_files): New function, renamed from
31831         get_translations.  Now, downloads, but doesn't update LINGUAS.
31832         (update_po_files): New function.
31833
31834         bootstrap: Ignore more.
31835         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31836         uniwidth to e.g., lib/.gitignore.
31837         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31838
31839         * build-aux/bootstrap: New setting: vc_ignore.
31840         (insert_sorted_if_absent): Create $file if absent.
31841         Adapt to new, possibly empty, list: $vc_ignore.
31842
31843         bootstrap: generate more ignorable names
31844         * build-aux/bootstrap (slurp): When generating ignorable names,
31845         also map .sin to .sed, .gperf to .c, and .y to .c.
31846
31847 2007-09-03  Jim Meyering  <jim@meyering.net>
31848
31849         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31850         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31851
31852 2007-09-02  Bruno Haible  <bruno@clisp.org>
31853
31854         Fix mis-recognition of 'mcs' on QNX 6.
31855         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31856         output contains the string "Mono".
31857         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31858         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31859
31860 2007-09-01  Bruno Haible  <bruno@clisp.org>
31861
31862         Fix collision between uniwidth/* and linebreak modules.
31863         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31864         u32_width): Remove declarations.
31865         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31866         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31867         streq3, streq2, streq1, streq0): Remove functions.
31868         (STREQ): Remove macro.
31869         (is_cjk_encoding): Remove function.
31870         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31871         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31872         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31873         * NEWS: Document the change.
31874
31875 2007-09-01  Bruno Haible  <bruno@clisp.org>
31876
31877         * lib/streq.h: Add double-inclusion guard.
31878
31879 2007-09-01  Karl Berry  <karl@gnu.org>
31880
31881         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31882
31883 2007-08-28  Jim Meyering  <jim@meyering.net>
31884
31885         Rename mreadlink_with_size to areadlink_with_size.
31886         * NEWS: Document the change.
31887         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31888         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31889         * lib/mreadlink.h: Rename this to...
31890         * lib/areadlink.h: ...this.
31891         * modules/mreadlink-with-size: Rename this to...
31892         * modules/areadlink-with-size: ...this.
31893         * lib/canonicalize.c: Reflect the renaming.
31894         * modules/canonicalize: Likewise.
31895
31896 2007-08-26  Bruno Haible  <bruno@clisp.org>
31897
31898         * gnulib-tool (func_import): When deciding which files to remove,
31899         consider also dangling symbolic links.
31900         Reported by Eric Blake.
31901
31902 2007-08-26  Bruno Haible  <bruno@clisp.org>
31903
31904         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31905
31906 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31907
31908         * lib/readline.c: Don't include getline.h, the prototype is now
31909         found in stdio.h.
31910
31911 2007-08-23  Jim Meyering  <jim@meyering.net>
31912
31913         Getdelim touchup.
31914         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31915         around the funlockfile call, since funlockfile never sets errno.
31916         Don't set errno upon failed realloc.
31917
31918 2007-08-22  Eric Blake  <ebb9@byu.net>
31919
31920         Getline touchups.
31921         * lib/getdelim.c (getdelim): Revert regression that required *n to
31922         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31924         getdelim, rather than whether implementation is missing.
31925         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31926         * lib/stdio_.h (getline): Also declare if replacement is
31927         required.
31928         * doc/functions/getdelim.texi: New file.
31929         * doc/functions/getline.texi: Likewise.
31930         * doc/gnulib.texi (Function Substitutes): Add new files.
31931         Reported by Bruno Haible.
31932
31933 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31934
31935         * users.txt: Add Guile.
31936
31937 2007-08-22  Eric Blake  <ebb9@byu.net>
31938
31939         * tests/test-getdelim.c (main): Use remove, not unlink.
31940         * tests/test-getline.c (main): Likewise.
31941
31942         Move getline and getdelim into stdio.h, per POSIX 200x.
31943         * modules/getline (Files): Remove getline.h.
31944         (Depends-on): Add stdio.
31945         (configure.ac): Add module indicator.
31946         * modules/getdelim (Files): Remove getdelim.h.
31947         (Depends-on): Add stdio.
31948         (configure.ac): Add module indicator.
31949         * modules/stdio (Makefile.am): Work with new indicators.
31950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31951         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31952         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31953         * lib/getdelim.h: Delete.
31954         * lib/getline.h: Delete.
31955         * lib/stdio_.h (getdelim, getline): Declare.
31956         * modules/getdelim-tests: New module.
31957         * modules/getline-tests: Likewise.
31958         * tests/test-getdelim.c: New file.
31959         * tests/test-getline.c: Likewise.
31960         * NEWS: Document the change.
31961         * lib/getline.c: Update choice of header.
31962         * lib/csharpcomp.c: Likewise.
31963         * lib/getpass.c: Likewise.
31964         * lib/javacomp.c: Likewise.
31965         * lib/javaversion.c: Likewise.
31966         * lib/yesno.c: Likewise.
31967         * lib/getdelim.c: Likewise.
31968         (getdelim): Set errno on failure, and avoid memory leak.
31969
31970 2007-08-19  Bruno Haible  <bruno@clisp.org>
31971
31972         * modules/closein (Depends-on): Add freadahead.
31973         * lib/closein.c: Include freadahead.h.
31974         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31975         is zero.
31976
31977 2007-08-19  Bruno Haible  <bruno@clisp.org>
31978
31979         * modules/freadahead-tests: New file.
31980         * tests/test-freadahead.sh: New file.
31981         * tests/test-freadahead.c: New file.
31982
31983         * modules/freadahead: New file.
31984         * lib/freadahead.h: New file.
31985         * lib/freadahead.c: New file.
31986         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31987         fbufmode, fpurge, freadable, fwritable.
31988
31989 2007-08-19  Eric Blake  <ebb9@byu.net>
31990
31991         Test yesno in combination with closein.
31992         * lib/yesno.c (yesno): Document use of stdin.
31993         * modules/yesno-tests (Files): New module.
31994         * tests/test-yesno.c (main): New file.
31995         * tests/test-yesno.sh: Likewise.
31996
31997 2007-08-19  Bruno Haible  <bruno@clisp.org>
31998
31999         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32000         * lib/fseeko.c (rpl_fseeko): Likewise.
32001         * lib/fseterr.c (fseterr): Likewise.
32002
32003 2007-08-19  Bruno Haible  <bruno@clisp.org>
32004
32005         * tests/test-lseek.c (main): Disable a test for BeOS.
32006         * doc/functions/lseek.texi: Document the BeOS bug.
32007
32008 2007-08-19  Bruno Haible  <bruno@clisp.org>
32009             Eric Blake  <ebb9@byu.net>
32010
32011         * lib/lseek.c: Include <sys/stat.h>.
32012         (rpl_lseek): Add workaround code also for Unix platforms.
32013         Needed for BeOS.
32014         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32015         * doc/functions/lseek.texi: Document BeOS definiency.
32016
32017 2007-08-18  Bruno Haible  <bruno@clisp.org>
32018
32019         * modules/fstrcmp-tests: New file.
32020         * tests/test-fstrcmp.c: New file.
32021
32022 2007-08-18  Bruno Haible  <bruno@clisp.org>
32023
32024         * modules/fstrcmp: New file, from GNU gettext with modifications.
32025         * lib/fstrcmp.h: New file, from GNU gettext.
32026         * lib/fstrcmp.c: New file, from GNU gettext.
32027         * MODULES.html.sh (String handling): Add fstrcmp.
32028
32029 2007-08-18  Bruno Haible  <bruno@clisp.org>
32030
32031         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32032         'bool'.
32033         (diag, compareseq): Remove const from the ctxt argument.
32034         (USE_HEURISTIC): Undefine at the end.
32035
32036 2007-08-18  Jim Meyering  <jim@meyering.net>
32037
32038         New file: lib/idcache.h
32039         * NEWS: Mention the addition.
32040         * modules/idcache (Files): Add lib/idcache.h
32041         * lib/idcache.c: Include "idcache.h".
32042         Don't include <sys/types.h>.
32043         Add a FIXME comment.
32044         Move file-scoped "static" declarations to the top.
32045         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32046
32047 2007-08-17  Bruno Haible  <bruno@clisp.org>
32048         and Paul Eggert  <eggert@cs.ucla.edu>
32049
32050         * MODULES.html.sh: Add diffseq.
32051         * modules/diffseq: New file.
32052         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32053         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32054
32055 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32056
32057         Import changes from coreutils for bootstrap script.
32058
32059         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32060
32061         * build-aux/bootstrap (slurp): Work even in environments where
32062         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32063         current code does not slurp files whose names start with ".", and
32064         this looks like it might be a troublesome area.
32065
32066         2007-07-11  Jim Meyering  <jim@meyering.net>
32067
32068         If there's a GPL vN copyright comment, require that N == 3.
32069
32070         2007-07-08  Jim Meyering  <jim@meyering.net>
32071
32072         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32073         * build-aux/bootstrap (mam_template): Move definition out of loop.
32074
32075         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32076
32077         * build-aux/bootstrap (symlink_to_dir): Rename function from
32078         symlink_to_gnulib.  Add a directory parameter.  Update all
32079         callers.
32080         (cp_mark_as_generated): Also check for -- and link to -- files in
32081         gl/.
32082
32083         2007-07-08  Jim Meyering  <jim@meyering.net>
32084
32085         Adapt to deeper hierarchy in gnulib.
32086         * build-aux/bootstrap (symlink_to_dir): If the destination
32087         directory doesn't exist, create it. This is required at least for
32088         "lib/uniwidth/cjk.h".
32089
32090         2007-05-15  Jim Meyering  <jim@meyering.net>
32091
32092         * build-aux/bootstrap: Now that generated Makefile.am files
32093         are no longer under version control, they must be created at
32094         bootstrap time.
32095
32096 2007-08-14  Ben Pfaff  <blp@gnu.org>
32097
32098         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32099
32100 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32101
32102         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32103         given the changes below.
32104         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32105         even on hosts that have padding bits beyond the supported 64.
32106
32107 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32108
32109         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32110         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32111         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32112         depends on it.
32113         (xstrtol_error): Remove.
32114         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32115         but with a different signature.
32116         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32117         * lib/xstrtol-error.c: Include exitfail.h.
32118         (xstrtol_fatal): New function, with a different signature from the
32119         old xstrtol_error, so that the caller need not worry about passing
32120         in an exit status, or about storage management of the option argument.
32121         (xstrtol_error): Now a static function.  Redo signature to
32122         implement xstrtol_fatal.  Output the correct number of hyphens in
32123         front of the option so that the caller need not worry about
32124         storage management.
32125         (N_): New macro.
32126         (_): Remove; not used now.
32127         * modules/xstrtol: Depend on getopt.
32128         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32129         of old STRTOL_FATAL_ERROR macro.
32130         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32131         of test program.
32132         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32133         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32134
32135 2007-08-08  Eric Blake  <ebb9@byu.net>
32136
32137         * lib/xstrtol-error.c: Add missing include.
32138
32139         Move xstrtol messages into gnulib domain, when --pobase is used.
32140         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32141         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32142         * modules/xstrtol (Files): Distribute new file.
32143         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32144         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32145         * tests/test-xstrtol.c: ...into new file.
32146         * tests/test-xstrtoul.c: Also test xstrtoul.
32147         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32148         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32149         * tests/test-xstrtol.sh: Drive the tests.
32150         * tests/test-xstrtoimax.sh: Likewise.
32151         * tests/test-xstrtoumax.sh: Likewise.
32152         * modules/xstrtol-tests: New module.
32153         * modules/xstrtoimax-tests: Likewise.
32154         * modules/xstrtoumax-tests: Likewise.
32155
32156 2007-08-08  Jim Meyering  <jim@meyering.net>
32157
32158         New function: mfile_name_concat.
32159         * lib/filenamecat.c (mfile_name_concat): New function, just like
32160         file_name_concat, but return NULL upon failure rather than exiting
32161         with a diagnostic.
32162         * lib/filenamecat.h: Declare it.
32163
32164 2007-08-07  Bruno Haible  <bruno@clisp.org>
32165
32166         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32167         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32168         warning from gcc.
32169         Reported by Eric Blake.
32170
32171 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32172
32173         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32174         * modules/crypto/arcfour (License): Likewise.
32175         * modules/crypto/des-tests (License): Likewise.
32176         * modules/crypto/gc-arctwo-tests (License): Likewise.
32177         * modules/crypto/gc-des-tests (License): Likewise.
32178         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32179         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32180         * modules/crypto/gc-md2-tests (License): Likewise.
32181         * modules/crypto/gc-md4-tests (License): Likewise.
32182         * modules/crypto/gc-md5-tests (License): Likewise.
32183         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32184         * modules/crypto/gc-rijndael-tests (License): Likewise.
32185         * modules/crypto/gc-sha1-tests (License): Likewise.
32186         * modules/crypto/gc-tests (License): Likewise.
32187         * modules/crypto/hmac-md5 (License): Likewise.
32188         * modules/crypto/hmac-sha1 (License): Likewise.
32189         * modules/crypto/md2-tests (License): Likewise.
32190         * modules/crypto/md4-tests (License): Likewise.
32191         * modules/crypto/md5 (License): Likewise.
32192         * modules/crypto/rijndael (License): Likewise.
32193         * modules/crypto/sha1 (License): Likewise.
32194         * modules/memxor (License): Likewise.
32195
32196 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32197         and Bruno Haible  <bruno@clisp.org>
32198
32199         * NEWS: Describe interface changes to human, xstrtol.
32200         * lib/human.h: Include <xstrtol.h>.
32201         (human_options): Return enum strtol_error, not int.  Remove
32202         bool arg; take int * instead.
32203         * lib/human.c: Don't include "gettext.h".
32204         (_): Remove; no longer used.
32205         Don't include <xstrtol.h>, since human.h does it.
32206         (human_options): Adjust to abovementioned interface changes.
32207         Do not report error to stderr; that's now the caller's
32208         responsibility.
32209         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32210         interface change.
32211         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32212         Str, Argument_type_string.  All uses changed.  Put " argument"
32213         in diagnostics to make them clearer.  Change wording of suffix
32214         message for clarity.
32215         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32216         Argument_type_string.
32217         (STRTOL_FATAL_WARN): Remove; no longer used.
32218         * modules/human (Depends-on): Remove gettext-h.
32219
32220 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32221
32222         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32223
32224 2007-07-31  Bruno Haible  <bruno@clisp.org>
32225
32226         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32227         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32228         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32229
32230 2007-07-31  Bruno Haible  <bruno@clisp.org>
32231
32232         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32233         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32234
32235 2007-07-30  Bruno Haible  <bruno@clisp.org>
32236
32237         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32238         * modules/c-ctype (License): Likewise.
32239         * modules/c-strcase (License): Likewise.
32240         * modules/check-version (License): Likewise.
32241         * modules/iconv (License): Likewise.
32242         * modules/iconv_open (License): Likewise.
32243         * modules/read-file (License): Likewise.
32244         * modules/striconv (License): Likewise.
32245         * modules/strverscmp (License): Likewise.
32246         * modules/vasprintf (License): Likewise.
32247         * modules/crypto/des (License): Likewise.
32248         * modules/crypto/gc (License): Likewise.
32249         * modules/crypto/gc-arcfour (License): Likewise.
32250         * modules/crypto/gc-arctwo (License): Likewise.
32251         * modules/crypto/gc-des (License): Likewise.
32252         * modules/crypto/gc-hmac-md5 (License): Likewise.
32253         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32254         * modules/crypto/gc-md2 (License): Likewise.
32255         * modules/crypto/gc-md4 (License): Likewise.
32256         * modules/crypto/gc-md5 (License): Likewise.
32257         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32258         * modules/crypto/gc-random (License): Likewise.
32259         * modules/crypto/gc-rijndael (License): Likewise.
32260         * modules/crypto/gc-sha1 (License): Likewise.
32261         * modules/crypto/md2 (License): Likewise.
32262         * modules/crypto/md4 (License): Likewise.
32263
32264 2007-07-30  Jim Meyering  <jim@meyering.net>
32265
32266         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32267         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32268         it has valid stat data.  This bug would cause du not to count the
32269         sizes of inaccessible directories.
32270         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32271         in <http://bugzilla.redhat.com/250077>.
32272
32273 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32274             Bruno Haible  <bruno@clisp.org>
32275
32276         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32277         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32278         #include_next, gives a diagnostic about it, but reports no error in
32279         the exit code.
32280         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32281
32282 2007-07-24  Ben Pfaff  <blp@gnu.org>
32283
32284         Improve name: "count-one-bits" is better than "popcount".
32285         * MODULES.html.sh: Update name.
32286         * lib/popcount.h: Renamed lib/count-one-bits.h.
32287         (popcount): Renamed count_one_bits.
32288         (popcountl): Renamed count_one_bits_l.
32289         (popcountll): Renamed count_one_bits_ll.
32290         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32291         * modules/popcount: Renamed module/count-one-bits.
32292         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32293         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32294
32295 2007-07-23  Ben Pfaff  <blp@gnu.org>
32296
32297         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32298         better code generation, and add U to large constants to avoid
32299         warnings, in non-GCC case.
32300         Suggested by Bruno Haible.
32301
32302 2007-07-23  Ben Pfaff  <blp@gnu.org>
32303
32304         * lib/popcount.h: Use verify_true instead of if...abort.
32305         * modules/popcount: Depend on verify module.
32306         Suggested by Jim Meyering.
32307
32308 2007-07-23  Bruno Haible  <bruno@clisp.org>
32309
32310         * gnulib-tool (func_import): Create a .cvsignore file also when the
32311         directory is not yet in CVS but the toplevel directory is. When
32312         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32313         Reported by Karl Berry.
32314
32315 2007-07-22  Ben Pfaff  <blp@gnu.org>
32316
32317         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32318         case.
32319         Suggested by Eric Blake.
32320
32321 2007-07-22  Ben Pfaff  <blp@gnu.org>
32322
32323         New module: popcount.
32324         * MODULES.html.sh: Add popcount.
32325         * modules/popcount: New file.
32326         * modules/popcount-tests: New file.
32327         * tests/test-popcount.c: New file.
32328         * lib/popcount.h: New file.
32329         * m4/popcount.m4: New file.
32330
32331 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32332
32333         * build-aux/announce-gen: Update to GPLv3.
32334
32335         * build-aux/config.guess: Update from config.
32336
32337 2007-07-21  Bruno Haible  <bruno@clisp.org>
32338
32339         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32340         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32341
32342 2007-07-20  Jim Meyering  <jim@meyering.net>
32343
32344         * check-module: Diagnose a self-dependency.
32345
32346 2007-07-19  Bruno Haible  <bruno@clisp.org>
32347
32348         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32349         empty.
32350         Reported by Eric Blake.
32351
32352 2007-07-18  Bruno Haible  <bruno@clisp.org>
32353
32354         * gnulib-tool: New options --po-base, --po-domain.
32355         (func_usage): Document them.
32356         (pobase, po_domain): New variables.
32357         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32358         DEFAULT_TEXT_DOMAIN.
32359         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32360         (func_import): Consider pobase and po_domain. Create a po/ directory.
32361         (func_create_testdir): Set pobase and po_domain to empty.
32362         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32363         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32364
32365 2007-07-18  Bruno Haible  <bruno@clisp.org>
32366
32367         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32368         EXTRA_DIST augmentation for files in build-aux/.
32369
32370 2007-07-16  Bruno Haible  <bruno@clisp.org>
32371
32372         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32373         * modules/getdelim (License): Likewise.
32374
32375 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32376
32377         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32378         * modules/d-type (License): Likewise.
32379         * modules/extensions (License): Likewise.
32380         * modules/fnmatch (License): Likewise.
32381         * modules/fseeko (License): Likewise.
32382         * modules/getaddrinfo (License): Likewise.
32383         * modules/getline (License): Likewise.
32384         * modules/getlogin_r (License): Likewise.
32385         * modules/getpass (License): Likewise.
32386         * modules/gettimeofday (License): Likewise.
32387         * modules/glob (License): Likewise.
32388         * modules/inet_ntop (License): Likewise.
32389         * modules/malloc (License): Likewise.
32390         * modules/malloca (License): Likewise.
32391         * modules/memmem (License): Likewise.
32392         * modules/mempcpy (License): Likewise.
32393         * modules/memset (License): Likewise.
32394         * modules/minmax (License): Likewise.
32395         * modules/mktime (License): Likewise.
32396         * modules/netinet_in (License): Likewise.
32397         * modules/pathmax (License): Likewise.
32398         * modules/poll (License): Likewise.
32399         * modules/regex (License): Likewise.
32400         * modules/snprintf (License): Likewise.
32401         * modules/stdbool (License): Likewise.
32402         * modules/stdint (License): Likewise.
32403         * modules/stdio (License): Likewise.
32404         * modules/strcase (License): Likewise.
32405         * modules/strcasestr (License): Likewise.
32406         * modules/strdup (License): Likewise.
32407         * modules/string (License): Likewise.
32408         * modules/strndup (License): Likewise.
32409         * modules/strnlen (License): Likewise.
32410         * modules/strpbrk (License): Likewise.
32411         * modules/strptime (License): Likewise.
32412         * modules/strsep (License): Likewise.
32413         * modules/sys_select (License): Likewise.
32414         * modules/sys_socket (License): Likewise.
32415         * modules/sys_stat (License): Likewise.
32416         * modules/sys_time (License): Likewise.
32417         * modules/time (License): Likewise.
32418         * modules/time_r (License): Likewise.
32419         * modules/timegm (License): Likewise.
32420         * modules/unistd (License): Likewise.
32421         * modules/vsnprintf (License): Likewise.
32422         * modules/wctype (License): Likewise.
32423
32424 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32425
32426         * modules/argz (License): LGPLv2+.
32427
32428 2007-07-15  Karl Berry  <karl@gnu.org>
32429
32430         * doc/gnulib.texi: revise node structure per new fdl.texi.
32431
32432 2007-07-14  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32435         the output file.
32436         * lib/uniname/uninames.h: Regenerated.
32437
32438 2007-07-14  Karl Berry  <karl@gnu.org>
32439
32440         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32441         omitting sectioning and index commands.
32442
32443 2007-07-13  Bruno Haible  <bruno@clisp.org>
32444
32445         New gnulib-tool option --more-symlinks.
32446         * gnulib-tool (func_usage): Document --more-symlinks.
32447         (do_copyrights): New variable.
32448         Recognize option --more-symlinks.
32449         (func_import): Don't add a copyright notice transform to
32450         sed_transform_lib_file if do_copyrights is empty.
32451
32452 2007-07-13  Bruno Haible  <bruno@clisp.org>
32453
32454         * lib/vasnprintf.c (decimal_point_char): Define also if
32455         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32456         && !NEED_PRINTF_DIRECTIVE_A.
32457         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32458         Gary V. Vaughan <gary@gnu.org>.
32459
32460 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32461
32462         * lib/inttypes_.h: Undo previous change, since it was fixed
32463         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32464
32465 2007-07-13  Bruno Haible  <bruno@clisp.org>
32466
32467         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32468         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32469
32470 2007-07-13  Jim Meyering  <jim@meyering.net>
32471
32472         df: Don't fail for Tru64's "file-on-file mount".
32473         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32474         so we fall through and use statfs instead.  Details here:
32475         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32476         Reported by Albert Chin.
32477
32478 2007-07-13  Bruno Haible  <bruno@clisp.org>
32479
32480         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32481         * modules/configmake (License): Likewise.
32482         * modules/gettext (License): Likewise.
32483         * modules/gettext-h (License): Likewise.
32484         * modules/include_next (License): Likewise.
32485         * modules/link-warning (License): Likewise.
32486         * modules/localcharset (License): Likewise.
32487         * modules/localename (License): Likewise.
32488         * modules/lock (License): Likewise.
32489         * modules/relocatable-lib-lgpl (License): Likewise.
32490         * modules/size_max (License): Likewise.
32491         * modules/vasnprintf (License): Likewise.
32492         * modules/wchar (License): Likewise.
32493         * modules/xsize (License): Likewise.
32494
32495 2007-07-13  Bruno Haible  <bruno@clisp.org>
32496
32497         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32498         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32499
32500 2007-07-12  Bruno Haible  <bruno@clisp.org>
32501
32502         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32503         in the modules files.
32504
32505 2007-07-11  Karl Berry  <karl@gnu.org>
32506
32507         * MODULES.html.sh (func_module): use
32508          sed -e '\|^'"${includefile}"'$|d'
32509          instead of /.../d, to avoid errors on $includefile's containing /.
32510
32511 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32512
32513         * gnulib-tool (func_import): Avoid duplication of --avoid
32514         statements
32515         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32516         names to `_' in variable names.
32517
32518 2007-07-10  Eric Blake  <ebb9@byu.net>
32519
32520         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32521         * NEWS: Document this change.
32522
32523 2007-07-08  Bruno Haible  <bruno@clisp.org>
32524
32525         Update to Unicode 5.0.
32526         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32527         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32528         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32529         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32530         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32531         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32532         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32533         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32534         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32535         U+10A3F, U+1D242..U+1D244.
32536         (nonspacing_table_ind): Update.
32537         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32538         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32539
32540 2007-07-08  Bruno Haible  <bruno@clisp.org>
32541
32542         Update to Unicode 5.0.
32543         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32544         code transform. Extend the name index field of unicode_name_to_code and
32545         unicode_code_to_name from 16 to 24 bits.
32546         * lib/uniname/uniname.c (unicode_character_name,
32547         unicode_name_character): Add the range 0x12xxx to the code transform.
32548         * lib/uniname/uninames.h: Regenerated.
32549         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32550
32551 2007-07-07  Bruno Haible  <bruno@clisp.org>
32552
32553         * modules/wcwidth-tests: New file.
32554         * tests/test-wcwidth.c: New file.
32555
32556         Work around MacOS X wcwidth() bug.
32557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32558         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32559         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32560         original wcwidth in non-UTF-8 locales.
32561         * modules/wcwidth (Depends-on): Add localcharset, streq,
32562         uniwidth/width.
32563         * doc/functions/wcwidth.texi: Update.
32564
32565 2007-07-07  Bruno Haible  <bruno@clisp.org>
32566
32567         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32568         (wcwidth): New declaration.
32569         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32570         macros.
32571         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32572         here. Prepare for creating <wchar.h> unconditionally.
32573         * modules/wchar (Depends-on): Add link-warning.
32574         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32575         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32576         * lib/wcwidth.h: Remove file.
32577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32578         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32579         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32580         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32581         (Include): Replace wcwidth.h with <wchar.h>.
32582         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32583         * lib/mbchar.h: Don't include wcwidth.h.
32584         * lib/mbswidth.c: Likewise.
32585         * NEWS: Mention the change.
32586
32587 2007-07-07  Bruno Haible  <bruno@clisp.org>
32588
32589         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32590         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32591         definition with an external declaration.
32592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32593         defined as a function. Remove AC_C_INLINE requirement.
32594         * modules/wcwidth (Files): Add lib/wcwidth.c.
32595         (Makefile.am): Remove redundant statement.
32596
32597 2007-07-07  Bruno Haible  <bruno@clisp.org>
32598
32599         * MODULES.html.sh (Unicode string functions): Add the new modules.
32600
32601         * tests/uniwidth/test-u32-strwidth.c: New file.
32602         * modules/uniwidth/u32-strwidth-tests: New file.
32603
32604         * lib/uniwidth/u32-strwidth.c: New file.
32605         * modules/uniwidth/u32-strwidth: New file.
32606
32607         * tests/uniwidth/test-u16-strwidth.c: New file.
32608         * modules/uniwidth/u16-strwidth-tests: New file.
32609
32610         * lib/uniwidth/u16-strwidth.c: New file.
32611         * modules/uniwidth/u16-strwidth: New file.
32612
32613         * tests/uniwidth/test-u8-strwidth.c: New file.
32614         * modules/uniwidth/u8-strwidth-tests: New file.
32615
32616         * lib/uniwidth/u8-strwidth.c: New file.
32617         * modules/uniwidth/u8-strwidth: New file.
32618
32619         * tests/uniwidth/test-u32-width.c: New file.
32620         * modules/uniwidth/u32-width-tests: New file.
32621
32622         * lib/uniwidth/u32-width.c: New file.
32623         * modules/uniwidth/u32-width: New file.
32624
32625         * tests/uniwidth/test-u16-width.c: New file.
32626         * modules/uniwidth/u16-width-tests: New file.
32627
32628         * lib/uniwidth/u16-width.c: New file.
32629         * modules/uniwidth/u16-width: New file.
32630
32631         * tests/uniwidth/test-u8-width.c: New file.
32632         * modules/uniwidth/u8-width-tests: New file.
32633
32634         * lib/uniwidth/u8-width.c: New file.
32635         * modules/uniwidth/u8-width: New file.
32636
32637         * tests/uniwidth/test-uc_width.c: New file.
32638         * modules/uniwidth/width-tests: New file.
32639
32640         * lib/uniwidth/width.c: New file, from GNU libiconv.
32641         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32642         * modules/uniwidth/width: New file.
32643
32644         * lib/uniwidth.h: New file, from GNU libiconv.
32645         * modules/uniwidth/base: New file.
32646
32647 2007-07-07  Bruno Haible  <bruno@clisp.org>
32648
32649         * lib/uniname.h: New file, from GNU gettext.
32650         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32651         * lib/uniname/uninames.h: New file, from GNU gettext.
32652         * lib/uniname/uniname.c: New file, from GNU gettext.
32653         * tests/uniname/test-uninames.sh: New file.
32654         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32655         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32656         * modules/uniname/base: New file.
32657         * modules/uniname/uniname: New file.
32658         * modules/uniname/uniname-tests: New file.
32659         * MODULES.html.sh (Unicode string functions): Add the new modules.
32660
32661 2007-07-06  Bruno Haible  <bruno@clisp.org>
32662
32663         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32664
32665 2007-07-06  Bruno Haible  <bruno@clisp.org>
32666
32667         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32668         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32669         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32670         include <sys/time.h>.
32671         Reported by Eric Blake.
32672
32673 2007-07-06  Eric Blake  <ebb9@byu.net>
32674
32675         Fix testing canonicalize on cygwin.
32676         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32677         Revert patch from 2007-06-19.
32678         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32679         canonicalize module is also in use.
32680         * tests/test-canonicalize.c: New file.
32681         * tests/test-canonicalize.sh: Likewise.
32682         * modules/canonicalize-tests: Likewise.
32683
32684 2007-07-06  Jim Meyering  <jim@meyering.net>
32685
32686         * lib/getugroups.c (getugroups): Detect getgrent failure.
32687         Adjust comment to reflect reality: this function may return -1.
32688
32689 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32690
32691         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32692         the new TP address.
32693         (usage): Fix typo
32694         (gnulib_mk): New variable.
32695
32696 2007-07-05  Jim Meyering  <jim@meyering.net>
32697
32698         Don't let endgrent clobber errno, no matter how improbable.
32699         * lib/getugroups.c (getugroups): Save and restore errno around
32700         endgrent call.
32701
32702         Close the group DB even when failing with 2^31 or more members.
32703         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32704
32705 2007-07-04  Jim Meyering  <jim@meyering.net>
32706
32707         * lib/getugroups.h: New file.
32708         * lib/getugroups.c: Include "getugroups.h".
32709         Remove uses of "register" keyword.
32710         Move local variable, "cp", down into scope where used.
32711         Give "username" parameter the "const" attribute.
32712         * modules/getugroups (Files): Add lib/getugroups.h
32713
32714 2007-07-04  Karl Berry  <karl@gnu.org>
32715
32716         * MODULES.html.sh (func_all_modules): Complete rename of
32717         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32718
32719 2007-07-02  Bruno Haible  <bruno@clisp.org>
32720
32721         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32722         mode, when inttypes.h comes from gnulib.
32723         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32724
32725 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32726
32727         * NEWS: Mention lgpl module name change.
32728
32729         * modules/lgpl-2.1: Renamed from lgpl.
32730
32731         * NEWS: Mention gpl module name change.
32732
32733         * modules/gpl-3.0: New file, based on gpl-2.0.
32734
32735         * modules/gpl-2.0: Renamed from gpl.
32736
32737         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32738         doc/gpl-2.0.texi.
32739
32740 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32741
32742         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32743         #define __STDC_LIMIT_MACROS temporarily while including
32744         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32745         Problem reported by Joel E. Denny in
32746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32747
32748 2007-07-01  Bruno Haible  <bruno@clisp.org>
32749
32750         * lib/unistdio.h: New file.
32751         * lib/unistdio/u-asnprintf.h: New file.
32752         * lib/unistdio/u-asprintf.h: New file.
32753         * lib/unistdio/u-printf-args.c: New file.
32754         * lib/unistdio/u-printf-args.h: New file.
32755         * lib/unistdio/u-printf-parse.h: New file.
32756         * lib/unistdio/u-snprintf.h: New file.
32757         * lib/unistdio/u-sprintf.h: New file.
32758         * lib/unistdio/u-vasprintf.h: New file.
32759         * lib/unistdio/u-vsnprintf.h: New file.
32760         * lib/unistdio/u-vsprintf.h: New file.
32761         * lib/unistdio/ulc-asnprintf.c: New file.
32762         * lib/unistdio/ulc-asprintf.c: New file.
32763         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32764         * lib/unistdio/ulc-printf-parse.c: New file.
32765         * lib/unistdio/ulc-snprintf.c: New file.
32766         * lib/unistdio/ulc-sprintf.c: New file.
32767         * lib/unistdio/ulc-vasnprintf.c: New file.
32768         * lib/unistdio/ulc-vasprintf.c: New file.
32769         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32770         * lib/unistdio/ulc-vsnprintf.c: New file.
32771         * lib/unistdio/ulc-vsprintf.c: New file.
32772         * lib/unistdio/u8-asnprintf.c: New file.
32773         * lib/unistdio/u8-asprintf.c: New file.
32774         * lib/unistdio/u8-printf-parse.c: New file.
32775         * lib/unistdio/u8-snprintf.c: New file.
32776         * lib/unistdio/u8-sprintf.c: New file.
32777         * lib/unistdio/u8-vasnprintf.c: New file.
32778         * lib/unistdio/u8-vasprintf.c: New file.
32779         * lib/unistdio/u8-vsnprintf.c: New file.
32780         * lib/unistdio/u8-vsprintf.c: New file.
32781         * lib/unistdio/u8-u8-asnprintf.c: New file.
32782         * lib/unistdio/u8-u8-asprintf.c: New file.
32783         * lib/unistdio/u8-u8-snprintf.c: New file.
32784         * lib/unistdio/u8-u8-sprintf.c: New file.
32785         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32786         * lib/unistdio/u8-u8-vasprintf.c: New file.
32787         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32788         * lib/unistdio/u8-u8-vsprintf.c: New file.
32789         * lib/unistdio/u16-asnprintf.c: New file.
32790         * lib/unistdio/u16-asprintf.c: New file.
32791         * lib/unistdio/u16-printf-parse.c: New file.
32792         * lib/unistdio/u16-snprintf.c: New file.
32793         * lib/unistdio/u16-sprintf.c: New file.
32794         * lib/unistdio/u16-vasnprintf.c: New file.
32795         * lib/unistdio/u16-vasprintf.c: New file.
32796         * lib/unistdio/u16-vsnprintf.c: New file.
32797         * lib/unistdio/u16-vsprintf.c: New file.
32798         * lib/unistdio/u16-u16-asnprintf.c: New file.
32799         * lib/unistdio/u16-u16-asprintf.c: New file.
32800         * lib/unistdio/u16-u16-snprintf.c: New file.
32801         * lib/unistdio/u16-u16-sprintf.c: New file.
32802         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32803         * lib/unistdio/u16-u16-vasprintf.c: New file.
32804         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32805         * lib/unistdio/u16-u16-vsprintf.c: New file.
32806         * lib/unistdio/u32-asnprintf.c: New file.
32807         * lib/unistdio/u32-asprintf.c: New file.
32808         * lib/unistdio/u32-printf-parse.c: New file.
32809         * lib/unistdio/u32-snprintf.c: New file.
32810         * lib/unistdio/u32-sprintf.c: New file.
32811         * lib/unistdio/u32-vasnprintf.c: New file.
32812         * lib/unistdio/u32-vasprintf.c: New file.
32813         * lib/unistdio/u32-vsnprintf.c: New file.
32814         * lib/unistdio/u32-vsprintf.c: New file.
32815         * lib/unistdio/u32-u32-asnprintf.c: New file.
32816         * lib/unistdio/u32-u32-asprintf.c: New file.
32817         * lib/unistdio/u32-u32-snprintf.c: New file.
32818         * lib/unistdio/u32-u32-sprintf.c: New file.
32819         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32820         * lib/unistdio/u32-u32-vasprintf.c: New file.
32821         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32822         * lib/unistdio/u32-u32-vsprintf.c: New file.
32823         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32824         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32825         * tests/unistdio/test-ulc-printf1.h: New file.
32826         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32827         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32828         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32829         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32830         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32831         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32832         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32833         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32834         * tests/unistdio/test-u8-asnprintf1.c: New file.
32835         * tests/unistdio/test-u8-asnprintf1.h: New file.
32836         * tests/unistdio/test-u8-printf1.h: New file.
32837         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32838         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32839         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32840         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32841         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32842         * tests/unistdio/test-u8-vasprintf1.c: New file.
32843         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32844         * tests/unistdio/test-u8-vsprintf1.c: New file.
32845         * tests/unistdio/test-u16-asnprintf1.c: New file.
32846         * tests/unistdio/test-u16-asnprintf1.h: New file.
32847         * tests/unistdio/test-u16-printf1.h: New file.
32848         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32849         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32850         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32851         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32852         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32853         * tests/unistdio/test-u16-vasprintf1.c: New file.
32854         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32855         * tests/unistdio/test-u16-vsprintf1.c: New file.
32856         * tests/unistdio/test-u32-asnprintf1.c: New file.
32857         * tests/unistdio/test-u32-asnprintf1.h: New file.
32858         * tests/unistdio/test-u32-printf1.h: New file.
32859         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32860         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32861         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32862         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32863         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32864         * tests/unistdio/test-u32-vasprintf1.c: New file.
32865         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32866         * tests/unistdio/test-u32-vsprintf1.c: New file.
32867         * modules/unistdio/base: New file.
32868         * modules/unistdio/u-printf-args: New file.
32869         * modules/unistdio/ulc-asnprintf: New file.
32870         * modules/unistdio/ulc-asprintf: New file.
32871         * modules/unistdio/ulc-fprintf: New file.
32872         * modules/unistdio/ulc-printf-parse: New file.
32873         * modules/unistdio/ulc-snprintf: New file.
32874         * modules/unistdio/ulc-sprintf: New file.
32875         * modules/unistdio/ulc-vasnprintf: New file.
32876         * modules/unistdio/ulc-vasprintf: New file.
32877         * modules/unistdio/ulc-vfprintf: New file.
32878         * modules/unistdio/ulc-vsnprintf: New file.
32879         * modules/unistdio/ulc-vsprintf: New file.
32880         * modules/unistdio/u8-asnprintf: New file.
32881         * modules/unistdio/u8-asprintf: New file.
32882         * modules/unistdio/u8-printf-parse: New file.
32883         * modules/unistdio/u8-snprintf: New file.
32884         * modules/unistdio/u8-sprintf: New file.
32885         * modules/unistdio/u8-vasnprintf: New file.
32886         * modules/unistdio/u8-vasprintf: New file.
32887         * modules/unistdio/u8-vsnprintf: New file.
32888         * modules/unistdio/u8-vsprintf: New file.
32889         * modules/unistdio/u8-u8-asnprintf: New file.
32890         * modules/unistdio/u8-u8-asprintf: New file.
32891         * modules/unistdio/u8-u8-snprintf: New file.
32892         * modules/unistdio/u8-u8-sprintf: New file.
32893         * modules/unistdio/u8-u8-vasnprintf: New file.
32894         * modules/unistdio/u8-u8-vasprintf: New file.
32895         * modules/unistdio/u8-u8-vsnprintf: New file.
32896         * modules/unistdio/u8-u8-vsprintf: New file.
32897         * modules/unistdio/u16-asnprintf: New file.
32898         * modules/unistdio/u16-asprintf: New file.
32899         * modules/unistdio/u16-printf-parse: New file.
32900         * modules/unistdio/u16-snprintf: New file.
32901         * modules/unistdio/u16-sprintf: New file.
32902         * modules/unistdio/u16-vasnprintf: New file.
32903         * modules/unistdio/u16-vasprintf: New file.
32904         * modules/unistdio/u16-vsnprintf: New file.
32905         * modules/unistdio/u16-vsprintf: New file.
32906         * modules/unistdio/u16-u16-asnprintf: New file.
32907         * modules/unistdio/u16-u16-asprintf: New file.
32908         * modules/unistdio/u16-u16-snprintf: New file.
32909         * modules/unistdio/u16-u16-sprintf: New file.
32910         * modules/unistdio/u16-u16-vasnprintf: New file.
32911         * modules/unistdio/u16-u16-vasprintf: New file.
32912         * modules/unistdio/u16-u16-vsnprintf: New file.
32913         * modules/unistdio/u16-u16-vsprintf: New file.
32914         * modules/unistdio/u32-asnprintf: New file.
32915         * modules/unistdio/u32-asprintf: New file.
32916         * modules/unistdio/u32-printf-parse: New file.
32917         * modules/unistdio/u32-snprintf: New file.
32918         * modules/unistdio/u32-sprintf: New file.
32919         * modules/unistdio/u32-vasnprintf: New file.
32920         * modules/unistdio/u32-vasprintf: New file.
32921         * modules/unistdio/u32-vsnprintf: New file.
32922         * modules/unistdio/u32-vsprintf: New file.
32923         * modules/unistdio/u32-u32-asnprintf: New file.
32924         * modules/unistdio/u32-u32-asprintf: New file.
32925         * modules/unistdio/u32-u32-snprintf: New file.
32926         * modules/unistdio/u32-u32-sprintf: New file.
32927         * modules/unistdio/u32-u32-vasnprintf: New file.
32928         * modules/unistdio/u32-u32-vasprintf: New file.
32929         * modules/unistdio/u32-u32-vsnprintf: New file.
32930         * modules/unistdio/u32-u32-vsprintf: New file.
32931         * modules/unistdio/ulc-asnprintf-tests: New file.
32932         * modules/unistdio/ulc-vasnprintf-tests: New file.
32933         * modules/unistdio/ulc-vasprintf-tests: New file.
32934         * modules/unistdio/ulc-vsnprintf-tests: New file.
32935         * modules/unistdio/ulc-vsprintf-tests: New file.
32936         * modules/unistdio/u8-asnprintf-tests: New file.
32937         * modules/unistdio/u8-vasnprintf-tests: New file.
32938         * modules/unistdio/u8-vasprintf-tests: New file.
32939         * modules/unistdio/u8-vsnprintf-tests: New file.
32940         * modules/unistdio/u8-vsprintf-tests: New file.
32941         * modules/unistdio/u16-asnprintf-tests: New file.
32942         * modules/unistdio/u16-vasnprintf-tests: New file.
32943         * modules/unistdio/u16-vasprintf-tests: New file.
32944         * modules/unistdio/u16-vsnprintf-tests: New file.
32945         * modules/unistdio/u16-vsprintf-tests: New file.
32946         * modules/unistdio/u32-asnprintf-tests: New file.
32947         * modules/unistdio/u32-vasnprintf-tests: New file.
32948         * modules/unistdio/u32-vasprintf-tests: New file.
32949         * modules/unistdio/u32-vsnprintf-tests: New file.
32950         * modules/unistdio/u32-vsprintf-tests: New file.
32951         * MODULES.html.sh (Unicode string functions): Add the new modules.
32952
32953 2007-07-01  Bruno Haible  <bruno@clisp.org>
32954
32955         * lib/sprintf.c (sprintf): Limit the available length estimation,
32956         to avoid address wraparound.
32957         * lib/vsprintf.c (vsprintf): Likewise.
32958         * modules/sprintf-posix (Dependencies): Add stdint.
32959         * modules/vsprintf-posix (Dependencies): Likewise.
32960
32961 2007-07-01  Bruno Haible  <bruno@clisp.org>
32962
32963         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32964         Windows PATH as well. Conservative double-quoting. Comments.
32965
32966 2007-07-01  Bruno Haible  <bruno@clisp.org>
32967             Eric Blake  <ebb9@byu.net>
32968             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32969
32970         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32971         empty components in $PATH, denoting '.'.
32972
32973 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32974
32975         * gnulib-tool: Fix indentation.
32976         (func_create_megatestdir): Likewise.
32977         Report by Bruno Haible.
32978
32979 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32980
32981         Sync from Automake.
32982         * build-aux/gnupload: Fix shell portability issues with for loops.
32983         Report by Karl Berry.
32984
32985 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32986
32987         * build-aux/maint.mk (POURL): Use translationproject.org.
32988
32989 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32990             Bruno Haible  <bruno@clisp.org>
32991
32992         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32993         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32994         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32995         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32996         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32997
32998 2007-06-27  Bruno Haible  <bruno@clisp.org>
32999
33000         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33001         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33002
33003 2007-06-26  Karl Berry  <karl@gnu.org>
33004
33005         * MODULES.html.sh: remove xreadlink-with-size.
33006
33007 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33008
33009         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33010         method that I hope also handles the double-include problem noted
33011         by Bruno Haible in
33012         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33013
33014 2007-06-23  Bruno Haible  <bruno@clisp.org>
33015
33016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33017         Don't let the 'mostlyclean' target fail if the last subdirectory could
33018         not be removed.
33019         Reported by Karl Berry.
33020
33021 2007-06-23  Bruno Haible  <bruno@clisp.org>
33022
33023         * gnulib-tool (echo): Add a speedier workaround for ksh.
33024         * tests/test-echo.sh: Likewise.
33025
33026 2007-06-23  Bruno Haible  <bruno@clisp.org>
33027
33028         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33029         * tests/test-echo.sh: Likewise.
33030
33031 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33032
33033         * gnulib-tool (IFS): Initialize early, so we don't set it to
33034         empty later.
33035         (self_abspathname): Rewrite algorithm to set it, reindent.
33036         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33037         (func_create_megatestdir): Merge some sed scripts.
33038
33039 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33040
33041         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33042         exposed by Sun Studio 11 cc on Solaris 8.
33043
33044 2007-06-22  Bruno Haible  <bruno@clisp.org>
33045
33046         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33047         backslashes.
33048         * tests/test-echo.sh: New file.
33049
33050 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33051
33052         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33053         simplify `sed_replace_build_aux' scripts, they are portable but
33054         echoing them with `echo' is not.
33055         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33056
33057 2007-06-21  Karl Berry  <karl@gnu.org>
33058
33059         * config/srclist.txt: guess we can't handle the licenses via
33060         srclist at the moment.
33061
33062 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33063
33064         * MODULES.html.sh: Add include_next.
33065         * modules/include_next: New file.
33066
33067 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33068
33069         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33070         INCLUDE_NEXT.
33071         (gl_CHECK_NEXT_HEADERS): New macro.
33072         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33073         the obsolescent gl_ABSOLUTE_HEADER.
33074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33075         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33076         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33077         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33078         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33079         * m4/math_h.m4 (gl_MATH_H): Likewise.
33080         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33081         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33082         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33083         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33084         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33085         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33086         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33087         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33088         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33089         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33090         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33091         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33092         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33093         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33094         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33095         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33096         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33097         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33098         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33099         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33100         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33101         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33102         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33103         * lib/float_.h: Likewise.
33104         * lib/inttypes_.h: Likewise.
33105         * lib/math_.h: Likewise.
33106         * lib/search_.h: Likewise.
33107         * lib/signal_.h: Likewise.
33108         * lib/stdint_.h: Likewise.
33109         * lib/stdio_.h: Likewise.
33110         * lib/stdlib_.h: Likewise.
33111         * lib/string_.h: Likewise.
33112         * lib/sys_stat_.h: Likewise.
33113         * lib/sys_time_.h: Likewise.
33114         * lib/time_.h: Likewise.
33115         * lib/unistd_.h: Likewise.
33116         * lib/wchar_.h: Likewise.
33117         * lib/wctype_.h: Likewise.
33118         * lib/dirent_.h: Likewise.
33119         * lib/iconv_.h: Likewise.
33120         * lib/locale_.h: Likewise.
33121         * lib/netinet_in_.h: Likewise.
33122         * lib/sys_select_.h: Likewise.
33123         * lib/sys_socket_.h: Likewise.
33124         * lib/sysexits_.h: Likewise.
33125         * modules/fcntl (Depends-on): Depend on include_next, not
33126         absolute_header.
33127         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33128         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33129         * modules/fchdir: Likewise.
33130         * modules/float: Likewise.
33131         * modules/iconv_open: Likewise.
33132         * modules/inttypes: Likewise.
33133         * modules/locale: Likewise.
33134         * modules/math: Likewise.
33135         * modules/netinet_in: Likewise.
33136         * modules/search: Likewise.
33137         * modules/signal: Likewise.
33138         * modules/stdint: Likewise.
33139         * modules/stdio: Likewise.
33140         * modules/stdlib: Likewise.
33141         * modules/string: Likewise.
33142         * modules/sys_select: Likewise.
33143         * modules/sys_socket: Likewise.
33144         * modules/sys_stat: Likewise.
33145         * modules/sys_time: Likewise.
33146         * modules/sysexits: Likewise.
33147         * modules/time: Likewise.
33148         * modules/unistd: Likewise.
33149         * modules/wchar: Likewise.
33150         * modules/wctype: Likewise.
33151         * modules/sys_stat: Change maintainer to "all".
33152         * modules/unistd: Likewise.
33153
33154 2007-06-20  Karl Berry  <karl@gnu.org>
33155
33156         * config/srclist.txt: track www changes in license files.
33157
33158 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33159
33160         * build-aux/bootstrap: Remove stray dot.
33161         Make sure build_aux settings are honored when linking
33162         gnulib_extra_files.
33163
33164 2007-06-19  Eric Blake  <ebb9@byu.net>
33165
33166         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33167         Allow compilation on cygwin.
33168
33169 2007-06-19  Jim Meyering  <jim@meyering.net>
33170
33171         xreadlink-with-size: Remove module.  No longer used.
33172         Ex-callers now use xreadlink or mreadlink-with-size.
33173         * modules/xreadlink-with-size: Remove module.
33174         * lib/xreadlink-with-size.c: Remove file.
33175         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33176         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33177         just before the function definition *is* accurate.
33178
33179         Eliminate one way canonicalize_filename_mode could exit.
33180         * lib/canonicalize.c (canonicalize_filename_mode):
33181         Use mreadlink_with_size, not xreadlink_with_size.
33182
33183 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33184
33185         Detect porting problems to FreeBSD/arm, which has time_t wider than
33186         long int.  Original problem reported for GNU diff by Xin Li in
33187         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33188         * modules/getdate (Depends-on): Add intprops, verify.
33189         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33190         is an integer type no wider than long int.
33191
33192 2007-06-18  Jim Meyering  <jim@meyering.net>
33193
33194         New module: mreadlink-with-size.
33195         * MODULES.html.sh: Add mreadlink-with-size.
33196         * modules/mreadlink-with-size: New module
33197         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33198         not xreadlink-with-size.
33199         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33200
33201 2007-06-16  Bruno Haible  <bruno@clisp.org>
33202
33203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33204         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33205         Reported by Gary V. Vaughan <gary@gnu.org>.
33206
33207 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33208
33209         Revamp lchown so that it lives in unistd.h where it belongs.
33210         * lib/lchown.h: Remove.
33211         * lib/dirchownmod.c: Don't include lib/lchown.h.
33212         * lib/fchownat.c: Likewise.
33213         * lib/openat.c: Likewise.
33214         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33215         does not follow symlinks.
33216         (EOPNOTSUPP): Define if not defined.
33217         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33218         is defined to 0.
33219         (lchown): New decl.
33220         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33221         Do not check for lchown decl.
33222         Set REPLACE_LCHOWN.
33223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33224         REPLACE_LCHOWN.
33225         * modules/chown: Make it clear it follows symlinks.
33226         * modules/lchown: Make it clear it doesn't follow symlinks.
33227         (Files): Remove lib/lchown.h
33228         (Depends-on): Add unistd.
33229         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33230         (Include): Include <unistd.h>, not "lchown.h".
33231         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33232         REPLACE_LCHOWN.
33233
33234 2007-06-15  Jim Meyering  <jim@meyering.net>
33235
33236         Change license (GPL to LGPL) of fsusage and dependents.
33237         * modules/fsusage (License): Change to LGPL.
33238         * modules/full-read (License): Likewise.
33239         * modules/full-write (License): Likewise.
33240         * modules/safe-read (License): Likewise.
33241         * modules/safe-write (License): Likewise.
33242
33243 2007-06-14  Ben Pfaff  <blp@gnu.org>
33244
33245         Missing part of allocsa -> malloca transition.
33246         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33247         gl_MALLOCA.
33248
33249 2007-06-12  Bruno Haible  <bruno@clisp.org>
33250
33251         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33252         to ia64, x86_64, i386.
33253         Reported by Eric Blake.
33254
33255 2007-06-12  Bruno Haible  <bruno@clisp.org>
33256
33257         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33258         cross-compiling to x86_64.
33259
33260 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33261
33262         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33263         glitch reported by Ralf Wildenhues in
33264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33265
33266         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33267         Vin Shelton.
33268
33269 2007-06-11  Bruno Haible  <bruno@clisp.org>
33270
33271         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33272         replacement string.
33273         Reported by Eric Blake.
33274
33275 2007-06-10  Bruno Haible  <bruno@clisp.org>
33276
33277         Prepare vasnprintf code for use with Unicode strings.
33278         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33279         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33280         TYPE_U32_STRING.
33281         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33282         a_u32_string variants.
33283         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33284         * lib/printf-args.c: Don't include config.h and the specification
33285         header if PRINTF_FETCHARGS is already defined.
33286         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33287         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33288         TYPE_U16_STRING, TYPE_U32_STRING.
33289         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33290         u16_directive, u16_directives, u32_directive, u32_directives): New
33291         types.
33292         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33293         New declarations.
33294         * lib/printf-parse.c: Don't include config.h and the specification
33295         header if PRINTF_PARSE is already defined. Eliminate the set of
33296         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33297         them now. Include c-ctype.h.
33298         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33299         directive and CHAR_T_ONLY_ASCII.
33300         * lib/vasnprintf.c: Don't include config.h and the specification header
33301         if VASNPRINTF is already defined.
33302         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33303         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33304         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33305         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33306         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33307         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33308         code accordingly.
33309         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33310         pad_ourselves also in this case, with the 'c' and 's' directives, and
33311         with a different notion of "width".
33312         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33313
33314 2007-06-10  Bruno Haible  <bruno@clisp.org>
33315
33316         * modules/unistr/u32-mbsnlen: New file.
33317         * lib/unistr/u32-mbsnlen.c: New file.
33318
33319         * modules/unistr/u16-mbsnlen: New file.
33320         * lib/unistr/u16-mbsnlen.c: New file.
33321
33322         * modules/unistr/u8-mbsnlen: New file.
33323         * lib/unistr/u8-mbsnlen.c: New file.
33324
33325         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33326         declarations.
33327
33328 2007-06-10  Bruno Haible  <bruno@clisp.org>
33329
33330         * lib/string_.h (mbsnlen): New declaration.
33331         * lib/mbsnlen.c: New file.
33332         * m4/mbsnlen.m4: New file.
33333         * modules/mbsnlen: New file.
33334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33335         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33336         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33337
33338 2007-06-10  Bruno Haible  <bruno@clisp.org>
33339
33340         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33341
33342 2007-06-10  Bruno Haible  <bruno@clisp.org>
33343
33344         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33345         * lib/mbuiter.h: Likewise.
33346
33347 2007-06-10  Bruno Haible  <bruno@clisp.org>
33348
33349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33350         declaration.
33351
33352 2007-06-10  Karl Berry  <karl@gnu.org>
33353
33354         * config/srclist.txt: remove gettext entries, Bruno prefers
33355         to update individually.
33356
33357 2007-06-10  Bruno Haible  <bruno@clisp.org>
33358
33359         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33360         'maxlen'. Ensure only length + width bytes are allocated, not
33361         length + 1 + width.
33362
33363 2007-06-09  Bruno Haible  <bruno@clisp.org>
33364
33365         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33366         (CHAR_T): Remove macro.
33367         (VASNPRINTF): Update.
33368
33369 2007-06-09  Bruno Haible  <bruno@clisp.org>
33370
33371         * MODULES.html.sh (Unicode string functions): Add the new modules.
33372
33373         * modules/uniconv/u32-conv-to-enc: New file.
33374         * lib/uniconv/u32-conv-to-enc.c: New file.
33375         * modules/uniconv/u32-conv-to-enc-tests: New file.
33376         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33377
33378         * modules/uniconv/u16-conv-to-enc: New file.
33379         * lib/uniconv/u16-conv-to-enc.c: New file.
33380         * lib/uniconv/u-conv-to-enc.h: New file.
33381         * modules/uniconv/u16-conv-to-enc-tests: New file.
33382         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33383
33384         * modules/uniconv/u8-conv-to-enc: New file.
33385         * lib/uniconv/u8-conv-to-enc.c: New file.
33386         * modules/uniconv/u8-conv-to-enc-tests: New file.
33387         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33388
33389         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33390         u32_conv_to_encoding): New declarations.
33391
33392 2007-06-09  Bruno Haible  <bruno@clisp.org>
33393
33394         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33395
33396 2007-06-09  Bruno Haible  <bruno@clisp.org>
33397
33398         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33399         * modules/malloca: Renamed from modules/allocsa, updated.
33400         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33401         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33402         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33403         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33404         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33405         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33406         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33407         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33408         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33409         * modules/c-strcasestr (Depends-on): Update.
33410         * lib/c-strcasestr.c: Update.
33411         * modules/c-strstr (Depends-on): Update.
33412         * lib/c-strstr.c: Update.
33413         * modules/canonicalize-lgpl (Depends-on): Update.
33414         * lib/canonicalize-lgpl.c: Update.
33415         * modules/clean-temp (Depends-on): Update.
33416         * lib/clean-temp.c: Update.
33417         * modules/csharpcomp (Depends-on): Update.
33418         * lib/csharpcomp.c: Update.
33419         * modules/csharpexec (Depends-on): Update.
33420         * lib/csharpexec.c: Update.
33421         * modules/javacomp (Depends-on): Update.
33422         * lib/javacomp.c: Update.
33423         * modules/javaexec (Depends-on): Update.
33424         * lib/javaexec.c: Update.
33425         * modules/mbscasestr (Depends-on): Update.
33426         * lib/mbscasestr.c: Update.
33427         * modules/mbsstr (Depends-on): Update.
33428         * lib/mbsstr.c: Update.
33429         * modules/setenv (Depends-on): Update.
33430         * lib/setenv.c: Update.
33431         * modules/strcasestr (Depends-on): Update.
33432         * lib/strcasestr.c: Update.
33433         * modules/striconveha (Depends-on): Update.
33434         * lib/striconveha.c: Update.
33435         * modules/relocatable-prog-wrapper (Files): Update.
33436         * lib/relocwrapper.c: Update.
33437         * build-aux/install-reloc: Update.
33438         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33439
33440 2007-06-08  Bruno Haible  <bruno@clisp.org>
33441
33442         Port to uClibc.
33443         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33444         * lib/fpurge.c (fpurge): Likewise.
33445         * lib/freading.c (freading): Likewise.
33446         * lib/fseeko.c (rpl_fseeko): Likewise.
33447         * lib/fseterr.c (fseterr): Likewise.
33448         * lib/fwriting.c (fwriting): Likewise.
33449         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33450
33451 2007-06-08  Bruno Haible  <bruno@clisp.org>
33452
33453         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33454         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33455         * modules/gettext (Files): Add m4/intlmacosx.m4.
33456
33457 2007-06-07  Bruno Haible  <bruno@clisp.org>
33458
33459         * modules/localename-tests: New file.
33460         * tests/test-localename.c: New file.
33461
33462         New module 'localename'.
33463         * lib/localename.h: New file.
33464         * lib/localename.c: New file, from GNU gettext.
33465         * m4/localename.m4: New file.
33466         * modules/localename: New file.
33467
33468 2007-06-07  Bruno Haible  <bruno@clisp.org>
33469
33470         Work around the lack of <wchar.h> on some builds of uClibc.
33471         * doc/headers/wchar.texi: Update.
33472         * lib/wchar_.h: Include <wchar.h> only if it exists.
33473         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33474         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33475         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33476         doesn't exist.
33477         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33478         * modules/mbfile (Depends-on): Add wchar.
33479         * modules/mbiter (Depends-on): Likewise.
33480         * modules/mbuiter (Depends-on): Likewise.
33481         Reported by Simon Josefsson.
33482
33483 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33484
33485         Work around problem reported by Steven M. Schweda in
33486         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33487         Tru64 5.1B with the Compaq compiler environment installed declares
33488         an 'isblank' function but does not define it in the C library.
33489         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33490         * lib/regex_internal.h (isblank): Likewise.
33491         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33492         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33493
33494 2007-06-05  Bruno Haible  <bruno@clisp.org>
33495
33496         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33497         ia64.
33498         * modules/printf-safe: New file.
33499         * modules/fprintf-posix (Depends-on): Add printf-safe.
33500         * modules/printf-posix (Depends-on): Likewise.
33501         * modules/snprintf-posix (Depends-on): Likewise.
33502         * modules/sprintf-posix (Depends-on): Likewise.
33503         * modules/vasnprintf-posix (Depends-on): Likewise.
33504         * modules/vasprintf-posix (Depends-on): Likewise.
33505         * modules/vfprintf-posix (Depends-on): Likewise.
33506         * modules/vprintf-posix (Depends-on): Likewise.
33507         * modules/vsnprintf-posix (Depends-on): Likewise.
33508         * modules/vsprintf-posix (Depends-on): Likewise.
33509         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33510         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33511         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33512         "no" on i386, x86_64, ia64.
33513         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33514         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33515         on i386, x86_64, ia64.
33516         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33517         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33518         on i386, x86_64, ia64.
33519         * tests/test-vasnprintf-posix.c: Include float.h.
33520         (LDBL80_WORDS): New macro.
33521         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33522         on i386, x86_64, ia64.
33523         * tests/test-vasprintf-posix.c: Include float.h.
33524         (LDBL80_WORDS): New macro.
33525         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33526         on i386, x86_64, ia64.
33527         * tests/test-snprintf-posix.c: Include float.h.
33528         * tests/test-sprintf-posix.c: Likewise.
33529         * tests/test-vsnprintf-posix.c: Likewise.
33530         * tests/test-vsprintf-posix.c: Likewise.
33531
33532 2007-06-05  Bruno Haible  <bruno@clisp.org>
33533
33534         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33535         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33536         non-IEEE numbers on i386, x86_64, ia64.
33537         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33538         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33539         * tests/test-isnanl.h: Include float.h.
33540         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33541
33542 2007-06-05  Bruno Haible  <bruno@clisp.org>
33543
33544         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33545         also the %a / %A. Handle the %a / %A code before this extra handling.
33546
33547 2007-06-05  Bruno Haible  <bruno@clisp.org>
33548
33549         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33550         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33551
33552 2007-06-05  Bruno Haible  <bruno@clisp.org>
33553
33554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33555         typo in variable name.
33556
33557 2007-06-05  Eric Blake  <ebb9@byu.net>
33558
33559         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33560         Reported by Simon Josefsson.
33561
33562 2007-06-04  Bruno Haible  <bruno@clisp.org>
33563
33564         Avoid test failures on some PowerPC platforms.
33565         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33566         Define differently for PowerPC.
33567         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33568         Reported by Gary V. Vaughan <gary@gnu.org>.
33569
33570 2007-06-02  Bruno Haible  <bruno@clisp.org>
33571
33572         Fix test-stdint failure on FreeBSD/ia64.
33573         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33574         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33575         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33576         * doc/headers/stdint.texi: Update.
33577
33578 2007-06-01  Bruno Haible  <bruno@clisp.org>
33579
33580         * tests/test-binary-io.c (main): Pass a third argument to open().
33581         Reported by Gary V. Vaughan <gary@gnu.org>.
33582
33583 2007-06-01  Bruno Haible  <bruno@clisp.org>
33584
33585         * doc/functions/frexpl.texi: Update for mingw.
33586
33587 2007-06-01  Bruno Haible  <bruno@clisp.org>
33588
33589         * tests/test-lseek.c (main): Disable test of errno for invalid third
33590         argument.
33591         * doc/functions/lseek.texi: Update.
33592         Reported by Gary V. Vaughan <gary@gnu.org>.
33593
33594 2007-05-28  Bruno Haible  <bruno@clisp.org>
33595
33596         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33597
33598 2007-05-31  Eric Blake  <ebb9@byu.net>
33599
33600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33601         cross compiling.
33602
33603 2007-05-30  Eric Blake  <ebb9@byu.net>
33604         and Bruno Haible  <bruno@clisp.org>
33605
33606         Work around mingw test failures exposed by m4-1.4.9b.
33607         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33608         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33609         moment.
33610
33611 2007-05-30  Bruno Haible  <bruno@clisp.org>
33612
33613         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33614         assuming that they are closed. Needed on HP-UX 11.
33615
33616 2007-05-29  Bruno Haible  <bruno@clisp.org>
33617
33618         Fix a problem with #include_next.
33619         * lib/dirent_.h: Split the double-inclusion guard.
33620         * lib/fcntl_.h: Likewise.
33621         * lib/float_.h: Likewise.
33622         * lib/iconv_.h: Likewise.
33623         * lib/inttypes_.h: Likewise.
33624         * lib/locale_.h: Likewise.
33625         * lib/math_.h: Likewise.
33626         * lib/netinet_in_.h: Likewise.
33627         * lib/search_.h: Likewise.
33628         * lib/signal_.h: Likewise.
33629         * lib/stdint_.h: Likewise.
33630         * lib/stdio_.h: Likewise.
33631         * lib/stdlib_.h: Likewise.
33632         * lib/string_.h: Likewise.
33633         * lib/sys_select_.h: Likewise.
33634         * lib/sys_socket_.h: Likewise.
33635         * lib/sys_stat_.h: Likewise.
33636         * lib/sys_time_.h: Likewise.
33637         * lib/sysexits_.h: Likewise.
33638         * lib/time_.h: Likewise.
33639         * lib/unistd_.h: Likewise.
33640         * lib/wchar_.h: Likewise.
33641         * lib/wctype_.h: Likewise.
33642
33643 2007-05-29  Bruno Haible  <bruno@clisp.org>
33644
33645         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33646         for the moment.
33647
33648 2007-05-29  Bruno Haible  <bruno@clisp.org>
33649
33650         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33651         invocation.
33652         Reported by Eric Blake.
33653
33654 2007-05-29  Bruno Haible  <bruno@clisp.org>
33655
33656         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33657         compiling case.
33658
33659 2007-05-29  Eric Blake  <ebb9@byu.net>
33660             Bruno Haible  <bruno@clisp.org>
33661
33662         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33663         cross compiles.
33664
33665 2007-05-28  Eric Blake  <ebb9@byu.net>
33666
33667         * modules/closein-tests (test_closein_LDADD): Support test on
33668         cygwin with libtool.
33669
33670 2007-05-28  Bruno Haible  <bruno@clisp.org>
33671
33672         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33673         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33674         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33675         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33676         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33677         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33678         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33679         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33680         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33681
33682 2007-05-28  Eric Blake  <ebb9@byu.net>
33683
33684         Unconditionally include <config.h> in unit tests.
33685         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33686         * tests/test-allocsa.c, tests/test-arcfour.c,
33687         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33688         tests/test-array_list.c, tests/test-array_oset.c,
33689         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33690         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33691         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33692         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33693         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33694         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33695         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33696         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33697         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33698         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33699         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33700         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33701         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33702         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33703         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33704         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33705         test-md5.c, test-memmem.c, test-printf-posix.c,
33706         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33707         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33708         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33709         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33710         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33711         test-vasnprintf-posix2.c, test-vasnprintf.c,
33712         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33713         test-vfprintf-posix.c, test-vprintf-posix.c,
33714         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33715         test-xvasprintf.c: Likewise.
33716
33717 2007-05-28  Bruno Haible  <bruno@clisp.org>
33718
33719         * gnulib-tool (func_import): Remember the --with-tests command-line
33720         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33721         Reported by Eric Blake.
33722
33723 2007-05-28  Bruno Haible  <bruno@clisp.org>
33724
33725         * modules/ftell-tests: New file.
33726         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33727         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33728
33729         * lib/ftell.c: New file.
33730         * modules/ftell: New file.
33731         * m4/ftell.m4: New file.
33732         * doc/functions/ftell.texi: Update.
33733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33734         REPLACE_FTELL.
33735         * lib/stdio_.h (rpl_ftell): New declaration.
33736         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33737         REPLACE_FTELL.
33738
33739 2007-05-28  Eric Blake  <ebb9@byu.net>
33740
33741         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33742
33743 2007-05-28  Bruno Haible  <bruno@clisp.org>
33744
33745         * modules/fseek-tests: New file.
33746         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33747         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33748
33749         * lib/fseek.c: New file.
33750         * modules/fseek: New file.
33751         * m4/fseek.m4: New file.
33752         * doc/functions/fseek.texi: Update.
33753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33754         REPLACE_FSEEK.
33755         * lib/stdio_.h (rpl_fseek): New declaration.
33756         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33757         REPLACE_FSEEK.
33758
33759 2007-05-28  Bruno Haible  <bruno@clisp.org>
33760
33761         * lib/stdio_.h (fflush): More comments.
33762
33763 2007-05-28  Bruno Haible  <bruno@clisp.org>
33764
33765         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33766         runtime test.
33767
33768 2007-05-28  Eric Blake  <ebb9@byu.net>
33769
33770         Improve lseek module.
33771         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33772         * lib/unistd_.h (lseek): Scale back link warning message.
33773         * tests/test-lseek.c: Beef up test.
33774         * tests/test-lseek.sh: Exercise more facets of lseek.
33775         Reported by Bruno Haible.
33776
33777 2007-05-28  Bruno Haible  <bruno@clisp.org>
33778
33779         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33780         to define.
33781
33782 2007-05-27  Bruno Haible  <bruno@clisp.org>
33783
33784         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33785
33786 2007-05-27  Bruno Haible  <bruno@clisp.org>
33787
33788         * modules/openmp: New file.
33789         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33790         Noah Misch.
33791
33792 2007-05-26  Bruno Haible  <bruno@clisp.org>
33793
33794         * modules/chdir-long (Depends-on): Add fchdir.
33795         * modules/chdir-safer (Depends-on): Likewise.
33796         * modules/fts (Depends-on): Likewise.
33797         * modules/fts-lgpl (Depends-on): Likewise.
33798         * modules/openat (Depends-on): Likewise.
33799         * modules/savewd (Depends-on): Likewise.
33800
33801 2007-05-24  Eric Blake  <ebb9@byu.net>
33802
33803         Fix lseek on mingw.
33804         * modules/lseek: New module.
33805         * m4/lseek.m4: New file.
33806         * lib/lseek.c: New file.
33807         * modules/lseek-tests: New file.
33808         * tests/test-lseek.c: New file.
33809         * tests/test-lseek.sh: New file.
33810         * MODULES.html.sh: Document lseek module.
33811         * modules/fflush (Depends-on): Add lseek, fseeko.
33812         * modules/fseeko (Depends-on): Likewise.
33813         * modules/ftello (Depends-on): Likewise.
33814         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33815         broken.
33816         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33817         broken.
33818         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33819         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33820         * lib/ftello.c (rpl_ftello): Likewise.
33821         * tests/test-fseeko.c (main): Test this.
33822         * tests/test-fseeko.sh: Likewise.
33823         * tests/test-ftello.c (main): Likewise.
33824         * tests/test-ftello.sh: Likewise.
33825         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33826         implies replacing fseek.
33827         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33828         HAVE_FTELLO.
33829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33830         * modules/unistd (Makefile.am): Likewise.
33831         * lib/unistd_.h (lseek): Declare a replacement.
33832         * doc/functions/lseek.texi (lseek): Document this fix.
33833         * doc/functions/fseek.texi (fseek): Likewise.
33834         * doc/functions/ftell.texi (ftell): Likewise.
33835
33836 2007-05-24  Bruno Haible  <bruno@clisp.org>
33837
33838         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33839         in the printed representation of a NaN.
33840         * tests/test-vasprintf-posix.c (test_function): Likewise.
33841         * tests/test-snprintf-posix.h (test_function): Likewise.
33842         * tests/test-sprintf-posix.h (test_function): Likewise.
33843         Reported by Eric Blake.
33844
33845 2007-05-23  Eric Blake  <ebb9@byu.net>
33846
33847         Fix fseeko/ftello on cygwin 1.5.24.
33848         * doc/functions/fseeko.texi (fseeko): Document the fix.
33849         * doc/functions/ftello.texi (ftello): Document the fix.
33850         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33851         * doc/functions/stdout.text (stdout): New file.
33852         * doc/functions/stderr.text (stderr): New file.
33853         * doc/gnulib.texi (Function Substitutes): Use new files.
33854         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33855         prior to 1.7.0.
33856         * tests/test-ftello.c (main): Likewise for ftello.
33857         * tests/test-fseeko.sh: New file.
33858         * tests/test-ftello.sh: New file.
33859         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33860         with seekable stdin.
33861         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33862         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33863         (gl_REPLACE_FSEEKO): New macro.
33864         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33865         * modules/fseeko (Files): Distribute fseeko.c.
33866         * modules/ftello (Files): Distribute ftello.c.
33867         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33868         mode.
33869         * lib/ftello.c (rpl_ftello): New file.
33870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33871         fseeko, ftello.
33872         (gl_STDIN_LARGE_OFFSET): New macro.
33873         * modules/stdio (Makefile.am): Perform the replacement.
33874         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33875
33876 2007-05-23  Bruno Haible  <bruno@clisp.org>
33877
33878         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33879         GNULIB_POSIXCHECK is defined.
33880
33881 2007-05-21  Bruno Haible  <bruno@clisp.org>
33882
33883         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33884         Check also the output for NaN arguments. When cross-compiling, guess
33885         no on IRIX.
33886         * lib/vasnprintf.c: Update comments.
33887         * tests/test-vasnprintf-posix.c (strisnan): New function.
33888         (test_function): Use it.
33889         * tests/test-vasprintf-posix.c (strisnan): New function.
33890         (test_function): Use it.
33891         * tests/test-snprintf-posix.h (strisnan): New function.
33892         (test_function): Use it.
33893         * tests/test-sprintf-posix.h (strisnan): New function.
33894         (test_function): Use it.
33895         Reported by Eric Blake.
33896
33897 2007-05-20  Bruno Haible  <bruno@clisp.org>
33898
33899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33900         numbers that fails on BeOS.
33901         * doc/functions/frexpl.texi: Update.
33902
33903 2007-05-20  Jim Meyering  <jim@meyering.net>
33904
33905         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33906         forced upon us by glibc-2.6.
33907
33908 2007-05-20  Bruno Haible  <bruno@clisp.org>
33909
33910         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33911         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33912         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33913         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33914         NEED_PRINTF_INFINITE.
33915         (is_infinitel): New function.
33916         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33918         gl_PREREQ_VASNPRINTF_INFINITE.
33919         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33920         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33921         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33922         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33923         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33924         gl_PREREQ_VASNPRINTF_INFINITE.
33925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33932         * doc/functions/fprintf.texi: Update.
33933         * doc/functions/printf.texi: Update.
33934         * doc/functions/snprintf.texi: Update.
33935         * doc/functions/sprintf.texi: Update.
33936         * doc/functions/vfprintf.texi: Update.
33937         * doc/functions/vprintf.texi: Update.
33938         * doc/functions/vsnprintf.texi: Update.
33939         * doc/functions/vsprintf.texi: Update.
33940
33941 2007-05-20  Bruno Haible  <bruno@clisp.org>
33942
33943         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33944         was not found in libc.
33945         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33946
33947 2007-05-20  Bruno Haible  <bruno@clisp.org>
33948
33949         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33950         printed as "-nan" instead of "nan".
33951         * tests/test-vasprintf-posix.c (test_function): Likewise.
33952         * tests/test-snprintf-posix.h (test_function): Likewise.
33953         * tests/test-sprintf-posix.h (test_function): Likewise.
33954         Needed for HP-UX 11.
33955
33956 2007-05-20  Jim Meyering  <jim@meyering.net>
33957
33958         Fix buggy test for the fchownat-deref bug.
33959         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33960         symlink required for the run-test.  Without it, this test would
33961         always declare that fchownat doesn't work, and client code would
33962         unnecessarily use the replacement function with fixed libc.
33963         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33964         Reported by Greg Schafer.
33965
33966 2007-05-19  Bruno Haible  <bruno@clisp.org>
33967
33968         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33969         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33970         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33971         Needed for IRIX 6.5 and Solaris 2.5.1.
33972
33973 2007-05-19  Bruno Haible  <bruno@clisp.org>
33974
33975         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33976         (test_function): Skip tests involving -0.0 on platforms where
33977         -0.0 = 0.0.
33978         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33979         (test_function): Skip tests involving -0.0 on platforms where
33980         -0.0 = 0.0.
33981         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33982         (test_function): Skip tests involving -0.0 on platforms where
33983         -0.0 = 0.0.
33984         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33985         (test_function): Skip tests involving -0.0 on platforms where
33986         -0.0 = 0.0.
33987         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33988         tests.
33989         * tests/test-printf-posix.h (test_function): Likewise.
33990         * tests/test-printf-posix.output: Remove all -0.0 related results.
33991         Needed for IRIX 6.5.
33992
33993 2007-05-19  Bruno Haible  <bruno@clisp.org>
33994
33995         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33996         printed as "nan0x7fffffff" instead of "nan".
33997         * tests/test-vasprintf-posix.c (test_function): Likewise.
33998         * tests/test-snprintf-posix.h (test_function): Likewise.
33999         * tests/test-sprintf-posix.h (test_function): Likewise.
34000         * tests/test-fprintf-posix.h (NaN): Remove macro.
34001         (test_function): Remove all NaN related tests.
34002         * tests/test-printf-posix.h (NaN): Remove macro.
34003         (test_function): Remove all NaN related tests.
34004         * tests/test-printf-posix.output: Remove all NaN related results.
34005         Needed for IRIX 6.5.
34006
34007 2007-05-19  Bruno Haible  <bruno@clisp.org>
34008
34009         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34011
34012 2007-05-19  Bruno Haible  <bruno@clisp.org>
34013
34014         * lib/float_.h: New file.
34015         * m4/float_h.m4: New file.
34016         * modules/float: New file.
34017         * modules/isnanl (Dependencies): Add float.
34018         * modules/isnanl-nolibm (Dependencies): Likewise.
34019         * modules/mathl (Dependencies): Likewise.
34020         * modules/printf-frexpl (Dependencies): Likewise.
34021         * modules/signbit (Dependencies): Likewise.
34022         * modules/vasnprintf (Dependencies): Likewise.
34023         * doc/headers/float.texi: Update.
34024
34025 2007-05-19  Jim Meyering  <jim@meyering.net>
34026
34027         * lib/utimens.c (gl_futimens): Rename from futimens,
34028         now that glibc-2.6 declares futimens.
34029         * lib/utimens.h: Likewise.
34030
34031 2007-05-19  Bruno Haible  <bruno@clisp.org>
34032
34033         Avoid test failures on mingw.
34034         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34035         * tests/test-printf-posix.sh: Likewise.
34036         * tests/test-vfprintf-posix.sh: Likewise.
34037         * tests/test-vprintf-posix.sh: Likewise.
34038
34039 2007-05-19  Bruno Haible  <bruno@clisp.org>
34040
34041         Fix *printf result for NaN, Inf, -0.0 on mingw.
34042         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34043         * lib/vasnprintf.c: Include math.h and isnan.h.
34044         (is_infinite_or_zero): New function.
34045         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34046         values in the %f, %F, %e, %E, %g, %G directives.
34047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34049         gl_PRINTF_INFINITE and test its result. Invoke
34050         gl_PREREQ_VASNPRINTF_INFINITE.
34051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34055         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34058         * doc/functions/fprintf.texi: Update.
34059         * doc/functions/printf.texi: Update.
34060         * doc/functions/snprintf.texi: Update.
34061         * doc/functions/sprintf.texi: Update.
34062         * doc/functions/vfprintf.texi: Update.
34063         * doc/functions/vprintf.texi: Update.
34064         * doc/functions/vsnprintf.texi: Update.
34065         * doc/functions/vsprintf.texi: Update.
34066
34067 2007-05-19  Bruno Haible  <bruno@clisp.org>
34068
34069         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34070         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34071         Instead of multiplying with 10^k, set extra_zeroes to k.
34072         (scale10_round_long_double): Remove function.
34073
34074 2007-05-18  Bruno Haible  <bruno@clisp.org>
34075
34076         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34077         introduced on 2007-05-06.
34078
34079 2007-05-18  Bruno Haible  <bruno@clisp.org>
34080
34081         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34082         %g directives.
34083         * tests/test-vasprintf-posix.c (test_function): Likewise.
34084         * tests/test-snprintf-posix.h (test_function): Likewise.
34085         * tests/test-sprintf-posix.h (test_function): Likewise.
34086
34087 2007-05-18  Bruno Haible  <bruno@clisp.org>
34088
34089         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34090         (strmatch): New function.
34091         (test_function): Test the %f directive on numbers of various exponents.
34092         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34093         (strmatch): New function.
34094         (test_function): Test the %f directive on numbers of various exponents.
34095         * tests/test-snprintf-posix.h (strmatch): New function.
34096         (test_function): Test the %f directive on numbers of various exponents.
34097         * tests/test-sprintf-posix.h (strmatch): New function.
34098         (test_function): Test the %f directive on numbers of various exponents.
34099         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34100         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34101         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34102         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34103
34104 2007-05-18  Bruno Haible  <bruno@clisp.org>
34105
34106         Add support for 'long double' number output.
34107         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34108         * lib/vasnprintf.c: Include math.h and float+.h.
34109         (mp_limb_t): New type.
34110         (GMP_LIMB_BITS): New macro.
34111         (mp_twolimb_t): New type.
34112         (GMP_TWOLIMB_BITS): New macro.
34113         (mpn_t): New type.
34114         (multiply, divide, convert_to_decimal, decode_long_double,
34115         scale10_round_long_double, scale10_round_decimal_long_double,
34116         floorlog10l): New functions.
34117         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34118         for the %f, %F, %e, %E, %g, %G directives.
34119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34120         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34121         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34122         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34124         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34127         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34128         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34129         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34130         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34131         * modules/snprintf-posix (Depends-on): Likewise.
34132         * modules/sprintf-posix (Depends-on): Likewise.
34133         * modules/vasnprintf-posix (Depends-on): Likewise.
34134         * modules/vasprintf-posix (Depends-on): Likewise.
34135         * modules/vfprintf-posix (Depends-on): Likewise.
34136         * modules/vsnprintf-posix (Depends-on): Likewise.
34137         * modules/vsprintf-posix (Depends-on): Likewise.
34138         * modules/vasnprintf (Files): Add lib/float+.h.
34139         * doc/functions/fprintf.texi: Update.
34140         * doc/functions/printf.texi: Update.
34141         * doc/functions/snprintf.texi: Update.
34142         * doc/functions/sprintf.texi: Update.
34143         * doc/functions/vfprintf.texi: Update.
34144         * doc/functions/vprintf.texi: Update.
34145         * doc/functions/vsnprintf.texi: Update.
34146         * doc/functions/vsprintf.texi: Update.
34147
34148 2007-05-18  Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34151
34152 2007-05-18  Bruno Haible  <bruno@clisp.org>
34153
34154         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34155         for printing 64-bit integers. Needed for mingw.
34156
34157 2007-05-18  Bruno Haible  <bruno@clisp.org>
34158
34159         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34160         gl_FUNC_FREXPL_WORKS.
34161         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34162
34163 2007-05-18  Bruno Haible  <bruno@clisp.org>
34164
34165         * modules/frexpl-nolibm-tests: New file.
34166
34167         * modules/frexpl-nolibm: New file.
34168         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34169
34170 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34171
34172         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34173         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34174         GCC 4.2, which otherwise issues a lot of warnings.
34175         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34176         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34177         Likewise.
34178         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34179         * modules/iconv_open (iconv.h): Likewise.
34180         * modules/locale (locale.h): Likewise.
34181         * modules/netinet_in (netinet/in.h): Likewise.
34182         * modules/sys_select (sys_select.h): Likewise.
34183         * modules/sys_socket (sys/socket.h): Likewise.
34184         * modules/sys_stat (sys/stat.h): Likewise.
34185         * modules/sysexits (sysexits.h): Likewise.
34186         * modules/unistd (unistd.h): Likewise.
34187
34188 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34189
34190         * modules/closein-tests (Makefile.am): Distribute
34191         `test-closein.sh'.
34192
34193 2007-05-17  Bruno Haible  <bruno@clisp.org>
34194
34195         * tests/test-printf-posix.output: Renamed from
34196         tests/test-fprintf-posix.out.
34197         * modules/fprintf-posix-tests: Update.
34198         * modules/printf-posix-tests: Update.
34199         * modules/vfprintf-posix-tests: Update.
34200         * modules/vprintf-posix-tests: Update.
34201         * tests/test-fprintf-posix.sh: Update.
34202         * tests/test-printf-posix.sh: Update.
34203         * tests/test-vfprintf-posix.sh: Update.
34204         * tests/test-vprintf-posix.sh: Update.
34205         Reported by Ralf Wildenhues.
34206
34207 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34208
34209         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34210         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34211         GCC 4.2, which otherwise issues a lot of warnings.
34212         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34213         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34214         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34215         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34216         it should no longer be needed.
34217         * lib/string_.h: Likewise.
34218         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34219         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34220         * modules/inttypes (inttypes.h): Likewise.
34221         * modules/math (math.h): Likewise.
34222         * modules/search (search.h): Likewise.
34223         * modules/signal (signal.h): Likewise.
34224         * modules/stdint (stdint.h): Likewise.
34225         * modules/stdio (stdio.h): Likewise.
34226         * modules/stdlib (stdlib.h): Likewise.
34227         * modules/string (string.h): Likewise.
34228         * modules/sys_time (sys/time.h): Likewise.
34229         * modules/time (time.h): Likewise.
34230         * modules/wchar (wchar.h): Likewise.
34231         * modules/wctype (wtype.h): Likewise.
34232
34233 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34234
34235         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34236
34237 2007-05-13  Bruno Haible  <bruno@clisp.org>
34238
34239         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34240         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34241         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34242         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34243         (gl_PREREQ_STRTOK_R): Don't require it here.
34244
34245 2007-05-13  Bruno Haible  <bruno@clisp.org>
34246
34247         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34248         when used in C++ mode.
34249
34250 2007-05-12  Bruno Haible  <bruno@clisp.org>
34251
34252         * lib/linebuffer.h: Tweak doc.
34253         * lib/linebuffer.c: Likewise.
34254
34255 2007-05-12  James Youngman  <jay@gnu.org>
34256
34257         * lib/linebuffer.c (readlinebuffer_delim): New function,
34258         like readlinebuffer, but use a caller-specified delimiter.
34259         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34260         as the delimiter.
34261         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34262
34263 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34264
34265         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34266         * modules/openat (Files): Remove openat-die.c.
34267         (Depends-on): Add openat-die.
34268         * modules/openat-die: New module.
34269
34270 2007-05-06  Bruno Haible  <bruno@clisp.org>
34271
34272         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34273         Update with info about Cygwin.
34274         * doc/functions/fprintf.texi: Update.
34275         * doc/functions/printf.texi: Update.
34276         * doc/functions/snprintf.texi: Update.
34277         * doc/functions/sprintf.texi: Update.
34278         * doc/functions/vfprintf.texi: Update.
34279         * doc/functions/vprintf.texi: Update.
34280         * doc/functions/vsnprintf.texi: Update.
34281         * doc/functions/vsprintf.texi: Update.
34282         Reported by Eric Blake.
34283
34284 2007-05-06  Bruno Haible  <bruno@clisp.org>
34285
34286         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34287         padding ourselves for the floating-point directives.
34288         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34291         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34292         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34295         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34296         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34297         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34299         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34300         * tests/test-snprintf-posix.h (test_function): Also check the width
34301         and some flags in the %f directive.
34302         * tests/test-sprintf-posix.h (test_function): Likewise.
34303         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34304         * tests/test-vasprintf-posix.c (test_function): Likewise.
34305         * doc/functions/fprintf.texi: Update.
34306         * doc/functions/printf.texi: Update.
34307         * doc/functions/snprintf.texi: Update.
34308         * doc/functions/sprintf.texi: Update.
34309         * doc/functions/vfprintf.texi: Update.
34310         * doc/functions/vprintf.texi: Update.
34311         * doc/functions/vsnprintf.texi: Update.
34312         * doc/functions/vsprintf.texi: Update.
34313
34314 2007-05-06  Bruno Haible  <bruno@clisp.org>
34315
34316         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34317         pass the ' flag character to sprintf or snprintf.
34318         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34319         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34321         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34322         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34323         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34324         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34325         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34327         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34329         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34330         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34331         flag.
34332         * tests/test-sprintf-posix.h (test_function): Likewise.
34333         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34334         * tests/test-vasprintf-posix.c (test_function): Likewise.
34335         * doc/functions/fprintf.texi: Update.
34336         * doc/functions/printf.texi: Update.
34337         * doc/functions/snprintf.texi: Update.
34338         * doc/functions/sprintf.texi: Update.
34339         * doc/functions/vfprintf.texi: Update.
34340         * doc/functions/vprintf.texi: Update.
34341         * doc/functions/vsnprintf.texi: Update.
34342         * doc/functions/vsprintf.texi: Update.
34343
34344 2007-05-01  Bruno Haible  <bruno@clisp.org>
34345
34346         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34347
34348 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34349
34350         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34351         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34352
34353 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34354
34355         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34356         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34358
34359 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34360
34361         * lib/argp-help.c (struct hol_entry): New member `ord'.
34362         (HOL_ENTRY_PTRCMP): Use ord for comparison
34363         (hol_sort): Initialize ord.
34364
34365 2007-05-01  Bruno Haible  <bruno@clisp.org>
34366
34367         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34368         Reported by Eric Blake.
34369         * doc/gnulib.texi (Function Substitutes): Update.
34370
34371 2007-05-01  Bruno Haible  <bruno@clisp.org>
34372
34373         * doc/functions.texi: Remove file, now redundant through
34374         doc/functions/*.texi.
34375
34376 2007-05-01  Bruno Haible  <bruno@clisp.org>
34377
34378         * modules/argp (Depends-on): Add sleep.
34379
34380 2007-05-01  Bruno Haible  <bruno@clisp.org>
34381
34382         * modules/sleep-tests: New file.
34383         * tests/test-sleep.c: New file.
34384
34385         * modules/sleep: New file.
34386         * lib/sleep.c: New file.
34387         * m4/sleep.m4: New file.
34388         * lib/unistd_.h (sleep): New declaration.
34389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34390         HAVE_SLEEP.
34391         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34392         * doc/functions/sleep.texi: Document the sleep module.
34393
34394 2007-05-01  Bruno Haible  <bruno@clisp.org>
34395
34396         * lib/sigprocmask.h: Remove file.
34397         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34398         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34399         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34400         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34401         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34402         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34403         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34404         HAVE_SIGSET_T as a shell variable.
34405         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34406         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34407         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34408         (Depends-on): Add signal. Remove verify.
34409         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34410         (Include): Mention <signal.h> instead of sigprocmask.h.
34411         * NEWS: Mention the change.
34412         * lib/fatal-signal.c: Don't include sigprocmask.h.
34413
34414 2007-05-01  Bruno Haible  <bruno@clisp.org>
34415
34416         * modules/signal: New file.
34417         * lib/signal_.h: New file.
34418         * m4/signal_h.m4: New file.
34419
34420 2007-05-01  Bruno Haible  <bruno@clisp.org>
34421
34422         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34423         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34424         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34425         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34426
34427 2007-05-01  Bruno Haible  <bruno@clisp.org>
34428
34429         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34430         configure time.
34431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34432         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34433         * modules/sys_stat (Makefile.am): Substitute their values into
34434         sys/stat.h.
34435
34436 2007-05-01  Bruno Haible  <bruno@clisp.org>
34437
34438         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34439         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34440         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34441
34442 2007-05-01  Bruno Haible  <bruno@clisp.org>
34443
34444         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34445         'assert' module here.
34446
34447 2007-05-01  Bruno Haible  <bruno@clisp.org>
34448
34449         * doc/functions/*.texi: New files.
34450         * doc/functions/google-ranking.txt: New file.
34451         * doc/gnulib.texi (Function Substitutes): New chapter.
34452         (ctime, inet_ntoa): Remove sections.
34453         * doc/ctime.texi: Remove file.
34454         * doc/inet_ntoa.texi: Remove file.
34455         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34456         dependencies.
34457         (%.info): New rule, specifying a --reference-limit.
34458
34459 2007-05-01  Bruno Haible  <bruno@clisp.org>
34460
34461         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34462
34463 2007-05-01  Bruno Haible  <bruno@clisp.org>
34464
34465         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34466         the portability of 'mkdir' to mingw systems.
34467
34468 2007-05-01  Bruno Haible  <bruno@clisp.org>
34469
34470         * doc/headers/google-ranking.txt: New file.
34471
34472 2007-04-30  Eric Blake  <ebb9@byu.net>
34473
34474         Prefer fseeko to fseek.
34475         * modules/getpass (Depends-on): Add fseeko.
34476         * lib/getpass.c (getpass): Use fseeko, not fseek.
34477
34478 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34479
34480         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34481         assumes the sorting is stable, while most qsort implementations
34482         are not.  Use argument addresses to ensure they never compare as
34483         equal.
34484
34485         * tests/test-argp-2.sh (usage-indent test): Fix output
34486         (func_compare): Restore diff options
34487         * tests/test-argp.c: Restore #include "progname.h"
34488
34489 2007-04-29  Bruno Haible  <bruno@clisp.org>
34490
34491         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34493         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34495         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34496         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34497         (TESTS, check_PROGRAMS): Add test-snprintf.
34498         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34499         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34500         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34501         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34502         assertions that fail on HP-UX, OSF/1, or IRIX.
34503         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34504
34505 2007-04-29  Bruno Haible  <bruno@clisp.org>
34506
34507         * MODULES.html.sh (posix_functions): Remove 'contents'.
34508
34509 2007-04-29  Karl Berry  <karl@gnu.org>
34510
34511         * config/srclist.txt (gendocs_template_min): new entry.
34512
34513 2007-04-29  Bruno Haible  <bruno@clisp.org>
34514
34515         Work around fpurge bug on BSD systems.
34516         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34517         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34518         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34519         fpurge to rpl_fpurge if the system already has this function.
34520         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34521         the case where the system already has this function. Correct invariants
34522         on BSD systems.
34523         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34524         BSD systems.
34525
34526 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34527
34528         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34529         proposed by Sven Verdoolaege.
34530
34531         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34532         options.
34533         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34534         (usage and help tests): Update
34535
34536 2007-04-29  Bruno Haible  <bruno@clisp.org>
34537
34538         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34539         Print more information in case of failure. Disable a test on BeOS.
34540
34541 2007-04-29  Bruno Haible  <bruno@clisp.org>
34542
34543         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34544         This helps debugging on systems on which no gdb is available.
34545
34546 2007-04-29  Bruno Haible  <bruno@clisp.org>
34547
34548         * lib/freading.h: Improve comments.
34549         * lib/fwriting.h: Likewise.
34550         * tests/test-freading.c (main): Don't check freading immediately after
34551         repositioning. Needed for glibc.
34552
34553 2007-04-29  Bruno Haible  <bruno@clisp.org>
34554
34555         * lib/freading.c (freading): Trivial simplification.
34556
34557 2007-04-28  Bruno Haible  <bruno@clisp.org>
34558
34559         * tests/test-fwriting.c (main): Also test the interaction between
34560         fflush and fwriting.
34561         * modules/fwriting-tests (Depends-on): Add fflush.
34562
34563         * tests/test-freading.c (main): Also test the interaction between
34564         fflush and freading.
34565         * modules/freading-tests (Depends-on): Add fflush.
34566
34567 2007-04-28  Bruno Haible  <bruno@clisp.org>
34568
34569         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34570         fseeko and ftello.
34571         Suggested by Eric Blake.
34572
34573 2007-04-28  Jim Meyering  <jim@meyering.net>
34574
34575         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34576         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34577         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34578
34579 2007-04-27  Eric Blake  <ebb9@byu.net>
34580
34581         * doc/headers/assert.texi (assert.h): Document assert module use.
34582
34583 2007-04-27  Bruno Haible  <bruno@clisp.org>
34584
34585         * doc/headers/*.texi: New files.
34586         * doc/gnulib.texi (Header File Substitutes): New chapter.
34587         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34588         dependencies.
34589         (standards.info ,standards.html, standards.dvi): Update dependencies.
34590         (mostlyclean, clean): New targets.
34591
34592 2007-04-27  Bruno Haible  <bruno@clisp.org>
34593
34594         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34595         * modules/sysexits (Files, Makefile.am): Update.
34596
34597         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34598         * modules/sys_socket (Files, Makefile.am): Update.
34599
34600         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34601         * modules/sys_stat (Files, Makefile.am): Update.
34602
34603 2007-04-27  Eric Blake  <ebb9@byu.net>
34604
34605         * lib/freading.h: Improve comments.
34606         * lib/fwriting.h: Likewise.
34607         * lib/fflush.c: Likewise.
34608
34609         Fix closein for mingw.
34610         * modules/closein-tests: Add tests for closein.
34611         * tests/test-closein.c: New file.
34612         * tests/test-closein.sh: Likewise.
34613         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34614         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34615
34616 2007-04-27  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34619         version is < 6.
34620         * lib/math_.h [__DECC]: Likewise.
34621         * lib/stdio_.h [__DECC]: Likewise.
34622         * lib/stdlib_.h [__DECC]: Likewise.
34623         * lib/string_.h [__DECC]: Likewise.
34624         * lib/time_.h [__DECC]: Likewise.
34625         * lib/wchar_.h [__DECC]: Likewise.
34626         * lib/wctype_.h [__DECC]: Likewise.
34627
34628 2007-04-27  Bruno Haible  <bruno@clisp.org>
34629
34630         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34631
34632 2007-04-27  Bruno Haible  <bruno@clisp.org>
34633
34634         * lib/fflush.c: Add comments.
34635         * modules/fpurge-tests (Depends-on): Add fflush.
34636         * modules/freadable-tests (Depends-on): Likewise.
34637         * modules/fwritable-tests (Depends-on): Likewise.
34638
34639 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34640
34641         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34642         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34643         Report by Bruno Haible <bruno@clisp.org>.
34644
34645 2007-04-26  Eric Blake  <ebb9@byu.net>
34646
34647         Fix fflush on mingw.
34648         * modules/fflush (Depends-on): Add freading.
34649         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34650         but unread data.
34651
34652 2007-04-26  Eric Blake  <ebb9@byu.net>
34653         and Bruno Haible  <bruno@clisp.org>
34654
34655         Implement freading and fwriting.
34656         * lib/freading.c: New file.
34657         * lib/freading.h: Likewise.
34658         * m4/freading.m4: Likewise.
34659         * modules/freading: Likewise.
34660         * modules/freading-tests: Likewise.
34661         * tests/test-freading.c: Likewise.
34662         * lib/fwriting.c: New file.
34663         * lib/fwriting.h: Likewise.
34664         * m4/fwriting.m4: Likewise.
34665         * modules/fwriting: Likewise.
34666         * modules/fwriting-tests: Likewise.
34667         * tests/test-fwriting.c: Likewise.
34668         * MODULES.html.sh (File stream based Input/Output): Mention them.
34669
34670 2007-04-26  Bruno Haible  <bruno@clisp.org>
34671
34672         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34673         'long' when we assume it.
34674         Suggested by Eric Blake.
34675
34676 2007-04-26  Bruno Haible  <bruno@clisp.org>
34677
34678         Ensure fseeko, ftello are declared on glibc systems.
34679         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34680         * modules/fseeko (configure.ac-early): Likewise.
34681         * modules/ftello (configure.ac-early): Likewise.
34682         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34683         AC_FUNC_FSEEKO for this.
34684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34685         (gl_CHECK_FSEEKO): Remove macro.
34686
34687 2007-04-26  Bruno Haible  <bruno@clisp.org>
34688
34689         * tests/test-fflush.c (main): Also check the ftell result after
34690         fflush and fseek/fseeko.
34691         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34692         file descriptor position cache in the stream.
34693         * lib/fseeko.c (rpl_fseeko): Likewise.
34694
34695 2007-04-26  Bruno Haible  <bruno@clisp.org>
34696
34697         * modules/fflush-tests (Depends-on): Add fseeko.
34698
34699 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34700             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34701
34702         * lib/argz_.h: ensure error_t definition is obtained in same
34703         mechanism system argz.h would have.
34704         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34705         argz facilities are known bad.  Err on the side of caution if
34706         cross-compiling.
34707
34708 2007-04-25  Eric Blake  <ebb9@byu.net>
34709
34710         * lib/fpurge.c (includes): Use stdlib.h for free.
34711         * tests/test-fflush.c (main): Also test fflush-fseeko.
34712
34713 2007-04-25  Bruno Haible  <bruno@clisp.org>
34714
34715         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34716         * lib/fseeko.c: New file.
34717         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34718         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34719         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34720         gl_FUNC_FSEEKO.
34721         (gl_FUNC_FSEEKO): Invoke it.
34722         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34723         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34724         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34725
34726 2007-04-25  Bruno Haible  <bruno@clisp.org>
34727
34728         * modules/fflush (Depends-on): Add ftello.
34729
34730 2007-04-25  Bruno Haible  <bruno@clisp.org>
34731
34732         * modules/ftello-tests: New file.
34733         * tests/test-ftello.c: New file.
34734
34735         * modules/ftello: New file.
34736         * m4/ftello.m4: New file.
34737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34738         HAVE_FTELLO.
34739         * lib/stdio_.h (ftello): New declaration.
34740         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34741         HAVE_FTELLO.
34742
34743 2007-04-25  Bruno Haible  <bruno@clisp.org>
34744
34745         * modules/fseeko-tests: New file.
34746         * tests/test-fseeko.c: New file.
34747
34748         * modules/fseeko: New file.
34749         * m4/fseeko.m4: New file.
34750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34751         HAVE_FSEEKO.
34752         * lib/stdio_.h (fseeko): New declaration.
34753         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34754         HAVE_FSEEKO.
34755
34756 2007-04-25  Bruno Haible  <bruno@clisp.org>
34757
34758         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34759
34760 2007-04-25  Bruno Haible  <bruno@clisp.org>
34761
34762         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34763         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34764         * tests/test-unistd.c: Likewise.
34765         * tests/test-fcntl.c: Likewise.
34766
34767 2007-04-23  Eric Blake  <ebb9@byu.net>
34768
34769         * lib/fflush.c: Fix missing include.
34770         Reported by Bruno Haible.
34771
34772 2007-04-23  Bruno Haible  <bruno@clisp.org>
34773
34774         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34775         Reported by Eric Blake.
34776
34777 2007-04-23  Bruno Haible  <bruno@clisp.org>
34778
34779         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34780
34781 2007-04-23  Bruno Haible  <bruno@clisp.org>
34782
34783         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34784
34785 2007-04-23  Bruno Haible  <bruno@clisp.org>
34786
34787         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34788         Needed on HP-UX 11.
34789
34790 2007-04-16  Eric Blake  <ebb9@byu.net>
34791
34792         Make fflush rely on fpurge.
34793         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34794         open coding all variants.
34795         * modules/fflush (Depends-on): Add fpurge and unistd.
34796         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34797         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34798
34799         Fix --with-tests compilation on cygwin.
34800         * modules/argmatch-tests (Makefile.am): List gnulib library first
34801         in LDADD.
34802         * modules/argp-tests (Makefile.am): Likewise.
34803         * modules/array-list-tests (Makefile.am): Likewise.
34804         * modules/array-oset-tests (Makefile.am): Likewise.
34805         * modules/avltree-list-tests (Makefile.am): Likewise.
34806         * modules/avltree-oset-tests (Makefile.am): Likewise.
34807         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34808         * modules/carray-list-tests (Makefile.am): Likewise.
34809         * modules/dirname-tests (Makefile.am): Likewise.
34810         * modules/frexp-tests (Makefile.am): Likewise.
34811         * modules/isnanl-tests (Makefile.am): Likewise.
34812         * modules/linked-list-tests (Makefile.am): Likewise.
34813         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34814         * modules/lock-tests (Makefile.am): Likewise.
34815         * modules/rbtree-list-tests (Makefile.am): Likewise.
34816         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34817         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34818         * modules/tls-tests (Makefile.am): Likewise.
34819         * modules/tsearch-tests (Makefile.am): Likewise.
34820         * modules/xvasprintf-tests (Makefile.am): Likewise.
34821
34822         Fix fpurge for cygwin.
34823         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34824         value.
34825         * modules/fpurge-tests (Depends-on): Clean up trash.
34826
34827 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34828
34829         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34830
34831         * m4/autobuild.m4: Re-indent.
34832
34833 2007-04-13  Bruno Haible  <bruno@clisp.org>
34834
34835         * modules/fpurge-tests: New file.
34836         * tests/test-fpurge.c: New file.
34837
34838         * modules/fpurge: New file.
34839         * lib/fpurge.h: New file.
34840         * lib/fpurge.c: New file.
34841         * m4/fpurge.m4: New file.
34842
34843 2007-04-13  Bruno Haible  <bruno@clisp.org>
34844
34845         * modules/fbufmode-tests: New file.
34846         * tests/test-fbufmode.c: New file.
34847
34848         * modules/fbufmode: New file.
34849         * lib/fbufmode.h: New file.
34850         * lib/fbufmode.c: New file.
34851         * m4/fbufmode.m4: New file.
34852
34853 2007-04-13  Bruno Haible  <bruno@clisp.org>
34854
34855         * modules/fwritable-tests: New file.
34856         * tests/test-fwritable.c: New file.
34857
34858         * modules/fwritable: New file.
34859         * lib/fwritable.h: New file.
34860         * lib/fwritable.c: New file.
34861         * m4/fwritable.m4: New file.
34862
34863 2007-04-13  Bruno Haible  <bruno@clisp.org>
34864
34865         * modules/freadable-tests: New file.
34866         * tests/test-freadable.c: New file.
34867
34868         * modules/freadable: New file.
34869         * lib/freadable.h: New file.
34870         * lib/freadable.c: New file.
34871         * m4/freadable.m4: New file.
34872
34873 2007-04-13  Bruno Haible  <bruno@clisp.org>
34874
34875         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34876         MOSTLYCLEANFILES.
34877
34878 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34879
34880         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34881         gzip bootstrap.conf to avoid dragging in i18n machinery.
34882         (gnulib_tool_option): Use it.
34883
34884 2007-04-13  Bruno Haible  <bruno@clisp.org>
34885
34886         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34887         %F directives.
34888         * tests/test-vasprintf-posix.c (test_function): Likewise.
34889         * tests/test-snprintf-posix.h (test_function): Likewise.
34890         * tests/test-sprintf-posix.h (test_function): Likewise.
34891         * tests/test-fprintf-posix.h (test_function): Likewise.
34892         * tests/test-printf-posix.h (test_function): Likewise.
34893         * tests/test-fprintf-posix.out: Likewise.
34894
34895 2007-04-13  Bruno Haible  <bruno@clisp.org>
34896
34897         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34898         * modules/tls-tests (configure.ac): Likewise.
34899         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34900
34901 2007-04-13  Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/tls.c (glthread_tls_get): Fix return type.
34904         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34905
34906 2007-04-12  Eric Blake  <ebb9@byu.net>
34907
34908         * modules/gettime (Depends-on): Remove gettime.
34909         Reported by Dmitry V. Levin.
34910
34911 2007-04-12  Bruno Haible  <bruno@clisp.org>
34912
34913         * modules/fflush (Include): Mention <stdio.h>.
34914         * modules/strtoimax (Include): Mention <inttypes.h>.
34915         * modules/strtoumax (Include): Likewise.
34916
34917 2007-04-12  Eric Blake  <ebb9@byu.net>
34918
34919         * .cvsignore: New file.
34920         * .gitignore: Likewise.
34921
34922 2007-04-12  Bruno Haible  <bruno@clisp.org>
34923
34924         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34925         not before, since $(LDADD) often contains libgnu.a.
34926         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34927         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34928         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34929         Needed on Cygwin.
34930
34931 2007-04-12  Eric Blake  <ebb9@byu.net>
34932
34933         Work around glibc's failure to flush stdin on fclose.
34934         * lib/closein.c (close_stdin): Flush stdin before closing.
34935
34936         Work around glibc's failure to reset seekable stdin on exit.
34937         * modules/closein: New module.
34938         * lib/closein.c: New file.
34939         * lib/closein.h: Likewise.
34940         * m4/closein.m4: Likewise.
34941         * MODULES.html.sh (File stream based Input/Output): Document it.
34942
34943 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34944
34945         * gnulib-tool: Rename generated 'autobuild' script to
34946         'do-autobuild' in --create-megatestdir output.
34947
34948         * doc/gnulib.texi (Build robot for gnulib): Fix.
34949
34950 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34951
34952         * modules/sysexits (Depends-on): Add absolute-header.
34953
34954 2007-04-12  Eric Blake  <ebb9@byu.net>
34955
34956         No need to preserve errno on success.
34957         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34958         Reported by Bruno Haible.
34959
34960 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34961
34962         * MODULES.html.sh (Support for maintaining and releasing
34963         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34964
34965 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34966
34967         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34968
34969 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34970
34971         * modules/autobuild: New module.
34972
34973         * m4/autobuild.m4: New file.
34974
34975 2007-04-11  Bruno Haible  <bruno@clisp.org>
34976
34977         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34978         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34979         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34981         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34982         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34983         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34985         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34986         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34988         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34989         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34990         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34991         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34992         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34994         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34995         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34996         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34997         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34998         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35000         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35001         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35002         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35003         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35004         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35005         Reported by Eric Blake.
35006
35007 2007-04-11  Bruno Haible  <bruno@clisp.org>
35008
35009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35010
35011 2007-04-10  Bruno Haible  <bruno@clisp.org>
35012
35013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35014         for NaN and Infinity. Needed on FreeBSD 6.1.
35015         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35016         regarding results for "%010a" of Infinity and NaN.
35017         * tests/test-vasprintf-posix.c (test_function): Likewise.
35018         * tests/test-snprintf-posix.h (test_function): Likewise.
35019         * tests/test-sprintf-posix.h (test_function): Likewise.
35020         * tests/test-fprintf-posix.h (test_function): Likewise.
35021         * tests/test-printf-posix.h (test_function): Likewise.
35022         * tests/test-fprintf-posix.out: Likewise.
35023
35024 2007-04-10  Bruno Haible  <bruno@clisp.org>
35025
35026         * modules/locale-tests: New file.
35027         * tests/test-locale.c: New file.
35028
35029         * modules/locale: New file.
35030         * lib/locale_.h: New file.
35031         * m4/locale_h.m4: New file.
35032
35033 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35034             Bruno Haible  <bruno@clisp.org>
35035
35036         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35037         be determined, test for availability of the copysignf, copysign,
35038         copysignl functions.
35039         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35040         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35041         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35042
35043 2007-04-09  Eric Blake  <ebb9@byu.net>
35044
35045         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35046         * modules/stdio (Makefile.am): Support fflush.
35047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35048         * modules/fflush: New file.
35049         * lib/fflush.c: Likewise.
35050         * m4/fflush.m4: Likewise.
35051         * modules/fflush-tests: New test.
35052         * tests/test-fflush.c: Likewise.
35053         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35054
35055 2007-04-06  Bruno Haible  <bruno@clisp.org>
35056
35057         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35058         (VASNPRINTF): Use signbit for faster determination whether to print a
35059         minus sign.
35060         * modules/vasnprintf (Files): Remove lib/float+.h.
35061         * modules/fprintf-posix (Depends-on): Add signbit.
35062         * modules/snprintf-posix (Depends-on): Likewise.
35063         * modules/sprintf-posix (Depends-on): Likewise.
35064         * modules/vasnprintf-posix (Depends-on): Likewise.
35065         * modules/vasprintf-posix (Depends-on): Likewise.
35066         * modules/vfprintf-posix (Depends-on): Likewise.
35067         * modules/vsnprintf-posix (Depends-on): Likewise.
35068         * modules/vsprintf-posix (Depends-on): Likewise.
35069
35070 2007-04-06  Bruno Haible  <bruno@clisp.org>
35071
35072         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35073         * tests/test-frexpl.c (main): Likewise.
35074         * tests/test-ldexpl.c (main): Likewise.
35075         * modules/frexp-tests (Depends-on): Add signbit.
35076         * modules/frexpl-tests (Depdends-on): Likewise.
35077         * modules/ldexpl-tests (Depdends-on): Likewise.
35078
35079 2007-04-06  Bruno Haible  <bruno@clisp.org>
35080
35081         * modules/signbit-tests: New file.
35082         * tests/test-signbit.c: New file.
35083
35084         * modules/signbit: New file.
35085         * lib/signbitf.c: New file.
35086         * lib/signbitd.c: New file.
35087         * lib/signbitl.c: New file.
35088         * m4/signbit.m4: New file.
35089         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35090         (signbit): New macro.
35091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35092         REPLACE_SIGNBIT.
35093         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35094         REPLACE_FREXPL into math.h.
35095
35096 2007-04-06  Bruno Haible  <bruno@clisp.org>
35097
35098         * modules/isnanf-nolibm-tests: New file.
35099         * tests/test-isnanf.c: New file.
35100
35101         * modules/isnanf-nolibm: New file.
35102         * lib/isnanf.h: New file.
35103         * lib/isnanf.c: New file.
35104         * lib/isnan.c: Consider the USE_FLOAT macro.
35105         * m4/isnanf.m4: New file.
35106
35107 2007-04-06  Bruno Haible  <bruno@clisp.org>
35108
35109         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35110         (Link): New section.
35111
35112         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35113
35114 2007-04-06  Bruno Haible  <bruno@clisp.org>
35115
35116         Assume the 'long double' type.
35117         * m4/longdouble.m4: Remove file.
35118         * config/srclist.txt: Don't mention longdouble.m4.
35119         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35120         * lib/float+.h: Likewise.
35121         * lib/frexp.c: Likewise.
35122         * lib/printf-args.h: Likewise.
35123         * lib/printf-args.c: Likewise.
35124         * lib/printf-frexp.c: Likewise.
35125         * lib/printf-parse.c: Likewise.
35126         * lib/vasnprintf.c: Likewise.
35127         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35128         * m4/intl.m4: Likewise.
35129         * m4/isnanl.m4: Likewise.
35130         * m4/printf.m4: Likewise.
35131         * m4/printf-frexpl.m4: Likewise.
35132         * m4/vasnprintf.m4: Likewise.
35133         * modules/allocsa (Files): Remove m4/longdouble.m4.
35134         * modules/gettext (Files): Likewise.
35135         * modules/relocatable-prog-wrapper (Files): Likewise.
35136         * modules/vasnprintf (Files): Likewise.
35137         * modules/isnanl (Files): Likewise.
35138         (Include): Simplify.
35139         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35140         (Include): Simplify.
35141         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35142         (Include): Simplify.
35143         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35144         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35145         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35146         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35147         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35148         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35149         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35150         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35151         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35152         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35153         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35154         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35155         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35156         * tests/test-isnanl.c: Likewise.
35157         * tests/test-snprintf-posix.h: Likewise.
35158         * tests/test-sprintf-posix.h: Likewise.
35159         * tests/test-vasnprintf-posix.c: Likewise.
35160         * tests/test-vasnprintf-posix2.c: Likewise.
35161         * tests/test-vasprintf-posix.c: Likewise.
35162
35163 2007-04-06  Bruno Haible  <bruno@clisp.org>
35164
35165         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35166         * lib/math_.h [__DECC]: Include the overridden include file through
35167         #include_next, outside the double-inclusion guard.
35168         * lib/stdio_.h [__DECC]: Likewise.
35169         * lib/stdlib_.h [__DECC]: Likewise.
35170         * lib/string_.h [__DECC]: Likewise.
35171         * lib/time_.h [__DECC]: Likewise.
35172         * lib/wchar_.h [__DECC]: Likewise.
35173         * lib/wctype_.h [__DECC]: Likewise.
35174         * lib/inttypes_.h [__DECC]: Likewise.
35175         Reported by Albert Chin <china@thewrittenword.com> in
35176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35177
35178 2007-04-04  Eric Blake  <ebb9@byu.net>
35179
35180         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35181         1.5.x.
35182
35183 2007-04-04  Bruno Haible  <bruno@clisp.org>
35184
35185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35186         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35187
35188 2007-04-04  Bruno Haible  <bruno@clisp.org>
35189
35190         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35191         results for "%010a" of Infinity and NaN.
35192         * tests/test-vasprintf-posix.c (test_function): Likewise.
35193         * tests/test-snprintf-posix.h (test_function): Likewise.
35194         * tests/test-sprintf-posix.h (test_function): Likewise.
35195         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35196         * tests/test-printf-posix.h (test_function): Likewise.
35197         * tests/test-fprintf-posix.out: Update.
35198         Needed for FreeBSD 6.1.
35199
35200 2007-04-04  Bruno Haible  <bruno@clisp.org>
35201
35202         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35203         directly used by the gnulib modules nor by gnulib-tool.
35204
35205 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35206
35207         * DEPENDENCIES: Give overall description of version dependency
35208         desirability.  Use more-typical names for apps.
35209         Add shell, coreutils, diffutils, grep, tar, gzip.
35210
35211 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35212
35213         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35214
35215 2007-04-04  Karl Berry  <karl@gnu.org>
35216
35217         * MODULES.html.sh (func_module): missing '.
35218
35219 2007-04-03  Bruno Haible  <bruno@clisp.org>
35220
35221         * modules/argmatch-tests (Makefile.am): New variable
35222         test_argmatch_LDADD.
35223         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35224         * modules/array-list-tests (Makefile.am): New variable
35225         test_array_list_LDADD.
35226         * modules/array-oset-tests (Makefile.am): New variable
35227         test_array_oset_LDADD.
35228         * modules/avltree-list-tests (Makefile.am): New variable
35229         test_avltree_list_LDADD.
35230         * modules/avltree-oset-tests (Makefile.am): New variable
35231         test_avltree_oset_LDADD.
35232         * modules/avltreehash-list-tests (Makefile.am): New variable
35233         test_avltreehash_list_LDADD.
35234         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35235         test_canonicalize_lgpl_LDADD.
35236         * modules/carray-list-tests (Makefile.am): New variable
35237         test_carray_list_LDADD.
35238         * modules/dirname-tests (Makefile.am): New variable
35239         test_dirname_LDADD.
35240         * modules/linked-list-tests (Makefile.am): New variable
35241         test_linked_list_LDADD.
35242         * modules/linkedhash-list-tests (Makefile.am): New variable
35243         test_linkedhash_list_LDADD.
35244         * modules/rbtree-list-tests (Makefile.am): New variable
35245         test_rbtree_list_LDADD.
35246         * modules/rbtree-oset-tests (Makefile.am): New variable
35247         test_rbtree_oset_LDADD.
35248         * modules/rbtreehash-list-tests (Makefile.am): New variable
35249         test_rbtreehash_list_LDADD.
35250         * modules/xvasprintf-tests (Makefile.am): New variable
35251         test_xvasprintf_LDADD.
35252         Reported by Eric Blake.
35253
35254 2007-04-03  Eric Blake  <ebb9@byu.net>
35255
35256         * DEPENDENCIES: Weaken m4 requirements.
35257
35258 2007-04-03  Bruno Haible  <bruno@clisp.org>
35259
35260         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35261         * modules/isnanl-tests (configure.ac): Likewise.
35262
35263 2007-04-03  Ben Pfaff  <blp@gnu.org>
35264
35265         * modules/iconv_open: Add $(srcdir)/ to source directory
35266         references in Makefile fragments that call gperf, to fix VPATH
35267         builds.
35268
35269 2007-04-03  Bruno Haible  <bruno@clisp.org>
35270
35271         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35272         * lib/ldexpl.c: Undo last change.
35273
35274 2007-04-03  Bruno Haible  <bruno@clisp.org>
35275
35276         * modules/printf-frexpl (Depends-on): Undo last change.
35277         (Files): Add m4/ldexpl.m4.
35278
35279 2007-04-03  Bruno Haible  <bruno@clisp.org>
35280
35281         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35282         * modules/isnanl (Link): New section.
35283
35284         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35285         * modules/frexp (Link): New section.
35286
35287         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35288         * modules/frexpl (Link): New section.
35289
35290         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35291         * modules/ldexpl (Link): New section.
35292
35293 2007-04-03  Bruno Haible  <bruno@clisp.org>
35294
35295         * modules/TEMPLATE-EXTENDED: New file.
35296         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35297
35298 2007-04-03  Bruno Haible  <bruno@clisp.org>
35299
35300         * DEPENDENCIES: New file.
35301         Suggested by Simon Josefsson.
35302
35303 2007-04-03  Bruno Haible  <bruno@clisp.org>
35304
35305         * doc/gnulib.texi: Escape @.
35306
35307 2007-04-03  James Youngman  <jay@gnu.org>
35308         and Paul Eggert  <eggert@cs.ucla.edu>
35309
35310         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35311         birthtime on all systems that have birthtime, not just those which
35312         use st_birthtimensec rather than st_birthtim.  Putting zero in
35313         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35314         that the birth time is not available for files on an NFS mount.
35315
35316 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35317
35318         * modules/memxor: Move back from crypto/, suggested by Bruno.
35319         * modules/crypto/hmac-sha1: Fix memxor dependency.
35320
35321         * modules/crypto/gc: Moved from ../.
35322
35323 2007-04-02  Eric Blake  <ebb9@byu.net>
35324
35325         * lib/ldexpl.c (includes): Avoid libm.
35326
35327         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35328
35329 2007-04-02  Bruno Haible  <bruno@clisp.org>
35330
35331         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35332         on IRIX.
35333
35334 2007-04-02  Bruno Haible  <bruno@clisp.org>
35335
35336         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35337         x86 or x86_64 platforms running MacOS X.
35338         Reported by Ryan Schmidt <@ryandesign.com>.
35339
35340 2007-04-02  Bruno Haible  <bruno@clisp.org>
35341
35342         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35343         i386.
35344
35345 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35346
35347         * modules/crypto/arcfour: Moved from ../.
35348         * modules/crypto/arcfour-tests: Moved from ../.
35349         * modules/crypto/arctwo: Moved from ../.
35350         * modules/crypto/arctwo-tests: Moved from ../.
35351         * modules/crypto/des: Moved from ../.
35352         * modules/crypto/des-tests: Moved from ../.
35353         * modules/crypto/gc-arcfour: Moved from ../.
35354         * modules/crypto/gc-arcfour-tests: Moved from ../.
35355         * modules/crypto/gc-arctwo: Moved from ../.
35356         * modules/crypto/gc-arctwo-tests: Moved from ../.
35357         * modules/crypto/gc-des: Moved from ../.
35358         * modules/crypto/gc-des-tests: Moved from ../.
35359         * modules/crypto/gc-hmac-md5: Moved from ../.
35360         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35361         * modules/crypto/gc-hmac-sha1: Moved from ../.
35362         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35363         * modules/crypto/gc-md2: Moved from ../.
35364         * modules/crypto/gc-md2-tests: Moved from ../.
35365         * modules/crypto/gc-md4: Moved from ../.
35366         * modules/crypto/gc-md4-tests: Moved from ../.
35367         * modules/crypto/gc-md5: Moved from ../.
35368         * modules/crypto/gc-md5-tests: Moved from ../.
35369         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35370         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35371         * modules/crypto/gc-random: Moved from ../.
35372         * modules/crypto/gc-rijndael: Moved from ../.
35373         * modules/crypto/gc-rijndael-tests: Moved from ../.
35374         * modules/crypto/gc-sha1: Moved from ../.
35375         * modules/crypto/gc-sha1-tests: Moved from ../.
35376         * modules/crypto/gc-tests: Moved from ../.
35377         * modules/crypto/hmac-md5: Moved from ../.
35378         * modules/crypto/hmac-md5-tests: Moved from ../.
35379         * modules/crypto/hmac-sha1: Moved from ../.
35380         * modules/crypto/hmac-sha1-tests: Moved from ../.
35381         * modules/crypto/md2: Moved from ../.
35382         * modules/crypto/md2-tests: Moved from ../.
35383         * modules/crypto/md4: Moved from ../.
35384         * modules/crypto/md4-tests: Moved from ../.
35385         * modules/crypto/md5: Moved from ../.
35386         * modules/crypto/md5-tests: Moved from ../.
35387         * modules/crypto/memxor: Moved from ../.
35388         * modules/crypto/rijndael: Moved from ../.
35389         * modules/crypto/rijndael-tests: Moved from ../.
35390         * modules/crypto/sha1: Moved from ../.
35391
35392 2007-03-30  James Youngman  <jay@gnu.org>
35393
35394         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35395         rename() to change the ctime of a file (because ctime is unaffected
35396         by rename on jfs2 on AIX 5.1).
35397         (main): Start by doing cleanup, in case a previous run failed leaving
35398         test files behind.
35399
35400 2007-03-31  Bruno Haible  <bruno@clisp.org>
35401
35402         Support old proprietary implementations of iconv.
35403         * modules/iconv_open: New file.
35404         * lib/iconv_.h: New file.
35405         * m4/iconv_h.m4: New file.
35406         * lib/iconv_open.c: New file.
35407         * lib/iconv_open-aix.gperf: New file.
35408         * lib/iconv_open-hpux.gperf: New file.
35409         * lib/iconv_open-irix.gperf: New file.
35410         * lib/iconv_open-osf.gperf: New file.
35411         * m4/iconv_open.m4: New file.
35412         * modules/linebreak (Depends-on): Add iconv_open.
35413         * modules/striconv (Depends-on): Likewise.
35414         * modules/striconveh (Depends-on): Likewise.
35415         * modules/unicodeio (Depends-on): Likewise.
35416         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35417         (iconv_t)(-1).
35418         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35419         conversion if cd is (iconv_t)(-1).
35420         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35421         is not possible.
35422
35423 2007-03-31  Bruno Haible  <bruno@clisp.org>
35424
35425         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35426         work on Solaris either. Protect also second use of "autodetect_jp".
35427
35428 2007-03-31  Bruno Haible  <bruno@clisp.org>
35429
35430         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35431         the function is not present.
35432
35433 2007-03-31  Bruno Haible  <bruno@clisp.org>
35434
35435         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35436         the function is not present.
35437
35438 2007-03-31  Bruno Haible  <bruno@clisp.org>
35439
35440         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35441         a bug in HP-UX iconv_open().
35442
35443 2007-03-31  Bruno Haible  <bruno@clisp.org>
35444
35445         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35446         (Mathematics <math.h>): New section, add fpieee.
35447         (Input/output <stdio.h>): Add fseterr.
35448         (Mathematics <math.h>): New section, add printf-frexp.
35449         (Container data structures): Add sublist.
35450         (Core language properties): Add fpucw, inline.
35451         (Functions for greatest-width integer types <inttypes.h>): Add
35452         imaxabs, imaxdiv, inttypes.
35453         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35454         isnanl-nolibm, ldexp.
35455         (Mathematics <math.h>): New section, add printf-frexpl.
35456         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35457         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35458         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35459         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35460         (Unicode string functions): Add unistr/u*-mbtoucr.
35461         (Java): Add javacomp-script, javaexec-script.
35462         (C#): Add csharpcomp-script, csharpexec-script.
35463         (Support for building libraries and executables): Add havelib,
35464         relocatable-*.
35465         (Support for maintaining and releasing projects): Renamed from
35466         'Support for maintaining and release projects'. Add announce-gen.
35467
35468 2007-03-31  Bruno Haible  <bruno@clisp.org>
35469
35470         * README: Talk primarily about git.
35471         (git and CVS): Renamed from CVS.
35472         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35473         gnulib is available through git.
35474         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35475
35476 2007-03-30  Bruno Haible  <bruno@clisp.org>
35477
35478         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35479         * lib/poll_.h: Likewise.
35480         * lib/stat_.h: Likewise.
35481         * lib/sys_time_.h: Likewise.
35482         * lib/sysexit_.h: Likewise.
35483         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35484         * lib/stdbool_.h: Likewise.
35485         * lib/byteswap_.h: Add double-inclusion guard.
35486
35487 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35488
35489         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35490
35491 2007-03-30  Karl Berry  <karl@gnu.org>
35492
35493         * config/srclist-update: double space after USA in the license
35494         substitution, since that's how it's usually (?) written.
35495
35496 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35497
35498         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35499         reported by Bruno Haible.
35500
35501 2007-03-29  Bruno Haible  <bruno@clisp.org>
35502
35503         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35504         a bug in AIX iconv().
35505
35506 2007-03-29  Bruno Haible  <bruno@clisp.org>
35507
35508         * modules/ldexpl-tests: New file.
35509         * tests/test-ldexpl.c: New file.
35510
35511 2007-03-29  Bruno Haible  <bruno@clisp.org>
35512
35513         * lib/ldexpl.c: Include fpucw.h.
35514         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35515         multiplication.
35516         * modules/ldexpl (Depends-on): Add fpucw.
35517
35518 2007-03-29  Bruno Haible  <bruno@clisp.org>
35519
35520         * modules/ldexpl: New file.
35521         * m4/ldexpl.m4: New file.
35522         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35523         set.
35524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35525         REPLACE_LDEXPL.
35526         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35527         REPLACE_LDEXPL.
35528         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35529         gl_FUNC_LDEXPL_WORKS.
35530         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35531         * modules/mathl (Files): Remove lib/ldexpl.c.
35532         (Depends-on): Add ldexpl.
35533
35534 2007-03-29  Bruno Haible  <bruno@clisp.org>
35535
35536         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35537
35538 2007-03-29  Bruno Haible  <bruno@clisp.org>
35539
35540         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35541         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35542         and possibly also HP-UX.
35543         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35544         work on AIX, IRIX, HP-UX, OSF/1.
35545         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35546         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35547         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35548         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35549         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35550         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35551
35552 2007-03-29  Bruno Haible  <bruno@clisp.org>
35553
35554         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35555
35556 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35557
35558         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35559         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35560
35561 2007-03-29  Eric Blake  <ebb9@byu.net>
35562
35563         * lib/acl-internal.h: Remove redundant include.
35564         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35565         Cygwin when a file is locked.
35566
35567 2007-03-29  Bruno Haible  <bruno@clisp.org>
35568
35569         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35570         file.
35571         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35572
35573 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35574
35575         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35576         try to remove a parent directory if the child couldn't be removed
35577         (except for the first rmdir, which could fail because the child
35578         doesn't exist).  Problem reported by Jeff Blaine in
35579         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35580
35581 2007-03-28  Bruno Haible  <bruno@clisp.org>
35582
35583         * lib/striconveh.c (utf8conv_carefully): New function.
35584         (mem_cd_iconveh_internal): Invoke it.
35585
35586 2007-03-28  Bruno Haible  <bruno@clisp.org>
35587
35588         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35589         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35590         input.
35591         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35592         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35593         unistr/u8-uctomb.
35594
35595 2007-03-28  Bruno Haible  <bruno@clisp.org>
35596
35597         * modules/unistr/u8-mbtoucr: New file.
35598         * lib/unistr/u8-mbtoucr.c: New file.
35599         * modules/unistr/u16-mbtoucr: New file.
35600         * lib/unistr/u16-mbtoucr.c: New file.
35601         * modules/unistr/u16-mbtoucr: New file.
35602         * lib/unistr/u16-mbtoucr.c: New file.
35603         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35604
35605 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35606             Bruno Haible  <bruno@clisp.org>
35607
35608         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35609         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35610         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35611
35612         * m4/stdio_h.m4: Add stubs for vasprintf too.
35613
35614         * modules/stdio: Support vasprintf in sed command.
35615
35616         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35617         vasprintf.h.  Add stdio module indicator.
35618
35619         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35620         vasprintf.h.
35621
35622         * lib/vasprintf.h: File removed.
35623
35624         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35625         * lib/vasprintf.c: Ditto.
35626         * lib/xvasprintf.c: Ditto.
35627         * tests/test-vasprintf-posix.c: Ditto.
35628         * tests/test-vasprintf.c: Ditto.
35629
35630 2007-03-27  Bruno Haible  <bruno@clisp.org>
35631
35632         Make vasnprintf multithread-safe.
35633         * lib/vasnprintf.c (decimal_point_char): New function.
35634         (VASNPRINTF): Use it.
35635         Suggested by Simon Josefsson.
35636
35637 2007-03-27  Eric Blake  <ebb9@byu.net>
35638
35639         Support sub-second birthtime on cygwin.
35640         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35641         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35642         (get_stat_birthtime): Also work with st_birthtim.
35643
35644 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35645
35646         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35647         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35648         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35649         (get_stat_birthtime_ns): Simplify compile-time tests.
35650         (get_stat_birthtime): Change the API to look like
35651         get_stat_mtime etc., except return a negative tv_nsec on error.
35652         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35653         Don't check for "spare" fields.
35654         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35655         or for struct stat.st_birthtime, as these tests aren't used.
35656         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35657
35658 2007-03-27  Bruno Haible  <bruno@clisp.org>
35659
35660         * lib/stat-time.h: Include <sys/stat.h>.
35661
35662 2007-03-27  James Youngman  <jay@gnu.org>
35663
35664         * lib/stat-time.h (get_stat_birthtime): New function for
35665           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35666         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35667           and its variants.
35668         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35669         * modules/stat-time-test: New file.
35670         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35671
35672 2007-03-26  Bruno Haible  <bruno@clisp.org>
35673
35674         Better support of signalling NaNs.
35675         * lib/atanl.c: Include isnanl.h.
35676         (atanl): Perform test for NaN at the beginning of the function and
35677         through a call to isnanl.
35678         * lib/cosl.c: Include isnanl.h.
35679         (cosl): Perform test for NaN at the beginning of the function and
35680         through a call to isnanl.
35681         * lib/ldexpl.c: Include isnanl.h.
35682         (ldexpl): Perform test for NaN through a call to isnanl.
35683         * lib/logl.c: Include isnanl.h.
35684         (logl): Perform test for NaN at the beginning of the function and
35685         through a call to isnanl.
35686         * lib/sinl.c: Include isnanl.h.
35687         (sinl): Perform test for NaN at the beginning of the function and
35688         through a call to isnanl.
35689         * lib/sqrtl.c: Include isnanl.h.
35690         (sqrtl): Perform test for NaN at the beginning of the function and
35691         through a call to isnanl.
35692         * lib/tanl.c: Include isnanl.h.
35693         (tanl): Perform test for NaN at the beginning of the function and
35694         through a call to isnanl.
35695         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35696         * modules/mathl (Depends-on): Add isnanl.
35697
35698 2007-03-26  Eric Blake  <ebb9@byu.net>
35699
35700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35701         regression in logic sense of previous patch.
35702
35703 2007-03-26  Bruno Haible  <bruno@clisp.org>
35704
35705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35706         unportable shell command "if ! ...".
35707         Reported by Ralf Wildenhues.
35708
35709 2007-03-25  Bruno Haible  <bruno@clisp.org>
35710
35711         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35712         <sysexits.h> file, and only add EX_CONFIG.
35713         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35714         absolute file name and whether it is sufficient. Substitute also
35715         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35716         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35717         ABSOLUTE_SYSEXITS_H into sysexits.h.
35718
35719 2007-03-25  Bruno Haible  <bruno@clisp.org>
35720
35721         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35722         hints is NULL.
35723
35724 2007-03-25  Bruno Haible  <bruno@clisp.org>
35725
35726         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35727         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35728
35729 2007-03-25  Bruno Haible  <bruno@clisp.org>
35730
35731         * lib/vasnprintf.c: Include langinfo.h.
35732         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35733         multithread-safe.
35734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35735         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35740         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35743         Reported by Simon Josefsson.
35744
35745 2007-03-25  Bruno Haible  <bruno@clisp.org>
35746
35747         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35748         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35749         * modules/vasnprintf (Depends-on): Add stdint.
35750
35751 2007-03-25  Bruno Haible  <bruno@clisp.org>
35752
35753         * modules/fpieee: New file.
35754         * m4/fpieee.m4: New file.
35755         * modules/isnan-nolibm (Depends-on): Add fpieee.
35756         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35757         * modules/isnanl (Depends-on): Add fpieee.
35758
35759 2007-03-25  Bruno Haible  <bruno@clisp.org>
35760
35761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35762
35763 2007-03-25  Bruno Haible  <bruno@clisp.org>
35764
35765         Avoid test failures on IRIX 6.5.
35766         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35767         (main): Use it.
35768         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35769         macros.
35770         (main): Use them.
35771
35772 2007-03-25  Bruno Haible  <bruno@clisp.org>
35773
35774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35775         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35776         exists but doesn't work.
35777         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35778         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35780         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35781
35782 2007-03-25  Bruno Haible  <bruno@clisp.org>
35783
35784         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35785         returns inf. Needed on IRIX 6.5.
35786
35787 2007-03-25  Bruno Haible  <bruno@clisp.org>
35788
35789         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35790         (main): Use isnanl instead of x != x idiom.
35791         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35792
35793         * tests/test-frexp.c: Include isnan.h.
35794         (main): Use isnan instead of x != x idiom.
35795         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35796
35797 2007-03-25  Bruno Haible  <bruno@clisp.org>
35798
35799         * tests/test-frexp.c (NaN): New function/macro.
35800         (main): Use it instead of 0.0 / 0.0.
35801         * tests/test-isnan.c (NaN): New function/macro.
35802         (main): Use it instead of 0.0 / 0.0.
35803         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35804         (test_function): Use it instead of 0.0 / 0.0.
35805         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35806         (test_function): Use it instead of 0.0 / 0.0.
35807         * tests/test-snprintf-posix.h (NaN): New function/macro.
35808         (test_function): Use it instead of 0.0 / 0.0.
35809         * tests/test-sprintf-posix.h (NaN): New function/macro.
35810         (test_function): Use it instead of 0.0 / 0.0.
35811         * tests/test-fprintf-posix.h (NaN): New function/macro.
35812         (test_function): Use it instead of 0.0 / 0.0.
35813         * tests/test-printf-posix.h (NaN): New function/macro.
35814         (test_function): Use it instead of 0.0 / 0.0.
35815
35816         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35817
35818 2007-03-25  Bruno Haible  <bruno@clisp.org>
35819
35820         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35821
35822 2007-03-25  Bruno Haible  <bruno@clisp.org>
35823
35824         * lib/regexec.c (merge_state_with_log): Make static.
35825
35826 2007-03-25  Bruno Haible  <bruno@clisp.org>
35827
35828         * lib/trigl.c (kernel_rem_pio2): Make static.
35829
35830 2007-03-25  Bruno Haible  <bruno@clisp.org>
35831
35832         * lib/sincosl.c (sincosl_table): Make static.
35833
35834 2007-03-25  Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35837         if the compiler does not support C99.
35838
35839 2007-03-25  Bruno Haible  <bruno@clisp.org>
35840
35841         * modules/time (Makefile.am): Ensure all rule action lines start with a
35842         tab.
35843
35844 2007-03-24  Bruno Haible  <bruno@clisp.org>
35845
35846         * modules/tsearch-tests: New file.
35847         * tests/test-tsearch.sh: New file.
35848         * tests/test-tsearch.c: New file, mostly copied from glibc.
35849
35850         * modules/search-tests: New file.
35851         * tests/test-search.c: New file.
35852
35853         * modules/search: New file.
35854         * lib/search_.h: New file, incorporating lib/tsearch.h.
35855         * m4/search_h.m4: New file.
35856         * lib/tsearch.h: Remove file.
35857         * lib/tsearch.c: Include search.h instead of tsearch.h.
35858         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35859         HAVE_TSEARCH.
35860         * modules/tsearch (Files): Remove lib/tsearch.h.
35861         (Depends-on): Add search.
35862         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35863         (Include): Change tsearch.h into search.h.
35864
35865 2007-03-24  Bruno Haible  <bruno@clisp.org>
35866
35867         * modules/fpucw: New file.
35868         * lib/fpucw.h: New file.
35869         * lib/frexp.c: Include fpucw.h.
35870         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35871         (FUNC): Use them.
35872         * lib/printf-frexp.c: Include fpucw.h.
35873         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35874         (FUNC): Use them.
35875         * lib/vasnprintf.c: Include fpucw.h.
35876         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35877         'long double' calculations.
35878         * tests/test-frexpl.c: Include fpucw.h.
35879         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35880         * tests/test-printf-frexpl.c: Include fpucw.h.
35881         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35882         * modules/frexpl (Depends-on): Add fpucw.
35883         * modules/printf-frexpl (Depends-on): Likewise.
35884         * modules/fprintf-posix (Depends-on): Likewise.
35885         * modules/snprintf-posix (Depends-on): Likewise.
35886         * modules/sprintf-posix (Depends-on): Likewise.
35887         * modules/vasnprintf-posix (Depends-on): Likewise.
35888         * modules/vasprintf-posix (Depends-on): Likewise.
35889         * modules/vfprintf-posix (Depends-on): Likewise.
35890         * modules/vsnprintf-posix (Depends-on): Likewise.
35891         * modules/vsprintf-posix (Depends-on): Likewise.
35892         * modules/frexpl-tests (Depends-on): Likewise.
35893         * modules/printf-frexpl-tests (Depends-on): Likewise.
35894
35895 2007-03-24  Bruno Haible  <bruno@clisp.org>
35896
35897         * lib/float+.h: New file.
35898         * lib/isnan.c: Include float+.h.
35899         (SIZE): New macro.
35900         (FUNC): Compare only SIZE bytes of the value.
35901         * lib/vasnprintf.c: Include float+.h.
35902         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35903         SIZEOF_LDBL or SIZEOF_DBL bytes.
35904         * modules/isnan-nolibm (Files): Add lib/float+.h.
35905         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35906         * modules/isnanl (Files): Add lib/float+.h.
35907         * modules/vasnprintf (Files): Add lib/float+.h.
35908
35909 2007-03-24  Bruno Haible  <bruno@clisp.org>
35910
35911         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35912         include isnanl-nolibm.h.
35913
35914 2007-03-24  Bruno Haible  <bruno@clisp.org>
35915
35916         * tests/test-read-file.c (main): Don't produce spurious output for
35917         expected situations. Make the test fail if it encountered unexpected
35918         results.
35919
35920 2007-03-24  Bruno Haible  <bruno@clisp.org>
35921
35922         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35923         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35924
35925 2007-03-24  Bruno Haible  <bruno@clisp.org>
35926
35927         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35928
35929 2007-03-24  Bruno Haible  <bruno@clisp.org>
35930
35931         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35932         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35933
35934         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35935         * modules/utf8-ucs4: Turn into a symbolic link to module
35936         unistr/u8-mbtouc.
35937
35938         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35939         utf8-ucs4-unsafe.
35940         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35941         unistr/u8-mbtouc-unsafe.
35942
35943         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35944         * modules/utf16-ucs4: Turn into a symbolic link to module
35945         unistr/u16-mbtouc.
35946
35947         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35948         utf16-ucs4-unsafe.
35949         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35950         unistr/u16-mbtouc-unsafe.
35951
35952         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35953         * modules/ucs4-utf8: Turn into a symbolic link to module
35954         unistr/u8-ubtomb.
35955
35956         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35957         * modules/ucs4-utf16: Turn into a symbolic link to module
35958         unistr/u16-ubtomb.
35959
35960 2007-03-24  Bruno Haible  <bruno@clisp.org>
35961
35962         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35963         Enable the function only if HAVE_INLINE.
35964         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35965         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35966         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35967         Enable the function only if HAVE_INLINE.
35968         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35969         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35970         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35971         Enable the function only if HAVE_INLINE.
35972         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35973         Enable the function only if HAVE_INLINE.
35974         * modules/utf8-ucs4: Update.
35975         * modules/utf8-ucs4-unsafe: Update.
35976         * modules/utf16-ucs4: Update.
35977         * modules/utf16-ucs4-unsafe: Update.
35978         * modules/ucs4-utf8: Update.
35979         * modules/ucs4-utf16: Update.
35980
35981 2007-03-24  Bruno Haible  <bruno@clisp.org>
35982
35983         * lib/utf8-ucs4.h: Remove file.
35984         * lib/utf8-ucs4-unsafe.h: Remove file.
35985         * lib/utf16-ucs4.h: Remove file.
35986         * lib/utf16-ucs4-unsafe.h: Remove file.
35987         * lib/ucs4-utf8.h: Remove file.
35988         * lib/ucs4-utf16.h: Remove file.
35989         * lib/unistr.h: Include their previous contents.
35990         * m4/utf-ucs4.m4: Remove file.
35991         * m4/ucs4-utf.m4: Remove file.
35992         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35993         (Depends-on): Add unistr/base.
35994         (configure.ac): Remove gl_UTF_UCS4.
35995         (Makefile.am): Update.
35996         (Include): Change to unistr.h.
35997         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35998         (Depends-on): Add unistr/base.
35999         (configure.ac): Remove gl_UTF_UCS4.
36000         (Makefile.am): Update.
36001         (Include): Change to unistr.h.
36002         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36003         (Depends-on): Add unistr/base.
36004         (configure.ac): Remove gl_UTF_UCS4.
36005         (Makefile.am): Update.
36006         (Include): Change to unistr.h.
36007         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36008         (Depends-on): Add unistr/base.
36009         (configure.ac): Remove gl_UTF_UCS4.
36010         (Makefile.am): Update.
36011         (Include): Change to unistr.h.
36012         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36013         (Depends-on): Add unistr/base.
36014         (configure.ac): Remove gl_UCS4_UTF.
36015         (Makefile.am): Update.
36016         (Include): Change to unistr.h.
36017         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36018         (Depends-on): Add unistr/base.
36019         (configure.ac): Remove gl_UCS4_UTF.
36020         (Makefile.am): Update.
36021         (Include): Change to unistr.h.
36022         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36023         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36024         utf8-ucs4-unsafe.h.
36025         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36026         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36027         utf16-ucs4-unsafe.h.
36028         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36029         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36030         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36031         * lib/unistr/u8-strchr.c: Likewise.
36032         * lib/unistr/u8-strrchr.c: Likewise.
36033         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36034         * lib/unistr/u16-strchr.c: Likewise.
36035         * lib/unistr/u16-strrchr.c: Likewise.
36036         * lib/striconveh.c: Update.
36037         * lib/linebreak.c: Update.
36038
36039 2007-03-24  Bruno Haible  <bruno@clisp.org>
36040
36041         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36042         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36043
36044 2007-03-22  Bruno Haible  <bruno@clisp.org>
36045
36046         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36047
36048 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36049
36050         * MODULES.html.sh (File system functions): New module write-any-file.
36051         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36052         * m4/write-any-file.m4: New files.
36053
36054 2007-03-23  Eric Blake  <ebb9@byu.net>
36055
36056         * gnulib-tool: Rearrange space-tab sequences, since some editors
36057         like to eat them.
36058
36059 2007-03-23  Eric Blake  <ebb9@byu.net>
36060
36061         * lib/version-etc.c (version_etc_va): Update license wording to
36062         be more concise.  Recommended by Richard Stallman.
36063
36064 2007-03-22  Bruno Haible  <bruno@clisp.org>
36065
36066         * lib/poll.c (MSG_PEEK): New fallback definition.
36067
36068 2007-03-22  Bruno Haible  <bruno@clisp.org>
36069
36070         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36071         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36072         (main): Update.
36073         Fixes a compilation error on BeOS.
36074
36075 2007-03-22  Bruno Haible  <bruno@clisp.org>
36076
36077         * modules/frexpl-tests: New file.
36078         * tests/test-frexpl.c: New file.
36079
36080         * modules/frexpl: New file.
36081         * m4/frexpl.m4: New file.
36082         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36083         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36085         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36086         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36087         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36088
36089 2007-03-22  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/frexpl.c: Share code with lib/frexp.c.
36092         * modules/mathl (Files): Add lib/frexp.c.
36093         (Depends-on): Add isnanl-nolibm.
36094
36095 2007-03-22  Bruno Haible  <bruno@clisp.org>
36096
36097         * modules/printf-frexp (Files): Add m4/frexp.m4.
36098         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36099         only if the found frexp function actually works.
36100
36101 2007-03-22  Bruno Haible  <bruno@clisp.org>
36102
36103         * lib/frexp.c: Remove older implementation that uses divisions.
36104
36105 2007-03-21  Bruno Haible  <bruno@clisp.org>
36106
36107         * modules/frexp-tests: New file.
36108         * tests/test-frexp.c: New file.
36109
36110         * modules/frexp: New file.
36111         * lib/frexp.c: New file.
36112         * m4/frexp.m4: New file.
36113         * lib/math_.h (frexp): New declaration.
36114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36115         REPLACE_FREXP.
36116         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36117
36118 2007-03-21  Bruno Haible  <bruno@clisp.org>
36119
36120         * modules/isnanl-tests: New file.
36121         * tests/test-isnanl.c: New file.
36122
36123         * modules/isnanl: New file.
36124         * lib/isnanl.h: New file.
36125         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36126         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36127         gl_FUNC_ISNANL_WORKS.
36128         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36129         New macros.
36130
36131 2007-03-21  Bruno Haible  <bruno@clisp.org>
36132
36133         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36134         lib/isnanl.h.
36135         (Include): Update.
36136         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36137         * lib/vasnprintf.c: Update.
36138         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36139         tests/test-isnanl.h, remove tests/test-isnanl.c.
36140         (Makefile.am): Update.
36141         * tests/test-isnanl-nolibm.c: New file.
36142         * tests/test-isnanl.h: New file.
36143         * tests/test-isnanl.c: Remove file.
36144
36145 2007-03-21  Jim Meyering  <jim@meyering.net>
36146
36147         When trying to open ".", treat ESTALE like EACCES.
36148         * lib/savewd.c (savewd_save): Resort to forking not just upon
36149         failure with EACCES, but also when errno is ESTALE.
36150
36151 2007-03-20  Bruno Haible  <bruno@clisp.org>
36152
36153         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36154         Needed on AIX 5.1. Reported by Matthew Woehlke.
36155
36156 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36157
36158         Suggestions by Bruno Haible:
36159         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36160         our own.
36161         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36162         * modules/acl (Depends-on): Add gettext.
36163
36164 2007-03-19  Bruno Haible  <bruno@clisp.org>
36165
36166         * modules/iconvme: Remove file.
36167         * lib/iconvme.h: Remove file.
36168         * lib/iconvme.c: Remove file.
36169         * m4/iconvme.m4: Remove file.
36170
36171 2007-03-19  Bruno Haible  <bruno@clisp.org>
36172
36173         * doc/relocatable-maint.texi: Break long shell script line.
36174         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36175
36176 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36177
36178         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36179         handle file_has_acl.
36180         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36181         * lib/acl.c: Move header inclusions and related macro defns into
36182         lib/acl-internal.h.
36183         (S_ISLNK): Remove defn, since that's now done for us.
36184         (file_has_acl): Move to lib/file-has-acl.c.
36185         Call acl_trivial if available.  This is the crucial part of the fix.
36186         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36187         shared within the library.  Rewrite a bit, partly to make it compatible
36188         with the GNU coding style.
36189         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36190         Remove unnecessary double-quotes.
36191         Don't test for acl_to_text; the build will catch that.
36192         Replace acl_entries if it doesn't exist and it is needed.
36193         Check for -lsec and acl_trivial (as used on Solaris 10).
36194         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36195         lib/file-has-acl.c.
36196         (Depends-on): Add sys_stat, for S_ISLNK.
36197
36198 2007-03-19  Ben Pfaff  <blp@gnu.org>
36199
36200         * doc/gnulib.texi: Fix typos.
36201         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36202
36203 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36204
36205         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36206         If size is zero here, buf must be zero.
36207
36208 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36209
36210         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36211         <bruno@clisp.org>.
36212
36213 2007-03-18  Bruno Haible  <bruno@clisp.org>
36214
36215         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36216         Suggested by Eric Blake.
36217
36218 2007-03-18  Ben Pfaff  <blp@gnu.org>
36219
36220         * doc/relocatable.texi: Recommend using as prefix a directory
36221         that does not exist and will never be created.  Based on
36222         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36223         and others.
36224
36225 2007-03-17  Bruno Haible  <bruno@clisp.org>
36226
36227         * lib/fchownat.c: Include lchown.h.
36228
36229 2007-03-17  Bruno Haible  <bruno@clisp.org>
36230
36231         Fix endless loop when the given allocated size was > INT_MAX.
36232         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36233         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36234         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36235         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36236         * lib/sprintf.c (sprintf): Likewise.
36237
36238 2007-03-17  Bruno Haible  <bruno@clisp.org>
36239
36240         * tests/test-argp-2.sh (func_compare): Output a context diff.
36241
36242 2007-03-17  Bruno Haible  <bruno@clisp.org>
36243
36244         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36245         locale's decimal-point character.
36246
36247 2007-03-17  Bruno Haible  <bruno@clisp.org>
36248
36249         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36250         before comparing it. Needed because on some platforms (e.g. x86) a
36251         'long double' occupies less bytes than sizeof (long double).
36252
36253 2007-03-17  Bruno Haible  <bruno@clisp.org>
36254
36255         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36256         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36257         * tests/test-getaddrinfo.c (simple): Likewise.
36258         * tests/test-read-file.c (main): Likewise.
36259
36260 2007-03-17  Bruno Haible  <bruno@clisp.org>
36261
36262         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36263
36264 2007-03-17  Bruno Haible  <bruno@clisp.org>
36265
36266         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36267         unused variable.
36268
36269 2007-03-17  Bruno Haible  <bruno@clisp.org>
36270
36271         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36272         * tests/test-c-strncasecmp.c: Likewise.
36273
36274 2007-03-17  Bruno Haible  <bruno@clisp.org>
36275
36276         * modules/stdlib (Depends-on): Add unistd.
36277         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36278         Needed for MacOS X 10.3.
36279
36280 2007-03-17  Bruno Haible  <bruno@clisp.org>
36281
36282         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36283
36284 2007-03-17  Bruno Haible  <bruno@clisp.org>
36285
36286         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36287
36288 2007-03-17  Bruno Haible  <bruno@clisp.org>
36289
36290         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36291         to reflect files copied from gnulib (with or without modifications).
36292         Suggested by Jim Meyering.
36293
36294 2007-03-17  Eric Blake  <ebb9@byu.net>
36295
36296         * NEWS: Document stdlib change from 2007-02-18.
36297
36298 2007-03-17  Jim Meyering  <jim@meyering.net>
36299
36300         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36301         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36302         someone uses a name containing shell meta-characters.
36303         Reported by Alfred M. Szmidt.
36304
36305         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36306
36307 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36308
36309         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36310         and copy gettext configuration files only if configure.ac contains
36311         a use of AM_GNU_GETTEXT_VERSION.
36312
36313 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36314
36315         * build-aux/bootstrap (gnulib_name): New variable.
36316         (gnulib_tool_options): Use it.
36317
36318 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36319
36320         * tests/test-des.c: Use new namespace.
36321
36322 2007-03-15  Bruno Haible  <bruno@clisp.org>
36323
36324         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36325         Reported by James Youngman <jay@gnu.org>.
36326
36327 2007-03-15  Bruno Haible  <bruno@clisp.org>
36328
36329         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36330         declared prototype. Needed with cc on OSF/1 5.1.
36331
36332 2007-03-15  Bruno Haible  <bruno@clisp.org>
36333
36334         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36335         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36336         (struct gl_list_implementation): Add dispose_fn argument to the
36337         'create_empty', 'create' methods.
36338         (struct gl_list_impl_base): Add field 'dispose_fn'.
36339         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36340         argument.
36341         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36342         dispose_fn argument.
36343         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36344         dispose_fn on the dropped values.
36345         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36346         dispose_fn argument.
36347         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36348         dropped values.
36349         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36350         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36351         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36352         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36353         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36354         argument.
36355         (gl_tree_list_free): Call dispose_fn on the dropped values.
36356         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36357         the dropped values.
36358         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36359         Add dispose_fn argument.
36360         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36361         Call dispose_fn on the dropped values.
36362         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36363         Add dispose_fn argument.
36364         (gl_sublist_create): Initialize the 'dispose_fn' field.
36365         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36366         * tests/test-array_list.c (main): Update.
36367         * tests/test-carray_list.c (main): Update.
36368         * tests/test-avltree_list.c (main): Update.
36369         * tests/test-rbtree_list.c (main): Update.
36370         * tests/test-avltreehash_list.c (main): Update.
36371         * tests/test-rbtreehash_list.c (main): Update.
36372         * tests/test-linked_list.c (main): Update.
36373         * tests/test-linkedhash_list.c (main): Update.
36374         * tests/test-array_oset.c (main): Update.
36375
36376 2007-03-15  Bruno Haible  <bruno@clisp.org>
36377
36378         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36379         (gl_oset_create_empty): Add dispose_fn argument.
36380         (struct gl_oset_implementation): Add dispose_fn argument to
36381         'create_empty' method.
36382         (struct gl_oset_impl_base): Add dispose_fn field.
36383         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36384         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36385         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36386         values.
36387         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36388         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36389         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36390         dropped value.
36391         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36392         dropped value.
36393         * tests/test-array_oset.c (main): Update.
36394         * tests/test-avltree_oset.c (main): Update.
36395         * tests/test-rbtree_oset.c (main): Update.
36396         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36397
36398 2007-03-13  Bruno Haible  <bruno@clisp.org>
36399
36400         * tests/test-stdbool.c (i): Update after last patch.
36401
36402 2007-03-12  Bruno Haible  <bruno@clisp.org>
36403
36404         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36405         the iswprint macro. Needed on Solaris 2.5.1.
36406
36407 2007-03-12  Bruno Haible  <bruno@clisp.org>
36408
36409         * tests/test-printf-frexp.c (main): Declare x as volatile.
36410
36411 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36412
36413         * doc/gnulib.texi (Build robot for gnulib): New section.
36414
36415 2007-03-12  Jim Meyering  <jim@meyering.net>
36416
36417         * build-aux/bootstrap: New file.
36418         * build-aux/bootstrap.conf: New file, from coreutils.
36419
36420 2007-03-11  Bruno Haible  <bruno@clisp.org>
36421
36422         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36423
36424 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36425
36426         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36427         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36428         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36429
36430 2007-03-11  Bruno Haible  <bruno@clisp.org>
36431
36432         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36433         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36434
36435 2007-03-11  Bruno Haible  <bruno@clisp.org>
36436
36437         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36438         formula. Needed for SunPRO C 5.0.
36439
36440 2007-03-11  Bruno Haible  <bruno@clisp.org>
36441
36442         * modules/long-options (Depends-on): Add getopt.
36443
36444 2007-03-11  Bruno Haible  <bruno@clisp.org>
36445
36446         * modules/modechange (Depends-on): Add stdbool.
36447
36448 2007-03-11  Bruno Haible  <bruno@clisp.org>
36449
36450         * modules/i-ring (Depends-on): Add stdbool.
36451
36452 2007-03-11  Bruno Haible  <bruno@clisp.org>
36453
36454         * modules/gc-des (Depends-on): Add stdbool.
36455
36456 2007-03-11  Bruno Haible  <bruno@clisp.org>
36457
36458         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36459
36460 2007-03-11  Bruno Haible  <bruno@clisp.org>
36461
36462         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36463
36464 2007-03-11  Bruno Haible  <bruno@clisp.org>
36465
36466         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36467
36468 2007-03-11  Bruno Haible  <bruno@clisp.org>
36469
36470         * lib/vasnprintf.c (sprintf): Undefine.
36471
36472 2007-03-11  Bruno Haible  <bruno@clisp.org>
36473
36474         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36475         initializers in SunPRO C and Compaq C compilers.
36476
36477 2007-03-11  Bruno Haible  <bruno@clisp.org>
36478
36479         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36480         decrementing code ANSI C compliant.
36481
36482 2007-03-11  Bruno Haible  <bruno@clisp.org>
36483
36484         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36485         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36486
36487 2007-03-11  Bruno Haible  <bruno@clisp.org>
36488
36489         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36490         <stdbool.h> substitute doesn't pass.
36491
36492 2007-03-11  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36495
36496 2007-03-11  Bruno Haible  <bruno@clisp.org>
36497
36498         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36499         script, for submission to autobuild.josefsson.org.
36500
36501 2007-03-10  Bruno Haible  <bruno@clisp.org>
36502
36503         * modules/canonicalize-lgpl-tests: New file.
36504         * tests/test-canonicalize-lgpl.sh: New file.
36505         * tests/test-canonicalize-lgpl.c: New file.
36506
36507         * modules/c-strcase-tests: New file.
36508         * tests/test-c-strcase.sh: New file.
36509         * tests/test-c-strcasecmp.c: New file.
36510         * tests/test-c-strncasecmp.c: New file.
36511
36512         * modules/atexit-tests: New file.
36513         * tests/test-atexit.sh: New file.
36514         * tests/test-atexit.c: New file.
36515
36516 2007-03-10  Bruno Haible  <bruno@clisp.org>
36517
36518         * tests/test-binary-io.sh: Use temporary filenames that are not so
36519         likely to clash with those of other tests (in a parallel make).
36520         * tests/test-binary-io.c: Likewise.
36521
36522 2007-03-10  Bruno Haible  <bruno@clisp.org>
36523
36524         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36525         fallback; use #error instead.
36526         Suggested by Simon Josefsson.
36527
36528 2007-03-10  Bruno Haible  <bruno@clisp.org>
36529
36530         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36531         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36532         first and the last.
36533
36534 2007-03-10  Bruno Haible  <bruno@clisp.org>
36535
36536         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36537
36538 2007-03-10  Bruno Haible  <bruno@clisp.org>
36539
36540         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36541         "make distcheck".
36542         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36543         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36544         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36545
36546 2007-03-10  Bruno Haible  <bruno@clisp.org>
36547
36548         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36549         variable.
36550         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36551         variable.
36552
36553 2007-03-09  Eric Blake  <ebb9@byu.net>
36554         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36555
36556         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36557         types are not being provided by gnulib.
36558         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36559         types are supported.
36560
36561 2007-03-10  Bruno Haible  <bruno@clisp.org>
36562
36563         * lib/stdio_.h (__attribute__): New macro.
36564         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36565         vsprintf): Specify __attribute__ __format__ for GCC.
36566         Suggested by Eric Blake.
36567
36568 2007-03-09  Bruno Haible  <bruno@clisp.org>
36569
36570         * modules/printf-posix-tests: New file.
36571         * tests/test-printf-posix.sh: New file.
36572         * tests/test-printf-posix.c: New file.
36573
36574         * modules/printf-posix: New file.
36575         * lib/printf.c: New file.
36576         * m4/printf-posix-rpl.m4: New file.
36577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36578         REPLACE_PRINTF.
36579         * lib/stdio_.h (printf): New declaration.
36580         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36581         ____strfmon____): New macros.
36582         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36583         REPLACE_PRINTF.
36584
36585 2007-03-09  Bruno Haible  <bruno@clisp.org>
36586
36587         * tests/test-vasnprintf-posix2.sh: New file.
36588         * tests/test-vasnprintf-posix2.c: New file.
36589         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36590         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36591         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36592
36593         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36594         a locale dependent decimal point, rather than always '.'.
36595
36596 2007-03-09  Eric Blake  <ebb9@byu.net>
36597
36598         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36599         spite of platforms like Tandem/NSK that define it to -1.
36600
36601 2007-03-08  Bruno Haible  <bruno@clisp.org>
36602
36603         * modules/vprintf-posix-tests: New file.
36604         * tests/test-vprintf-posix.sh: New file.
36605         * tests/test-vprintf-posix.c: New file.
36606         * tests/test-printf-posix.h: New file.
36607
36608         * modules/vprintf-posix: New file.
36609         * lib/vprintf.c: New file.
36610         * m4/vprintf-posix.m4: New file.
36611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36612         REPLACE_VPRINTF.
36613         * lib/stdio_.h (vprintf): New declaration.
36614         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36615         REPLACE_VPRINTF.
36616
36617 2007-03-08  Bruno Haible  <bruno@clisp.org>
36618
36619         * modules/fprintf-posix-tests: New file.
36620         * tests/test-fprintf-posix.sh: New file.
36621         * tests/test-fprintf-posix.c: New file.
36622
36623         * modules/fprintf-posix: New file.
36624         * lib/fprintf.c: New file.
36625         * m4/fprintf-posix.m4: New file.
36626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36627         REPLACE_FPRINTF.
36628         * lib/stdio_.h (fprintf): New declaration.
36629         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36630         REPLACE_FPRINTF.
36631
36632 2007-03-08  Bruno Haible  <bruno@clisp.org>
36633
36634         * modules/vfprintf-posix-tests: New file.
36635         * tests/test-vfprintf-posix.sh: New file.
36636         * tests/test-vfprintf-posix.c: New file.
36637         * tests/test-fprintf-posix.h: New file.
36638         * tests/test-fprintf-posix.out: New file.
36639
36640         * modules/vfprintf-posix: New file.
36641         * lib/vfprintf.c: New file.
36642         * m4/vfprintf-posix.m4: New file.
36643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36644         REPLACE_VFPRINTF.
36645         * lib/stdio_.h (vfprintf): New declaration.
36646         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36647         REPLACE_VFPRINTF.
36648
36649 2007-03-08  Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36652
36653 2007-03-08  Bruno Haible  <bruno@clisp.org>
36654
36655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36656         instead of 'expr' invocations.
36657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36662         Suggested by Paul Eggert.
36663
36664 2007-03-08  Bruno Haible  <bruno@clisp.org>
36665
36666         * modules/fseterr-tests: New file.
36667         * tests/test-fseterr.c: New file.
36668
36669         * modules/fseterr: New file.
36670         * lib/fseterr.h: New file.
36671         * lib/fseterr.c: New file.
36672
36673 2007-03-08  Bruno Haible  <bruno@clisp.org>
36674
36675         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36676         * lib/getopt_.h: Likewise.
36677         * lib/mbswidth.h: Likewise.
36678         * lib/setenv.h: Likewise.
36679         * lib/vasnprintf.h: Likewise.
36680         * lib/vasprintf.h: Likewise.
36681         * lib/verror.h: Likewise.
36682         * lib/xsetenv.h: Likewise.
36683         * lib/xvasprintf.h: Likewise.
36684
36685 2007-03-08  Jim Meyering  <jim@meyering.net>
36686
36687         * users.txt: Add parted.
36688
36689         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36690
36691 2007-03-07  Bruno Haible  <bruno@clisp.org>
36692
36693         * m4/printf.m4: Make the shell script snippets copy&pastable.
36694
36695 2007-03-02  Bruno Haible  <bruno@clisp.org>
36696
36697         * lib/netinet_in_.h: New file.
36698         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36699         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36700         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36701         (Depends-on): Add absolute-header.
36702         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36703         into netinet/in.h.
36704
36705 2007-03-03  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/sys_select_.h: New file.
36708         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36709         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36710         * modules/sys_select (Files): Add lib/sys_select_.h.
36711         (Depends-on): Add absolute-header.
36712         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36713         into sys/select.h.
36714
36715 2007-03-02  Bruno Haible  <bruno@clisp.org>
36716
36717         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36718         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36719         values.
36720         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36721         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36722         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36723         * modules/sys_socket (Depends-on): Add absolute-header.
36724         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36725         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36726         (Include): Remove requirement of inclusion of <sys/types.h>.
36727
36728 2007-03-02  Bruno Haible  <bruno@clisp.org>
36729
36730         * lib/byteswap_.h (bswap_32): Fix formula.
36731
36732 2007-03-06  Bruno Haible  <bruno@clisp.org>
36733
36734         * modules/sprintf-posix-tests: New file.
36735         * tests/test-sprintf-posix.c: New file.
36736
36737         * modules/sprintf-posix: New file.
36738         * lib/sprintf.c: New file.
36739         * m4/sprintf-posix.m4: New file.
36740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36741         REPLACE_SPRINTF.
36742         * lib/stdio_.h (sprintf): New declaration.
36743         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36744         REPLACE_SPRINTF.
36745
36746 2007-03-06  Bruno Haible  <bruno@clisp.org>
36747
36748         * modules/vsprintf-posix-tests: New file.
36749         * tests/test-vsprintf-posix.c: New file.
36750         * tests/test-sprintf-posix.h: New file.
36751
36752         * modules/vsprintf-posix: New file.
36753         * lib/vsprintf.c: New file.
36754         * m4/vsprintf-posix.m4: New file.
36755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36756         REPLACE_VSPRINTF.
36757         * lib/stdio_.h (vsprintf): New declaration.
36758         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36759         REPLACE_VSPRINTF.
36760
36761 2007-03-06  Bruno Haible  <bruno@clisp.org>
36762
36763         * modules/vsnprintf (Depend-on): Remove minmax.
36764
36765 2007-03-06  Bruno Haible  <bruno@clisp.org>
36766
36767         * modules/snprintf-posix-tests: New file.
36768         * tests/test-snprintf-posix.c: New file.
36769
36770         * modules/snprintf-posix: New file.
36771         * m4/snprintf-posix.m4: New file.
36772         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36773         gl_FUNC_SNPRINTF.
36774         (gl_FUNC_SNPRINTF): Invoke it.
36775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36776         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36777         is set.
36778         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36779
36780 2007-03-06  Bruno Haible  <bruno@clisp.org>
36781
36782         * modules/vsnprintf-posix-tests: New file.
36783         * tests/test-vsnprintf-posix.c: New file.
36784         * tests/test-snprintf-posix.h: New file.
36785
36786         * modules/vsnprintf-posix: New file.
36787         * m4/vsnprintf-posix.m4: New file.
36788         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36789         gl_FUNC_VSNPRINTF.
36790         (gl_FUNC_VSNPRINTF): Invoke it.
36791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36792         * lib/stdio_.h (vsnprintf): Define as a replacement if
36793         REPLACE_VSNPRINTF is set.
36794         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36795
36796 2007-03-06  Bruno Haible  <bruno@clisp.org>
36797
36798         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36800
36801 2007-03-06  Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36804         (asinl): Declare also if HAVE_DECL_ASINL is set.
36805         (atanl): Declare also if HAVE_DECL_ATANL is set.
36806         (ceill): Declare also if HAVE_DECL_CEILL is set.
36807         (cosl): Declare also if HAVE_DECL_COSL is set.
36808         (expl): Declare also if HAVE_DECL_EXPL is set.
36809         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36810         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36811         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36812         (logl): Declare also if HAVE_DECL_LOGL is set.
36813         (sinl): Declare also if HAVE_DECL_SINL is set.
36814         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36815         (tanl): Declare also if HAVE_DECL_TANL is set.
36816         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36818         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36819         declaration of frexpl, ldexpl.
36820         * modules/printf-frexpl (Depends-on): Add math.
36821         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36822
36823 2007-03-05  Bruno Haible  <bruno@clisp.org>
36824
36825         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36826         frexpl and ldexpl are declared.
36827         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36828
36829 2007-03-05  Bruno Haible  <bruno@clisp.org>
36830
36831         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36832         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36833
36834 2007-03-05  Bruno Haible  <bruno@clisp.org>
36835
36836         * lib/stdio_.h: Include <stddef.h>.
36837
36838 2007-03-05  Bruno Haible  <bruno@clisp.org>
36839
36840         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36841
36842 2007-03-05  Bruno Haible  <bruno@clisp.org>
36843
36844         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36845         NetBSD 4, from Ralf Wildenhues.
36846
36847 2007-03-04  Bruno Haible  <bruno@clisp.org>
36848
36849         * lib/vasprintf.h: Update #if logic for the case when the functions
36850         exist but are overridden.
36851
36852 2007-03-04  Bruno Haible  <bruno@clisp.org>
36853
36854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36855         implementations: glibc-2.4 and MacOS X 10.3.
36856         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36857         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36858         * tests/test-vasprintf-posix.c (test_function): Likewise.
36859
36860 2007-03-04  Bruno Haible  <bruno@clisp.org>
36861
36862         * modules/vasprintf-posix-tests: New file.
36863         * tests/test-vasprintf-posix.c: New file.
36864
36865         * modules/vasprintf-posix: New file.
36866         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36867         defined.
36868         * m4/vasprintf-posix.m4: New file.
36869         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36870         gl_FUNC_VASPRINTF.
36871         (gl_FUNC_VASPRINTF): Invoke it.
36872         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36873         here.
36874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36875
36876 2007-03-04  Bruno Haible  <bruno@clisp.org>
36877
36878         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36879         REPLACE_GETTIMEOFDAY.
36880         * modules/sys_time (Makefile.am): Likewise.
36881         * m4/sys_time_h.m4: Likewise.
36882         * m4/gettimeofday.m4: Likewise.
36883
36884 2007-03-04  Bruno Haible  <bruno@clisp.org>
36885
36886         * modules/vasnprintf-posix-tests: New file.
36887         * tests/test-vasnprintf-posix.c: New file.
36888
36889         * modules/vasnprintf-posix: New file.
36890         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36891         printf-frexpl.h.
36892         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36893         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36894         REPLACE_VASNPRINTF is defined.
36895         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36896         gl_FUNC_VASNPRINTF.
36897         (gl_FUNC_VASNPRINTF): Invoke it.
36898         * m4/vasnprintf-posix.m4: New file.
36899         * m4/printf.m4: New file.
36900
36901 2007-03-04  Bruno Haible  <bruno@clisp.org>
36902
36903         Compile progreloc.c only if --enable-relocatable is specified.
36904         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36905         if --enable-relocatable was specified.
36906         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36907         lib_SOURCES.
36908
36909 2007-03-04  Jim Meyering  <jim@meyering.net>
36910
36911         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36912         Use it consistently, rather than enumerating errno constants.
36913
36914 2007-03-04  Bruno Haible  <bruno@clisp.org>
36915
36916         * modules/xvasprintf-tests: New file.
36917         * tests/test-xvasprintf.c: New file.
36918
36919         * modules/vasprintf-tests: New file.
36920         * tests/test-vasprintf.c: New file.
36921
36922         * modules/vasnprintf-tests: New file.
36923         * tests/test-vasnprintf.c: New file.
36924
36925         * modules/vsnprintf-tests: New file.
36926         * tests/test-vsnprintf.c: New file.
36927
36928         * modules/snprintf-tests: New file.
36929         * tests/test-snprintf.c: New file.
36930
36931 2007-03-04  Bruno Haible  <bruno@clisp.org>
36932
36933         Compile relocatable.c only if --enable-relocatable is specified.
36934         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36935         gl_RELOCATABLE_LIBRARY.
36936         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36937         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36938         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36939         gl_RELOCATABLE_LIBRARY.
36940         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36941         (Makefile.am): Remove lib_SOURCES.
36942         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36943         gl_RELOCATABLE_LIBRARY.
36944         (Makefile.am): Remove lib_SOURCES.
36945         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36946         always.
36947         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36948         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36949
36950 2007-03-04  Bruno Haible  <bruno@clisp.org>
36951
36952         * modules/argmatch-tests: New file.
36953         * tests/test-argmatch.c: New file.
36954
36955         * tests/test-allocsa.c (main): Halve the number of loop runs.
36956
36957         * modules/alloca-opt-tests: New file.
36958         * tests/test-alloca-opt.c: New file.
36959
36960 2007-03-04  Jim Meyering  <jim@meyering.net>
36961
36962         Work around difference between Linux ACLs and Solaris 10 ZFS.
36963         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36964         for EINVAL.
36965
36966 2007-03-03  Bruno Haible  <bruno@clisp.org>
36967
36968         * modules/relocatable-prog (Depends-on): Add back progreloc's
36969         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36970
36971 2007-03-03  Bruno Haible  <bruno@clisp.org>
36972
36973         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36974         * modules/relocatable-lib: New file.
36975
36976 2007-03-03  Bruno Haible  <bruno@clisp.org>
36977
36978         * modules/relocatable-prog: Renamed from modules/relocatable.
36979         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36980
36981 2007-03-03  Bruno Haible  <bruno@clisp.org>
36982
36983         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36984         m4/relocatable-lib.m4.
36985         (Depends-on): Remove 'relocatable'.
36986         (configure.ac): Add gl_RELOCATABLE_NOP.
36987
36988 2007-03-03  Bruno Haible  <bruno@clisp.org>
36989
36990         * modules/relocatable-prog-wrapper: New file.
36991         * modules/relocatable (Depends-on): Add it. Remove all other
36992         dependencies except progname.
36993         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36994
36995         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36996         (gl_FUNC_STRERROR): Nop.
36997         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36998
36999         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37000         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37001
37002         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37003         (gl_FUNC_READLINK): Update.
37004
37005         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37006
37007 2007-03-03  Bruno Haible  <bruno@clisp.org>
37008
37009         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37010         * modules/xreadlink (Depends-on): Add unistd.
37011         * modules/xreadlink-with-size (Depends-on): Likewise.
37012
37013 2007-03-03  Bruno Haible  <bruno@clisp.org>
37014
37015         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37016         extracted from gt_FUNC_SETENV.
37017         (gt_FUNC_SETENV): Remove macro.
37018         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37019         remove gt_FUNC_SETENV.
37020
37021 2007-03-03  Bruno Haible  <bruno@clisp.org>
37022
37023         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37024         ENABLE_RELOCATABLE here.
37025         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37026
37027 2007-03-03  Bruno Haible  <bruno@clisp.org>
37028
37029         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37030         * tests/test-rbtreehash_list.c: Include progname.h.
37031         (main): Call set_program_name.
37032
37033         * modules/rbtree-oset-tests (Depends-on): Add progname.
37034         * tests/test-rbtree_oset.c: Include progname.h.
37035         (main): Call set_program_name.
37036
37037         * modules/rbtree-list-tests (Depends-on): Add progname.
37038         * tests/test-rbtree_list.c: Include progname.h.
37039         (main): Call set_program_name.
37040
37041         * modules/linked-list-tests (Depends-on): Add progname.
37042         * tests/test-linked_list.c: Include progname.h.
37043         (main): Call set_program_name.
37044
37045 2007-03-03  Bruno Haible  <bruno@clisp.org>
37046
37047         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37048         All uses of __restrict changed to _Restrict_.
37049         * lib/glob_.h (__restrict): Remove macro.
37050
37051 2007-03-02  Bruno Haible  <bruno@clisp.org>
37052
37053         * modules/gettext (configure.ac): Require gettext infrastructure
37054         from version 0.16.1.
37055
37056 2007-03-02  Bruno Haible  <bruno@clisp.org>
37057
37058         * modules/linkedhash-list-tests (Depends-on): Add progname.
37059         * tests/test-linkedhash_list.c: Include progname.h.
37060         (main): Call set_program_name.
37061
37062         * modules/carray-list-tests (Depends-on): Add progname.
37063         * tests/test-carray_list.c: Include progname.h.
37064         (main): Call set_program_name.
37065
37066         * modules/avltreehash-list-tests (Depends-on): Add progname.
37067         * tests/test-avltreehash_list.c: Include progname.h.
37068         (main): Call set_program_name.
37069
37070         * modules/avltree-oset-tests (Depends-on): Add progname.
37071         * tests/test-avltree_oset.c: Include progname.h.
37072         (main): Call set_program_name.
37073
37074         * modules/avltree-list-tests (Depends-on): Add progname.
37075         * tests/test-avltree_list.c: Include progname.h.
37076         (main): Call set_program_name.
37077
37078         * modules/array-oset-tests (Depends-on): Add progname.
37079         * tests/test-array_oset.c: Include progname.h.
37080         (main): Call set_program_name.
37081
37082         * modules/array-list-tests (Depends-on): Add progname.
37083         * tests/test-array_list.c: Include progname.h.
37084         (main): Call set_program_name.
37085
37086         * modules/argp-tests (Depends-on): Add progname.
37087         * tests/test-argp.c: Include argp.h first. Include progname.h.
37088         (main): Call set_program_name.
37089
37090 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37091
37092         * doc/gnulib-tool.texi (Initial import): Reword description of
37093         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37094         limited effect even if defined after the first system include.
37095
37096 2007-03-01  Bruno Haible  <bruno@clisp.org>
37097
37098         * build-aux/config.libpath: Update to libtool-1.5.22.
37099         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37100
37101 2007-03-01  Bruno Haible  <bruno@clisp.org>
37102
37103         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37104         foo_CFLAGS.
37105         Reported by Ralf Wildenhues.
37106
37107 2007-03-01  Bruno Haible  <bruno@clisp.org>
37108
37109         * build-aux/install-reloc: Remove object files left over by some
37110         compilers.
37111         Reported by Ralf Wildenhues.
37112
37113 2007-03-01  Bruno Haible  <bruno@clisp.org>
37114
37115         * build-aux/install-reloc: Break long lines.
37116
37117 2007-03-01  Bruno Haible  <bruno@clisp.org>
37118
37119         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37120         Reported by Ralf Wildenhues.
37121
37122 2007-03-01  Bruno Haible  <bruno@clisp.org>
37123
37124         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37125         include ordering constraints.
37126
37127 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37128
37129         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37131         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37132         as another example.
37133         * lib/time_.h: Fix misspelling.
37134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37135         Require gl_HEADER_TIME_H_DEFAULTS.
37136         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37137         * m4/time_r.m4 (gl_TIME_R): Likewise.
37138         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37139
37140 2007-03-01  Bruno Haible  <bruno@clisp.org>
37141
37142         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37143         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37144
37145 2007-03-01  Jim Meyering  <jim@meyering.net>
37146
37147         * modules/xreadlink (Maintainer): Add my name.
37148         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37149
37150 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37151             Bruno Haible  <bruno@clisp.org>
37152
37153         * build-aux/install-reloc: Compile also c-ctype.c.
37154         * build-aux/relocatable.sh.in: New file.
37155         * doc/relocatable.texi: New file.
37156         * doc/relocatable-maint.texi: New file.
37157         * doc/gnulib.texi: Include relocatable-maint.texi.
37158         * lib/progreloc.c: Include unistd.h unconditionally.
37159         * lib/relocwrapper.c: Include unistd.h unconditionally.
37160         Include c-ctype.h.
37161         (add_dotbin): Use c_tolower.
37162         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37163         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37164         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37165         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37166         to m4/relocatable-lib.m4.
37167         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37168         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37169         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37170         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37171         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37172         * modules/relocatable: New file.
37173         * modules/relocatable-lib: New file.
37174         * modules/relocatable-script: New file.
37175
37176 2007-02-28  Bruno Haible  <bruno@clisp.org>
37177
37178         Import --enable-relocatable infrastructure.
37179         * build-aux/config.libpath: New file, from GNU gettext.
37180         * build-aux/install-reloc: New file, from GNU gettext.
37181         * build-aux/reloc-ldflags: New file, from GNU gettext.
37182         * lib/relocatable.h: New file, from GNU gettext.
37183         * lib/relocatable.c: New file, from GNU gettext.
37184         * lib/relocwrapper.c: New file, from GNU gettext.
37185         * m4/relocatable.m4: New file, from GNU gettext.
37186
37187 2007-02-28  Bruno Haible  <bruno@clisp.org>
37188
37189         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37190
37191         * modules/xreadlink: New file, from GNU gettext with modifications.
37192         * lib/xreadlink.c: New file, from GNU gettext.
37193         * lib/xreadlink.h: Add comments.
37194         (xreadlink): New declaration.
37195
37196         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37197         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37198         lib/xreadlink-with-size.c.
37199         (configure.ac): Remove gl_XREADLINK invocation.
37200         (Makefile.am): Augment lib_SOURCES.
37201         * m4/xreadlink.m4: Remove file.
37202         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37203         (xreadlink_with_size): Renamed from xreadink.
37204         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37205         * modules/canonicalize (Depends-on): Replace xreadlink with
37206         xreadlink-with-size.
37207         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37208
37209 2007-02-25  Jim Meyering  <jim@meyering.net>
37210
37211         * build-aux/announce-gen: When complaining about excess arguments,
37212         list them.
37213
37214 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37215
37216         * README: Document signed integer overflow situation more
37217         accurately.
37218
37219 2007-02-25  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37222         'a' or 'A' conversion.
37223
37224 2007-02-25  Bruno Haible  <bruno@clisp.org>
37225
37226         * modules/filename: Renamed from modules/pathname.
37227         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37228         lib/concatpath.c with lib/concat-filename.c.
37229         (Makefile.am): Update.
37230         (Include): Replace pathname.h with filename.h.
37231         * lib/filename.h: Renamed from lib/pathname.h.
37232         (concatenated_filename): Renamed from concatenated_pathname.
37233         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37234         (concatenated_filename): Renamed from concatenated_pathname.
37235         * lib/findprog.c: Include filename.h instead of pathname.h.
37236         (find_in_path): Update.
37237         * lib/javacomp.c: Include filename.h instead of pathname.h.
37238         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37239         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37240         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37241         is_oldgcj_14_13_usable, is_javac_usable): Update.
37242         * lib/javaexec.c: Include filename.h instead of pathname.h.
37243         (execute_java_class): Update.
37244         * modules/findprog: Update.
37245         * modules/javacomp: Update.
37246         * modules/javaexec: Update.
37247         * MODULES.html.sh (File system functions): Add 'filename', remove
37248         'pathname'.
37249
37250 2007-02-25  Bruno Haible  <bruno@clisp.org>
37251
37252         * modules/printf-frexpl-tests: New file.
37253         * tests/test-printf-frexpl.c: New file.
37254
37255         * modules/printf-frexpl: New file.
37256         * lib/printf-frexpl.h: New file.
37257         * lib/printf-frexpl.c: New file.
37258         * m4/printf-frexpl.m4: New file.
37259
37260 2007-02-25  Bruno Haible  <bruno@clisp.org>
37261
37262         * modules/printf-frexp-tests: New file.
37263         * tests/test-printf-frexp.c: New file.
37264
37265         * modules/printf-frexp: New file.
37266         * lib/printf-frexp.h: New file.
37267         * lib/printf-frexp.c: New file.
37268         * m4/printf-frexp.m4: New file.
37269
37270 2007-02-25  Bruno Haible  <bruno@clisp.org>
37271
37272         Assume automake >= 1.10 for the tests.
37273         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37274         * modules/arctwo-tests: Likewise.
37275         * modules/argp-tests: Likewise.
37276         * modules/avltree-list-tests: Likewise.
37277         * modules/avltree-oset-tests: Likewise.
37278         * modules/avltreehash-list-tests: Likewise.
37279         * modules/carray-list-tests: Likewise.
37280         * modules/crc-tests: Likewise.
37281         * modules/des-tests: Likewise.
37282         * modules/gc-arcfour-tests: Likewise.
37283         * modules/gc-arctwo-tests: Likewise.
37284         * modules/gc-des-tests: Likewise.
37285         * modules/gc-hmac-md5-tests: Likewise.
37286         * modules/gc-hmac-sha1-tests: Likewise.
37287         * modules/gc-md2-tests: Likewise.
37288         * modules/gc-md4-tests: Likewise.
37289         * modules/gc-md5-tests: Likewise.
37290         * modules/gc-pbkdf2-sha1-tests: Likewise.
37291         * modules/gc-rijndael-tests: Likewise.
37292         * modules/gc-sha1-tests: Likewise.
37293         * modules/gc-tests: Likewise.
37294         * modules/getaddrinfo-tests: Likewise.
37295         * modules/hmac-md5-tests: Likewise.
37296         * modules/hmac-sha1-tests: Likewise.
37297         * modules/linked-list-tests: Likewise.
37298         * modules/linkedhash-list-tests: Likewise.
37299         * modules/lock-tests: Likewise.
37300         * modules/md2-tests: Likewise.
37301         * modules/md4-tests: Likewise.
37302         * modules/md5-tests: Likewise.
37303         * modules/rbtree-list-tests: Likewise.
37304         * modules/rbtree-oset-tests: Likewise.
37305         * modules/rbtreehash-list-tests: Likewise.
37306         * modules/read-file-tests: Likewise.
37307         * modules/rijndael-tests: Likewise.
37308         * modules/stdint-tests: Likewise.
37309         * modules/tls-tests: Likewise.
37310
37311 2007-02-24  Bruno Haible  <bruno@clisp.org>
37312
37313         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37314         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37315         function; instead check whether isnan with a double argument links.
37316         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37317         function; instead check whether isnan with a 'long double' argument
37318         links.
37319         Reported by Eric Blake <ebb9@byu.net>.
37320
37321 2007-02-24  Bruno Haible  <bruno@clisp.org>
37322
37323         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37324         defined.
37325         * lib/isnanl.c: Remove all code. Just include isnan.c.
37326         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37327
37328 2007-02-25  Jim Meyering  <jim@meyering.net>
37329
37330         Avoid conflicting types for 'unsetenv' on FreeBSD.
37331         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37332         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37333         in stdlib.h.
37334
37335 2007-02-24  Bruno Haible  <bruno@clisp.org>
37336
37337         * modules/isnanl-nolibm-tests: New file.
37338         * tests/test-isnanl.c: New file.
37339
37340         * modules/isnanl-nolibm: New file.
37341         * lib/isnanl.h: New file.
37342         * lib/isnanl.c: New file.
37343         * m4/isnanl.m4: New file.
37344
37345 2007-02-24  Bruno Haible  <bruno@clisp.org>
37346
37347         * modules/isnan-nolibm-tests: New file.
37348         * tests/test-isnan.c: New file.
37349
37350         * modules/isnan-nolibm: New file.
37351         * lib/isnan.h: New file.
37352         * lib/isnan.c: New file.
37353         * m4/isnan.m4: New file.
37354
37355 2007-02-24  Bruno Haible  <bruno@clisp.org>
37356
37357         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37358         assume that an exponent fits in 20 bits.
37359
37360 2007-02-24  Jim Meyering  <jim@meyering.net>
37361
37362         * m4/regex.m4: Update the description of the configure-time option,
37363         --without-included-regex, to state accurately what the defaults are,
37364         and perhaps to give people an idea why using this option is risky.
37365
37366 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37367
37368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37369         loops on small arguments.  This attempts to avoid the problem
37370         Bruno Haible reported for AIX 4.3.2 in
37371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37372
37373 2007-02-23  Bruno Haible  <bruno@clisp.org>
37374
37375         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37376         Needed for help2man.
37377
37378 2007-02-23  Karl Berry  <karl@gnu.org>
37379
37380         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37381         exists, foo.h should be cvs-ignored, not committed.
37382
37383 2007-02-23  Eric Blake  <ebb9@byu.net>
37384
37385         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37386         * lib/stat-time.h (includes): Likewise.
37387         * lib/utimecmp.c (includes): Likewise.
37388         * lib/utimens.h (includes): Likewise.
37389         * lib/getdate.y (includes): Also include "timespec.h" for use
37390         internal to the module.
37391         * modules/utimens (Depends-on): Revert yesterday's patch.
37392         * modules/nanosleep (Depends-on): Add missing dependency.
37393
37394 2007-02-22  Bruno Haible  <bruno@clisp.org>
37395
37396         * lib/glob.c: Don't include getlogin_r.h.
37397
37398 2007-02-22  Jim Meyering  <jim@meyering.net>
37399
37400         * modules/utimens (Depends-on): Add timespec, required for
37401         utimens.h's inclusion of timespec.h.
37402
37403 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37404
37405         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37406         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37407         Schwab in
37408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37409         I'll try to think of a better way to fix the Solaris problem.
37410
37411         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37412         like glibc; on Solaris 10, it fails with errno == EINVAL.
37413         POSIX says the behavior is unspecified if the first argument is NULL,
37414         so play it safe and never pass NULL to the system getcwd.
37415
37416 2007-02-21  Jim Meyering  <jim@meyering.net>
37417
37418         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37419         of gettimeofday.  It would conflict with the one now always
37420         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37421         an IRIX 6.5 build failure.
37422
37423 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37424
37425         Minor fixups to port to Solaris 10 with Sun C 5.8.
37426         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37427         * modules/getcwd (Depends-on): Add dirfd.
37428         * lib/putenv.c (putenv): #undef it.
37429         (rpl_putenv): New decl.
37430         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37431
37432 2007-02-20  Bruno Haible  <bruno@clisp.org>
37433
37434         * modules/stdio-tests: New file.
37435         * tests/test-stdio.c: New file.
37436
37437         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37438         (Depends-on): Add stdio.
37439         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37440         (Include): Use <stdio.h> instead of vsnprintf.h.
37441         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37442         HAVE_DECL_VSNPRINTF.
37443         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37444
37445         * modules/snprintf (Files): Remove lib/snprintf.h.
37446         (Depends-on): Add stdio.
37447         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37448         (Include): Use <stdio.h> instead of snprintf.h.
37449         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37450         HAVE_DECL_SNPRINTF.
37451         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37452         * lib/getaddrinfo.c: Likewise.
37453
37454         * modules/stdio: New file.
37455         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37456         * lib/snprintf.h: Remove file.
37457         * lib/vsnprintf.h: Remove file.
37458         * lib/.cppi-disable: Remove snprintf.h.
37459         * m4/stdio_h.m4: New file.
37460         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37461
37462 2007-02-20  Jim Meyering  <jim@meyering.net>
37463
37464         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37465         used by e.g., mingw.  From Bruno Haible.
37466
37467 2007-02-19  Bruno Haible  <bruno@clisp.org>
37468
37469         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37470         warnings.
37471         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37472
37473 2007-02-19  Bruno Haible  <bruno@clisp.org>
37474
37475         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37476         from mingw users.
37477
37478 2007-02-19  Bruno Haible  <bruno@clisp.org>
37479
37480         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37481         warnings.
37482         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37483
37484 2007-02-19  Jim Meyering  <jim@meyering.net>
37485
37486         Don't use FD after a successful "fdopendir (fd)".
37487         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37488         Reset it by calling dirfd on the just-obtained DIR*.
37489
37490         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37491         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37492
37493 2007-02-18  Bruno Haible  <bruno@clisp.org>
37494
37495         * lib/readlink.c: Include <unistd.h>.
37496         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37497         HAVE_READLINK.
37498         * modules/readlink (Depends-on): Add unistd.
37499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37500         (Include): Add <unistd.h>.
37501
37502         * lib/getlogin_r.h: Remove file.
37503         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37504         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37505         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37506         HAVE_DECL_GETLOGIN_R.
37507         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37508         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37509         (Include): Use <unistd.h> instead of getlogin_r.h.
37510
37511         * lib/getcwd.h: Remove file.
37512         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37513         * lib/xgetcwd.c: Likewise.
37514         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37515         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37516         * modules/getcwd (Files): Remove lib/getcwd.h.
37517         (Depends-on): Add unistd.
37518         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37519         (Include): Use <unistd.h> instad of getcwd.h.
37520
37521         * lib/ftruncate.c: Include <unistd.h> first.
37522         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37523         Set HAVE_FTRUNCATE.
37524         * modules/ftruncate (Depends-on): Add unistd.
37525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37526
37527         * lib/fchdir.c: Include <unistd.h> first.
37528         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37530         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37531         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37532         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37533
37534         * lib/dup2.c: Include <unistd.h> first.
37535         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37536         HAVE_DUP2.
37537         * modules/dup2 (Depends-on): Add unistd.
37538         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37539
37540         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37541         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37542         REPLACE_CHOWN. Don't define chown as a macro here.
37543         * modules/chown (Depends-on): Add unistd.
37544         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37545
37546         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37547         Add definition for GL_LINK_WARNING.
37548         (chown, dup2): New declarations.
37549         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37550         link warning.
37551         (ftruncate): New declaration.
37552         (getcwd): New declaration, taken from old getcwd.h.
37553         (getlogin_r): New declaration, taken from old getlogin_r.h.
37554         (readlink): New declaration.
37555         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37556         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37557         (gl_PREREQ_UNISTD): Remove macro.
37558         (gl_UNISTD_MODULE_INDICATOR): New macro.
37559         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37560         many new variables. Don't set UNISTD_H.
37561         * modules/unistd (Description): Change.
37562         (Depends-on): Add link-warning.
37563         (configure.ac): Update.
37564         (Makefile.am): Create unistd.h always. Substitute many new variables
37565         into it.
37566
37567 2007-02-18  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37570         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37571         HAVE_GETSUBOPT.
37572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37573         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37574         * lib/getsubopt.h: Remove file.
37575         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37576         (Depends-on): Add stdlib.
37577         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37578         (Includes): Use <stdlib.h> instead of getsubopt.h.
37579         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37580         Set HAVE_GETSUBOPT.
37581         * lib/getsubopt.c: Don't include getsubopt.h.
37582
37583 2007-02-18  Bruno Haible  <bruno@clisp.org>
37584
37585         * modules/fchdir (Depends-on): Add dup2.
37586
37587 2007-02-18  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/stdlib_.h: Handle glibc's special invocation convention
37590         specially.
37591
37592 2007-02-18  Bruno Haible  <bruno@clisp.org>
37593
37594         * modules/stdlib-tests: New file.
37595         * tests/test-stdlib.c: New file.
37596
37597         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37598         (Depends-on): Add stdlib.
37599         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37600         (Includes): Use <stdlib.h> instead of mkstemp.h.
37601         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37602         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37603         * lib/mkstemp.c: Don't include mkstemp.h.
37604         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37605         * lib/stdlib--.h: Don't include mkstemp.h.
37606
37607         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37608         (Depends-on): Add stdlib.
37609         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37610         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37611         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37612         HAVE_MKDTEMP.
37613         * lib/mkdtemp.c: Don't include mkdtemp.h.
37614         * lib/clean-temp.c: Don't include mkdtemp.h.
37615
37616         * modules/exit (Files): Remove lib/exit.h.
37617         (Depends-on): Add stdlib.
37618         (Makefile.am): Remove lib_SOURCES.
37619         (Include): Use <stdlib.h> instead of exit.h.
37620         * lib/argmatch.c: Don't include exit.h.
37621         * lib/execute.c: Likewise.
37622         * lib/pagealign_alloc.c: Likewise.
37623         * lib/pipe.c: Likewise.
37624         * lib/wait-process.c: Likewise.
37625         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37626         * lib/exitfail.c: Likewise.
37627         * lib/savewd.c: Likewise.
37628         * lib/xsetenv.c: Likewise.
37629
37630         * modules/stdlib: New file.
37631         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37632         and extra comments about mkstemp().
37633         * lib/exit.h: Remove file.
37634         * lib/mkdtemp.h: Remove file.
37635         * lib/mkstemp.h: Remove file.
37636         * m4/stdlib_h.m4: New file.
37637         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37638
37639 2007-02-18  Bruno Haible  <bruno@clisp.org>
37640
37641         * modules/math-tests: New file.
37642         * tests/test-math.c: New file.
37643
37644         * modules/math: New file.
37645         * modules/mathl (Files): Remove lib/mathl.h.
37646         (Depends-on): Add math.
37647         (Makefile.am): Don't mention mathl.h.
37648         (Include): Use <math.h> instead of mathl.h.
37649         * lib/math_.h: New file.
37650         * lib/mathl.h: Remove file.
37651         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37652         mathl.h.
37653         * lib/asinl.c: Likewise.
37654         * lib/atanl.c: Likewise.
37655         * lib/ceill.c: Likewise.
37656         * lib/cosl.c: Likewise.
37657         * lib/expl.c: Likewise.
37658         * lib/floorl.c: Likewise.
37659         * lib/frexpl.c: Likewise.
37660         * lib/ldexpl.c: Likewise.
37661         * lib/logl.c: Likewise.
37662         * lib/sincosl.c: Likewise.
37663         * lib/sinl.c: Likewise.
37664         * lib/sqrtl.c: Likewise.
37665         * lib/tanl.c: Likewise.
37666         * lib/trigl.c: Likewise.
37667         * m4/math_h.m4: New file.
37668         * MODULES.html.sh (Mathematics): Add math.
37669
37670 2007-02-17  Bruno Haible  <bruno@clisp.org>
37671
37672         * modules/wctype-tests: New file.
37673         * tests/test-wctype.c: New file.
37674
37675         * modules/wchar-tests: New file.
37676         * tests/test-wchar.c: New file.
37677
37678         * modules/unistd-tests: New file.
37679         * tests/test-unistd.c: New file.
37680
37681         * modules/time-tests: New file.
37682         * tests/test-time.c: New file.
37683
37684         * modules/sysexits-tests: New file.
37685         * tests/test-sysexits.c: New file.
37686
37687         * modules/sys_time-tests: New file.
37688         * tests/test-sys_time.c: New file.
37689
37690         * modules/sys_stat-tests: New file.
37691         * tests/test-sys_stat.c: New file.
37692
37693         * modules/sys_socket-tests: New file.
37694         * tests/test-sys_socket.c: New file.
37695
37696         * modules/sys_select-tests: New file.
37697         * tests/test-sys_select.c: New file.
37698
37699         * modules/string-tests: New file.
37700         * tests/test-string.c: New file.
37701
37702         * modules/stdbool-tests: New file.
37703         * tests/test-stdbool.c: New file.
37704
37705         * modules/netinet_in-tests: New file.
37706         * tests/test-netinet_in.c: New file.
37707
37708         * modules/inttypes-tests: New file.
37709         * tests/test-inttypes.c: New file.
37710
37711         * modules/fcntl-tests: New file.
37712         * tests/test-fcntl.c: New file.
37713
37714         * modules/byteswap-tests: New file.
37715         * tests/test-byteswap.c: New file.
37716
37717         * modules/arpa_inet-tests: New file.
37718         * tests/test-arpa_inet.c: New file.
37719
37720 2007-02-17  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37723         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37724         if the corresponding module is not enabled. Emit link warnings if
37725         the function is used nevertheless.
37726         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37727         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37728         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37729         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37730         * modules/inttypes (Depends-on): Add link-warning.
37731         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37732         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37733         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37734         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37735         * modules/imaxdiv (configure.ac): Likewise.
37736         * modules/strtoimax (configure.ac): Likewise.
37737         * modules/strtoumax (configure.ac): Likewise.
37738
37739 2007-02-17  Bruno Haible  <bruno@clisp.org>
37740
37741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37742         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37743         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37744         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37745
37746 2007-02-17  Bruno Haible  <bruno@clisp.org>
37747
37748         * modules/link-warning: New file.
37749         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37750         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37751         * modules/string (Depends-on): Add link-warning.
37752         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37753         string.h.
37754         * MODULES.html.sh (Support for building libraries and executables): Add
37755         link-warning.
37756
37757 2007-02-17  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37760         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37761         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37762         long lines.
37763
37764 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37765             Bruno Haible  <bruno@clisp.org>
37766
37767         * modules/tmpfile: New file.
37768         * lib/tmpfile.c: New file.
37769         * m4/tmpfile.m4: New file.
37770         * MODULES.html.sh (func_all_modules): New section "Input/output".
37771
37772 2007-02-15  Bruno Haible  <bruno@clisp.org>
37773
37774         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37775         (supports_delete_on_close): New function.
37776         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37777
37778 2007-02-14  Bruno Haible  <bruno@clisp.org>
37779
37780         * modules/mbspcasecmp-tests: New file.
37781         * tests/test-mbspcasecmp.sh: New file.
37782         * tests/test-mbspcasecmp.c: New file.
37783
37784         New module mbspcasecmp.
37785         * modules/mbspcasecmp: New file.
37786         * lib/mbspcasecmp.c: New file.
37787         * lib/string_.h (strncasecmp): Change warning message.
37788         (mbspcasecmp): New declaration.
37789         * m4/mbspcasecmp.m4: New file.
37790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37791         GNULIB_MBSPCASECMP.
37792         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37793         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37794
37795 2007-02-14  Bruno Haible  <bruno@clisp.org>
37796
37797         * modules/mbsncasecmp-tests: New file.
37798         * tests/test-mbsncasecmp.sh: New file.
37799         * tests/test-mbsncasecmp.c: New file.
37800
37801         New module mbsncasecmp.
37802         * modules/mbsncasecmp: New file.
37803         * lib/mbsncasecmp.c: New file.
37804         * lib/string_.h (mbsncasecmp): New declaration.
37805         * m4/mbsncasecmp.m4: New file.
37806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37807         GNULIB_MBSNCASECMP.
37808         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37809         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37810
37811 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37812
37813         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37814         Verify that it doesn't overlap with our flags.
37815         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37816         do not have the desired effect in multibyte locales; instead, use
37817         mbscasecmp.
37818         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37819         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37820         we don't require GNU fnmatch ourselves (if our users require it, they
37821         should do so explicitly).
37822
37823         Fix regex code so it doesn't rely on strcasecmp.
37824         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37825         Otherwise, include gnulib's langinfo.h.
37826         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37827         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37828         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37829         * modules/regex (FILES): Remove m4/codeset.m4.
37830         (Depends-on): Add localcharset.  Remove strcase.
37831
37832 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37833
37834         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37835         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37836
37837 2007-02-13  Bruno Haible  <bruno@clisp.org>
37838
37839         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37840         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37841
37842 2007-02-12  Bruno Haible  <bruno@clisp.org>
37843
37844         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37845         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37846         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37847         time warning rather than a link error.
37848
37849 2007-02-12  Bruno Haible  <bruno@clisp.org>
37850
37851         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37852         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37854
37855 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37856
37857         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37858         args, not 2.
37859
37860 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37861
37862         New module 'time', so that apps can include <time.h> as per
37863         POSIX and GNU instead of separate include files like time_r.h
37864         and timegm.h.  This implementation tries out a simpler approach
37865         for replacing decls in standard include files (as compared to
37866         the string module), somewhat as an experiment.
37867
37868         * config/srclist.txt: Comment out mktime.c for now.
37869         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37870         since it doesn't apply any more.  Use generic wording instead.
37871         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37872         'time'.
37873         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37874         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37875         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37876         Don't include <sys/types.h>; no longer needed since we assume C89.
37877         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37878         * lib/strftime.c: Likewise.
37879         * lib/time_r.c: Likewise.
37880         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37881         * lib/nanosleep.c: Include <time.h> first, to check interface.
37882         * lib/strptime.c: Likewise.
37883         * lib/time_r.c: Likewise.
37884         * lib/timegm.c: Likewise.
37885         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37886         needed.
37887         * lib/timegm.c: Don't include timegm.h; no longer needed.
37888         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37889         time.h now handles any problems in that area.
37890         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37891         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37892         that time.h defines struct timespec.
37893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37894         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37895         handles that.
37896         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37897         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37898         needed.  Set REPLACE_LOCALTIME.
37899         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37900         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37901         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37902         nanosleep; time_h.m4 now does that.  Don't require
37903         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37904         module handles this now.
37905         * modules/getdate (Depends-on): Remove timespec.  Add time.
37906         * modules/nanosleep (Depends-on): Likewise.
37907         * modules/stat-time (Depends-on): Likewise.
37908         * modules/nanosleep (Include): Include time.h, not timespec.h.
37909         * modules/strptime (Files): Remove lib/strptime.h.
37910         (Depends-on): Add extensions, time.
37911         (Include): Include time.h, not strptime.h.
37912         * modules/time_r (Files): Remove lib/time_r.h.
37913         (Depends-on): Add time.
37914         (Include): Include time.h, not time_r.h.
37915         * modules/timegm: Likewise.
37916         * modules/timespec (Description): Now does timespec-related decls
37917         of our own, instead of struct timespec itself.
37918         (Depends-on): Add time; remove extensions.
37919         (Maintainer): Add self.
37920         * modules/utimecmp (Depends-on): Add time; remove timespec.
37921         * modules/utimens (Depends-on): Likewise.
37922         * modules/xnanosleep (Depends-on): Likewise.
37923
37924 2007-02-11  Bruno Haible  <bruno@clisp.org>
37925
37926         * lib/c-strstr.c: Include allocsa.h.
37927         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37928         * lib/c-strcasestr.c: Include allocsa.h.
37929         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37930         * lib/strcasestr.c: Include allocsa.h.
37931         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37932         * lib/mbsstr.c: Include allocsa.h.
37933         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37934         allocsa/freesa instead of malloc/free.
37935         * lib/mbscasestr.c: Include allocsa.h.
37936         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37937         allocsa/freesa instead of malloc/free.
37938         * modules/c-strstr (Depends-on): Add allocsa.
37939         * modules/c-strcasestr (Depends-on): Likewise.
37940         * modules/strcasestr (Depends-on): Likewise.
37941         * modules/mbsstr (Depends-on): Likewise.
37942         * modules/mbscasestr (Depends-on): Likewise.
37943
37944 2007-02-11  Bruno Haible  <bruno@clisp.org>
37945
37946         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37947
37948         * modules/mbsspn-tests: New file.
37949         * tests/test-mbsspn.sh: New file.
37950         * tests/test-mbsspn.c: New file.
37951
37952 2007-02-11  Bruno Haible  <bruno@clisp.org>
37953
37954         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37955
37956         * modules/mbspbrk-tests: New file.
37957         * tests/test-mbspbrk.sh: New file.
37958         * tests/test-mbspbrk.c: New file.
37959
37960 2007-02-11  Bruno Haible  <bruno@clisp.org>
37961
37962         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37963         unneeded cast.
37964
37965         * modules/mbscspn-tests: New file.
37966         * tests/test-mbscspn.sh: New file.
37967         * tests/test-mbscspn.c: New file.
37968
37969 2007-02-11  Bruno Haible  <bruno@clisp.org>
37970
37971         * modules/mbscasecmp-tests: New file.
37972         * tests/test-mbscasecmp.sh: New file.
37973         * tests/test-mbscasecmp.c: New file.
37974
37975 2007-02-11  Bruno Haible  <bruno@clisp.org>
37976
37977         Ensure O(n) worst-case complexity of mbscasestr.
37978         * lib/mbscasestr.c: Include stdbool.h.
37979         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37980         functions.
37981         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37982         the bookkeeping indicates that it's worth it.
37983         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37984
37985         * modules/mbscasestr-tests: New file.
37986         * tests/test-mbscasestr1.c: New file.
37987         * tests/test-mbscasestr2.sh: New file.
37988         * tests/test-mbscasestr2.c: New file.
37989         * tests/test-mbscasestr3.sh: New file.
37990         * tests/test-mbscasestr3.c: New file.
37991         * tests/test-mbscasestr4.sh: New file.
37992         * tests/test-mbscasestr4.c: New file.
37993         * m4/locale-tr.m4: New file.
37994
37995 2007-02-11  Bruno Haible  <bruno@clisp.org>
37996
37997         Ensure O(n) worst-case complexity of mbsstr.
37998         * lib/mbsstr.c: Include stdbool.h.
37999         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38000         functions.
38001         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38002         bookkeeping indicates that it's worth it.
38003         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38004
38005         * modules/mbsstr-tests: New file.
38006         * tests/test-mbsstr1.c: New file.
38007         * tests/test-mbsstr2.sh: New file.
38008         * tests/test-mbsstr2.c: New file.
38009         * tests/test-mbsstr3.sh: New file.
38010         * tests/test-mbsstr3.c: New file.
38011         * m4/locale-fr.m4: New file.
38012
38013 2007-02-11  Bruno Haible  <bruno@clisp.org>
38014
38015         * lib/mbsrchr.c (mbsrchr): Fix bug.
38016
38017         * modules/mbsrchr-tests: New file.
38018         * tests/test-mbsrchr.sh: New file.
38019         * tests/test-mbsrchr.c: New file.
38020
38021 2007-02-11  Bruno Haible  <bruno@clisp.org>
38022
38023         * lib/mbschr.c (mbschr): Fix bug.
38024
38025         * modules/mbschr-tests: New file.
38026         * tests/test-mbschr.sh: New file.
38027         * tests/test-mbschr.c: New file.
38028         * m4/locale-zh.m4: New file.
38029
38030 2007-02-11  Bruno Haible  <bruno@clisp.org>
38031
38032         Support for copying multibyte string iterators.
38033         * lib/mbiter.h: Include <string.h>.
38034         (mbiter_multi_copy): New function.
38035         (mbi_copy): New macro.
38036         * lib/mbuiter.h: Include <string.h>.
38037         (mbuiter_multi_copy): New function.
38038         (mbui_copy): New macro.
38039
38040 2007-02-11  Bruno Haible  <bruno@clisp.org>
38041
38042         New module mbslen.
38043         * modules/mbslen: New file.
38044         * lib/mbslen.c: New file.
38045         * lib/string_.h (mbslen): New declaration.
38046         * m4/mbslen.m4: New file.
38047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38048         GNULIB_MBSLEN.
38049         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38050         * MODULES.html.sh (Internationalization functions): Add mbslen.
38051
38052 2007-02-11  Bruno Haible  <bruno@clisp.org>
38053
38054         Ensure O(n) worst-case complexity of strcasestr substitute.
38055         * lib/strcasestr.c: Include stdbool.h.
38056         (knuth_morris_pratt): New function.
38057         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38058         bookkeeping indicates that it's worth it.
38059         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38060
38061         * modules/strcasestr-tests: New file.
38062         * tests/test-strcasestr.c: New file.
38063
38064 2007-02-11  Bruno Haible  <bruno@clisp.org>
38065
38066         Ensure O(n) worst-case complexity of c_strcasestr.
38067         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38068         (knuth_morris_pratt): New function.
38069         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38070         the bookkeeping indicates that it's worth it.
38071         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38072
38073         * modules/c-strcasestr-tests: New file.
38074         * tests/test-c-strcasestr.c: New file.
38075
38076 2007-02-11  Bruno Haible  <bruno@clisp.org>
38077
38078         Ensure O(n) worst-case complexity of c_strstr.
38079         * lib/c-strstr.c: Include stdbool.h, string.h.
38080         (knuth_morris_pratt): New function.
38081         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38082         bookkeeping indicates that it's worth it.
38083         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38084
38085         * lib/c-strstr.c: Complete rewrite for maintainability.
38086
38087         * modules/c-strstr-tests: New file.
38088         * tests/test-c-strstr.c: New file.
38089
38090 2007-02-11  Bruno Haible  <bruno@clisp.org>
38091
38092         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38093         5.2.1 and earlier, whereby \055 was treated just like the range
38094         delimiter '-'.
38095         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38096
38097 2007-02-08  Bruno Haible  <bruno@clisp.org>
38098
38099         * modules/regex (Depends-on): Add stdbool.
38100         Reported by Dalibor Topic <robilad@kaffe.org>.
38101
38102 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38103
38104         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38105         Prefer returning from main to exiting from it.
38106         Remove unnecessary parens after sizeof.
38107
38108 2007-02-05  Bruno Haible  <bruno@clisp.org>
38109
38110         New module mbssep.
38111         * modules/mbssep: New file.
38112         * lib/mbssep.c: New file.
38113         * lib/string_.h (strsep): Add a conditional link warning.
38114         (mbssep): New declaration.
38115         * m4/mbssep.m4: New file.
38116         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38117         GNULIB_MBSSEP.
38118         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38119         * MODULES.html.sh (Internationalization functions): Add mbssep.
38120
38121 2007-02-05  Bruno Haible  <bruno@clisp.org>
38122
38123         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38124         Optimize search in case of 1 delimiter.
38125
38126 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38127
38128         * lib/acl.h: Include sys/types.h before sys/acl.h.
38129
38130 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38131
38132         Merge upstream fix for glibc bugzilla #3957:
38133
38134         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38135
38136         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38137         bit for RE_HAT_LISTS_NOT_NEWLINE.
38138         (build_charclass_op): Remove bogus comment.
38139
38140 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38141
38142         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38143
38144 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38145
38146         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38147         * lib/memmem.c [!defined _LIBC]: Include config.h.
38148
38149 2007-02-04  Bruno Haible  <bruno@clisp.org>
38150
38151         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38152         warning message.
38153
38154 2007-02-04  Bruno Haible  <bruno@clisp.org>
38155
38156         New module mbstok_r.
38157         * modules/mbstok_r: New file.
38158         * lib/mbstok_r.c: New file.
38159         * lib/string_.h (strtok_r): Change argument names to match the
38160         comments. Add a conditional link warning.
38161         (mbstok_r): New declaration.
38162         * m4/mbstok_r.m4: New file.
38163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38164         GNULIB_MBSTOK_R.
38165         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38166         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38167
38168 2007-02-04  Bruno Haible  <bruno@clisp.org>
38169
38170         New module mbsspn.
38171         * modules/mbsspn: New file.
38172         * lib/mbsspn.c: New file.
38173         * lib/string_.h (strspn): Add a conditional link warning.
38174         (mbsspn): New declaration.
38175         * m4/mbsspn.m4: New file.
38176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38177         GNULIB_MBSSPN.
38178         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38179         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38180
38181 2007-02-04  Bruno Haible  <bruno@clisp.org>
38182
38183         New module mbspbrk.
38184         * modules/mbspbrk: New file.
38185         * lib/mbspbrk.c: New file.
38186         * lib/string_.h (strpbrk): Add a conditional link warning.
38187         (mbspbrk): New declaration.
38188         * m4/mbspbrk.m4: New file.
38189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38190         GNULIB_MBSPBRK.
38191         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38192         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38193
38194 2007-02-04  Bruno Haible  <bruno@clisp.org>
38195
38196         New module mbscspn.
38197         * modules/mbscspn: New file.
38198         * lib/mbscspn.c: New file.
38199         * lib/string_.h (strcspn): Add a conditional link warning.
38200         (mbscspn): New declaration.
38201         * m4/mbscspn.m4: New file.
38202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38203         GNULIB_MBSCSPN.
38204         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38205         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38206
38207 2007-02-04  Bruno Haible  <bruno@clisp.org>
38208
38209         New module mbscasestr, reduced goal of strcasestr.
38210         * modules/mbscasestr: New file.
38211         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38212         (mbscasestr): Renamed from strcasestr.
38213         * lib/strcasestr.c: Don't include mbuiter.h.
38214         (strcasestr): Remove support for multibyte locales.
38215         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38216         Change the conditional link warning.
38217         (mbscasestr): New declaration.
38218         * m4/mbscasestr.m4: New file.
38219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38220         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38221         REPLACE_STRCASESTR.
38222         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38224         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38225         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38226         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38227         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38228         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38229         (Depends-on): Remove mbuiter.
38230         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38231
38232 2007-02-04  Bruno Haible  <bruno@clisp.org>
38233
38234         Simplify handling of strncasecmp.
38235         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38236         the conditional link warning.
38237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38238         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38239         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38240         * modules/strcase (configure.ac): Don't invoke
38241         gl_STRING_MODULE_INDICATOR.
38242         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38243
38244 2007-02-04  Bruno Haible  <bruno@clisp.org>
38245
38246         New module mbscasecmp, reduced goal of strcasecmp.
38247         * modules/mbscasecmp: New file.
38248         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38249         (mbscasecmp): Renamed from strcasecmp.
38250         * lib/strcasecmp.c: Don't include mbuiter.h.
38251         (strcasecmp): Remove support for multibyte locales.
38252         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38253         Change the conditional link warning.
38254         (mbscasecmp): New declaration.
38255         * m4/mbscasecmp.m4: New file.
38256         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38257         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38258         REPLACE_STRCASECMP.
38259         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38261         GNULIB_MBSCASECMP.
38262         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38263         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38264         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38265         (Depends-on): Remove mbuiter.
38266         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38267
38268 2007-02-04  Bruno Haible  <bruno@clisp.org>
38269
38270         New module mbsstr. Remove module strstr.
38271         * modules/mbsstr: New file.
38272         * modules/strstr: Remove file.
38273         * lib/mbsstr.c: Renamed from lib/strstr.c.
38274         (mbsstr): Renamed from strstr.
38275         * lib/string_.h (strstr): Remove declaration. Change the conditional
38276         link warning.
38277         (mbsstr): New declaration.
38278         * m4/mbsstr.m4: New file.
38279         * m4/strstr.m4: Remove file.
38280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38281         REPLACE_STRSTR.
38282         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38283         Don't initialize GNULIB_STRSTR.
38284         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38285         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38286         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38287         (Support for systems lacking ANSI C 89): Remove strstr.
38288
38289 2007-02-04  Bruno Haible  <bruno@clisp.org>
38290
38291         New module mbsrchr.
38292         * modules/mbsrchr: New file.
38293         * lib/mbsrchr.c: New file.
38294         * lib/string_.h (strrchr): Add a conditional link warning.
38295         (mbsrchr): New declaration.
38296         * m4/mbsrchr.m4: New file.
38297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38298         GNULIB_MBSRCHR.
38299         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38300         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38301
38302 2007-02-04  Bruno Haible  <bruno@clisp.org>
38303
38304         New module mbschr.
38305         * modules/mbschr: New file.
38306         * lib/mbschr.c: New file.
38307         * lib/string_.h (strchr): Add a conditional link warning.
38308         (mbschr): New declaration.
38309         * m4/mbschr.m4: New file.
38310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38311         GNULIB_MBSCHR.
38312         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38313         * MODULES.html.sh (Internationalization functions): Add mbschr.
38314
38315 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38316
38317         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38318
38319         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38320
38321 2007-02-04  Bruno Haible  <bruno@clisp.org>
38322
38323         New module description section 'configure.ac-early'.
38324         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38325         (func_get_autoconf_early_snippet): New function.
38326         (func_import, func_create_testdir): Use it. Remove special cases for
38327         modules 'extensions' and 'lock'.
38328         * modules/extensions (configure.ac-early): Require
38329         gl_USE_SYSTEM_EXTENSIONS.
38330         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38331
38332 2007-02-04  Bruno Haible  <bruno@clisp.org>
38333
38334         Make use of gcj-4.3's -fsource and -ftarget option.
38335         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38336         and if so try the options -fsource and -ftarget.
38337         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38338         source_version, ftarget_option, target_version arguments.
38339         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38340         (is_envjavac_oldgcj_14_14_usable): Renamed from
38341         is_envjavac_gcj_14_14_usable.
38342         (is_envjavac_oldgcj_14_13_usable): Renamed from
38343         is_envjavac_gcj_14_13_usable.
38344         (is_gcj_present): Update.
38345         (is_gcj_43, is_gcj43_usable): New functions.
38346         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38347         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38348         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38349         try the options -fsource and -ftarget.
38350
38351 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38352
38353         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38354         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38355         larger value.
38356
38357 2007-02-03  Jim Meyering  <jim@meyering.net>
38358
38359         Give tools a better chance to allocate space for very large buffers.
38360         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38361
38362         Make pwd and readlink work also when run with an unreadable parent dir
38363         on systems with openat support.
38364         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38365         provided getcwd function, even when we have openat support.
38366         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38367
38368 2007-02-02  Bruno Haible  <bruno@clisp.org>
38369
38370         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38371         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38372         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38373         portability problems if one of these functions is only used on specific
38374         platforms.
38375         Reported by Paul Eggert.
38376
38377 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38378
38379         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38380         is causing more trouble than it's curing.
38381         * lib/regex_internal.h (__mempcpy): Remove.
38382         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38383         (and make the code a tad smaller to boot).
38384         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38385
38386 2007-02-02  Jim Meyering  <jim@meyering.net>
38387
38388         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38389         section, not in the Makefile.am: one.
38390
38391 2007-02-02  Eric Blake  <ebb9@byu.net>
38392
38393         * lib/strchrnul.c: Always include config.h first.
38394
38395         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38396         gnulib strstr is not necessary here.
38397
38398 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38399
38400         * m4/socklen.m4: Fix typo.
38401
38402 2007-02-02  Eric Blake  <ebb9@byu.net>
38403
38404         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38405         * modules/netinet_in (Makefile.am): Likewise.
38406
38407 2007-02-01  Bruno Haible  <bruno@clisp.org>
38408
38409         * lib/string_.h (GL_LINK_WARNING): New macro.
38410         (strcasecmp, strstr, strcasestr): If provided by the system,
38411         conditionally define as a macro that leads to a warning instead of to
38412         an error.
38413         (strncasecmp): Conditionally define as a macro that leads to a warning.
38414
38415 2007-02-01  Karl Berry  <karl@gnu.org>
38416
38417         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38418
38419 2007-02-01  Bruno Haible  <bruno@clisp.org>
38420
38421         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38422         renamings.
38423
38424 2007-02-01  Eric Blake  <ebb9@byu.net>
38425
38426         * modules/regex (Depends-on): Revert dependence on mempcpy.
38427         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38428         module's definition of mempcpy.
38429         Reported by Paul Eggert.
38430
38431 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38432
38433         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38434         the symbol XYZ before redefining it.  This fixes a problem with
38435         programs that don't use XYZ, when compiled on systems that define
38436         XYZ to something else.
38437
38438 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38439
38440         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38441         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38442         writeable to group or other and (2) is intended to have a special
38443         mode bit that is set or cleared.  In such a case, the directory
38444         should be neither group- nor other-writeable until the special
38445         mode bits are right.
38446
38447 2007-01-31  Eric Blake  <ebb9@byu.net>
38448
38449         * modules/mountlist (Depends-on): Add strstr.
38450
38451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38452         bug.
38453         * modules/string (Makefile.am): Remove redundant replacement.
38454         * modules/regex (Depends-on): Add mempcpy.
38455
38456 2007-01-31  Bruno Haible  <bruno@clisp.org>
38457
38458         New module description field 'Link'.
38459         * gnulib-tool (func_usage): Document --extract-link-directive.
38460         (sed_extract_prog): Recognize 'Link' directive.
38461         (func_get_link_directive): New function.
38462         (func_import): Show summary of link directives.
38463         Handle --extract-link-directive option.
38464         * modules/acl (Link): New section.
38465         * modules/clock-time (Link): New section.
38466         * modules/euidaccess (Link): New section.
38467         * modules/gettext (Link): New section.
38468         * modules/iconv (Link): New section.
38469         * modules/lock (Link): New section.
38470         * modules/nanosleep (Link): New section.
38471         * modules/readline (Link): New section.
38472
38473 2007-01-27  Bruno Haible  <bruno@clisp.org>
38474
38475         Enforce the use of gnulib modules for unportable <string.h> functions.
38476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38477         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38478         (gl_HEADER_STRING_H_BODY): Require it.
38479         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38480         the symbol XYZ to one that gives a link error.
38481         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38482         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38483         * modules/mempcpy (configure.ac): Likewise.
38484         * modules/memrchr (configure.ac): Likewise.
38485         * modules/stpcpy (configure.ac): Likewise.
38486         * modules/stpncpy (configure.ac): Likewise.
38487         * modules/strcase (configure.ac): Likewise.
38488         * modules/strcasestr (configure.ac): Likewise.
38489         * modules/strchrnul (configure.ac): Likewise.
38490         * modules/strdup (configure.ac): Likewise.
38491         * modules/strndup (configure.ac): Likewise.
38492         * modules/strnlen (configure.ac): Likewise.
38493         * modules/strpbrk (configure.ac): Likewise.
38494         * modules/strsep (configure.ac): Likewise.
38495         * modules/strstr (configure.ac): Likewise.
38496         * modules/strtok_r (configure.ac): Likewise.
38497
38498 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38499
38500         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38501
38502 2007-01-30  Jim Meyering  <jim@meyering.net>
38503
38504         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38505
38506 2007-01-29  Bruno Haible  <bruno@clisp.org>
38507
38508         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38509         * lib/execute.c: Likewise.
38510         * lib/pipe.c: Likewise.
38511         * lib/printf-args.h: Likewise.
38512         * lib/printf-args.c: Likewise.
38513         * lib/printf-parse.c: Likewise.
38514         * lib/vasnprintf.c: Likewise.
38515
38516 2007-01-29  Eric Blake  <ebb9@byu.net>
38517
38518         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38519         declaration.
38520
38521 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38522
38523         * lib/strptime.h (strptime): Use 'restrict' for args where
38524         POSIX requires this.
38525         * lib/strptime.c (strptime): Likewise.
38526         Change license notice from LGPL to GPL, since gnulib-tool will
38527         change this as needed.
38528         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38529         defined.
38530         Include "strptime.h" first, to check interface.
38531         Do not #undef _LIBC and _NL_CURRENT.
38532         Do not include <stdlib.h>; no longer needed.
38533         Include "time_r.h" and declare ptime_locale_status
38534         only if _LIBC is not defined.
38535         (__P): Remove unused macro.
38536         (match_string): Bring back glibc version, but use it only if _LIBC
38537         is defined.
38538         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38539         Remove unnecessary assertion and abort() call.
38540         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38541         * m4/strptime.m4: Fix serial number comment.
38542         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38543         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38544         (Depends-on): Add time_r.
38545
38546 2007-01-29  Bruno Haible  <bruno@clisp.org>
38547
38548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38549         strptime.
38550         * modules/strptime (Depends-on): Add stdbool.
38551         * lib/strptime.h: Include <time.h> always. Add comments.
38552
38553 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38554
38555         * modules/strptime: New file.
38556         * lib/strptime.h: New file.
38557         * lib/strptime.c: New file.
38558         * m4/strptime.m4: New file.
38559
38560 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38561
38562         * MODULES.html.sh: New module mpsort.
38563         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38564
38565         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38566         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38567         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38568         All uses changed.
38569         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38570         All uses changed.
38571         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38572         to _Restrict_.
38573         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38574         the parameter matches the prototype.
38575
38576 2007-01-28  Jim Meyering  <jim@meyering.net>
38577
38578         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38579         sys/time.h here, reverting that part of the previous patch:
38580         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38581
38582 2007-01-28  Bruno Haible  <bruno@clisp.org>
38583
38584         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38585         value of $(SYS_TIME_H).
38586         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38587         remove it conditionally, too. [added by Jim Meyering]
38588         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38590         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38591         GETTIMEOFDAY_REPLACEMENT to 1.
38592
38593 2007-01-28  Bruno Haible  <bruno@clisp.org>
38594
38595         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38596         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38598         Set UNISTD_H instead of UNISTD_H2.
38599         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38600
38601 2007-01-28  Bruno Haible  <bruno@clisp.org>
38602
38603         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38604         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38605
38606 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38607
38608         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38609         (func_create_testdir): Ensure C locale for `grep' and `tr'
38610         character ranges.
38611         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38612         ACLOCAL_AMFLAGS parsing state machine.
38613
38614 2007-01-27  Bruno Haible  <bruno@clisp.org>
38615
38616         * modules/unistr/base: Update.
38617
38618 2007-01-27  Bruno Haible  <bruno@clisp.org>
38619
38620         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38621         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38622         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38623         modules/unistr/u32-mbtouc.
38624         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38625         * lib/unistr.h: Update.
38626         * lib/linebreak.c: Update.
38627         * modules/unistr/u32-mbtouc: Renamed from
38628         modules/unistr/u32-mbtouc-safe.
38629         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38630         * lib/unistr.h: Update.
38631         * lib/unistr/u32-to-u8.c: Update.
38632         * lib/unistr/u32-to-u16.c: Update.
38633
38634 2007-01-27  Bruno Haible  <bruno@clisp.org>
38635
38636         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38637         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38638         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38639         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38640         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38641         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38642         modules/unistr/u16-mbtouc.
38643         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38644         * lib/unistr.h: Update.
38645         * lib/linebreak.c: Update.
38646         * modules/linebreak: Update.
38647         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38648         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38649         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38650         * modules/unistr/u16-mbtouc: Renamed from
38651         modules/unistr/u16-mbtouc-safe.
38652         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38653         * lib/unistr.h: Update.
38654         * lib/unistr/u16-to-u8.c: Update.
38655         * modules/unistr/u16-to-u8: Update.
38656         * lib/unistr/u16-to-u32.c: Update.
38657         * modules/unistr/u16-to-u32: Update.
38658
38659 2007-01-27  Bruno Haible  <bruno@clisp.org>
38660
38661         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38662         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38663         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38664         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38665         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38666         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38667         modules/unistr/u8-mbtouc.
38668         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38669         * lib/unistr.h: Update.
38670         * lib/striconveh.c: Update.
38671         * modules/striconveh: Update.
38672         * lib/linebreak.c: Update.
38673         * modules/linebreak: Update.
38674         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38675         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38676         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38677         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38678         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38679         * lib/unistr.h: Update.
38680         * lib/striconveh.c: Update.
38681         * modules/striconveh: Update.
38682         * lib/unistr/u8-to-u16.c: Update.
38683         * modules/unistr/u8-to-u16: Update.
38684         * lib/unistr/u8-to-u32.c: Update.
38685         * modules/unistr/u8-to-u32: Update.
38686
38687 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38688
38689         Sync from Libtool.
38690         * lib/argz.c: Do not include strings.h nor memory.h, include
38691         string.h unconditionally.  Patch by Simon Josefsson.
38692
38693 2007-01-27  Bruno Haible  <bruno@clisp.org>
38694
38695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38696         from gl_HEADER_STRING_H_BODY.
38697         (gl_HEADER_STRING_H_BODY): Require it.
38698         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38699         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38700         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38701         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38703         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38705         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38706         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38707         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38708         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38709         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38710         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38711         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38712         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38713
38714 2007-01-27  Bruno Haible  <bruno@clisp.org>
38715
38716         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38717         check_PROGRAMS into noinst_PROGRAMS.
38718         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38719         check_PROGRAMS in this case.
38720         (func_import): Set for_test to false.
38721         (func_create_testdir): Set for_test to true.
38722
38723 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38724             Bruno Haible  <bruno@clisp.org>
38725
38726         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38727         (Depends-on): Add string.
38728         (Includes): Use <string.h> instead of strcasestr.h.
38729         * modules/string (Makefile.am): Also substitute the value of
38730         REPLACE_STRCASESTR.
38731         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38732         assume strcasestr is declared in <string.h> not <strings.h>. Also
38733         set REPLACE_STRCASESTR.
38734         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38735         REPLACE_STRCASESTR.
38736         * lib/strcasestr.h: Remove file.
38737         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38738         * lib/string_.h (strcasestr): New declaration.
38739
38740 2007-01-27  Bruno Haible  <bruno@clisp.org>
38741
38742         * lib/string_.h: Use 'extern'.
38743
38744 2007-01-27  Jim Meyering  <jim@meyering.net>
38745
38746         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38747         of set-but-not-used local, "q".
38748
38749         * lib/mempcpy.c: Include <config.h> before <string.h>.
38750         This fixes a compilation error on HP-UX, due to the system's
38751         "restrict"-using mempcpy prototype.
38752
38753 2007-01-26  Bruno Haible  <bruno@clisp.org>
38754
38755         Small optimization.
38756         * lib/javacomp.c: Include c-strstr.h.
38757          (is_envjavac_gcj): Use c_strstr instead of strstr.
38758         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38759
38760 2007-01-26  Bruno Haible  <bruno@clisp.org>
38761
38762         * MODULES.html.sh (Unicode string functions): Add the new modules.
38763
38764         * modules/uniconv/u32-strconv-to-locale: New file.
38765         * lib/uniconv/u32-strconv-to-locale.c: New file.
38766
38767         * modules/uniconv/u16-strconv-to-locale: New file.
38768         * lib/uniconv/u16-strconv-to-locale.c: New file.
38769
38770         * modules/uniconv/u8-strconv-to-locale: New file.
38771         * lib/uniconv/u8-strconv-to-locale.c: New file.
38772
38773         * modules/uniconv/u32-strconv-from-locale: New file.
38774         * lib/uniconv/u32-strconv-from-locale.c: New file.
38775
38776         * modules/uniconv/u16-strconv-from-locale: New file.
38777         * lib/uniconv/u16-strconv-from-locale.c: New file.
38778
38779         * modules/uniconv/u8-strconv-from-locale: New file.
38780         * lib/uniconv/u8-strconv-from-locale.c: New file.
38781
38782         * modules/uniconv/u32-strconv-to-enc: New file.
38783         * lib/uniconv/u32-strconv-to-enc.c: New file.
38784         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38785         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38786
38787         * modules/uniconv/u16-strconv-to-enc: New file.
38788         * lib/uniconv/u16-strconv-to-enc.c: New file.
38789         * lib/uniconv/u-strconv-to-enc.h: New file.
38790         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38791         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38792
38793         * modules/uniconv/u8-strconv-to-enc: New file.
38794         * lib/uniconv/u8-strconv-to-enc.c: New file.
38795         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38796         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38797
38798         * modules/uniconv/u32-strconv-from-enc: New file.
38799         * lib/uniconv/u32-strconv-from-enc.c: New file.
38800         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38801         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38802
38803         * modules/uniconv/u16-strconv-from-enc: New file.
38804         * lib/uniconv/u16-strconv-from-enc.c: New file.
38805         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38806         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38807
38808         * modules/uniconv/u8-strconv-from-enc: New file.
38809         * lib/uniconv/u8-strconv-from-enc.c: New file.
38810         * lib/uniconv/u-strconv-from-enc.h: New file.
38811         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38812         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38813
38814         * modules/uniconv/u32-conv-from-enc: New file.
38815         * lib/uniconv/u32-conv-from-enc.c: New file.
38816         * modules/uniconv/u32-conv-from-enc-tests: New file.
38817         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38818
38819         * modules/uniconv/u16-conv-from-enc: New file.
38820         * lib/uniconv/u16-conv-from-enc.c: New file.
38821         * lib/uniconv/u-conv-from-enc.h: New file.
38822         * modules/uniconv/u16-conv-from-enc-tests: New file.
38823         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38824
38825         * modules/uniconv/u8-conv-from-enc: New file.
38826         * lib/uniconv/u8-conv-from-enc.c: New file.
38827         * modules/uniconv/u8-conv-from-enc-tests: New file.
38828         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38829
38830         * modules/uniconv/base: New file.
38831         * lib/uniconv.h: New file.
38832
38833 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38834
38835         * doc/gnulib-tool.texi (Initial import): Update to match current
38836         behavior with strdup module.
38837         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38838         * lib/memmem.h: Remove; all uses removed.  This is now done
38839         by <string.h>.
38840         * lib/mempcpy.h: Likewise.
38841         * lib/memrchr.h: Likewise.
38842         * lib/stpcpy.h: Likewise.
38843         * lib/stpncpy.h: Likewise.
38844         * lib/strcase.h: Likewise.
38845         * lib/strchrnul.h: Likewise.
38846         * lib/strdup.h: Likewise.
38847         * lib/strndup.h: Likewise.
38848         * lib/strnlen.h: Likewise.
38849         * lib/strpbrk.h: Likewise.
38850         * lib/strsep.h: Likewise.
38851         * lib/strstr.h: Likewise.
38852         * lib/strtok_r.h: Likewise.
38853         * lib/string_.h: New file.
38854         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38855         Rely on <string.h> instead.
38856         * lib/canon-host.c: Likewise.
38857         * lib/chdir-long.c: Likewise.
38858         * lib/concatpath.c: Likewise.
38859         * lib/exclude.c: Likewise.
38860         * lib/fchdir.c: Likewise.
38861         * lib/getaddrinfo.c: Likewise.
38862         * lib/getcwd.c: Likewise.
38863         * lib/getsubopt.c: Likewise.
38864         * lib/glob.c: Likewise.
38865         * lib/hard-locale.c: Likewise.
38866         * lib/iconvme.c: Likewise.
38867         * lib/javacomp.c: Likewise.
38868         * lib/mempcpy.c: Likewise.
38869         * lib/memrchr.c: Likewise.
38870         * lib/regex_internal.h: Likewise.
38871         * lib/stpncpy.c: Likewise.
38872         * lib/strcasecmp.c: Likewise.
38873         * lib/strchrnul.c: Likewise.
38874         * lib/strdup.c: Likewise.
38875         * lib/striconv.c: Likewise.
38876         * lib/striconveh.c: Likewise.
38877         * lib/striconveha.c: Likewise.
38878         * lib/strncasecmp.c: Likewise.
38879         * lib/strndup.c: Likewise.
38880         * lib/strnlen.c: Likewise.
38881         * lib/strsep.c: Likewise.
38882         * lib/strstr.c: Likewise.
38883         * lib/strtok_r.c: Likewise.
38884         * lib/userspec.c: Likewise.
38885         * lib/w32spawn.h: Likewise.
38886         * lib/xstrndup.c: Likewise.
38887         * lib/mountlist.c (strstr): Remove decl.
38888         * m4/string_h.m4: New file.
38889         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38890         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38891         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38892         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38893         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38894         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38895         Set REPLACE_STRCASECMP if necessary.
38896         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38897         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38898         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38899         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38900         HAVE_DECL_STRDUP if necessary.
38901         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38902         since gl_FUNC_STRNDUP does that now.
38903         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38904         Check for decl here...
38905         (gl_PREREQ_STRNLEN): ... not here.
38906         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38907         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38908         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38909         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38910         necessary.
38911         * modules/string: New file.
38912         * modules/memmem (Files): Remove special-purpose include file.
38913         (Depends-on): Add string.
38914         (Include): Include <string.h>, not the removed file.
38915         * modules/mempcpy: Likewise.
38916         * modules/memrchr: Likewise.
38917         * modules/stpcpy: Likewise.
38918         * modules/stpncpy: Likewise.
38919         * modules/strcase: Likewise.
38920         * modules/strchrnul: Likewise.
38921         * modules/strdup: Likewise.
38922         * modules/strndup: Likewise.
38923         * modules/strnlen: Likewise.
38924         * modules/strpbrk: Likewise.
38925         * modules/strsep: Likewise.
38926         * modules/strstr: Likewise.
38927         * modules/strtok_r: Likewise.
38928         * tests/test-dirname.c: Don't include "strdup.h", since
38929         <string.h> now suffices.
38930         * tests/test-memmem.c: Don't include "memmem.h", since
38931         <string.h> now suffices.
38932
38933 2007-01-25  Bruno Haible  <bruno@clisp.org>
38934
38935         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38936         *resultp is 0.
38937
38938         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38939         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38940         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38941         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38942
38943         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38944         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38945         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38946         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38947         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38948         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38949
38950 2007-01-24  Bruno Haible  <bruno@clisp.org>
38951
38952         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38953         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38954         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38955         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38956         gl_FUNC_FTS_CORE.
38957         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38958         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38959         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38960         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38961         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38962         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38963         gl_FUNC_FCHOWNAT.
38964         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38965         gl_FUNC_STRFTIME.
38966         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38967         Reported by Ralf Wildenhues.
38968
38969 2007-01-24  Bruno Haible  <bruno@clisp.org>
38970
38971         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38972         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38973         gl_GETADDRINFO.
38974         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38975         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38976         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38977
38978 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38979
38980         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38981         Don't use 'exit'; just return from 'main'.
38982         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38983
38984         * lib/fnmatch_.h: Readjust white space and comments to match
38985         glibc, to avoid spurious diffs.
38986
38987 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38988
38989         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38990         2004-12-01 change by Jakub Jelinek, since this code won't compile
38991         if !LIBC.  Problem reported by Bob Proulx.
38992
38993 2007-01-23  Bruno Haible  <bruno@clisp.org>
38994
38995         * lib/striconveh.c: Include c-strcaseeq.h.
38996         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38997         * modules/striconveh (Depends-on): Add c-strcaseeq.
38998
38999 2007-01-23  Bruno Haible  <bruno@clisp.org>
39000
39001         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39002
39003         * modules/c-strcaseeq: New file.
39004         * lib/c-strcaseeq.h: New file.
39005
39006         * modules/streq: New file.
39007         * lib/streq.h: New file.
39008
39009 2007-01-23  Bruno Haible  <bruno@clisp.org>
39010
39011         * modules/striconveha-tests: New file.
39012         * tests/test-striconveha.c: New file.
39013
39014         * lib/striconveha.h: Include <stdbool.h>.
39015         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39016         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39017         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39018         (mem_iconveha): New function.
39019         (str_iconveha_notranslit): Renamed from str_iconveha.
39020         (str_iconveha): New function.
39021         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39022         c-strcase.
39023
39024 2007-01-23  Bruno Haible  <bruno@clisp.org>
39025
39026         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39027         encodings without forgiving before trying any encoding with handler.
39028         (str_iconveha): Try all encodings without forgiving before trying any
39029         encoding with handler.
39030
39031 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39032
39033         Import the following changes from libc.
39034
39035         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39036
39037         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39038
39039         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39040
39041         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39042         normal_bracket label.
39043
39044         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39045
39046         [BZ #361]
39047         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39048         to normal_bracket after fetching the next character.
39049
39050 2007-01-22  Bruno Haible  <bruno@clisp.org>
39051
39052         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39053         argument.
39054         * lib/striconveh.c (iconv_carefully_1): New function.
39055         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39056         argument.
39057         (str_cd_iconveh): Update.
39058         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39059         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39060         * tests/test-striconveh.c (MAGIC): New macro.
39061         (new_offsets): New function.
39062         (main): Test call with and without offsets.
39063
39064 2007-01-22  Bruno Haible  <bruno@clisp.org>
39065
39066         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39067         * modules/sys_select (Makefile.am): Likewise.
39068         * modules/sys_socket (Makefile.am): Likewise.
39069         * modules/sys_time (Makefile.am): Likewise.
39070
39071 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39072
39073         * modules/gettimeofday (License): Change from GPL to LGPL, since
39074         gettimeofday is a library function.
39075
39076 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39077
39078         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39079
39080 2007-01-21  Bruno Haible  <bruno@clisp.org>
39081
39082         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39083
39084 2007-01-21  Bruno Haible  <bruno@clisp.org>
39085
39086         * modules/striconveha: New file.
39087         * lib/striconveha.h: New file.
39088         * lib/striconveha.c: New file.
39089         * MODULES.html.sh (Internationalization functions): Add striconveha.
39090         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39091         string.
39092         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39093
39094 2007-01-21  Bruno Haible  <bruno@clisp.org>
39095
39096         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39097         * lib/striconveh.c (str_iconveh): Likewise.
39098
39099 2007-01-21  Bruno Haible  <bruno@clisp.org>
39100
39101         * lib/striconveh.h (mem_iconveh): New declaration.
39102         * lib/striconveh.c (mem_iconveh): New function.
39103         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39104
39105 2007-01-21  Bruno Haible  <bruno@clisp.org>
39106
39107         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39108
39109         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39110         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39111         original result buffer.
39112         (str_cd_iconveh): Update.
39113         * tests/test-striconveh.c (main): Update.
39114
39115         * lib/striconv.h (mem_cd_iconv): Change specification.
39116         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39117         result buffer.
39118         (str_cd_iconv): Update.
39119         * tests/test-striconv.c (main): Update.
39120
39121 2007-01-21  Bruno Haible  <bruno@clisp.org>
39122
39123         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39124
39125 2007-01-20  Jim Meyering  <jim@meyering.net>
39126
39127         * lib/userspec.c (parse_with_separator): If a user or group string
39128         starts with "+", skip the corresponding name-to-ID look-up, since
39129         such a look-up must fail: user and group names may not include "+".
39130
39131 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39132
39133         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39134         since we now assume the sys_time module.
39135         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39136         check for sys/time.h; no longer needed.
39137         * modules/poll (Depends-on): Depend on sys_time.
39138
39139 2007-01-18  Bruno Haible  <bruno@clisp.org>
39140
39141         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39142         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39143
39144         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39145         gettimeofday.
39146
39147         * tests/test-gettimeofday.c: Include <time.h>.
39148         (dummy): Remove variable.
39149
39150         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39151         gl_HEADER_SYS_TIME_H.
39152         (gl_HEADER_SYS_TIME_H): New macro.
39153
39154         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39155         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39157         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39158         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39159         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39160         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39161         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39162         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39163         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39164         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39165
39166         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39167         last change; it caused a compilation error when cross-compiling to
39168         Cygwin.
39169
39170 2007-01-18  Jim Meyering  <jim@meyering.net>
39171
39172         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39173         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39174         than the race-prone "test -d sys || mkdir sys".
39175         (configure.ac): Use AC_PROG_MKDIR_P.
39176         * modules/sys_select: Likewise.
39177         * modules/sys_socket: Likewise.
39178         * modules/sys_time: Likewise.
39179
39180 2007-01-18  Eric Blake  <ebb9@byu.net>
39181
39182         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39183         replace gettimeofday.
39184         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39185         name, to avoid infinite recursion.
39186
39187 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39188
39189         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39190         module sys_time.
39191         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39192         assume timespec.h defines struct timeval.
39193         * lib/settime.c: Likewise.
39194         * lib/utimens.c: Likewise.
39195         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39196         since we now assume the gettimeofday module.
39197         * lib/tempname.c (__gen_tempname): Likewise.
39198         * lib/gettimeofday.h: Remove.
39199         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39200         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39201         Include <time.h>, for 'time()'.
39202         (localtime_buffer_addr): Also use this workaround if
39203         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39204         to simplify the uses.  All uses changed.
39205         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39206         that #undef is inside {}, and 'const' follows type name consistently.
39207         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39208         (gettimeofday): Do not use the maximum possible value for
39209         tv->tv_usec, since that might break usages other than ls.c.
39210         Instead, we'll leave ls.c alone.  This undoes today's patch
39211         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39212         we've never observed the problem but might as well keep the
39213         canary.
39214         * lib/nanosleep.c: Include timespec.h first, for interface check.
39215         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39216         now assume the sys_time module.
39217         * lib/tempname.c: Likewise.
39218         * lib/timespec.h: Likewise.
39219         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39220         needed.
39221         * lib/strftime.c: Likewise.
39222         * lib/timespec.h: Likewise.
39223         * lib/posixtm.c: Include posixtm.h first, for interface check.
39224         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39225         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39226         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39227         * lib/sys_time_.h: New file.
39228         * lib/timespec.h (struct timespec): Use long int, not long.
39229         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39230         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39231         Remove obsolescent call to AC_HEADER_TIME.
39232         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39234         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39235         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39236         Likewise.
39237         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39238         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39239         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39240         into the sys_time module.  Check for gettimeofday just once.
39241         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39242         for gettimeofday signature to just check the signature.  Merely
39243         compile it, since linking doesn't test signature.  Improve test for
39244         whether gettimeofday.o is actually needed.
39245         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39246         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39247         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39248         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39249         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39250         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39251         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39252         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39253         than worrying about sys/time.h.
39254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39255         Don't bother worrying about TIME_WITH_SYS_TIME.
39256         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39257         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39258         * m4/sys_time_h.m4: New file.
39259         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39260         Don't include sys/time.h.  Return from main rather than exiting.
39261         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39262         all uses changed.
39263         * modules/gethrxtime (Depends-on): Add sys_time.
39264         * modules/gettime (Depends-on): Likewise.
39265         * modules/gettimeofday (Depends-on): Likewise.
39266         * modules/nanosleep (Depends-on): Likewise.
39267         * modules/settime (Depends-on): Likewise.
39268         * modules/tempname (Depends-on): Likewise.
39269         * modules/utimens (Depends-on): Likewise.
39270         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39271         (Include:) Change back to <sys/time.h>.
39272         (Maintainer:) Add self.
39273         * modules/sys_time: New file.
39274         * modules/tempname (Depends-on): Add gettimeofday.
39275         * tests/test-gettimeofday.c: Include <sys/time.h>
39276         rather than gettimeofday.h.
39277
39278 2007-01-17  Bruno Haible  <bruno@clisp.org>
39279
39280         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39281         the license default to GPL.
39282         (func_create_testdir): Don't complain if a module is LGPL and its
39283         tests module depends on GPLed modules.
39284
39285 2007-01-17  Bruno Haible  <bruno@clisp.org>
39286
39287         * lib/gettimeofday.c (gettimeofday): Add code for the case
39288         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39289         maximum possible value for tv->tv_usec, rather than the minimum one.
39290
39291 2005-10-08  Martin Lambers  <marlam@marlam.de>
39292 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39293 2007-01-16  Bruno Haible  <bruno@clisp.org>
39294
39295         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39296         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39297         gl_FUNC_GETTIMEOFDAY.
39298         (Include): Add gettimeofday.h.
39299         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39300         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39301         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39302         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39303         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39304         * lib/gettimeofday.h: New file.
39305         * lib/gettimeofday.c: Include <sys/timeb.h>.
39306         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39307         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39308         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39309         fall back on time().
39310
39311         * tests/test-gettimeofday.c: New file.
39312         * modules/gettimeofday-tests: New file.
39313
39314 2007-01-16  Eric Blake  <ebb9@byu.net>
39315
39316         * modules/fnmatch (Depends-on): Depend on wchar.
39317         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39318         * m4/fnmatch.m4: Likewise.
39319         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39320         * m4/mbchar.m4: Likewise.
39321         * modules/mbswidth (Depends-on): Depend on wchar.
39322         * lib/mbswidth.c: Assume <wchar.h>.
39323         * m4/mbswidth.m4: Likewise.
39324         * modules/quotearg (Depends-on): Depend on wchar.
39325         * lib/quotearg.c: Assume <wchar.h>.
39326         * m4/quotearg.m4: Likewise.
39327         * modules/regex (Depends-on): Depend on wchar.
39328         * lib/regex_internal.h: Assume <wchar.h>.
39329         * m4/regex.m4: Likewise.
39330         * modules/stdint (Depends-on): Depend on wchar.
39331         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39332         * m4/stdint.m4: Likewise.
39333         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39334         * modules/strftime (Depends-on): Depend on wchar.
39335         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39336         * modules/strtol (Depends-on): Depend on wchar.
39337         * lib/strtol.c: Assume <wchar.h>.
39338         * modules/wcwidth (Depends-on): Depend on wchar.
39339         * lib/wcwidth.h: Assume <wchar.h>.
39340         * m4/wcwidth.m4: Likewise.
39341
39342 2007-01-16  Bruno Haible  <bruno@clisp.org>
39343
39344         * modules/csharpexec-script: New, created from...
39345         * modules/csharpexec: ... this.
39346
39347 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39348
39349         * modules/javaexec-script: New, created from...
39350         * modules/javaexec: ... this.
39351
39352 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39353
39354         * modules/poll (Dependencies): Add sys_select.
39355
39356 2007-01-15  Jim Meyering  <jim@meyering.net>
39357
39358         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39359         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39360         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39361         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39362
39363 2007-01-15  Bruno Haible  <bruno@clisp.org>
39364
39365         * modules/striconveh: New file.
39366         * lib/striconveh.h: New file.
39367         * lib/striconveh.c: New file.
39368         * MODULES.html.sh (Internationalization functions): Add striconveh.
39369
39370         * modules/striconveh-tests: New file.
39371         * tests/test-striconveh.c: New file.
39372
39373 2007-01-15  Bruno Haible  <bruno@clisp.org>
39374
39375         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39376         not from GNU libiconv or GNU libc.
39377
39378 2007-01-15  Bruno Haible  <bruno@clisp.org>
39379
39380         * doc/gnulib-intro.texi (Copyright): Explain the different license
39381         terms for module descriptions, autoconf macros, tests, documentation.
39382
39383 2007-01-14  Bruno Haible  <bruno@clisp.org>
39384
39385         * modules/striconv-tests: New file.
39386         * tests/test-striconv.c: New file.
39387
39388 2007-01-14  Bruno Haible  <bruno@clisp.org>
39389
39390         * modules/iconv-tests: New file.
39391         * tests/test-iconv.c: New file.
39392
39393 2007-01-14  Bruno Haible  <bruno@clisp.org>
39394
39395         * gnulib-tool (func_get_license): For test modules, use the license of
39396         the main module.
39397
39398 2007-01-14  Bruno Haible  <bruno@clisp.org>
39399
39400         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39401         if iconv is found to exist.
39402
39403 2007-01-14  Bruno Haible  <bruno@clisp.org>
39404
39405         * modules/c-ctype-tests: New file.
39406         * tests/test-c-ctype.c: New file.
39407
39408 2007-01-14  Bruno Haible  <bruno@clisp.org>
39409
39410         * modules/binary-io-tests: New file.
39411         * tests/test-binary-io.sh: New file.
39412         * tests/test-binary-io.c: New file.
39413
39414 2007-01-14  Bruno Haible  <bruno@clisp.org>
39415
39416         * modules/array-oset-tests: New file.
39417         * tests/test-array_oset.c: New file.
39418
39419 2007-01-14  Bruno Haible  <bruno@clisp.org>
39420
39421         * modules/array-list-tests: New file.
39422         * tests/test-array_list.c: New file.
39423
39424 2007-01-14  Bruno Haible  <bruno@clisp.org>
39425
39426         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39427         and make.
39428         Reported by Simon Josefsson in
39429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39430
39431 2007-01-14  Bruno Haible  <bruno@clisp.org>
39432
39433         * modules/allocsa-tests: New file.
39434         * tests/test-allocsa.c: New file.
39435
39436 2007-01-14  Bruno Haible  <bruno@clisp.org>
39437
39438         * modules/fchdir (Depends-on): Add absolute-header.
39439         * modules/unistd (Depends-on): Likewise.
39440
39441 2006-12-30  Bruno Haible  <bruno@clisp.org>
39442
39443         * modules/fchdir: New file.
39444         * modules/unistd (Files): Add lib/unistd_.h.
39445         (Makefile.am): Generate unistd.h from unistd_.h.
39446         * lib/fchdir.c: New file.
39447         * lib/dirent_.h: New file.
39448         * lib/unistd_.h: New file.
39449         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39450         * m4/fchdir.m4: New file.
39451         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39452         (gl_HEADER_UNISTD): Invoke it.
39453         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39454         function.
39455         * lib/backupfile.c (opendir, closedir): Undefine.
39456         * lib/chown.c (open, close): Undefine.
39457         * lib/clean-temp.c (open, close): Undefine.
39458         * lib/copy-file.c (open, close): Undefine.
39459         * lib/execute.c (open, close): Undefine.
39460         * lib/fsusage.c (open, close): Undefine.
39461         * lib/gc-gnulib.c (open, close): Undefine.
39462         * lib/getcwd.c (opendir, closedir): Undefine.
39463         * lib/glob.c (opendir, closedir): Undefine.
39464         * lib/javacomp.c (open, close): Undefine.
39465         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39466         * lib/openat-proc.c (open, close): Undefine.
39467         * lib/pagealign_alloc.c (open, close): Undefine.
39468         * lib/pipe.c (open, close): Undefine.
39469         * lib/progreloc.c (open, close): Undefine.
39470         * lib/savedir.c (opendir, closedir): Undefine.
39471         * lib/utime.c (open, close): Undefine.
39472         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39473
39474 2007-01-10  Bruno Haible  <bruno@clisp.org>
39475
39476         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39477
39478 2007-01-12  Eric Blake  <ebb9@byu.net>
39479
39480         Provide a robust <wchar.h>.  Further simplifications are now
39481         possible in other modules, but not included here.
39482         * modules/wchar: New module.
39483         * m4/wchar.m4: New file.
39484         * lib/wchar_.h: Likewise.
39485         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39486         of the new module.
39487         * MODULES.html.sh (Extended multibyte and wide character utilities):
39488         New section.
39489
39490 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39491
39492         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39493         to a reasonable default for memory allocation.
39494         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39495         file system that reports garbage st_size values for symlinks.
39496         Problem reported by Liyang Hu.
39497
39498 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39499
39500         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39501         Emacs .#* auto-save files).
39502
39503 2007-01-11  Bruno Haible  <bruno@clisp.org>
39504
39505         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39506         directory.
39507
39508 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39509
39510         Use @...@ consistently in lib/wctype_.h.
39511         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39512         on it being set to 1 or 0.
39513         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39514         go back to AC_SUBSTing it.
39515         * modules/wctype (Makefile.am): Undo previous change.
39516
39517 2007-01-10  Eric Blake  <ebb9@byu.net>
39518
39519         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39520         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39521         * modules/wctype (Makefile.am): Likewise.
39522         Reported by Chris McGuire.
39523
39524 2007-01-10  Jim Meyering  <jim@meyering.net>
39525
39526         fts.c: a small readability/maintainability improvement
39527         * lib/fts.c (fts_read): Make this code slightly more readable and
39528         maintainable by hoisting the "sp->fts_cur = p" assignments to
39529         immediately follow the statements that set P.  Derived from
39530         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39531
39532 2007-01-10  Eric Blake  <ebb9@byu.net>
39533
39534         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39535         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39537         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39538         Reported by Chris McGuire.
39539
39540 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39541
39542         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39543         in sed script.
39544
39545 2007-01-09  Bruno Haible  <bruno@clisp.org>
39546
39547         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39548         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39549         variables.
39550         (func_module): Use them.
39551
39552 2007-01-09  Bruno Haible  <bruno@clisp.org>
39553
39554         * modules/unistr/base: New file.
39555         * lib/unistr.h: New file.
39556
39557         * modules/unistr/u8-to-u16: New file.
39558         * lib/unistr/u8-to-u16.c: New file.
39559
39560         * modules/unistr/u8-to-u32: New file.
39561         * lib/unistr/u8-to-u32.c: New file.
39562
39563         * modules/unistr/u16-to-u8: New file.
39564         * lib/unistr/u16-to-u8.c: New file.
39565
39566         * modules/unistr/u16-to-u32: New file.
39567         * lib/unistr/u16-to-u32.c: New file.
39568
39569         * modules/unistr/u32-to-u8: New file.
39570         * lib/unistr/u32-to-u8.c: New file.
39571
39572         * modules/unistr/u32-to-u16: New file.
39573         * lib/unistr/u32-to-u16.c: New file.
39574
39575         * modules/unistr/u8-check: New file.
39576         * modules/unistr/u16-check: New file.
39577         * modules/unistr/u32-check: New file.
39578         * lib/unistr/u8-check.c: New file.
39579         * lib/unistr/u16-check.c: New file.
39580         * lib/unistr/u32-check.c: New file.
39581
39582         * modules/unistr/u8-chr: New file.
39583         * modules/unistr/u16-chr: New file.
39584         * modules/unistr/u32-chr: New file.
39585         * lib/unistr/u8-chr.c: New file.
39586         * lib/unistr/u16-chr.c: New file.
39587         * lib/unistr/u32-chr.c: New file.
39588
39589         * modules/unistr/u8-cmp: New file.
39590         * modules/unistr/u16-cmp: New file.
39591         * modules/unistr/u32-cmp: New file.
39592         * lib/unistr/u8-cmp.c: New file.
39593         * lib/unistr/u16-cmp.c: New file.
39594         * lib/unistr/u32-cmp.c: New file.
39595
39596         * modules/unistr/u8-cpy: New file.
39597         * modules/unistr/u16-cpy: New file.
39598         * modules/unistr/u32-cpy: New file.
39599         * lib/unistr/u8-cpy.c: New file.
39600         * lib/unistr/u16-cpy.c: New file.
39601         * lib/unistr/u32-cpy.c: New file.
39602         * lib/unistr/u-cpy.h: New file.
39603
39604         * modules/unistr/u8-cpy-alloc: New file.
39605         * modules/unistr/u16-cpy-alloc: New file.
39606         * modules/unistr/u32-cpy-alloc: New file.
39607         * lib/unistr/u8-cpy-alloc.c: New file.
39608         * lib/unistr/u16-cpy-alloc.c: New file.
39609         * lib/unistr/u32-cpy-alloc.c: New file.
39610         * lib/unistr/u-cpy-alloc.h: New file.
39611
39612         * modules/unistr/u8-endswith: New file.
39613         * modules/unistr/u16-endswith: New file.
39614         * modules/unistr/u32-endswith: New file.
39615         * lib/unistr/u8-endswith.c: New file.
39616         * lib/unistr/u16-endswith.c: New file.
39617         * lib/unistr/u32-endswith.c: New file.
39618         * lib/unistr/u-endswith.h: New file.
39619
39620         * modules/unistr/u8-mblen: New file.
39621         * modules/unistr/u16-mblen: New file.
39622         * modules/unistr/u32-mblen: New file.
39623         * lib/unistr/u8-mblen.c: New file.
39624         * lib/unistr/u16-mblen.c: New file.
39625         * lib/unistr/u32-mblen.c: New file.
39626
39627         * modules/unistr/u8-mbtouc: New file.
39628         * modules/unistr/u16-mbtouc: New file.
39629         * modules/unistr/u32-mbtouc: New file.
39630         * lib/unistr/u8-mbtouc.c: New file.
39631         * lib/unistr/u16-mbtouc.c: New file.
39632         * lib/unistr/u32-mbtouc.c: New file.
39633
39634         * modules/unistr/u8-mbtouc-safe: New file.
39635         * modules/unistr/u16-mbtouc-safe: New file.
39636         * modules/unistr/u32-mbtouc-safe: New file.
39637         * lib/unistr/u8-mbtouc-safe.c: New file.
39638         * lib/unistr/u16-mbtouc-safe.c: New file.
39639         * lib/unistr/u32-mbtouc-safe.c: New file.
39640
39641         * modules/unistr/u8-move: New file.
39642         * modules/unistr/u16-move: New file.
39643         * modules/unistr/u32-move: New file.
39644         * lib/unistr/u8-move.c: New file.
39645         * lib/unistr/u16-move.c: New file.
39646         * lib/unistr/u32-move.c: New file.
39647         * lib/unistr/u-move.h: New file.
39648
39649         * modules/unistr/u8-next: New file.
39650         * modules/unistr/u16-next: New file.
39651         * modules/unistr/u32-next: New file.
39652         * lib/unistr/u8-next.c: New file.
39653         * lib/unistr/u16-next.c: New file.
39654         * lib/unistr/u32-next.c: New file.
39655
39656         * modules/unistr/u8-prev: New file.
39657         * modules/unistr/u16-prev: New file.
39658         * modules/unistr/u32-prev: New file.
39659         * lib/unistr/u8-prev.c: New file.
39660         * lib/unistr/u16-prev.c: New file.
39661         * lib/unistr/u32-prev.c: New file.
39662
39663         * modules/unistr/u8-set: New file.
39664         * modules/unistr/u16-set: New file.
39665         * modules/unistr/u32-set: New file.
39666         * lib/unistr/u8-set.c: New file.
39667         * lib/unistr/u16-set.c: New file.
39668         * lib/unistr/u32-set.c: New file.
39669         * lib/unistr/u-set.h: New file.
39670
39671         * modules/unistr/u8-startswith: New file.
39672         * modules/unistr/u16-startswith: New file.
39673         * modules/unistr/u32-startswith: New file.
39674         * lib/unistr/u8-startswith.c: New file.
39675         * lib/unistr/u16-startswith.c: New file.
39676         * lib/unistr/u32-startswith.c: New file.
39677         * lib/unistr/u-startswith.h: New file.
39678
39679         * modules/unistr/u8-stpcpy: New file.
39680         * modules/unistr/u16-stpcpy: New file.
39681         * modules/unistr/u32-stpcpy: New file.
39682         * lib/unistr/u8-stpcpy.c: New file.
39683         * lib/unistr/u16-stpcpy.c: New file.
39684         * lib/unistr/u32-stpcpy.c: New file.
39685         * lib/unistr/u-stpcpy.h: New file.
39686
39687         * modules/unistr/u8-stpncpy: New file.
39688         * modules/unistr/u16-stpncpy: New file.
39689         * modules/unistr/u32-stpncpy: New file.
39690         * lib/unistr/u8-stpncpy.c: New file.
39691         * lib/unistr/u16-stpncpy.c: New file.
39692         * lib/unistr/u32-stpncpy.c: New file.
39693         * lib/unistr/u-stpncpy.h: New file.
39694
39695         * modules/unistr/u8-strcat: New file.
39696         * modules/unistr/u16-strcat: New file.
39697         * modules/unistr/u32-strcat: New file.
39698         * lib/unistr/u8-strcat.c: New file.
39699         * lib/unistr/u16-strcat.c: New file.
39700         * lib/unistr/u32-strcat.c: New file.
39701         * lib/unistr/u-strcat.h: New file.
39702
39703         * modules/unistr/u8-strchr: New file.
39704         * modules/unistr/u16-strchr: New file.
39705         * modules/unistr/u32-strchr: New file.
39706         * lib/unistr/u8-strchr.c: New file.
39707         * lib/unistr/u16-strchr.c: New file.
39708         * lib/unistr/u32-strchr.c: New file.
39709
39710         * modules/unistr/u8-strcmp: New file.
39711         * modules/unistr/u16-strcmp: New file.
39712         * modules/unistr/u32-strcmp: New file.
39713         * lib/unistr/u8-strcmp.c: New file.
39714         * lib/unistr/u16-strcmp.c: New file.
39715         * lib/unistr/u32-strcmp.c: New file.
39716
39717         * modules/unistr/u8-strcpy: New file.
39718         * modules/unistr/u16-strcpy: New file.
39719         * modules/unistr/u32-strcpy: New file.
39720         * lib/unistr/u8-strcpy.c: New file.
39721         * lib/unistr/u16-strcpy.c: New file.
39722         * lib/unistr/u32-strcpy.c: New file.
39723         * lib/unistr/u-strcpy.h: New file.
39724
39725         * modules/unistr/u8-strcspn: New file.
39726         * modules/unistr/u16-strcspn: New file.
39727         * modules/unistr/u32-strcspn: New file.
39728         * lib/unistr/u8-strcspn.c: New file.
39729         * lib/unistr/u16-strcspn.c: New file.
39730         * lib/unistr/u32-strcspn.c: New file.
39731         * lib/unistr/u-strcspn.h: New file.
39732
39733         * modules/unistr/u8-strdup: New file.
39734         * modules/unistr/u16-strdup: New file.
39735         * modules/unistr/u32-strdup: New file.
39736         * lib/unistr/u8-strdup.c: New file.
39737         * lib/unistr/u16-strdup.c: New file.
39738         * lib/unistr/u32-strdup.c: New file.
39739         * lib/unistr/u-strdup.h: New file.
39740
39741         * modules/unistr/u8-strlen: New file.
39742         * modules/unistr/u16-strlen: New file.
39743         * modules/unistr/u32-strlen: New file.
39744         * lib/unistr/u8-strlen.c: New file.
39745         * lib/unistr/u16-strlen.c: New file.
39746         * lib/unistr/u32-strlen.c: New file.
39747         * lib/unistr/u-strlen.h: New file.
39748
39749         * modules/unistr/u8-strmblen: New file.
39750         * modules/unistr/u16-strmblen: New file.
39751         * modules/unistr/u32-strmblen: New file.
39752         * lib/unistr/u8-strmblen.c: New file.
39753         * lib/unistr/u16-strmblen.c: New file.
39754         * lib/unistr/u32-strmblen.c: New file.
39755
39756         * modules/unistr/u8-strmbtouc: New file.
39757         * modules/unistr/u16-strmbtouc: New file.
39758         * modules/unistr/u32-strmbtouc: New file.
39759         * lib/unistr/u8-strmbtouc.c: New file.
39760         * lib/unistr/u16-strmbtouc.c: New file.
39761         * lib/unistr/u32-strmbtouc.c: New file.
39762
39763         * modules/unistr/u8-strncat: New file.
39764         * modules/unistr/u16-strncat: New file.
39765         * modules/unistr/u32-strncat: New file.
39766         * lib/unistr/u8-strncat.c: New file.
39767         * lib/unistr/u16-strncat.c: New file.
39768         * lib/unistr/u32-strncat.c: New file.
39769         * lib/unistr/u-strncat.h: New file.
39770
39771         * modules/unistr/u8-strncmp: New file.
39772         * modules/unistr/u16-strncmp: New file.
39773         * modules/unistr/u32-strncmp: New file.
39774         * lib/unistr/u8-strncmp.c: New file.
39775         * lib/unistr/u16-strncmp.c: New file.
39776         * lib/unistr/u32-strncmp.c: New file.
39777
39778         * modules/unistr/u8-strncpy: New file.
39779         * modules/unistr/u16-strncpy: New file.
39780         * modules/unistr/u32-strncpy: New file.
39781         * lib/unistr/u8-strncpy.c: New file.
39782         * lib/unistr/u16-strncpy.c: New file.
39783         * lib/unistr/u32-strncpy.c: New file.
39784         * lib/unistr/u-strncpy.h: New file.
39785
39786         * modules/unistr/u8-strnlen: New file.
39787         * modules/unistr/u16-strnlen: New file.
39788         * modules/unistr/u32-strnlen: New file.
39789         * lib/unistr/u8-strnlen.c: New file.
39790         * lib/unistr/u16-strnlen.c: New file.
39791         * lib/unistr/u32-strnlen.c: New file.
39792         * lib/unistr/u-strnlen.h: New file.
39793
39794         * modules/unistr/u8-strpbrk: New file.
39795         * modules/unistr/u16-strpbrk: New file.
39796         * modules/unistr/u32-strpbrk: New file.
39797         * lib/unistr/u8-strpbrk.c: New file.
39798         * lib/unistr/u16-strpbrk.c: New file.
39799         * lib/unistr/u32-strpbrk.c: New file.
39800         * lib/unistr/u-strpbrk.h: New file.
39801
39802         * modules/unistr/u8-strrchr: New file.
39803         * modules/unistr/u16-strrchr: New file.
39804         * modules/unistr/u32-strrchr: New file.
39805         * lib/unistr/u8-strrchr.c: New file.
39806         * lib/unistr/u16-strrchr.c: New file.
39807         * lib/unistr/u32-strrchr.c: New file.
39808
39809         * modules/unistr/u8-strspn: New file.
39810         * modules/unistr/u16-strspn: New file.
39811         * modules/unistr/u32-strspn: New file.
39812         * lib/unistr/u8-strspn.c: New file.
39813         * lib/unistr/u16-strspn.c: New file.
39814         * lib/unistr/u32-strspn.c: New file.
39815         * lib/unistr/u-strspn.h: New file.
39816
39817         * modules/unistr/u8-strstr: New file.
39818         * modules/unistr/u16-strstr: New file.
39819         * modules/unistr/u32-strstr: New file.
39820         * lib/unistr/u8-strstr.c: New file.
39821         * lib/unistr/u16-strstr.c: New file.
39822         * lib/unistr/u32-strstr.c: New file.
39823         * lib/unistr/u-strstr.h: New file.
39824
39825         * modules/unistr/u8-strtok: New file.
39826         * modules/unistr/u16-strtok: New file.
39827         * modules/unistr/u32-strtok: New file.
39828         * lib/unistr/u8-strtok.c: New file.
39829         * lib/unistr/u16-strtok.c: New file.
39830         * lib/unistr/u32-strtok.c: New file.
39831         * lib/unistr/u-strtok.h: New file.
39832
39833         * modules/unistr/u8-uctomb: New file.
39834         * modules/unistr/u16-uctomb: New file.
39835         * modules/unistr/u32-uctomb: New file.
39836         * lib/unistr/u8-uctomb.c: New file.
39837         * lib/unistr/u16-uctomb.c: New file.
39838         * lib/unistr/u32-uctomb.c: New file.
39839
39840         * MODULES.html.sh (Unicode string functions): Add the new modules.
39841
39842 2007-01-08  Bruno Haible  <bruno@clisp.org>
39843
39844         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39845         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39846         subdirectories.
39847
39848 2007-01-08  Karl Berry  <karl@gnu.org>
39849
39850         * doc/error.texi: mention that main() fns must set program_name
39851         when progname is used.
39852
39853 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39854
39855         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39856         WCTYPE_H is empty, for the benefit of builds from non-distclean
39857         directories.  Problem reported by Eric Blake in
39858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39859
39860 2007-01-08  Bruno Haible  <bruno@clisp.org>
39861
39862         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39863         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39864         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39865         PROVIDE_CANONICALIZE_FILENAME_MODE.
39866         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39867
39868 2007-01-08  Bruno Haible  <bruno@clisp.org>
39869
39870         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39871         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39872         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39873         * lib/fts.c: Likewise.
39874         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39875
39876 2006-12-25  Bruno Haible  <bruno@clisp.org>
39877
39878         * modules/utf8-ucs4-safe: New file.
39879         * lib/utf8-ucs4-safe.h: New file.
39880         * lib/unistr/utf8-ucs4-safe.c: New file.
39881
39882         * modules/utf16-ucs4-safe: New file.
39883         * lib/utf16-ucs4-safe.h: New file.
39884         * lib/unistr/utf16-ucs4-safe.c: New file.
39885
39886         * MODULES.html.sh (Unicode string functions): Add the new modules.
39887
39888 2007-01-08  Bruno Haible  <bruno@clisp.org>
39889
39890         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39891         (Depends-on): Add unitypes.
39892         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39893         (u8_mbtouc_aux): Move out to separate file.
39894         (u8_mbtouc): Use ucs4_t, uint8_t types.
39895         * lib/unistr/utf8-ucs4.c: New file.
39896
39897         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39898         (Depends-on): Add unitypes.
39899         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39900         (u16_mbtouc_aux): Move out to separate file.
39901         (u16_mbtouc): Use ucs4_t, uint16_t types.
39902         * lib/unistr/utf16-ucs4.c: New file.
39903
39904         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39905         (Depends-on): Add unitypes.
39906         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39907         (u8_uctomb_aux): Move out to separate file.
39908         (u8_uctomb): Use ucs4_t, uint8_t types.
39909         * lib/unistr/ucs4-utf8.c: New file.
39910
39911         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39912         (Depends-on): Add unitypes.
39913         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39914         (u16_uctomb_aux): Move out to separate file.
39915         (u16_uctomb): Use ucs4_t, uint16_t types.
39916         * lib/unistr/ucs4-utf16.c: New file.
39917
39918 2006-12-25  Bruno Haible  <bruno@clisp.org>
39919
39920         * modules/unitypes: New file.
39921         * lib/unitypes.h: New file.
39922         * MODULES.html.sh (func_all_modules): New section "Unicode string
39923         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39924         this section. Add unitypes.
39925
39926 2007-01-08  Bruno Haible  <bruno@clisp.org>
39927
39928         Avoid variable names that conflict with those from libtool.
39929         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39930         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39931         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39932         library_names_spec to acl_library_names_spec, hardcode_* to
39933         acl_hardcode_*.
39934         Reported by Ralf Wildenhues.
39935
39936 2007-01-08  Bruno Haible  <bruno@clisp.org>
39937
39938         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39939         definition.
39940         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39941         definition.
39942         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39943         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39944         definition.
39945         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39946         definition.
39947         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39948         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39949         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39950         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39951         definition.
39952         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39953         definition.
39954         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39955         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39956         GC_USE_<algorithm>.
39957         * lib/gc-libgcrypt.c: Likewise.
39958         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39959         * modules/gc-arctwo (configure.ac): Likewise.
39960         * modules/gc-des (configure.ac): Likewise.
39961         * modules/gc-hmac-md5 (configure.ac): Likewise.
39962         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39963         * modules/gc-md2 (configure.ac): Likewise.
39964         * modules/gc-md4 (configure.ac): Likewise.
39965         * modules/gc-md5 (configure.ac): Likewise.
39966         * modules/gc-random (configure.ac): Likewise.
39967         * modules/gc-rijndael (configure.ac): Likewise.
39968         * modules/gc-sha1 (configure.ac): Likewise.
39969
39970 2007-01-08  Bruno Haible  <bruno@clisp.org>
39971
39972         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39973         macro definition.
39974         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39975         definition.
39976         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39977         definition.
39978         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39979         * modules/fcntl-safer (configure.ac): Likewise.
39980         * modules/fopen-safer (configure.ac): Likewise.
39981         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39982         GNULIB_FWRITEERROR macro definition.
39983
39984 2007-01-08  Bruno Haible  <bruno@clisp.org>
39985
39986         * m4/gnulib-common.m4: New file.
39987         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39988         (func_get_filelist): Add m4/gnulib-common.m4.
39989
39990 2007-01-08  Bruno Haible  <bruno@clisp.org>
39991
39992         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39993         command.
39994
39995 2007-01-08  Jim Meyering  <jim@meyering.net>
39996
39997         Use a more robust test for a "can't happen" condition.
39998         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39999         narrowed the st_size value.  Presuming the "can't happen" condition
40000         is true, that narrowing could conceivably convert an invalid st_size
40001         value into a valid one.  Instead, use a change based on Matthew
40002         Woehlke's original patch.
40003
40004         Slight readability improvement: use an assert-like macro
40005         in place of literal "abort ()" uses.
40006         * lib/fts.c (fts_assert): Define.
40007         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40008         Use this macro instead of a bare 'abort'.
40009
40010 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40011
40012         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40013         simply work around them.
40014         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40015         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40016         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40017         declaring.
40018         Don't bother to define as macros, since the standard doesn't require it.
40019         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40020         longer worry about IRIX 5.3.
40021         (HAVE_WCTYPE_CTMP_BUG): Remove.
40022
40023 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40024
40025         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40026         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40027         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40028         Problems reported by Georg Schwarz for IRIX 5.3.
40029
40030         * gnulib-tool (autoconf_minversion): Take the maximum version number
40031         found, not the minimum.  Problem reported by James Youngman.
40032
40033 2007-01-03  Karl Berry  <karl@gnu.org>
40034
40035         * doc/error.texi: new file, explaining interaction with progname.
40036         * doc/gnulib.texi: include it.  Update copyright.
40037
40038 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40039
40040         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40041         AC_CANONICAL_HOST, to improve autobuild outputs.
40042
40043 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40044             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40045
40046         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40047         sockets, server sockets, and other file descriptors.  Count errors
40048         to compute the return value.  Reorder the code a bit to be easier
40049         to follow.  Don't set event bits that were not requested (except
40050         POLLERR and POLLHUP).
40051
40052 2007-01-01  Bruno Haible  <bruno@clisp.org>
40053
40054         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40055
40056 2007-01-03  Jim Meyering  <jim@meyering.net>
40057
40058         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40059
40060 2007-01-02  Bruno Haible  <bruno@clisp.org>
40061
40062         * modules/settime (Include): Require timespec.h.
40063         * modules/nanosleep (Include): Likewise.
40064
40065 2007-01-01  Bruno Haible  <bruno@clisp.org>
40066
40067         * gnulib-tool (func_emit_copyright_notice): Bump year.
40068         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40069
40070 2007-01-01  Bruno Haible  <bruno@clisp.org>
40071
40072         Improve support for OpenBSD.
40073         * build-aux/config.rpath (libname_spec): Export.
40074         (library_names_spec): New variable. Export.
40075         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40076         library_names_spec from the config.rpath output. Locate shared library
40077         through the name pattern in library_names_spec.
40078
40079 2007-01-01  Eric Blake  <ebb9@byu.net>
40080
40081         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40082
40083 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40084
40085         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40086         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40087         assume the C locale, and avoid an "eval" that could cause trouble.
40088         Problem with SORT reported by Bob Proulx.
40089
40090         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40091         Define.  Trivial patch from Henning Nielsen Lund, originally
40092         sent to bug-grep@gnu.org today.
40093
40094 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40095
40096         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40097         struct stat.  Problem reported by Henning Nielsen Lund.
40098         * lib/acl.c: Include acl.h first, to check interface.  Don't
40099         bother to include sys/types.h and sys/stat.h again.
40100
40101 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40102
40103         Import the following change from libc; problem reported by
40104         Sven Verdoolaege.
40105
40106         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40107
40108         [BZ #1373]
40109         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40110
40111 2006-12-28  Jim Meyering  <jim@meyering.net>
40112
40113         * build-aux/announce-gen: Do not assume that the package
40114         builds any of tar.gz, tar.bz2, and .xdelta files.
40115         Suggestion from Simon Josefsson.
40116
40117 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40118
40119         * modules/announce-gen: New file.
40120
40121 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40122
40123         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40124         handles its gotchas now.
40125         * lib/mbswidth.c: Likewise.
40126         * lib/wcwidth.h: Likewise.
40127         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40128         and iswcntrl; the wctype module does this stuff now.
40129         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40131         * modules/mbchar (Depends-on): Add wctype.
40132         * modules/mbswidth (Depends-on): Likewise.
40133         * modules/wcwidth (Depends-on): Likewise.
40134
40135 2006-12-27  Eric Blake  <ebb9@byu.net>
40136
40137         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40138         module uses more than what <wctype.h> is required to provide.
40139
40140 2006-12-26  Eric Blake  <ebb9@byu.net>
40141
40142         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40143
40144 2006-12-26  Eric Blake  <ebb9@byu.net>
40145
40146         * modules/absolute-header: New module.
40147         * modules/fcntl (Depends-on): Depend on it.
40148         * modules/inttypes (Depends-on): Likewise.
40149         * modules/stdint (Depends-on): Likewise.
40150         * modules/sys_stat (Depends-on): Likewise.
40151         * modules/wctype (Depends-on): Likewise.
40152         * MODULES.html.sh (Support for building libraries and
40153         executables): Document it.
40154
40155 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40156
40157         * gnulib-tool (SED): Remove, undoing previous change.
40158         The problem was that it broke coreutils on Solaris, because
40159         "sed --posix" leaked into a makefile.
40160         (sed): New alias, if 'alias' and GNU sed.
40161
40162 2006-12-24  Jim Meyering  <jim@meyering.net>
40163
40164         Work around an fchownat bug in glibc-2.4:
40165         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40166         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40167         in spite of the -P option.
40168         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40169         New macros.
40170         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40171         * modules/openat (Files): Add lib/fchownat.c.
40172         * lib/openat.c (fchownat): Don't define here.  Move to...
40173         * lib/fchownat.c: ...this new file.
40174
40175 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40176
40177         Fix bug reported by Bruno Haible in
40178         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40179         where quotearg.c didn't compile on Mac OS X 10.2 because it
40180         lacks <wchar.h> and wint_t.
40181         * lib/wctype_.h (__wctype_wint_t): New type.
40182         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40183         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40184         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40185         Arg is now of type __wctype_wint_t, not wint_t.
40186         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40187         substitute HAVE_WINT_T.
40188         * modules/wctype (Files): Add m4/wint_t.m4.
40189         (wctype.h): Substitute HAVE_WINT_T.
40190
40191 2006-12-23  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40194
40195 2006-12-23  Bruno Haible  <bruno@clisp.org>
40196
40197         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40198         S_ISLNK.
40199         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40200         mingw.
40201
40202 2006-12-22  Bruno Haible  <bruno@clisp.org>
40203
40204         * lib/copy-file.c: Include acl.h.
40205         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40206         Close the file descriptors only after being done with copy_acl.
40207         * modules/copy-file (Depends-on): Add acl.
40208
40209 2006-12-22  Bruno Haible  <bruno@clisp.org>
40210
40211         * gnulib-tool (SED): New variable.
40212         Use $SED instead of sed everywhere.
40213
40214 2006-12-22  Bruno Haible  <bruno@clisp.org>
40215
40216         * modules/no-c++: New file.
40217         * m4/no-c++.m4: New file.
40218         * MODULES.html.sh (Support for building libraries and executables):
40219         Add no-c++.
40220
40221 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40222
40223         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40224         Include <limits.h>, and use its INT_MAX to rewrite the
40225         j loop so that it does not overflow 'int'.  Problem reported by
40226         Ralf Wildenhues in
40227         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40228         Play it safe by shifting left by 1 rather than multiplying by 2,
40229         as GCC is less likely to optimize this away when the value
40230         is signed (when it assumes overflow leads to undefined behavior).
40231         Also, don't assume time_t uses two's complement.
40232
40233 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40234
40235         * MODULES.html.sh: New module wctype.
40236         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40237         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40238         <wctype.h>, since the new wctype module should fix this.
40239         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40240         the wctype module should arrange for it.
40241         * lib/regex_internal.h: Likewise.
40242         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40243         since the wctype module should handle this now.
40244         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40245         * modules/fnmatch (Depends-on): Add wctype.
40246         * modules/quotearg (Depends-on): Likewise.
40247         * modules/regex (Depends-on): Likewise.
40248
40249 2006-12-19  Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40252         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40253
40254 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40255
40256         * modules/savewd (Depends-on): Fix dependency on fcntl.
40257
40258 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40259
40260         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40261         conforms to C99, rather than relying on the user's environment
40262         setting of STDINT_H.
40263
40264 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40265         and Eric Blake  <ebb9@byu.net>
40266
40267         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40268         This is more consistent with the other defines here.
40269         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40270         Port to z/OS.  Problem reported by Paul Gilmartin.
40271         Change local vars to use gl_ prefix rather than ac_.
40272         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40273         with other defines.
40274         * modules/double-slash-root: New module.
40275         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40276         (Depends-on): Add double-slash-root.
40277         * MODULES.html.sh (File system functions): Mention new module.
40278
40279 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40280
40281         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40282         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40283         This is for the benefit of gzip, which doesn't do i18n.
40284
40285 2006-12-12  Jim Meyering  <jim@meyering.net>
40286
40287         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40288         Reported by Andreas Schwab <schwab@suse.de>.
40289
40290 2006-12-12  Bruno Haible  <bruno@clisp.org>
40291
40292         Merge these changes.
40293         2006-09-05  Bruno Haible  <bruno@clisp.org>
40294         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40295         iconv_alloc succeeded.
40296         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40297         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40298         test for " && dest " at the end - dest is always != NULL there. Call
40299         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40300         with 2xNULL arguments, also to flush the state storage. Handle the
40301         IRIX iconv behaviour. Realloc the final result, to throw away unused
40302         memory.
40303
40304 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40305
40306         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40307         and fchmodat unconditionally, since glibc 2.4 has them.
40308         Problem reported by Arkadiusz Miskiewicz.
40309
40310 2006-12-10  Bruno Haible  <bruno@clisp.org>
40311
40312         * gnulib-tool (func_import): Show the include files only for those
40313         modules that are copied and specified.
40314         Reported by Karl Berry.
40315
40316 2006-12-08  Jim Meyering  <jim@meyering.net>
40317
40318         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40319         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40320
40321         * build-aux/announce-gen: Add two new options, both optional:
40322         --bootstrap-tools=TOOL_LIST
40323               a comma-separated list of tools, e.g.,
40324               autoconf,automake,bison,gnulib
40325         --gnulib-snapshot-date=DATE
40326               if gnulib is in the bootstrap tool list,
40327               then report this as the snapshot date.
40328               If not specified, use the current date/time.
40329               If you specify a date here, be sure it's UTC.
40330
40331 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40332
40333         * tests/test-argp-2.sh: Fix test to match actual output.
40334         (func_compare): Fix sed script to be portable.
40335
40336 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40337
40338         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40339         workaround for this case.  It is not autoconfigured now; offhand
40340         it's hard to see how to autoconfigure it.
40341
40342 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40343
40344         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40345         a directory that is about to be chowned.  Such a directory's
40346         initial file permissions should permit the owner only and this
40347         should not be changed until after the chown, since the group and
40348         other bits would be incorrect if they granted permission before
40349         the chown.
40350
40351         Fix porting problem for iswctype reported by Georg Schwarz in:
40352         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40353         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40354         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40355         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40356         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40357
40358 2006-12-03  Jim Meyering  <jim@meyering.net>
40359
40360         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40361         p->fts_statp may not yet be defined.
40362         (fts_read): Instead, set it in the caller, once p->fts_statp is
40363         sure to be defined, and corresponds to a top-level directory.
40364         This bug made du -x fail.  Here's the coreutils test case:
40365         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40366         Reported by Mike Frysinger.
40367
40368 2006-12-01  Jim Meyering  <jim@meyering.net>
40369
40370         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40371         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40372         Reported by Simon Josefsson.
40373
40374 2006-11-30  Jim Meyering  <jim@meyering.net>
40375
40376         * m4/warning.m4: Use the all-permissive copyright notice
40377         recommended by RMS (rather than LGPL).
40378         * m4/vararrays.m4: Likewise.
40379         * m4/flexmember.m4: Likewise.
40380
40381 2006-11-29  Bruno Haible  <bruno@clisp.org>
40382
40383         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40384         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40385         using +=.
40386         Reported by Simon Josefsson <simon@josefsson.org>.
40387
40388 2006-11-28  James Youngman <jay@gnu.org>
40389
40390         * README: Advise users that they might find the bug-gnulib@gnu.org
40391         and autotools-announce@gnu.org mailing lists useful.
40392
40393 2006-11-28  Bruno Haible  <bruno@clisp.org>
40394
40395         * m4/ptrdiff_max.m4: Remove file.
40396
40397 2006-11-21  Bruno Haible  <bruno@clisp.org>
40398
40399         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40400         _AC_COMPUTE_INT.
40401         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40402         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40403         _AC_COMPUTE_INT.
40404         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40405         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40406         _AC_COMPUTE_INT.
40407         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40408
40409 2006-11-28  Jim Meyering  <jim@meyering.net>
40410
40411         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40412         warning from "gcc -Wshadow" about shadowing the builtin.
40413
40414 2006-11-27  Bruno Haible  <bruno@clisp.org>
40415
40416         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40417         _AC_COMPUTE_INT.
40418         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40419
40420 2006-11-27  Bruno Haible  <bruno@clisp.org>
40421             Paul Eggert  <eggert@cs.ucla.edu>
40422
40423         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40424
40425 2006-11-26  Bruno Haible  <bruno@clisp.org>
40426
40427         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40428         noinst_LTLIBRARIES.
40429
40430 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40431             Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40434         if compiling with "gcc -ansi".
40435
40436 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40437
40438         Fix some incompatibilities with gcc -ansi -pedantic.
40439         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40440         if compiling pedantically with GCC, unless it's C99 or later.
40441         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40442         it mishandles gcc -ansi -pedantic as well.
40443         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40444         if gcc -pedantic.
40445         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40446         initializers for struct if -pedantic, unless it's C99 or later.
40447
40448 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40449
40450         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40451         Don't close an fd more than once. Identical atimes indicate
40452         success, not failure.
40453
40454 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40455
40456         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40457
40458 2006-11-23  Jim Meyering  <jim@meyering.net>
40459
40460         * build-aux/announce-gen: New file.  From coreutils.
40461
40462 2006-11-22  Jim Meyering  <jim@meyering.net>
40463
40464         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40465         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40466         (fts_read): Use a temporary to narrow the overused st_size member
40467         before using it in a switch statement.  Reported by Matthew Woehlke.
40468
40469         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40470         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40471
40472 2006-11-20  Bruno Haible  <bruno@clisp.org>
40473
40474         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40475         changequote instead of pairs of brackets.
40476         Reported by Andreas Schwab <schwab@suse.de>.
40477
40478 2006-11-21  Jim Meyering  <jim@meyering.net>
40479
40480         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40481         so as to remain compatible with older compilers.
40482         Patch from Michael Deutschmann.
40483
40484 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40485
40486         * MODULES.html.sh (File system functions): Add openat.
40487
40488         * lib/openat.h (rpl_fstatat): New macro, if
40489         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40490         (fstatat): Define to rpl_fstatat under the same conditions,
40491         unless COMPILING_FSTATAT.
40492         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40493         seems to have the bug.
40494         * lib/fstatat.c: New file.
40495         * modules/openat (Files): Add it.
40496
40497 2006-11-20  Bruno Haible  <bruno@clisp.org>
40498
40499         * Makefile: New file.
40500
40501 2006-11-20  Jim Meyering  <jim@meyering.net>
40502
40503         The beginnings of syntax-related checks for gnulib.
40504         * lib/Makefile: New file.
40505         * lib/t-idcache: New script.  Ensure that the two halves of
40506         idcache.c stay in sync.
40507
40508         * lib/idcache.c: Adjust comments in user- and group- portions to
40509         be more accurate, and to be consistent with one another.
40510
40511 2006-11-20  Jim Meyering  <jim@meyering.net>
40512
40513         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40514         continue using the flexible array member (thus, this module performs
40515         half as many malloc calls), with the addition that...
40516         (getgroup, getuser): Consistently record a non-match via an empty
40517         "name" string, and map an empty string match to a NULL return value.
40518         * modules/idcache (Depends-on): Re-add flexmember.
40519
40520         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40521         (getuidbyname, getgroup, getgidbyname): Likewise.
40522
40523         Use cleaner syntax: NULL rather than 0.
40524         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40525
40526 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40527
40528         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40529         It mishandled the case where the group was missing.
40530         Problem reported by Greg Schafer.
40531         * modules/idcache: Likewise.
40532
40533 2006-11-18  Jim Meyering  <jim@meyering.net>
40534
40535         * check-module (%exempt_header): Add exception for some
40536         conditionally-included headers.
40537
40538         * modules/i-ring (Depends-on): Add verify.
40539         (License): Change to LGPL.
40540
40541 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40542
40543         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40544         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40545         and inttostr.h.  Use snprintf rather than uinttostr, so that
40546         LGPLed code doesn't depend on GPLed.
40547
40548 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40549
40550         * modules/inline (License): Change from GPL to LGPL.
40551
40552 2006-11-17  Jim Meyering  <jim@meyering.net>
40553
40554         * modules/d-type (License): Switch to LGPL.
40555
40556 2006-11-15  Bruno Haible  <bruno@clisp.org>
40557
40558         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40559
40560 2006-11-15  Eric Blake  <ebb9@byu.net>
40561
40562         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40563         the module dependency.
40564
40565 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40566             Bruno Haible  <bruno@clisp.org>
40567
40568         * gnulib-tool (func_create_testdir): Add license consistency check.
40569
40570 2006-11-15  Eric Blake  <ebb9@byu.net>
40571
40572         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40573         random "(cached)" in configure output.
40574
40575 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40576
40577         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40578         test for conforming inttypes.h is both announced and cached.
40579
40580         * MODULES.html.sh (seen_modules, seen_files): New variables.
40581         (func_module): Rewrite to use a few less gnulib-tool and sed
40582         invocations.  Avoid a couple of quadratic algorithms for ...
40583         (missed_modules, missed_files): ... these, with ...
40584         (func_append, func_tmpdir): ... these new functions, from
40585         gnulib-tool.  Analogously, install traps for cleanup.
40586
40587         * tests/test-gc.c (main): Remove unused variables.
40588         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40589
40590 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40591
40592         * modules/inttostr (License): Change to LGPL.
40593
40594 2006-11-14  Eric Blake  <ebb9@byu.net>
40595
40596         * modules/tempname (License): Change to LGPL.
40597
40598 2006-11-14  Eric Blake  <ebb9@byu.net>
40599
40600         * doc/functions.texi (Function Portability): *printf functions on
40601         Cygwin now understand all POSIX size specifiers.
40602
40603 2006-11-14  Bruno Haible  <bruno@clisp.org>
40604
40605         * modules/c-ctype (License): Change to LGPL.
40606
40607 2006-11-12  Bruno Haible  <bruno@clisp.org>
40608
40609         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40610         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40611         for GNOME libraries, for which the include files are installed in
40612         subdirectories of $prefix/include.
40613
40614 2006-11-12  Bruno Haible  <bruno@clisp.org>
40615
40616         * m4/lib-link.m4: Require at least autoconf-2.54.
40617         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40618         name to underscores for the --with option.
40619
40620 2006-11-13  Bruno Haible  <bruno@clisp.org>
40621
40622         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40623         the tests directory.
40624         Reported by Ralf Wildenhues.
40625
40626 2006-11-13  Bruno Haible  <bruno@clisp.org>
40627
40628         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40629         (func_emit_initmacro_end): Undo the override here.
40630         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40631         Works around the famous automake error in coreutils.
40632
40633 2006-11-13  Eric Blake  <ebb9@byu.net>
40634
40635         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40636         element, not its node.
40637
40638 2006-11-12  Bruno Haible  <bruno@clisp.org>
40639
40640         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40641         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40642
40643 2006-11-12  Bruno Haible  <bruno@clisp.org>
40644
40645         * gnulib-tool: New option --local-symlink.
40646         (func_usage): Document it.
40647         (lsymbolic): New variable.
40648         (func_import, func_create_testdir): If --symlink was not specified,
40649         test whether --local-symlink was specified and the file comes from
40650         the local_gnulib_dir.
40651
40652 2006-11-12  Bruno Haible  <bruno@clisp.org>
40653
40654         * gnulib-tool (func_ln): New function.
40655         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40656
40657 2006-11-12  Bruno Haible  <bruno@clisp.org>
40658
40659         Finish support for source files in subdirectories.
40660         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40661         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40662         AUTOMAKE_OPTIONS.
40663         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40664
40665 2006-11-12  Bruno Haible  <bruno@clisp.org>
40666
40667         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40668         EXTRA_lib_SOURCES augmentation.
40669         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40670
40671 2006-11-12  Jim Meyering  <jim@meyering.net>
40672
40673         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40674         file descriptors.  This also averts a failure on systems with
40675         native openat support when a traversed directory lacks "x" access.
40676         * lib/fts_.h: Include "i-ring.h"
40677         (struct FTS) [fts_fd_ring]: New member.
40678         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40679         (FCHDIR): Add parentheses.
40680         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40681         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40682         When descending, rather than simply closing the previous
40683         fts_cwd_fd value, push that file descriptor onto the ring.
40684         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40685         (fts_open): Initialize the new fd_ring member.
40686         (fts_close): Clear the ring.
40687         (fts_safe_changedir): When possible, use our new fd_ring to skip
40688         the diropen and fstat and dev/ino comparison that would normally
40689         accompany a virtual `chdir ("..")'.
40690
40691         * modules/fts (Depends-on): Add i-ring.
40692         * modules/i-ring: New module.
40693         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40694         * m4/i-ring.m4: New file.
40695
40696 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40697
40698         * gnulib-tool (func_create_testdir): Fix replacement of
40699         `build-aux' in configure.ac.  Run autotools in gltests
40700         subdirectory.
40701         (func_create_testdir, func_create_megatestdir, test): There is
40702         no need for '--force' in most autotool invocations in a new
40703         tree.  Actually fail the whole test if any of the tools, or the
40704         configure or make stages fail.
40705
40706         Sync from Automake.
40707         * build-aux/gnupload: Revert last change.  Add pointer to upload
40708         instructions of the GNU Maintenance Instructions.
40709         Suggestion by Karl Berry.
40710
40711 2006-11-10  Jim Meyering  <jim@meyering.net>
40712
40713         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40714
40715 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40716
40717         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40718         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40719         (bind_textdomain_codeset) [! ENABLE_NLS]:
40720         Evaluate all the arguments.  That way, callers get compatible behavior
40721         if the arguments have side effects.  Also, it avoids some GCC
40722         diagnostics in some cases; Joel E. Denny reported problems when Bison
40723         was configured with --enable-gcc-warnigs.
40724
40725 2006-11-10  Jim Meyering  <jim@meyering.net>
40726
40727         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40728         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40729         account.
40730
40731 2006-11-10  Jim Meyering  <jim@meyering.net>
40732
40733         * modules/inline: New file/module.
40734         * modules/xalloc (Files): Remove m4/inline.m4.
40735         (Depends-on): Add inline, instead.
40736         * modules/oset: Likewise.
40737         * modules/list: Likewise.
40738
40739 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40740
40741         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40742         Problem reported by Matthew Woehlke.
40743
40744 2006-11-09  Bruno Haible  <bruno@clisp.org>
40745
40746         * lib/tempname.c (gen_tempname): Remove variant that invokes
40747         __gen_tempname.
40748         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40749         __gen_tempname.
40750
40751 2006-11-08  Bruno Haible  <bruno@clisp.org>
40752
40753         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40754         to 'yes' instead of 'cross-compiling'.
40755
40756 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40757
40758         * lib/quotearg.h (quotearg_free): New decl.
40759         * lib/quotearg.c (quotearg_free): New function.
40760         (slot0, nslots, slotvec0, slotvec):
40761         Now file-scope so that quotearg_free can get at them.
40762
40763 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40764
40765         Sync from Automake.
40766         * build-aux/gnupload: Add missing 'gnu' to example URL.
40767         Report by Karl Berry.
40768
40769 2006-11-08  Bruno Haible  <bruno@clisp.org>
40770
40771         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40772         Suggested by Paul Eggert.
40773
40774 2006-11-08  Jim Meyering  <jim@meyering.net>
40775
40776         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40777         It's already included if !_LIBC.
40778         (fts_safe_changedir): Add a comment.
40779
40780 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40781
40782         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40783         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40784         Matthew Woehlke.
40785
40786         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40787         definitions up, to avoid colliding with change below.
40788         (static_inline) [HAVE_INLINE]: New macro.
40789         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40790         Provide extern decls when !HAVE_INLINE.  Do not define unless
40791         static_inline is defined, either by us or by xmalloc.c.  Use
40792         static_inline rather than static inline.
40793         (XCALLOC): Optimize sizeof(T) = 1 case.
40794         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40795
40796 2006-11-07  Bruno Haible  <bruno@clisp.org>
40797
40798         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40799         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40800         AC_C_INLINE.
40801         * modules/xalloc (Files): Add m4/inline.m4.
40802
40803 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40804
40805         * README: Fix typo.
40806         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40807         (Miscellanous Notes): ...from this.
40808
40809 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40810
40811         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40812         Mention that offsetof should be used instead of sizeof.
40813         From Bruno Haible.
40814
40815 2006-11-07  Bruno Haible  <bruno@clisp.org>
40816
40817         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40818
40819 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40820
40821         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40822         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40823         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40824         (gl_tree_add_before, gl_tree_add_after):
40825         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40826         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40827         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40828         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40829         (gl_linked_add_after, gl_linked_add_at): Likewise.
40830         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40831         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40832         (gl_tree_add_before, gl_tree_add_after): Likewise.
40833         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40834         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40835         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40836
40837 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40838
40839         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40840
40841 2006-11-06  Bruno Haible  <bruno@clisp.org>
40842
40843         * m4/inline.m4: New file.
40844         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40845         * modules/list (Files): Add m4/inline.m4.
40846         * modules/oset (Files): Likewise.
40847
40848 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40849
40850         * lib/idcache.c: Include <stddef.h>, for offsetof.
40851         (struct userid.name): Change from char * to a flexible array member.
40852         All uses changed.
40853         * modules/idcache (Depends-on): Add flexmember.
40854
40855         * MODULES.html.sh (Core language properties): New module flexmember.
40856         * modules/flexmember, m4/flexmember.m4: New files.
40857
40858         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40859         inline functions that are identical with the old xnmalloc_inline,
40860         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40861         that we can avoid some unnecessary integer multiplications and
40862         divisions in the common case where the element size is known at
40863         compile time.
40864         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40865         needed.
40866         (xnboundedmalloc): Remove.
40867         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40868         arguments, for consistency with rest of this header.
40869         (xcharalloc): Rewrite using XNMALLOC.
40870         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40871         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40872         versions have been moved to lib/xalloc.h and renamed to be the
40873         non-*_inline versions.
40874         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40875         and xnrealloc functions, since those functions are now inline and
40876         now call us.
40877         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40878         renaming described above.
40879         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40880         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40881         captures the dependency in AC_C_INLINE.
40882
40883         New module canonicalize-lgpl, proposed by Charles Wilson in
40884         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40885         with a few small changes afterwards.
40886         * MODULES.html.sh (File system functions): New module
40887         canonicalize-lgpl.
40888         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40889         and canonicalize_file_name.
40890         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40891         * modules/canonicalize-lgpl: New files.
40892
40893 2006-11-05  Bruno Haible  <bruno@clisp.org>
40894
40895         * gnulib-tool (func_import, func_create_testdir): Create directories
40896         also for files in subdirectories of lib/.
40897
40898 2006-11-05  Bruno Haible  <bruno@clisp.org>
40899
40900         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40901         ANSI C compliant.
40902
40903 2006-11-03  Bruno Haible  <bruno@clisp.org>
40904
40905         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40906         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40907         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40908         (xnboundedmalloc): New inline function.
40909         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40910         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40911         xmalloc.
40912         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40913         xmalloc.
40914         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40915         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40916         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40917         xmalloc.
40918         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40919         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40920         xmalloc.
40921         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40922         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40923         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40924         xmalloc.
40925         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40926         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40927         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40928         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40929         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40930         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40931         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40932
40933 2006-11-03  Bruno Haible  <bruno@clisp.org>
40934
40935         * lib/c-ctype.h [C++]: Define functions without name mangling.
40936         * lib/fwriteerror.h [C++]: Likewise.
40937         * lib/gcd.h [C++]: Likewise.
40938         * lib/linebreak.h [C++]: Likewise.
40939
40940 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40941
40942         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40943         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40944         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40945         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40946         Check for functions and headers just once.
40947         Check for declaration of canonicalize_file_name.
40948         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40949
40950 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40951
40952         * gnulib-tool (func_import): Fix typo in actioncmd.
40953
40954 2006-11-02  Bruno Haible  <bruno@clisp.org>
40955
40956         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40957         newline sequence in the Makefile.am snippet as a space, like "make"
40958         does.
40959         Reported by Roger Persson <perrog@gmail.com>.
40960
40961 2006-11-01  Bruno Haible  <bruno@clisp.org>
40962
40963         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40964         already declared in <string.h>.
40965         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40966
40967 2006-11-01  Bruno Haible  <bruno@clisp.org>
40968
40969         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40970         * lib/strcase.h: Include <string.h>.
40971         (strcasecmp): Define to rpl_strcasecmp here.
40972
40973 2006-11-01  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40976
40977 2006-11-01  Eric Blake  <ebb9@byu.net>
40978
40979         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40980
40981         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40982
40983 2006-10-29  Bruno Haible  <bruno@clisp.org>
40984
40985         Make it compile in C++ mode.
40986         * lib/full-write.c (full_rw): Add a cast.
40987
40988 2006-11-01  Bruno Haible  <bruno@clisp.org>
40989
40990         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40991         be POSIX compliant.
40992         Reported by Roger Persson <perrog@gmail.com>.
40993
40994 2006-11-01  Eric Blake  <ebb9@byu.net>
40995
40996         * lib/getopt_.h: Fix comments.
40997
40998 2006-10-31  Eric Blake  <ebb9@byu.net>
40999
41000         * modules/tmpdir (Depends-on): Add sys_stat.
41001         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41002         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41003         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41004         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41005         tempname.
41006
41007 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41008
41009         Avoid some C++ diagnostics reported by Bruno Haible.
41010         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41011         xmalloc.
41012         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41013         (struct slotvec): Move to top level.
41014         (quotearg_n_options): Rewrite to avoid xmalloc.
41015         * lib/xalloc.h (xcharalloc): New function.
41016         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41017         [defined __cplusplus]: Add function template that provides result
41018         type propagation.  This part of the change is from Bruno Haible.
41019
41020 2006-10-29  Bruno Haible  <bruno@clisp.org>
41021
41022         Make it compile in C++ mode.
41023         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41024         * lib/strnlen1.c (strnlen1): Cast memchr result.
41025         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41026         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41027         (create_temp_dir): Rename local variable 'template'.
41028         (compile_csharp_using_sscli): Add cast.
41029         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41030         * lib/findprog.c (find_in_path): Likewise.
41031         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41032         * lib/wait-process.c (register_slave_subprocess): Likewise.
41033
41034 2006-10-22  Bruno Haible  <bruno@clisp.org>
41035
41036         * modules/tsearch: New file.
41037         * lib/tsearch.h: New file.
41038         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41039         * m4/tsearch.m4: New file.
41040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41041
41042 2006-10-29  Eric Blake  <ebb9@byu.net>
41043
41044         * lib/arcfour.c: Assume config.h.
41045         * lib/arctwo.c: Likewise.
41046         * lib/base64.c: Likewise.
41047         * lib/check-version.c: Likewise.
41048         * lib/crc.c: Likewise.
41049         * lib/des.c: Likewise.
41050         * lib/gc-gnulib.c: Likewise.
41051         * lib/gc-libgcrypt.c: Likewise.
41052         * lib/gc-pbkdf2-sha1.c: Likewise.
41053         * lib/getaddrinfo.c: Likewise.
41054         * lib/getdelim.c: Likewise.
41055         * lib/getline.c: Likewise.
41056         * lib/hmac-md5.c: Likewise.
41057         * lib/hmac-sha1.c: Likewise.
41058         * lib/iconvme.c: Likewise.
41059         * lib/md2.c: Likewise.
41060         * lib/md4.c: Likewise.
41061         * lib/memxor.c: Likewise.
41062         * lib/read-file.c: Likewise.
41063         * lib/readline.c: Likewise.
41064         * lib/rijndael-alg-fst.c: Likewise.
41065         * lib/rijndael-api-fst.c: Likewise.
41066         * lib/xgetdomainname.c: Likewise.
41067
41068 2006-10-28  Eric Blake  <ebb9@byu.net>
41069
41070         * lib/xstrndup.c: Assume config.h.
41071
41072 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41073
41074         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41075         stat-macros.h is now for our own macros, whereas stat_h is for
41076         macros in the <sys/stat.h> name space.
41077         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41078         (STAT_MACROS_H): Remove.
41079         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41080         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41081         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41082         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41083         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41084         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41085         Move these macros to ...
41086         * lib/stat_.h: here.  Don't include stat-macros.h.
41087         * lib/canonicalize.c: Don't include stat-macros.h.
41088         * lib/chown.c: Likewise.
41089         * lib/euidaccess.c: Likewise.
41090         * lib/file-type.c: Likewise.
41091         * lib/filemode.c: Likewise.
41092         * lib/glob.c: Likewise.
41093         * lib/isapipe.c: Likewise.
41094         * lib/lchown.c: Likewise.
41095         * lib/lstat.c: Likewise.
41096         * lib/mkdir-p.c: Likewise.
41097         * lib/rmdir.c: Likewise.
41098         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41099         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41100         unless mkdir isn't declared, to speed up 'configure'.
41101         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41102         would define all the S_* symbols.
41103         * modules/canonicalize (Depends-on):
41104         Depend on sys_stat, not stat-macros.
41105         * modules/chown: Likewise.
41106         * modules/euidaccess: Likewise.
41107         * modules/filemode: Likewise.
41108         * modules/file-type: Likewise.
41109         * modules/glob: Likewise.
41110         * modules/isapipe: Likewise.
41111         * modules/lchown: Likewise.
41112         * modules/lstat: Likewise.
41113         * modules/mkancesdirs: Likewise.
41114         * modules/rmdir: Likewise.
41115         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41116         * modules/modechange: Likewise.
41117         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41118         (configure.ac): Remove gl_STAT_MACROS.
41119         * modules/sys_stat (Depends-on): Remove stat-macros.
41120
41121 2006-10-27  Bruno Haible  <bruno@clisp.org>
41122
41123         * m4/signed.m4: Remove file.
41124         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41125         invocation.
41126         * modules/vasnprintf (Files): Remove m4/signed.m4.
41127
41128 2006-10-27  Bruno Haible  <bruno@clisp.org>
41129
41130         Update to GNU gettext 0.16.
41131         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41132         m4/inttypes-h.m4, m4/signed.m4.
41133         * m4/gettext.m4: Update to GNU gettext 0.16.
41134         * m4/intl.m4: New file, from GNU gettext.
41135         * m4/intldir.m4: New file, from GNU gettext.
41136         * config/srclist.txt: Update
41137
41138 2006-10-27  Eric Blake  <ebb9@byu.net>
41139
41140         * MODULES.html.sh: Document tempname.
41141         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41142         dependencies.
41143         (Files): Move lib/tempname.c...
41144         * modules/tempname: ...to this new module.
41145         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41146         (gl_PREREQ_TEMPNAME): Move...
41147         * m4/tempname.m4: ...to this new file.
41148         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41149         * modules/sys_stat (Depends-on): Add stat-macros.
41150         * lib/stat_.h (includes): Pick up stat macros.
41151         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41152         if stat macros are broken.
41153         * lib/tempname.c (includes): No need to include "stat-macros.h".
41154         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41155         (direxists, __path_search) [!_LIBC]: Don't compile these in
41156         gnulib; the tmpdir module covers that.
41157         * lib/tempname.h: New file.
41158
41159 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41160
41161         * COPYING: Explain how gnulib-tool converts licence headers.
41162         Almost all wording by Eric Blake.
41163
41164 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41165
41166         * lib/mbchar.h (is_basic_table): Make read-only.
41167         * lib/mbchar.c (is_basic_table): Likewise.
41168         Reported by John Darrington.
41169
41170 2006-10-25  Bruno Haible  <bruno@clisp.org>
41171
41172         * lib/progname.h (set_program_name): Undefine before defining.
41173
41174 2006-10-25  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41177         false for non-gcc C++ compilers.
41178         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41179
41180 2006-10-24  Bruno Haible  <bruno@clisp.org>
41181
41182         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41183         iconv implementations like Irix iconv.
41184
41185 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41186
41187         * modules/vararrays: New file.
41188         * m4/vararrays.m4: New file, taken from diffutils.
41189         * MODULES.html.sh: New module vararrays.
41190
41191 2006-10-24  Karl Berry  <karl@gnu.org>
41192
41193         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41194         Don't call GNU Unix.
41195
41196 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41197
41198         * users.txt: Add Libtool.
41199
41200         Sync from Libtool:
41201
41202         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41203
41204         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41205         to gnulib's policy of including config.h unconditionally.
41206
41207 2006-10-24  Bruno Haible  <bruno@clisp.org>
41208
41209         * modules/wcwidth (Files): Add m4/wint_t.m4.
41210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41211         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41212
41213 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41214
41215         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41216         to pacify GCC with some -W flags enabled.  Problem reported by
41217         Bruno Haible.
41218
41219 2006-10-24  Jim Meyering  <jim@meyering.net>
41220
41221         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41222         Reported by Karl Berry.
41223
41224 2006-10-23  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41227
41228 2006-10-24  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/gl_list.h: Use C comment style, not C++ comment style.
41231
41232 2006-10-23  Eric Blake  <ebb9@byu.net>
41233
41234         * lib/getaddrinfo.c (includes): Add missing include.
41235
41236 2006-10-23  Bruno Haible  <bruno@clisp.org>
41237             Paul Eggert  <eggert@cs.ucla.edu>
41238
41239         Ability to rename obstack_free.
41240         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41241         obstack_free.
41242         (obstack_free): Invoke the __obstack_free macro.
41243         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41244
41245 2006-10-23  Bruno Haible  <bruno@clisp.org>
41246             Paul Eggert  <eggert@cs.ucla.edu>
41247
41248         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41249         __argc, __argv from the declaration. (They are defined as macros on
41250         mingw.)
41251
41252 2006-10-22  Bruno Haible  <bruno@clisp.org>
41253
41254         * doc/gnulib-intro.texi: New file.
41255         * doc/gnulib.texi: Include it.
41256
41257 2006-10-21  Bruno Haible  <bruno@clisp.org>
41258
41259         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41260         "Introduction", "Miscellanous Notes", "Particular Modules".
41261
41262 2006-10-21  Bruno Haible  <bruno@clisp.org>
41263
41264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41265         Change mostlyclean-local rule to avoid sh syntax error from bash
41266         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41267
41268 2006-10-23  Jim Meyering  <jim@meyering.net>
41269
41270         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41271         in place of snprintf.
41272
41273         * modules/inttostr (Files): Add lib/uinttostr.c.
41274         * lib/uinttostr.c (inttostr): New file/function.
41275         * lib/inttostr.h (uinttostr): Declare.
41276         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41277         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41278         Add uinttostr.
41279         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41280
41281 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41282
41283         * lib/canonicalize.c (ELOOP): Define if not already defined.
41284         Problem reported by Bruno Haible in
41285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41286
41287 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41288
41289         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41290         Problem reported by Perry Smith and Ville Laurikari.
41291
41292         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41293         uses.
41294
41295 2006-10-19  Bruno Haible  <bruno@clisp.org>
41296
41297         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41298         for mingw.
41299
41300 2006-10-19  Bruno Haible  <bruno@clisp.org>
41301
41302         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41303         Needed for mingw.
41304
41305 2006-10-19  Bruno Haible  <bruno@clisp.org>
41306
41307         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41308
41309 2006-10-19  Bruno Haible  <bruno@clisp.org>
41310
41311         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41312         it.
41313
41314 2006-10-19  Bruno Haible  <bruno@clisp.org>
41315
41316         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41317         invocation.
41318
41319 2006-10-19  Bruno Haible  <bruno@clisp.org>
41320
41321         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41322         mountlist by default.
41323
41324 2006-10-16  Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/c-strstr.c: Include c-strstr.h.
41327
41328 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41329
41330         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41331         in a slash.
41332
41333 2006-10-18  Bruno Haible  <bruno@clisp.org>
41334
41335         * lib/lock.h [C++]: Wrap definitions in extern "C".
41336
41337 2006-10-18  Bruno Haible  <bruno@clisp.org>
41338
41339         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41340         gl_LIBOBJS list.
41341
41342 2006-10-18  Bruno Haible  <bruno@clisp.org>
41343
41344         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41345
41346 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41347
41348         * lib/xstrtol.h: Include gettext.h.
41349         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41350         Problem reported by Eric Blake.
41351         * modules/xstrtol (Depends-on): Add gettext-h.
41352
41353 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41354
41355         * lib/strftime.c (advance): New macro.
41356         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41357         incomplete type, so you can't add 0 to it.  Problem and patch
41358         reported by Eelco Dolstra for dietlibc.
41359
41360 2006-10-18  Jim Meyering  <jim@meyering.net>
41361
41362         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41363         type for a local, and rename it: s/up/user_proc/.
41364
41365 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41366
41367         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41368         READ_UTMP_USER_PROCESS.
41369         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41370
41371 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41372
41373         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41374         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41375
41376 2006-10-17  Eric Blake  <ebb9@byu.net>
41377
41378         * lib/sigprocmask.c (sigprocmask): Fix typo.
41379
41380         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41381
41382         * modules/clean-temp (Makefile.am): Don't add to make output...
41383         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41384         config.h.
41385
41386 2006-10-17  Bruno Haible  <bruno@clisp.org>
41387
41388         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41389         differently if DEFAULT_TEXT_DOMAIN is set.
41390
41391 2006-10-16  Bruno Haible  <bruno@clisp.org>
41392
41393         * lib/clean-temp.c: Include fwriteerror.h.
41394
41395 2006-10-16  Bruno Haible  <bruno@clisp.org>
41396
41397         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41398
41399 2006-10-16  Bruno Haible  <bruno@clisp.org>
41400
41401         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41402         * lib/sigprocmask.h: Include <sys/types.h>.
41403         (sigset_t): Use the system's definition if present.
41404
41405 2006-10-17  Eric Blake  <ebb9@byu.net>
41406
41407         * lib/xvasprintf.c (includes): Assume config.h.
41408         * lib/xasprintf.c (includes): Likewise.
41409
41410 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41411
41412         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41413         at least as wide as intmax_t.
41414
41415 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41416
41417         (Imported from Automake.)
41418         * build-aux/gnupload: Update to version 1.1 of directive file.
41419
41420 2006-10-16  Eric Blake  <ebb9@byu.net>
41421
41422         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41423         match Automake 1.10a.
41424
41425 2006-10-14  Bruno Haible  <bruno@clisp.org>
41426
41427         * modules/sigprocmask: New file.
41428         * lib/sigprocmask.h: New file.
41429         * lib/sigprocmask.c: New file.
41430         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41431         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41432         request sigprocmask.o.
41433         (gl_PREREQ_SIGPROCMASK): New macro.
41434         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41435         (Depends-on): Add sigprocmask.
41436         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41437         gt_SIGNALBLOCKING. Test for 'raise' only once.
41438         * lib/fatal-signal.c: Include sigprocmask.h.
41439         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41440         unblock_fatal_signals): Define always.
41441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41442         sigprocmask.
41443
41444 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41445
41446         Sync from Automake.
41447         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41448         which incorrectly sets the mode of an existing destination
41449         directory.  In some cases the unpatched install-sh could do the
41450         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41451         system.  We hope this is rare in practice, but it's clearly worth
41452         fixing.  Problem reported by Alex Unleashed in
41453         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41454         Also, don't bother to check for -m bugs unless we're using -m;
41455         suggested by Stepan Kasal.
41456
41457 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41458
41459         Sync from Automake.
41460         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41461         `-c' flag, so they appear at the same position as in %FASTDEP%
41462         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41463         which ignores unknown options only after the first non-option.
41464         Bug report against M4 by Nelson H. F. Beebe.
41465
41466 2006-10-13  Jim Meyering  <jim@meyering.net>
41467
41468         Fix a bug in yesterday's change.
41469         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41470         p->fts_statp->st_dev would be used uninitialized.
41471         Ensures that we always call fts_stat on the very first entry.
41472         Miklos Szeredi reported that find -xdev stopped working.
41473
41474 2006-10-12  Bruno Haible  <bruno@clisp.org>
41475
41476         * gnulib-tool (func_get_automake_snippet): Append an automatically
41477         computed EXTRA_DIST augmentation.
41478         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41479         * modules/alloca-opt (Makefile.am): Likewise.
41480         * modules/allocsa (Makefile.am): Likewise.
41481         * modules/arcfour (Makefile.am): Likewise.
41482         * modules/arctwo (Makefile.am): Likewise.
41483         * modules/argmatch (Makefile.am): Likewise.
41484         * modules/argz (Makefile.am): Likewise.
41485         * modules/atexit (Makefile.am): Likewise.
41486         * modules/backupfile (Makefile.am): Likewise.
41487         * modules/byteswap (Makefile.am): Likewise.
41488         * modules/c-strtod (Makefile.am): Likewise.
41489         * modules/c-strtold (Makefile.am): Likewise.
41490         * modules/calloc (Makefile.am): Likewise.
41491         * modules/canon-host (Makefile.am): Likewise.
41492         * modules/canonicalize (Makefile.am): Likewise.
41493         * modules/chdir-long (Makefile.am): Likewise.
41494         * modules/chdir-safer (Makefile.am): Likewise.
41495         * modules/check-version (Makefile.am): Likewise.
41496         * modules/chown (Makefile.am): Likewise.
41497         * modules/cloexec (Makefile.am): Likewise.
41498         * modules/close-stream (Makefile.am): Likewise.
41499         * modules/closeout (Makefile.am): Likewise.
41500         * modules/crc (Makefile.am): Likewise.
41501         * modules/csharpexec (Makefile.am): Likewise.
41502         * modules/cycle-check (Makefile.am): Likewise.
41503         * modules/des (Makefile.am): Likewise.
41504         * modules/dev-ino (Makefile.am): Likewise.
41505         * modules/dirfd (Makefile.am): Likewise.
41506         * modules/dirname (Makefile.am): Likewise.
41507         * modules/dup2 (Makefile.am): Likewise.
41508         * modules/eealloc (Makefile.am): Likewise.
41509         * modules/error (Makefile.am): Likewise.
41510         * modules/euidaccess (Makefile.am): Likewise.
41511         * modules/exclude (Makefile.am): Likewise.
41512         * modules/exitfail (Makefile.am): Likewise.
41513         * modules/fcntl-safer (Makefile.am): Likewise.
41514         * modules/fcntl (Makefile.am): Likewise.
41515         * modules/file-type (Makefile.am): Likewise.
41516         * modules/fileblocks (Makefile.am): Likewise.
41517         * modules/filemode (Makefile.am): Likewise.
41518         * modules/filenamecat (Makefile.am): Likewise.
41519         * modules/fnmatch (Makefile.am): Likewise.
41520         * modules/fopen-safer (Makefile.am): Likewise.
41521         * modules/fpending (Makefile.am): Likewise.
41522         * modules/fprintftime (Makefile.am): Likewise.
41523         * modules/free (Makefile.am): Likewise.
41524         * modules/fsusage (Makefile.am): Likewise.
41525         * modules/ftruncate (Makefile.am): Likewise.
41526         * modules/fts (Makefile.am): Likewise.
41527         * modules/gc-arcfour (Makefile.am): Likewise.
41528         * modules/gc-des (Makefile.am): Likewise.
41529         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41530         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41531         * modules/gc-md4 (Makefile.am): Likewise.
41532         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41533         * modules/gc-sha1 (Makefile.am): Likewise.
41534         * modules/gc (Makefile.am): Likewise.
41535         * modules/getaddrinfo (Makefile.am): Likewise.
41536         * modules/getcwd (Makefile.am): Likewise.
41537         * modules/getdelim (Makefile.am): Likewise.
41538         * modules/getdomainname (Makefile.am): Likewise.
41539         * modules/getgroups (Makefile.am): Likewise.
41540         * modules/gethostname (Makefile.am): Likewise.
41541         * modules/gethrxtime (Makefile.am): Likewise.
41542         * modules/getline (Makefile.am): Likewise.
41543         * modules/getloadavg (Makefile.am): Likewise.
41544         * modules/getlogin_r (Makefile.am): Likewise.
41545         * modules/getndelim2 (Makefile.am): Likewise.
41546         * modules/getopt (Makefile.am): Likewise.
41547         * modules/getpagesize (Makefile.am): Likewise.
41548         * modules/getpass-gnu (Makefile.am): Likewise.
41549         * modules/getpass (Makefile.am): Likewise.
41550         * modules/getsubopt (Makefile.am): Likewise.
41551         * modules/gettime (Makefile.am): Likewise.
41552         * modules/gettimeofday (Makefile.am): Likewise.
41553         * modules/getugroups (Makefile.am): Likewise.
41554         * modules/getusershell (Makefile.am): Likewise.
41555         * modules/glob (Makefile.am): Likewise.
41556         * modules/group-member (Makefile.am): Likewise.
41557         * modules/hard-locale (Makefile.am): Likewise.
41558         * modules/hash (Makefile.am): Likewise.
41559         * modules/hmac-md5 (Makefile.am): Likewise.
41560         * modules/hmac-sha1 (Makefile.am): Likewise.
41561         * modules/human (Makefile.am): Likewise.
41562         * modules/idcache (Makefile.am): Likewise.
41563         * modules/imaxabs (Makefile.am): Likewise.
41564         * modules/imaxdiv (Makefile.am): Likewise.
41565         * modules/inet_ntop (Makefile.am): Likewise.
41566         * modules/inet_pton (Makefile.am): Likewise.
41567         * modules/intprops (Makefile.am): Likewise.
41568         * modules/inttostr (Makefile.am): Likewise.
41569         * modules/inttypes (Makefile.am): Likewise.
41570         * modules/isapipe (Makefile.am): Likewise.
41571         * modules/javaversion (Makefile.am): Likewise.
41572         * modules/lchmod (Makefile.am): Likewise.
41573         * modules/lchown (Makefile.am): Likewise.
41574         * modules/localcharset (Makefile.am): Likewise.
41575         * modules/long-options (Makefile.am): Likewise.
41576         * modules/lstat (Makefile.am): Likewise.
41577         * modules/malloc (Makefile.am): Likewise.
41578         * modules/mathl (Makefile.am): Likewise.
41579         * modules/mbchar (Makefile.am): Likewise.
41580         * modules/md2 (Makefile.am): Likewise.
41581         * modules/md4 (Makefile.am): Likewise.
41582         * modules/md5 (Makefile.am): Likewise.
41583         * modules/memcasecmp (Makefile.am): Likewise.
41584         * modules/memchr (Makefile.am): Likewise.
41585         * modules/memcmp (Makefile.am): Likewise.
41586         * modules/memcoll (Makefile.am): Likewise.
41587         * modules/memcpy (Makefile.am): Likewise.
41588         * modules/memmem (Makefile.am): Likewise.
41589         * modules/memmove (Makefile.am): Likewise.
41590         * modules/mempcpy (Makefile.am): Likewise.
41591         * modules/memrchr (Makefile.am): Likewise.
41592         * modules/memset (Makefile.am): Likewise.
41593         * modules/memxor (Makefile.am): Likewise.
41594         * modules/mkancesdirs (Makefile.am): Likewise.
41595         * modules/mkdir-p (Makefile.am): Likewise.
41596         * modules/mkdir (Makefile.am): Likewise.
41597         * modules/mkdtemp (Makefile.am): Likewise.
41598         * modules/mkstemp (Makefile.am): Likewise.
41599         * modules/mktime (Makefile.am): Likewise.
41600         * modules/modechange (Makefile.am): Likewise.
41601         * modules/mountlist (Makefile.am): Likewise.
41602         * modules/nanosleep (Makefile.am): Likewise.
41603         * modules/obstack (Makefile.am): Likewise.
41604         * modules/openat (Makefile.am): Likewise.
41605         * modules/pagealign_alloc (Makefile.am): Likewise.
41606         * modules/pathmax (Makefile.am): Likewise.
41607         * modules/physmem (Makefile.am): Likewise.
41608         * modules/poll (Makefile.am): Likewise.
41609         * modules/posixtm (Makefile.am): Likewise.
41610         * modules/posixver (Makefile.am): Likewise.
41611         * modules/putenv (Makefile.am): Likewise.
41612         * modules/quote (Makefile.am): Likewise.
41613         * modules/quotearg (Makefile.am): Likewise.
41614         * modules/raise (Makefile.am): Likewise.
41615         * modules/read-file (Makefile.am): Likewise.
41616         * modules/readline (Makefile.am): Likewise.
41617         * modules/readlink (Makefile.am): Likewise.
41618         * modules/readtokens (Makefile.am): Likewise.
41619         * modules/readutmp (Makefile.am): Likewise.
41620         * modules/realloc (Makefile.am): Likewise.
41621         * modules/regex (Makefile.am): Likewise.
41622         * modules/rename-dest-slash (Makefile.am): Likewise.
41623         * modules/rename (Makefile.am): Likewise.
41624         * modules/rijndael (Makefile.am): Likewise.
41625         * modules/rmdir (Makefile.am): Likewise.
41626         * modules/rpmatch (Makefile.am): Likewise.
41627         * modules/safe-read (Makefile.am): Likewise.
41628         * modules/safe-write (Makefile.am): Likewise.
41629         * modules/same-inode (Makefile.am): Likewise.
41630         * modules/same (Makefile.am): Likewise.
41631         * modules/save-cwd (Makefile.am): Likewise.
41632         * modules/savedir (Makefile.am): Likewise.
41633         * modules/setenv (Makefile.am): Likewise.
41634         * modules/settime (Makefile.am): Likewise.
41635         * modules/sha1 (Makefile.am): Likewise.
41636         * modules/sig2str (Makefile.am): Likewise.
41637         * modules/snprintf (Makefile.am): Likewise.
41638         * modules/stat-macros (Makefile.am): Likewise.
41639         * modules/stat-time (Makefile.am): Likewise.
41640         * modules/stdbool (Makefile.am): Likewise.
41641         * modules/stdint (Makefile.am): Likewise.
41642         * modules/stdlib-safer (Makefile.am): Likewise.
41643         * modules/stpcpy (Makefile.am): Likewise.
41644         * modules/stpncpy (Makefile.am): Likewise.
41645         * modules/strcase (Makefile.am): Likewise.
41646         * modules/strcasestr (Makefile.am): Likewise.
41647         * modules/strchrnul (Makefile.am): Likewise.
41648         * modules/strcspn (Makefile.am): Likewise.
41649         * modules/strdup (Makefile.am): Likewise.
41650         * modules/strerror (Makefile.am): Likewise.
41651         * modules/strftime (Makefile.am): Likewise.
41652         * modules/strndup (Makefile.am): Likewise.
41653         * modules/strnlen (Makefile.am): Likewise.
41654         * modules/strpbrk (Makefile.am): Likewise.
41655         * modules/strsep (Makefile.am): Likewise.
41656         * modules/strstr (Makefile.am): Likewise.
41657         * modules/strtod (Makefile.am): Likewise.
41658         * modules/strtoimax (Makefile.am): Likewise.
41659         * modules/strtok_r (Makefile.am): Likewise.
41660         * modules/strtol (Makefile.am): Likewise.
41661         * modules/strtoll (Makefile.am): Likewise.
41662         * modules/strtoul (Makefile.am): Likewise.
41663         * modules/strtoull (Makefile.am): Likewise.
41664         * modules/strtoumax (Makefile.am): Likewise.
41665         * modules/strverscmp (Makefile.am): Likewise.
41666         * modules/sys_socket (Makefile.am): Likewise.
41667         * modules/sys_stat (Makefile.am): Likewise.
41668         * modules/sysexits (Makefile.am): Likewise.
41669         * modules/time_r (Makefile.am): Likewise.
41670         * modules/timegm (Makefile.am): Likewise.
41671         * modules/timespec (Makefile.am): Likewise.
41672         * modules/tmpfile-safer (Makefile.am): Likewise.
41673         * modules/trim (Makefile.am): Likewise.
41674         * modules/unistd-safer (Makefile.am): Likewise.
41675         * modules/unlinkdir (Makefile.am): Likewise.
41676         * modules/unlocked-io (Makefile.am): Likewise.
41677         * modules/userspec (Makefile.am): Likewise.
41678         * modules/utime (Makefile.am): Likewise.
41679         * modules/utimecmp (Makefile.am): Likewise.
41680         * modules/utimens (Makefile.am): Likewise.
41681         * modules/vasnprintf (Makefile.am): Likewise.
41682         * modules/vasprintf (Makefile.am): Likewise.
41683         * modules/vsnprintf (Makefile.am): Likewise.
41684         * modules/xalloc (Makefile.am): Likewise.
41685         * modules/xgetcwd (Makefile.am): Likewise.
41686         * modules/xnanosleep (Makefile.am): Likewise.
41687         * modules/xreadlink (Makefile.am): Likewise.
41688         * modules/xstrtod (Makefile.am): Likewise.
41689         * modules/xstrtol (Makefile.am): Likewise.
41690         * modules/xstrtold (Makefile.am): Likewise.
41691         * modules/yesno (Makefile.am): Likewise.
41692         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41693
41694 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41695
41696         * modules/error (Makefile.am): Distribute files through
41697         EXTRA_DIST, not lib_SOURCES.
41698
41699 2006-10-12  Eric Blake  <ebb9@byu.net>
41700
41701         * modules/error (Makefile.am): Distribute files in /lib.
41702         * modules/obstack (Makefile.am): Likewise.
41703
41704 2006-10-12  Bruno Haible  <bruno@clisp.org>
41705
41706         * modules/acl (Makefile.am): Distribute all files in lib/ through
41707         EXTRA_DIST.
41708         * modules/arcfour (Makefile.am): Likewise.
41709         * modules/arctwo (Makefile.am): Likewise.
41710         * modules/argmatch (Makefile.am): Likewise.
41711         * modules/argz (Makefile.am): Likewise.
41712         * modules/atexit (Makefile.am): Likewise.
41713         * modules/backupfile (Makefile.am): Likewise.
41714         * modules/c-strtod (Makefile.am): Likewise.
41715         * modules/c-strtold (Makefile.am): Likewise.
41716         * modules/calloc (Makefile.am): Likewise.
41717         * modules/canon-host (Makefile.am): Likewise.
41718         * modules/canonicalize (Makefile.am): Likewise.
41719         * modules/chdir-long (Makefile.am): Likewise.
41720         * modules/chdir-safer (Makefile.am): Likewise.
41721         * modules/check-version (Makefile.am): Likewise.
41722         * modules/chown (Makefile.am): Likewise.
41723         * modules/cloexec (Makefile.am): Likewise.
41724         * modules/close-stream (Makefile.am): Likewise.
41725         * modules/closeout (Makefile.am): Likewise.
41726         * modules/crc (Makefile.am): Likewise.
41727         * modules/cycle-check (Makefile.am): Likewise.
41728         * modules/des (Makefile.am): Likewise.
41729         * modules/dirfd (Makefile.am): Likewise.
41730         * modules/dirname (Makefile.am): Likewise.
41731         * modules/dup2 (Makefile.am): Likewise.
41732         * modules/euidaccess (Makefile.am): Likewise.
41733         * modules/exclude (Makefile.am): Likewise.
41734         * modules/exitfail (Makefile.am): Likewise.
41735         * modules/fcntl-safer (Makefile.am): Likewise.
41736         * modules/file-type (Makefile.am): Likewise.
41737         * modules/fileblocks (Makefile.am): Likewise.
41738         * modules/filemode (Makefile.am): Likewise.
41739         * modules/filenamecat (Makefile.am): Likewise.
41740         * modules/fnmatch (Makefile.am): Likewise.
41741         * modules/fopen-safer (Makefile.am): Likewise.
41742         * modules/fpending (Makefile.am): Likewise.
41743         * modules/fprintftime (Makefile.am): Likewise.
41744         * modules/free (Makefile.am): Likewise.
41745         * modules/fsusage (Makefile.am): Likewise.
41746         * modules/ftruncate (Makefile.am): Likewise.
41747         * modules/fts (Makefile.am): Likewise.
41748         * modules/gc (Makefile.am): Likewise.
41749         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41750         * modules/getaddrinfo (Makefile.am): Likewise.
41751         * modules/getcwd (Makefile.am): Likewise.
41752         * modules/getdelim (Makefile.am): Likewise.
41753         * modules/getdomainname (Makefile.am): Likewise.
41754         * modules/getgroups (Makefile.am): Likewise.
41755         * modules/gethostname (Makefile.am): Likewise.
41756         * modules/gethrxtime (Makefile.am): Likewise.
41757         * modules/getline (Makefile.am): Likewise.
41758         * modules/getloadavg (Makefile.am): Likewise.
41759         * modules/getlogin_r (Makefile.am): Likewise.
41760         * modules/getopt (Makefile.am): Likewise.
41761         * modules/getpass (Makefile.am): Likewise.
41762         * modules/getpass-gnu (Makefile.am): Likewise.
41763         * modules/getsubopt (Makefile.am): Likewise.
41764         * modules/gettime (Makefile.am): Likewise.
41765         * modules/gettimeofday (Makefile.am): Likewise.
41766         * modules/getugroups (Makefile.am): Likewise.
41767         * modules/getusershell (Makefile.am): Likewise.
41768         * modules/glob (Makefile.am): Likewise.
41769         * modules/group-member (Makefile.am): Likewise.
41770         * modules/hard-locale (Makefile.am): Likewise.
41771         * modules/hash (Makefile.am): Likewise.
41772         * modules/hmac-md5 (Makefile.am): Likewise.
41773         * modules/hmac-sha1 (Makefile.am): Likewise.
41774         * modules/human (Makefile.am): Likewise.
41775         * modules/idcache (Makefile.am): Likewise.
41776         * modules/imaxabs (Makefile.am): Likewise.
41777         * modules/imaxdiv (Makefile.am): Likewise.
41778         * modules/inet_ntop (Makefile.am): Likewise.
41779         * modules/inet_pton (Makefile.am): Likewise.
41780         * modules/inttostr (Makefile.am): Likewise.
41781         * modules/isapipe (Makefile.am): Likewise.
41782         * modules/lchown (Makefile.am): Likewise.
41783         * modules/long-options (Makefile.am): Likewise.
41784         * modules/lstat (Makefile.am): Likewise.
41785         * modules/malloc (Makefile.am): Likewise.
41786         * modules/mathl (Makefile.am): Likewise.
41787         * modules/mbchar (Makefile.am): Likewise.
41788         * modules/md2 (Makefile.am): Likewise.
41789         * modules/md4 (Makefile.am): Likewise.
41790         * modules/md5 (Makefile.am): Likewise.
41791         * modules/memcasecmp (Makefile.am): Likewise.
41792         * modules/memchr (Makefile.am): Likewise.
41793         * modules/memcmp (Makefile.am): Likewise.
41794         * modules/memcoll (Makefile.am): Likewise.
41795         * modules/memcpy (Makefile.am): Likewise.
41796         * modules/memmem (Makefile.am): Likewise.
41797         * modules/memmove (Makefile.am): Likewise.
41798         * modules/mempcpy (Makefile.am): Likewise.
41799         * modules/memrchr (Makefile.am): Likewise.
41800         * modules/memset (Makefile.am): Likewise.
41801         * modules/memxor (Makefile.am): Likewise.
41802         * modules/mkancesdirs (Makefile.am): Likewise.
41803         * modules/mkdir (Makefile.am): Likewise.
41804         * modules/mkdir-p (Makefile.am): Likewise.
41805         * modules/mkdtemp (Makefile.am): Likewise.
41806         * modules/mkstemp (Makefile.am): Likewise.
41807         * modules/mktime (Makefile.am): Likewise.
41808         * modules/modechange (Makefile.am): Likewise.
41809         * modules/mountlist (Makefile.am): Likewise.
41810         * modules/nanosleep (Makefile.am): Likewise.
41811         * modules/openat (Makefile.am): Likewise.
41812         * modules/pagealign_alloc (Makefile.am): Likewise.
41813         * modules/physmem (Makefile.am): Likewise.
41814         * modules/poll (Makefile.am): Likewise.
41815         * modules/posixtm (Makefile.am): Likewise.
41816         * modules/posixver (Makefile.am): Likewise.
41817         * modules/putenv (Makefile.am): Likewise.
41818         * modules/quote (Makefile.am): Likewise.
41819         * modules/quotearg (Makefile.am): Likewise.
41820         * modules/raise (Makefile.am): Likewise.
41821         * modules/read-file (Makefile.am): Likewise.
41822         * modules/readline (Makefile.am): Likewise.
41823         * modules/readlink (Makefile.am): Likewise.
41824         * modules/readtokens (Makefile.am): Likewise.
41825         * modules/readutmp (Makefile.am): Likewise.
41826         * modules/realloc (Makefile.am): Likewise.
41827         * modules/regex (Makefile.am): Likewise.
41828         * modules/rename (Makefile.am): Likewise.
41829         * modules/rename-dest-slash (Makefile.am): Likewise.
41830         * modules/rijndael (Makefile.am): Likewise.
41831         * modules/rmdir (Makefile.am): Likewise.
41832         * modules/rpmatch (Makefile.am): Likewise.
41833         * modules/safe-read (Makefile.am): Likewise.
41834         * modules/safe-write (Makefile.am): Likewise.
41835         * modules/same (Makefile.am): Likewise.
41836         * modules/save-cwd (Makefile.am): Likewise.
41837         * modules/savedir (Makefile.am): Likewise.
41838         * modules/setenv (Makefile.am): Likewise.
41839         * modules/settime (Makefile.am): Likewise.
41840         * modules/sha1 (Makefile.am): Likewise.
41841         * modules/sig2str (Makefile.am): Likewise.
41842         * modules/snprintf (Makefile.am): Likewise.
41843         * modules/stdlib-safer (Makefile.am): Likewise.
41844         * modules/stpcpy (Makefile.am): Likewise.
41845         * modules/stpncpy (Makefile.am): Likewise.
41846         * modules/strcase (Makefile.am): Likewise.
41847         * modules/strcasestr (Makefile.am): Likewise.
41848         * modules/strchrnul (Makefile.am): Likewise.
41849         * modules/strcspn (Makefile.am): Likewise.
41850         * modules/strdup (Makefile.am): Likewise.
41851         * modules/strerror (Makefile.am): Likewise.
41852         * modules/strftime (Makefile.am): Likewise.
41853         * modules/strndup (Makefile.am): Likewise.
41854         * modules/strnlen (Makefile.am): Likewise.
41855         * modules/strpbrk (Makefile.am): Likewise.
41856         * modules/strsep (Makefile.am): Likewise.
41857         * modules/strstr (Makefile.am): Likewise.
41858         * modules/strtod (Makefile.am): Likewise.
41859         * modules/strtoimax (Makefile.am): Likewise.
41860         * modules/strtok_r (Makefile.am): Likewise.
41861         * modules/strtol (Makefile.am): Likewise.
41862         * modules/strtoll (Makefile.am): Likewise.
41863         * modules/strtoul (Makefile.am): Likewise.
41864         * modules/strtoull (Makefile.am): Likewise.
41865         * modules/strtoumax (Makefile.am): Likewise.
41866         * modules/strverscmp (Makefile.am): Likewise.
41867         * modules/time_r (Makefile.am): Likewise.
41868         * modules/timegm (Makefile.am): Likewise.
41869         * modules/tmpfile-safer (Makefile.am): Likewise.
41870         * modules/unistd-safer (Makefile.am): Likewise.
41871         * modules/unlinkdir (Makefile.am): Likewise.
41872         * modules/userspec (Makefile.am): Likewise.
41873         * modules/utime (Makefile.am): Likewise.
41874         * modules/utimecmp (Makefile.am): Likewise.
41875         * modules/utimens (Makefile.am): Likewise.
41876         * modules/vasnprintf (Makefile.am): Likewise.
41877         * modules/vasprintf (Makefile.am): Likewise.
41878         * modules/vsnprintf (Makefile.am): Likewise.
41879         * modules/xalloc (Makefile.am): Likewise.
41880         * modules/xgetcwd (Makefile.am): Likewise.
41881         * modules/xnanosleep (Makefile.am): Likewise.
41882         * modules/xreadlink (Makefile.am): Likewise.
41883         * modules/xstrtod (Makefile.am): Likewise.
41884         * modules/xstrtol (Makefile.am): Likewise.
41885         * modules/xstrtold (Makefile.am): Likewise.
41886         * modules/yesno (Makefile.am): Likewise.
41887
41888 2006-10-12  Jim Meyering  <jim@meyering.net>
41889
41890         * m4/getloadavg.m4: Revert the change below.
41891
41892         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41893         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41894         fail with a symlink, which is what coreutils' ./bootstrap now
41895         creates by default.
41896
41897 2006-10-12  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41900         mingw.
41901         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41902         MSVC and mingw explicitly.
41903
41904 2006-10-11  Simon Josefsson  <jas@extundo.com>
41905             Bruno Haible  <bruno@clisp.org>
41906
41907         Add support for multiple gnulib-tool invocations in the scope of a
41908         single configure.ac file.
41909         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41910         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41911         with the same contents as the _LIBADD variable.
41912         (func_emit_initmacro_start, func_emit_initmacro_end,
41913         func_emit_initmacro_done): New functions.
41914         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41915         gl_LIBOBJS and gl_LTLIBOBJS.
41916
41917 2006-10-11  Bruno Haible  <bruno@clisp.org>
41918
41919         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41920         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41921         autoreconf. Instead, invoke autopoint explicitly but move back the
41922         *.m4 files from gnulib.
41923
41924 2006-10-11  Bruno Haible  <bruno@clisp.org>
41925
41926         * gnulib-tool (func_usage): Make module names after --create-testdir
41927         optional.
41928         (func_create_testdir): If no module was specified, use nearly all
41929         modules.
41930
41931 2006-10-12  Jim Meyering  <jim@meyering.net>
41932
41933         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41934         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41935         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41936         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41937         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41938         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41939         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41940         (fts_set_stat_required): New function.
41941         (fts_open): Defer the calls to fts_stat, if possible or requested.
41942         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41943         into fts_stat itself.
41944         (fts_read): Perform any required (deferred) fts_stat call.
41945         (fts_build): Likewise, for the directory we're about to open and read.
41946         In the readdir loop, carefully decide whether each entry will require
41947         an eventual call to fts_stat, using dirent.d_type info if available.
41948         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41949         a command line argument into this function.  Update all callers.
41950         Map a return value of FTS_DOT to FTS_D for a command line argument.
41951         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41952         Thanks to Miklos Szeredi for his tenacity and for the initial
41953         bug report about "find" failing on a FUSE-based file system.
41954
41955         * lib/fts.c (fts_open): Use consistent indentation.
41956
41957 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41958
41959         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41960         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41961         reported by Jim Meyering.  All uses of cache variables renamed
41962         to match Autoconf's.
41963         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41964         the other one.
41965
41966         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41967         Fix misspelling in diagnostic.
41968
41969 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41970
41971         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41972         defined.  Problem reported by Matthew Woehlke.
41973
41974         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41975         Add support for Tandem NonStop R series.
41976         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41977         Use new macro.
41978
41979         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41980         (has_trailing_slash): Omit size arg; all callers changed.
41981         Omit 'inline', since it doesn't help performance and we'd
41982         need to configure it.
41983         Don't count //, ///, etc. as having a trailing slash.
41984         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41985         (rpl_rename_dest_slash): On failure, use rename's errno rather
41986         than (in some cases) an incorrect or junk errno.
41987         Simplify code by removing need to compute length; this does
41988         cause it to make two passes instead of one over the file name,
41989         but it's worth it.
41990
41991         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41992         change, since Autoconf's version may no longer be appropriate now
41993         that we are using CVS Autoconf's version.  Add support for Tandem.
41994
41995 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41996             Bruno Haible  <bruno@clisp.org>
41997
41998         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41999         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42000         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42001         gl_AC_TYPE_LONG_LONG.
42002
42003         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42004         instead of HAVE_LONG_LONG.
42005         * lib/printf-args.c (printf_fetchargs): Likewise.
42006         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42007         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42008         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42009         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42010         gl_AC_TYPE_LONG_LONG.
42011
42012 2006-10-11  Bruno Haible  <bruno@clisp.org>
42013
42014         * m4/longlong.m4: Add comments.
42015         * m4/ulonglong.m4: Likewise.
42016
42017 2006-10-10  Bruno Haible  <bruno@clisp.org>
42018
42019         Make it possible to #define stpcpy, strdup to aliases.
42020         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42021         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42022
42023 2006-10-10  Bruno Haible  <bruno@clisp.org>
42024
42025         Make it possible to #define gcd to an alias.
42026         * lib/gcd.c: Include config.h.
42027
42028 2006-10-10  Bruno Haible  <bruno@clisp.org>
42029
42030         Make it possible to #define c_isascii to an alias.
42031         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42032         defined. Undefine the macros before defining them, to avoid gcc
42033         warnings.
42034         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42035         define NO_C_CTYPE_MACROS early.
42036
42037 2006-10-10  Bruno Haible  <bruno@clisp.org>
42038
42039         Make it possible to #define set_program_name to an alias.
42040         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42041         ENABLE_RELOCATABLE early.
42042
42043 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42044
42045         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42046         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42047         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42048         More generally, don't assume that 64-bit signed int is available
42049         if unsigned int is, and vice versa.
42050         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42051         unsigned symbols, not on their signed counterparts.
42052         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42053         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42054         (UINT64_C, UINTMAX_C):
42055         Likewise.
42056         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42057         unsigned counterparts.
42058         (Have_long_long, Unsigned): New macros.
42059         (Int): Renamed from INT.
42060         (strtoimax): Use the new macros.
42061         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42062         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42063         * modules/inttypes (inttypes.h): Substitute
42064         HAVE_UNSIGNED_LONG_LONG_INT.
42065         * modules/stdint (stdint.h): Likewise.
42066         (Files): Add m4/ulonglong.m4.
42067
42068 2006-10-10  Bruno Haible  <bruno@clisp.org>
42069
42070         Fix a gcc -Wshadow warning.
42071         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42072         to 'bucket'.
42073         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42074         gl_linked_indexof_from_to): Likewise.
42075         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42076         Likewise.
42077         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42078         Likewise.
42079         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42080         Reported by Eric Blake.
42081
42082 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42083
42084         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42085         for NetBSD.  Problem reported by Bruno Haible.
42086
42087 2006-10-09  Jim Meyering  <jim@meyering.net>
42088
42089         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42090         Patch from Bruno Haible.
42091
42092 2006-10-09  Jim Meyering  <jim@meyering.net>
42093
42094         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42095         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42096         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42097
42098 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42099
42100         Don't include <config.h> twice; this doesn't work in some cases,
42101         e.g., when config.h has "#define intmax_t long long int" and
42102         we include <config.h>, <inttypes.h>, <config.h> in that order.
42103         Problem reported by Matthew Woehlke in:
42104         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42105         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42106         * lib/fts-cycle.c: Don't include config.h.
42107         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42108         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42109         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42110         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42111         inttypes.h.
42112         * lib/xstrtoumax.c: Likewise.
42113         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42114         __strtol and the like, so that this module is more like its siblings.
42115         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42116         Remove; no longer needed now that we assume gnulib inttypes.h.
42117
42118 2006-10-08  Bruno Haible  <bruno@clisp.org>
42119
42120         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42121         option.
42122
42123 2006-10-07  Jim Meyering  <jim@meyering.net>
42124
42125         * modules/inttypes (inttypes.h): Revert what seems to have been
42126         an inadvertent part of today's change: use "|", not "/" in the
42127         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42128
42129 2006-10-07  Bruno Haible  <bruno@clisp.org>
42130
42131         * modules/sublist: New file.
42132
42133 2006-10-07  Bruno Haible  <bruno@clisp.org>
42134
42135         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42136         * modules/argz (argz.h): Likewise.
42137         * modules/arpa_inet (arpa/inet.h): Likewise.
42138         * modules/byteswap (byteswap.h): Likewise.
42139         * modules/configmake (configmake.h): Likewise.
42140         * modules/fcntl (fcntl.h): Likewise.
42141         * modules/fnmatch (fnmatch.h): Likewise.
42142         * modules/getopt (getopt.h): Likewise.
42143         * modules/glob (glob.h): Likewise.
42144         * modules/inttypes (inttypes.h): Likewise.
42145         * modules/netinet_in (netinet/in.h): Likewise.
42146         * modules/poll (poll.h): Likewise.
42147         * modules/stdbool (stdbool.h): Likewise.
42148         * modules/stdint (stdint.h): Likewise.
42149         * modules/sys_select (sys/select.h): Likewise.
42150         * modules/sys_socket (sys/socket.h): Likewise.
42151         * modules/sys_stat (sys/stat.h): Likewise.
42152         * modules/sysexits (sysexits.h): Likewise.
42153         * modules/unistd (unistd.h): Likewise.
42154         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42155         Add a "DO NOT EDIT" comment to the generated file.
42156         (func_import): Likewise for gnulib-comp.m4.
42157
42158 2006-10-07  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/gl_sublist.h: New file.
42161         * lib/gl_sublist.c: New file.
42162
42163 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42164
42165         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42166         name (relative to the original working directory) and the file
42167         name component (relative to the temporary working directory).  All
42168         callers changed.
42169         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42170         * lib/mkdir-p.c (make_dir_parents): Likewise.
42171         * lib/mkdir-p.h (make_dir_parents): Likewise.
42172
42173 2006-10-06  Eric Blake  <ebb9@byu.net>
42174
42175         Define several macros for use by the clean-temp module.
42176         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42177         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42178         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42179
42180         * lib/clean-temp.h (close_stream_temp): New declaration.
42181         * lib/clean-temp.c (includes): Pull in headers according to what
42182         other modules are in use.
42183         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42184
42185 2006-10-06  Bruno Haible  <bruno@clisp.org>
42186
42187         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42188         instead of fopen, fwriteerror.
42189
42190 2006-10-06  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42193         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42194         int.
42195         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42196         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42197         Return an error indicator.
42198         Suggested by Eric Blake.
42199
42200 2006-10-06  Bruno Haible  <bruno@clisp.org>
42201
42202         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42203         Reported by Eric Blake.
42204
42205 2006-10-06  Bruno Haible  <bruno@clisp.org>
42206
42207         * modules/closeout (Description): Mention stderr too.
42208
42209 2006-10-06  Bruno Haible  <bruno@clisp.org>
42210         and Paul Eggert  <eggert@cs.ucla.edu>
42211
42212         * lib/closeout.c (close_stdout): Also close stderr.
42213         * lib/closeout.h: Update comment.
42214
42215 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42216
42217         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42218         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42219         * lib/dirchownmod.c: Include lchown.h.
42220         * lib/lchown.c: Don't include files that lchown.h now includes.
42221         Don't declare chown, since lchown.h now does that.
42222         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42223         (lchown): Define to rpl_chown if lchown is declared but
42224         does not exist.  Declare using a prototype if lchown is not
42225         declared.  Add a copyright notice.
42226         * lib/mkstemp.h: Include <unistd.h>.
42227         * lib/openat.c: Include lchown.h.
42228
42229         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42230         we now test for that separately.
42231         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42232         rather than O_NOFOLLOW, when testing whether it's possible to
42233         avoid a race condition reliably.
42234         * lib/savewd.c (savewd_chdir): Likewise.
42235
42236         Remove macros that are no longer needed now that stdint.h is
42237         reliable.
42238         * lib/fsusage.c (UINTMAX_MAX): Remove.
42239         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42240         * lib/utimecmp.c (SIZE_MAX): Remove.
42241
42242         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42243
42244         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42245         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42246         O_NOATIME works.
42247
42248 2006-10-05  Bruno Haible  <bruno@clisp.org>
42249
42250         * lib/gl_list.h (gl_sortedlist_search_from_to,
42251         gl_sortedlist_indexof_from_to): New declarations.
42252         (gl_list_implementation): New fields sortedlist_search_from_to,
42253         sortedlist_indexof_from_to.
42254         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42255         inline functions.
42256         * lib/gl_list.c (gl_sortedlist_search_from_to,
42257         gl_sortedlist_indexof_from_to): New functions.
42258         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42259         function.
42260         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42261         (gl_array_sortedlist_search_from_to): New function.
42262         (gl_array_list_implementation): Update.
42263         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42264         function.
42265         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42266         (gl_carray_sortedlist_search_from_to): New function.
42267         (gl_carray_list_implementation): Update.
42268         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42269         gl_linked_sortedlist_indexof_from_to): New functions.
42270         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42271         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42272         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42273         gl_tree_sortedlist_indexof_from_to): New functions.
42274         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42275         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42276         Update.
42277         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42278         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42279         Update.
42280
42281 2006-10-05  Bruno Haible  <bruno@clisp.org>
42282
42283         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42284         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42285         (struct gl_list_implementation): Add fields search_from_to,
42286         indexof_from_to. Remove fields search, indexof.
42287         (gl_list_search): Use the search_from_to method.
42288         (gl_list_search_from, gl_list_search_from_to): New functions.
42289         (gl_list_indexof): Use the indexof_from_to method.
42290         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42291         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42292         (gl_list_search_from, gl_list_search_from_to): New functions.
42293         (gl_list_indexof): Use the indexof_from_to method.
42294         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42295         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42296         gl_array_indexof. Add start_index, end_index arguments.
42297         (gl_array_search_from_to): Renamed from gl_array_search. Add
42298         start_index, end_index arguments.
42299         (gl_array_remove, gl_array_list_implementation): Update.
42300         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42301         gl_carray_indexof. Add start_index, end_index arguments.
42302         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42303         start_index, end_index arguments.
42304         (gl_carray_remove, gl_carray_list_implementation): Update.
42305         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42306         gl_linked_search. Add start_index, end_index arguments.
42307         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42308         start_index, end_index arguments.
42309         (gl_linked_remove): Update.
42310         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42311         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42312         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42313         field to 'size_t'.
42314         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42315         gl_tree_search. Add start_index, end_index arguments.
42316         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42317         start_index, end_index arguments.
42318         (gl_tree_remove): Update.
42319         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42320         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42321         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42322         function.
42323         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42324         gl_tree_search. Add start_index, end_index arguments.
42325         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42326         start_index, end_index arguments.
42327         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42328         Update.
42329         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42330
42331 2006-10-05  Bruno Haible  <bruno@clisp.org>
42332
42333         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42334
42335         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42336         fwriteerror_temp): New declarations.
42337         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42338         (descriptors): New variable.
42339         (cleanup): First, close the descriptors.
42340         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42341         fclose_temp, fwriteerror_temp): New functions.
42342
42343 2006-10-04  Jim Meyering  <jim@meyering.net>
42344
42345         * lib/fts.c (fts_open): Tiny comment change.
42346
42347 2006-10-04  Bruno Haible  <bruno@clisp.org>
42348
42349         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42350         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42351         gl_LOCK_BODY.
42352         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42353         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42354         gl_LOCK_EARLY_BODY.
42355         (gl_LOCK): Require gl_LOCK_BODY.
42356
42357 2006-10-04  Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42360         (gl_oset_search_atleast): New declaration.
42361         (struct gl_oset_implementation): Add field 'search_atleast'.
42362         (gl_oset_search_atleast): New inline function.
42363         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42364         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42365         (gl_array_oset_implementation): Update.
42366         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42367         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42368         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42369
42370 2006-10-04  Bruno Haible  <bruno@clisp.org>
42371
42372         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42373
42374 2006-10-03  Bruno Haible  <bruno@clisp.org>
42375
42376         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42377         from gl_avltreehash_list_implementation.
42378
42379 2006-10-03  Bruno Haible  <bruno@clisp.org>
42380
42381         * lib/gl_oset.c (gl_oset_add): Fix return type.
42382
42383 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42384
42385         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42386
42387 2006-10-02  Eric Blake  <ebb9@byu.net>
42388
42389         * modules/strnlen (Depends-on): Add extensions.
42390
42391 2006-10-02  Eric Blake  <ebb9@byu.net>
42392
42393         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42394         definition in 2.60+.
42395
42396 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42397
42398         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42399         checks.
42400
42401 2006-10-02  Bruno Haible  <bruno@clisp.org>
42402
42403         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42404         to the AUTOMAKE_OPTIONS.
42405         Reported by Jim Meyering.
42406
42407 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42408
42409         Work around bug in Solaris 10 /proc file system:
42410         /proc/self/fd/NNN/.. isn't the parent directory of
42411         the directory whose file descriptor is NNN.  This needs to
42412         be worked around at run time, not compile time, since a
42413         program might be built on Solaris 8, where things work, and
42414         run on Solaris 10.
42415         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42416         to use the following interface instead:
42417         (OPENAT_BUFFER_SIZE): New macro.
42418         (openat_proc_name): New function.
42419         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42420         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42421         Likewise.
42422         * lib/openat-proc.c: New file.
42423         * modules/openat (Files): Add lib/openat-proc.c.
42424         (Depends-on): Add same-inode, stdbool.
42425         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42426
42427 2006-09-29  Bruno Haible  <bruno@clisp.org>
42428
42429         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42430         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42431         argument. Set stdout_closed before testing for ferror, not after.
42432         (fwriteerror, fwriteerror_no_ebadf): New functions.
42433
42434 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42435
42436         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42437
42438 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42439
42440         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42441         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42442
42443 2006-09-28  Jim Meyering  <jim@meyering.net>
42444
42445         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42446         Include <unistd.h>.
42447
42448 2006-09-28  Bruno Haible  <bruno@clisp.org>
42449
42450         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42451         * modules/linkedhash-list (Depends-on): Likewise.
42452         * modules/rbtreehash-list (Depends-on): Likewise.
42453
42454 2006-09-28  Bruno Haible  <bruno@clisp.org>
42455
42456         * lib/strndup.h: Simplify the redefinition of strndup.
42457         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42458         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42459
42460 2006-09-28  Bruno Haible  <bruno@clisp.org>
42461
42462         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42463         * lib/gl_linkedhash_list.c: Likewise.
42464         * lib/gl_rbtreehash_list.c: Likewise.
42465
42466 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42467
42468         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42469         getaddrinfo.
42470
42471         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42472         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42473         it causes <stdio_ext.h> to cause a compile-time error.
42474         Problem reported by Nelson H. F. Beebe.
42475         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42476         of HAVE_DECL___PENDING.
42477
42478         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42479         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42480         declaration.
42481
42482 2006-09-27  Jim Meyering  <jim@meyering.net>
42483
42484         This file could end up with a definition for a function
42485         named __strndup, rather than rpl_strndup on a system with
42486         incomplete weak_alias support.
42487         * lib/strndup.c (strndup): Rename from __strndup.
42488         Remove #defines that used to map __strndup to strndup.
42489         Don't use K&R prototypes.
42490         Remove LIBC-related code, since this file is not sync'd with glibc.
42491         * lib/strndup.h: Revamp, accordingly.
42492         * m4/strndup.m4: Modernize.
42493
42494 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42495
42496         * modules/savewd (Depends-on): Add 'raise'.
42497         * lib/savewd.c: Include <signal.h>, for 'raise'.
42498
42499 2006-09-26  Jim Meyering  <jim@meyering.net>
42500
42501         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42502         when we detect Darwin 8.7.0's acl_get_file bug.
42503         Rearrange to perform the new (below) run-test while $LIBS
42504         contains any acl-related library.  Set USE_ACL at the end.
42505         (gl_ACL_GET_FILE): New function.
42506
42507 2006-09-26  Eric Blake  <ebb9@byu.net>
42508
42509         * lib/verror.c: Include <config.h> unconditionally.
42510
42511 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42512
42513         * modules/clock-time (Maintainer): Add self.
42514         * modules/getlogin_r (Depends-on): Add extensions.
42515
42516 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42517
42518         * modules/clock-time: New module.
42519         * modules/nanosleep (Depends-on): Add clock-time.
42520         * modules/gethrxtime (Depends-on): Likewise.
42521         * modules/gettime (Depends-on): Likewise.
42522         * modules/settime (Depends-on): Likewise.
42523
42524         * modules/fts-lgpl: Depend on openat.
42525         * modules/mkancesdirs: Depend on savewd.
42526         * modules/mkdir-p: Likewise.
42527
42528 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42529
42530         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42531
42532         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42533         `gl_have_arbitrary_file_name_length_limit' to
42534         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42535         actually works between configure runs.
42536
42537 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42538             Bruno Haible  <bruno@clisp.org>
42539
42540         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42541
42542 2006-09-25  Jim Meyering  <jim@meyering.net>
42543
42544         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42545         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42546
42547 2006-09-25  Eric Blake  <ebb9@byu.net>
42548
42549         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42550         exec's in 2006-09-18 patch when shuffling fds.
42551
42552 2006-09-25  Bruno Haible  <bruno@clisp.org>
42553
42554         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42555         Reported by Jim Meyering.
42556
42557 2006-09-24  Jim Meyering  <jim@meyering.net>
42558
42559         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42560         compare a pointer against a literal "0".  That caused failures with
42561         at least HP-UX's hpcc.
42562
42563 2006-09-22  Simon Josefsson  <jas@extundo.com>
42564
42565         * modules/gc-sha1:
42566         * modules/gc-md4:
42567         * modules/gc-hmac-sha1:
42568         * modules/gc-hmac-md5:
42569         * modules/gc-des:
42570         * modules/gc-arcfour: Distribute more files.
42571
42572 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42573
42574         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42575         (gl_linked_iterator_from_to): Initialize struct completely.
42576         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42577         (gl_tree_iterator_from_to): Likewise
42578         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42579         * lib/gl_array_list.c [lint] (gl_array_iterator)
42580         (gl_array_iterator_from_to): Likewise.
42581         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42582         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42583         (gl_carray_iterator_from_to): Likewise.
42584
42585         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42586         * lib/md4.c (md4_process_block): Remove unused variable.
42587         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42588         parentheses for clarity.
42589
42590 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42591
42592         * modules/bison-i18n (Depends-on): Add gettext.
42593
42594 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42595
42596         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42597         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42598         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42599         also add missing comma that caused broken test.
42600         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42601         stdlib.h, for `abort'.
42602         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42603         variables.
42604         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42605         include unistd.h if present, for `rmdir'.
42606         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42607         variables.
42608         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42609         in the process include standard headers for prototypes.
42610         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42611         gets declared on GNU/Linux.
42612         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42613         unistd.h, for `rmdir'.
42614         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42615
42616         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42617         always true.
42618         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42619
42620         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42621
42622 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42623
42624         * gnulib-tool (func_version): Create output all at once.  This
42625         may help avoid triggering unnecessary SIGPIPEs, and at any
42626         rate it doesn't hurt.
42627
42628 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42629             Bruno Haible  <bruno@clisp.org>
42630
42631         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42632         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42633         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42634
42635         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42636         (gl_FUNC_VASPRINTF): Invoke it.
42637
42638 2006-09-22  Bruno Haible  <bruno@clisp.org>
42639
42640         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42641         getloadavg.c as first argument.
42642
42643 2006-09-22  Bruno Haible  <bruno@clisp.org>
42644
42645         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42646         at the beginning of the gl_INIT macro.
42647         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42648         gl_GETLOADAVG.
42649
42650 2006-09-22  Bruno Haible  <bruno@clisp.org>
42651
42652         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42653         module.
42654         Suggested by Ralf Wildenhues.
42655
42656 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42657
42658         Import this patch from libc:
42659
42660         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42661
42662         * lib/regex_internal.c (re_string_reconstruct): Handle
42663         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42664         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42665         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42666         re_string_context_at.
42667
42668         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42669         now requires it.
42670         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42671         gl_REGEX now does it for us.
42672         (gl_REGEX): Add test taken from
42673         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42674
42675         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42676         Check that large offsets work.  Modernize Autoconf usages.
42677         Prefer "yes" to mean a good thing rather than a bad.
42678         Don't put "#define mkstemp" in config.h, as this might interfere
42679         with standard system headers that "#define mkstemp mkstemp64".
42680
42681         * modules/mkstemp (Depends-on): Add extensions, so that
42682         mkstemp is visible on some platforms.
42683         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42684         (Include): Change to "mkstemp.h" from <stdlib.h>.
42685         (Files): Add mkstemp.h.
42686
42687         * lib/mkstemp.h: New file, since some standard headers
42688         #define mkstemp.
42689         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42690         Include "mkstemp.h".
42691         Make the _LIBC code resemble glibc original more,
42692         e.g., use K&R style.
42693         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42694         (mkstemp): Remove, since mkstemp.h does this for us.
42695         * lib/stdlib--.h: Include mkstemp.h.
42696
42697         Import this patch from libc:
42698
42699         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42700
42701         * lib/tempname.c (__gen_tempname): Change attempts_min
42702         into a macro.  Use preprocessor to decide how to initialize
42703         attempts [Coverity CID 67].
42704
42705 2006-09-20  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/mkdtemp.c: Import from libc.
42708         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42709                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42710                 attempts_min into a macro.  Use preprocessor to decide how to
42711                 initialize attempts [Coverity CID 67].
42712         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42713                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42714                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42715
42716 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42717
42718         * gnulib-tool (func_exit): New function, to allow to pass the
42719         exit status portably through the trap.  Use everywhere.
42720         (--help, --version): Signal a write error.
42721         (trap): catch SIGPIPE, for write errors.
42722         Exit at the end of the trap, with the correct exit status.
42723
42724 2006-09-19  Karl Berry  <karl@gnu.org>
42725
42726         * doc/gnulib.texi: note about the license texinfo files.
42727
42728 2006-09-19  Eric Blake  <ebb9@byu.net>
42729
42730         * gnulib-tool: Avoid space-tab.
42731
42732 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42733
42734         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42735         that prevented coreutils 6.1 from building.  Problem reported
42736         by Petter Reinholdtsen.
42737
42738 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42739
42740         * gnulib-tool (avoidlist): Fix typo that broke options like
42741         --avoid=lock that are used by coreutils bootstrap.
42742
42743 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42744
42745         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42746         more systematically.
42747
42748 2006-09-18  Jim Meyering  <jim@meyering.net>
42749
42750         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42751
42752 2006-09-18  Bruno Haible  <bruno@clisp.org>
42753
42754         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42755
42756 2006-09-18  Bruno Haible  <bruno@clisp.org>
42757
42758         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42759         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42760         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42761         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42762         * m4/gettext.m4: Require autoconf >= 2.52.
42763         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42764         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42765         of gl_cv_header_inttypes_h.
42766
42767 2006-09-18  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/javaversion.c: Include configmake.h.
42770
42771 2006-09-18  Bruno Haible  <bruno@clisp.org>
42772
42773         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42774         avoid that the while loops be executed in a subshell.
42775
42776 2006-09-18  Bruno Haible  <bruno@clisp.org>
42777
42778         * MODULES.html.sh (func_module): Break long lines.
42779         Suggested by Bruce Korb <bkorb@gnu.org>.
42780
42781 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42782
42783         Speed up by a factor of 1.12.
42784         * gnulib-tool (nl): New variable.
42785         (func_import): Rewrite include directive extraction to only read each
42786         directive once.
42787
42788 2006-09-17  Bruno Haible  <bruno@clisp.org>
42789
42790         * modules/javaversion (Makefile.am): Remove DEFS setting.
42791         (Depends-on): Add configmake, for PKGDATADIR definition.
42792
42793 2006-09-17  Bruno Haible  <bruno@clisp.org>
42794
42795         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42796
42797 2006-09-17  Bruno Haible  <bruno@clisp.org>
42798
42799         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42800         (func_modules_transitive_closure, func_modules_add_dummy,
42801         func_modules_to_filelist, func_import, func_create_testdir,
42802         func_create_megatestdir, ...): Use it wherever possible.
42803         Suggested by Ralf Wildenhues.
42804
42805 2006-09-16  Karl Berry  <karl@gnu.org>
42806
42807         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42808         to avoid sectioning errors.
42809         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42810         [ifinfo]: blank line after @center-ed titles.
42811         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42812         Spell FSF address consistently with others.
42813         (These changes approved by rms.)
42814
42815 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42816
42817         Speed up by a factor of 1.61.
42818         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42819         already checked module names again.
42820
42821 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42822
42823         Speed up by a factor of 1.13.
42824         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42825         for new_files, and the input to func_add_or_update.
42826
42827 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42828
42829         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42830         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42831
42832 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42833
42834         * modules/mkancesdirs (Depends-on): Add fcntl.
42835         * modules/savewd: New file.
42836         * MODULES.html.sh (File system functions): Add savewd.
42837
42838         * modules/configmake (Makefile.am): Add support for the
42839         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42840
42841 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42842
42843         * m4/savewd.m4: New file.
42844
42845 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42846
42847         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42848         (dirchownmod): New arg FD.  All callers changed.
42849         Use FD rather than opening the directory ourself, as opening is
42850         now the caller's responsibility.
42851         * lib/dirchownmod.h: Likewise.
42852         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42853         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42854         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42855         (test_dir): Remove.
42856         (mkancesdirs): Return length of prefix of FILE that has already
42857         been made, or -2 if there is a child doing the work.  Redo
42858         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42859         ".", and treat ".." specially since it might stray back into
42860         already-created areas.  Use a subprocess if necessary.  New arg
42861         WD; all users changed.  MAKE_DIR function should now return 1
42862         if it creates a directory that is not readable.  Return -2 if
42863         a child process is spun off.
42864         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42865         Adjust signature to match code.
42866         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42867         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42868         all users changed.
42869         * lib/savewd.c, lib/savewd.h: New files.
42870
42871 2006-09-15  Jim Meyering  <jim@meyering.net>
42872
42873         * modules/rename-dest-slash: New module.
42874         * MODULES.html.sh (posix_compat): Add it here.
42875
42876         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42877
42878 2006-09-15  Jim Meyering  <jim@meyering.net>
42879
42880         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42881         file.
42882
42883         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42884
42885 2006-09-15  Jim Meyering  <jim@meyering.net>
42886
42887         * lib/rename-dest-slash.c (has_trailing_slash): Use
42888         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42889         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42890         test before testing whether SRC is a directory.
42891         Suggestions from Bruno Haible.
42892
42893         Avoid a warning about an unused variable.
42894         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42895         into the #ifdef block where it's used.
42896
42897         * lib/rename-dest-slash.c: New file.
42898
42899 2006-09-14  Bruno Haible  <bruno@clisp.org>
42900
42901         * lib/allocsa.c: Include <config.h> unconditionally.
42902         * lib/asnprintf.c: Likewise.
42903         * lib/asprintf.c: Likewise.
42904         * lib/c-strcasecmp.c: Likewise.
42905         * lib/c-strcasestr.c: Likewise.
42906         * lib/c-strncasecmp.c: Likewise.
42907         * lib/c-strstr.c: Likewise.
42908         * lib/classpath.c: Likewise.
42909         * lib/clean-temp.c: Likewise.
42910         * lib/concatpath.c: Likewise.
42911         * lib/copy-file.c: Likewise.
42912         * lib/csharpcomp.c: Likewise.
42913         * lib/csharpexec.c: Likewise.
42914         * lib/execute.c: Likewise.
42915         * lib/fatal-signal.c: Likewise.
42916         * lib/findprog.c: Likewise.
42917         * lib/fwriteerror.c: Likewise.
42918         * lib/gl_array_list.c: Likewise.
42919         * lib/gl_array_oset.c: Likewise.
42920         * lib/gl_avltree_list.c: Likewise.
42921         * lib/gl_avltree_oset.c: Likewise.
42922         * lib/gl_avltreehash_list.c: Likewise.
42923         * lib/gl_carray_list.c: Likewise.
42924         * lib/gl_linked_list.c: Likewise.
42925         * lib/gl_linkedhash_list.c: Likewise.
42926         * lib/gl_list.c: Likewise.
42927         * lib/gl_oset.c: Likewise.
42928         * lib/gl_rbtree_list.c: Likewise.
42929         * lib/gl_rbtree_oset.c: Likewise.
42930         * lib/gl_rbtreehash_list.c: Likewise.
42931         * lib/imaxabs.c: Likewise.
42932         * lib/imaxdiv.c: Likewise.
42933         * lib/javacomp.c: Likewise.
42934         * lib/javaexec.c: Likewise.
42935         * lib/javaversion.c: Likewise.
42936         * lib/linebreak.c: Likewise.
42937         * lib/localcharset.c: Likewise.
42938         * lib/lock.c: Likewise.
42939         * lib/mbchar.c: Likewise.
42940         * lib/mbswidth.c: Likewise.
42941         * lib/mkdtemp.c: Likewise.
42942         * lib/pipe.c: Likewise.
42943         * lib/printf-args.c: Likewise.
42944         * lib/printf-parse.c: Likewise.
42945         * lib/progname.c: Likewise.
42946         * lib/progreloc.c: Likewise.
42947         * lib/readlink.c: Likewise.
42948         * lib/sh-quote.c: Likewise.
42949         * lib/stpcpy.c: Likewise.
42950         * lib/stpncpy.c: Likewise.
42951         * lib/strcasecmp.c: Likewise.
42952         * lib/strcasestr.c: Likewise.
42953         * lib/strcspn.c: Likewise.
42954         * lib/striconv.c: Likewise.
42955         * lib/strncasecmp.c: Likewise.
42956         * lib/strnlen1.c: Likewise.
42957         * lib/strstr.c: Likewise.
42958         * lib/strtok_r.c: Likewise.
42959         * lib/tls.c: Likewise.
42960         * lib/tmpdir.c: Likewise.
42961         * lib/unicodeio.c: Likewise.
42962         * lib/unsetenv.c: Likewise.
42963         * lib/vasnprintf.c: Likewise.
42964         * lib/vasprintf.c: Likewise.
42965         * lib/wait-process.c: Likewise.
42966         * lib/xallocsa.c: Likewise.
42967         * lib/xsetenv.c: Likewise.
42968         * lib/xstriconv.c: Likewise.
42969
42970 2006-09-13  Simon Josefsson  <jas@extundo.com>
42971
42972         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42973         that internally, suggested by Ralf Wildenhues
42974         <Ralf.Wildenhues@gmx.de>.
42975
42976 2006-09-13  Simon Josefsson  <jas@extundo.com>
42977
42978         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42979         @LIBOBJS@.
42980         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42981
42982 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42983
42984         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42985         longer worry about uses that don't define HAVE_CONFIG_H.
42986         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42987         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42988         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42989         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42990         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42991         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42992         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42993         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42994         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42995         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42996         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42997         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42998         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42999         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43000         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43001         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43002         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43003         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43004         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43005         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43006         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43007         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43008         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43009         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43010         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43011         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43012         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43013         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43014         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43015         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43016         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43017         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43018         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43019         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43020         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43021         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43022         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43023         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43024         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43025         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43026         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43027         Likewise.
43028
43029 2006-09-13  Eric Blake  <ebb9@byu.net>
43030
43031         * lib/getopt.c: Fix typo in last commit.
43032
43033 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43034
43035         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43036         dgettext.
43037
43038 2006-09-12  Jim Meyering  <jim@meyering.net>
43039
43040         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43041         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43042         Reported by Nelson H. F. Beebe.
43043
43044 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43045
43046         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43047         program_invocation_name and program_invocation_short_name are
43048         initialized.
43049         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43050         and program_invocation_short_name to argp.h, so they are visible
43051         to user programs.
43052         * lib/argp.h: Likewise
43053
43054 2006-09-10  Bruno Haible  <bruno@clisp.org>
43055
43056         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43057         m4/inttypes_h.m4, m4/uintmax_t.m4.
43058
43059 2006-09-10  Bruno Haible  <bruno@clisp.org>
43060
43061         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43062         gl_AC_TYPE_UINTMAX_T.
43063
43064 2006-09-10  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43067
43068 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43069
43070         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43071         convention.  Text proposed by Bruno Haible.
43072         (struct argp_option): Document the use of N_() wrappers.
43073
43074         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43075         '\v', and translate the two parts separately, instead of feeding
43076         the whole string to gettext.  This allows to exclude
43077         '\v' from the strings visible to the translator by writing doc
43078         strings as N_("..") "\v" N_("..").
43079
43080 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43081
43082         * config/srclist.txt: Undo latest change; the bug was fixed.
43083
43084 2006-09-09  Bruno Haible  <bruno@clisp.org>
43085
43086         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43087         assignments if building a library without libtool.
43088         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43089         in func_emit_lib_Makefile_am.
43090         (func_import): When building a static library libfoo.a, arrange to
43091         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43092         (func_create_testdir): Likewise.
43093         * modules/gc (configure.ac, Makefile.am): If building statically,
43094         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43095         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43096         * modules/striconv (configure.ac, Makefile.am): Likewise.
43097         Based on a suggestion by Ralf Wildenhues.
43098
43099 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43100
43101         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43102         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43103         Also:
43104
43105         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43106         Add year_2050_test to catch glibc bug 2821
43107         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43108
43109         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43110         Prefer #ifdef to #if.
43111
43112         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43113         Return from 'main' instead of calling 'exit'.
43114
43115 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43116
43117         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43118         returned the maximum time_t value rather than (time_t) -1.
43119         Problem originally reported by William Bardwell
43120         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43121
43122         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43123         Moved to here ...
43124         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43125         ... from here.
43126
43127 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43128
43129         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43130         2821 is fixed.
43131
43132 2006-09-08  Jim Meyering  <jim@meyering.net>
43133
43134         Don't make generated files read-only.  That would bother too many
43135         people.  However, do retain the ability to work when targets are
43136         read-only: remove the destination and temporary files before writing
43137         them (when generated via sed or echo), or by using the -f option for
43138         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43139         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43140         * modules/byteswap, modules/configmake, modules/fcntl:
43141         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43142         * modules/localcharset, modules/netinet_in, modules/poll:
43143         * modules/stdbool, modules/stdint, modules/sys_select:
43144         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43145
43146 2006-09-08  Jim Meyering  <jim@meyering.net>
43147
43148         Avoid new build failure on FreeBSD 6.0.
43149         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43150         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43151         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43152
43153 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43154
43155         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43156
43157 2006-09-07  Jim Meyering  <jim@meyering.net>
43158
43159         Fix global typo in last change: use chmod u-w, not chmod u-x.
43160         Spotted by Paul Eggert and Bruce Korb.
43161         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43162         * modules/byteswap, modules/configmake, modules/fcntl:
43163         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43164         * modules/localcharset, modules/netinet_in, modules/poll:
43165         * modules/stdbool, modules/stdint, modules/sys_select:
43166         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43167
43168 2006-09-06  Jim Meyering  <jim@meyering.net>
43169
43170         Make generated files be read-only.
43171         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43172         Ensure that each generated file is now read-only.
43173         * modules/argz: Likewise.
43174         * modules/arpa_inet: Likewise.
43175         * modules/byteswap: Likewise.
43176         * modules/configmake: Likewise.
43177         * modules/fcntl: Likewise.
43178         * modules/fnmatch: Likewise.
43179         * modules/getopt: Likewise.
43180         * modules/glob: Likewise.
43181         * modules/inttypes: Likewise.
43182         * modules/netinet_in: Likewise.
43183         * modules/poll: Likewise.
43184         * modules/stdbool: Likewise.
43185         * modules/stdint: Likewise.
43186         * modules/sys_select: Likewise.
43187         * modules/sys_socket: Likewise.
43188         * modules/sys_stat: Likewise.
43189         * modules/sysexits: Likewise.
43190         * modules/localcharset: Same as above, but continue using temporary
43191         file named "t-$@" (why different?) rather than the "$@-t" used
43192         everywhere else.
43193
43194         * modules/sysexits (Makefile.am): Replace literal occurrences
43195         of "sysexit.h" more readable, and more consistent, "$@".
43196
43197 2006-09-06  Bruno Haible  <bruno@clisp.org>
43198
43199         * modules/striconv: New file.
43200         * modules/xstriconv: New file.
43201         * MODULES.html.sh (Internationalization functions): Add striconv,
43202         xstriconv.
43203
43204 2006-09-06  Bruno Haible  <bruno@clisp.org>
43205
43206         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43207         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43208         not using libtool correctly.
43209
43210 2006-09-06  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/striconv.h: New file.
43213         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43214         iconvstring.c.
43215         * lib/xstriconv.h: New file.
43216         * lib/xstriconv.c: New file.
43217
43218 2006-09-06  Bruno Haible  <bruno@clisp.org>
43219
43220         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43221         lib_..._LDFLAGS.
43222
43223 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43224
43225         * lib/argz_.h: Sync from Libtool.
43226
43227         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43228                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43229
43230         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43231
43232 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43233
43234         * modules/trim: New file.
43235
43236 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43237
43238         * lib/trim.h: New file.
43239         * lib/trim.c: New file.
43240
43241 2006-09-05  Bruno Haible  <bruno@clisp.org>
43242
43243         * MODULES.html.sh (String handling): Add trim.
43244
43245 2006-09-04  Karl Berry  <karl@gnu.org>
43246
43247         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43248         until next release.
43249
43250 2006-09-03  Bruno Haible  <bruno@clisp.org>
43251
43252         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43253         correctly.
43254
43255 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43256
43257         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43258         not gl_GETLOADAVG.  Omit unneeded semicolons.
43259         Problems reported by Ralf Wildenhues in
43260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43261         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43262         at the end, which is the usual gnulib style.
43263
43264         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43265         of doing all the work ourselves.
43266         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43267         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43268
43269 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43270
43271         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43272         Problem reported by Ralf Wildenhues in
43273         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43274
43275         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43276         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43277
43278 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43279
43280         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43281         yesterday's patch by changing test -n to test -z.
43282
43283 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43284
43285         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43286         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43287         the former is now obsolescent.
43288
43289         * modules/chdir-long (Depends-on): Add fcntl.
43290
43291 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43292
43293         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43294         obsolescent, and programs should use gnulib instead.
43295         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43296         but with prefixes changed.
43297
43298 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43299
43300         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43301         or stdbool.h, because they might not exist while configuring.
43302
43303         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43304         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43305         does that for us.
43306         (O_DIRECTORY): Remove.
43307
43308 2006-08-31  Eric Blake  <ebb9@byu.net>
43309
43310         * gnulib-tool: Don't let emacs change spaces to TAB.
43311
43312 2006-08-31  Bruno Haible  <bruno@clisp.org>
43313
43314         * gnulib-tool: When calling func_import more than once, do it in a
43315         subshell.
43316         Reported by Eric Blake <ebb9@byu.net>.
43317
43318 2006-08-31  Bruno Haible  <bruno@clisp.org>
43319
43320         * gnulib-tool (nl): Remove variable.
43321         (sed_transform_lib_file): Use more robust test for config-h module.
43322         (func_import): Fix typo in 2006-08-25 patch.
43323
43324 2006-08-31  Bruno Haible  <bruno@clisp.org>
43325
43326         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43327         specified, augment Makefile.am variables instead of assigning them.
43328
43329 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43330
43331         Work around a bug in both the Linux and SunOS 64-bit kernels:
43332         nanosleep mishandles sleeps for longer than 2**31 seconds.
43333         Problem reported by Frank v Waveren in
43334         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43335         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43336         Check for nanosleep bug.
43337         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43338
43339 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43340
43341         Work around a bug in both the Linux and SunOS 64-bit kernels:
43342         nanosleep mishandles sleeps for longer than 2**31 seconds.
43343         Problem reported by Frank v Waveren in
43344         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43345         * lib/nanosleep.c (BILLION): New constant.
43346         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43347         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43348         implementation.
43349
43350 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43351
43352         * modules/nanosleep (Depends-on): Add gettime.
43353
43354 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43355         and Simon Josefsson  <jas@extundo.com>
43356         and Oskar Liljeblad  <oskar@osk.mine.nu>
43357
43358         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43359         * gnulib-tool (func_import): New license type 'unmodifiable license
43360         text'.
43361         * modules/fdl: Use it.  Longer description.
43362         * module/gpl, module/lgpl: New files.
43363
43364 2006-08-30  Jim Meyering  <jim@meyering.net>
43365
43366         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43367         shadowing the parameter.
43368
43369 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43370
43371         Sync from Libtool:
43372
43373         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43374
43375         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43376         sharing with gnulib.  Report by Eric Blake.
43377
43378 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43379
43380         * modules/isapipe: New file.
43381         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43382
43383 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43384
43385         * modules/configmake (Makefile.am): Add a comment, and omit
43386         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43387         by Bruno Haible.
43388
43389 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43390
43391         * m4/isapipe.m4: New file.
43392
43393 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43394
43395         * lib/isapipe.c, lib/isapipe.h: New files.
43396
43397 2006-08-29  Jim Meyering  <jim@meyering.net>
43398
43399         * modules/configmake (Makefile.am): Make configmake.h depend on
43400         Makefile.  Otherwise, a stale configmake.h could hang around.
43401
43402 2006-08-29  Eric Blake  <ebb9@byu.net>
43403
43404         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43405         resolution of upstream bug 3044.
43406
43407 2006-08-29  Bruno Haible  <bruno@clisp.org>
43408
43409         * modules/localcharset (Depends-on): Add configmake.
43410         (Makefile.am): Remove setting of LIBDIR through DEFS.
43411
43412 2006-08-29  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43415         defined.
43416
43417 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43418
43419         * modules/fcntl: New file.
43420         * modules/chdir-safer (Depends-on): Add fcntl.
43421         * modules/fts: Likewise.
43422         * modules/mkdir-p: Likewise.
43423
43424         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43425         This undoes the most recent change, since we're now addressing the
43426         problem in a different way.
43427
43428         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43429         into output, since the output might be called Makefile.am even
43430         if $makefile_name is something different.
43431         (func_import): Use $makefile_am rather than
43432         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43433         empty.
43434
43435         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43436
43437 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43438
43439         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43440         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43441         recent change to stdint.m4, since we're now addressing the problem in a
43442         different way.
43443
43444 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43445
43446         * m4/fcntl_h.m4: New file.
43447
43448 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43449
43450         * lib/fcntl_.h: New file.
43451         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43452         the fcntl module.
43453         * lib/dirchownmod.c: Likewise.
43454         * lib/fts.c: Likewise.
43455
43456         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43457         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43458         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43459         just before including <inttypes.h>, to avoid circular inclusion.
43460
43461 2006-08-28  Jim Meyering  <jim@meyering.net>
43462
43463         * doc/visibility.texi: Actually read and correct the grammar of the
43464         sentence affected by yesterday's change.
43465
43466 2006-08-28  Eric Blake  <ebb9@byu.net>
43467
43468         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43469         needs wrapper.
43470
43471 2006-08-28  Eric Blake  <ebb9@byu.net>
43472
43473         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43474
43475 2006-08-28  Eric Blake  <ebb9@byu.net>
43476
43477         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43478
43479 2006-08-28  Bruno Haible  <bruno@clisp.org>
43480
43481         * modules/c-strstr: New file, from GNU gettext.
43482         * MODULES.html.sh (String handling): Add c-strstr.
43483
43484 2006-08-28  Bruno Haible  <bruno@clisp.org>
43485
43486         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43487         macros.
43488         Reported by Eric Blake.
43489
43490 2006-08-28  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43493         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43494         * lib/vasprintf.c: Include errno.h, limits.h.
43495         (EOVERFLOW): New fallback definition.
43496         (vasprintf): Test here whether the string length is > INT_MAX.
43497         * lib/vsnprintf.c: Include errno.h, limits.h.
43498         (EOVERFLOW): New fallback definition.
43499         (vsnprintf): Fix bug when generated string was too long for the buffer.
43500         Test here whether the string length is > INT_MAX.
43501
43502 2006-08-28  Bruno Haible  <bruno@clisp.org>
43503
43504         * lib/inttypes_.h (SCNX*): Remove definitions.
43505         Reported by Eric Blake.
43506
43507 2006-08-28  Bruno Haible  <bruno@clisp.org>
43508
43509         * lib/c-strstr.h: New file, from GNU gettext.
43510         * lib/c-strstr.c: New file, from GNU gettext.
43511
43512 2006-08-28  Bruno Haible  <bruno@clisp.org>
43513
43514         * gnulib-tool: Reorder some statements.
43515
43516 2006-08-28  Bruno Haible  <bruno@clisp.org>
43517
43518         * gnulib-tool: New option --makefile-name.
43519         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43520         $makefile_name.
43521         (func_import): Write $makefile_name to the cache file, and read it from
43522         there unless explicitly specified. Use $makefile_name as file name
43523         instead of Makefile.am. Adjust the recommendations accordingly.
43524
43525 2006-08-28  Bruno Haible  <bruno@clisp.org>
43526
43527         * gnulib-tool (func_verify_module): Check against misapplying patch.
43528
43529 2006-08-28  Bruno Haible  <bruno@clisp.org>
43530
43531         * gnulib-tool (func_relativize, func_relconcat): New functions.
43532         Give an error if --local-dir is given with --update.
43533         Remove trailing slashes from $local_gnulib_dir.
43534         (func_import): Store the relativized $local_gnulib_dir in
43535         gnulib-cache.m4, and read it from there if not specified explicitly.
43536
43537 2006-08-28  Bruno Haible  <bruno@clisp.org>
43538
43539         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43540         is the current directory. Respect also $local_gnulib_dir.
43541
43542 2006-08-28  Bruno Haible  <bruno@clisp.org>
43543             Simon Josefsson  <jas@extundo.com>
43544
43545         BeOS portability.
43546         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43547
43548 2006-08-27  Jim Meyering  <jim@meyering.net>
43549
43550         * doc/visibility.texi: Remove duplicate word: "pointer".
43551
43552 2006-08-26  Bruno Haible  <bruno@clisp.org>
43553
43554         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43555         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43556         (Makefile.am): Create inttypes.h from inttypes_.h.
43557         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43558
43559         * modules/imaxabs: New file.
43560
43561         * modules/imaxdiv: New file.
43562
43563 2006-08-26  Bruno Haible  <bruno@clisp.org>
43564
43565         * m4/inttypes.m4: New file.
43566         * m4/_inttypes_h.m4: Remove file.
43567         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43568         PRI_MACROS_BROKEN.
43569         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43570
43571         * m4/imaxabs.m4: New file.
43572
43573         * m4/imaxdiv.m4: New file.
43574
43575 2006-08-26  Bruno Haible  <bruno@clisp.org>
43576
43577         * lib/inttypes_.h: New file.
43578         * lib/inttypes.h: Remove file.
43579         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43580
43581         * lib/imaxabs.c: New file.
43582
43583         * lib/imaxdiv.c: New file.
43584
43585 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43586
43587         New config-h module, so that "make" output needn't be cluttered
43588         by -DHAVE_CONFIG_H.
43589         * MODULES.html.sh (Support for building libraries and executables):
43590         Add config-h.
43591         * modules/config-h: New file.
43592         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43593         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43594         the config-h module is used.
43595
43596         New configmake module, so that "make" output needn't be cluttered
43597         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43598         * MODULES.html.sh (Support for building libraries and executables):
43599         Add configmake.
43600         * modules/configmake: New file.
43601
43602 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43603
43604         * m4/config-h.m4: New file.
43605
43606 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43607
43608         * config/srclist.txt: Add elisp-comp.
43609
43610 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43611
43612         * MODULES.html.sh (Support for building libraries and executables):
43613         Add elisp-comp.
43614         * build-aux/elisp-comp: New file.
43615         * modules/elisp-comp: New file.
43616
43617 2006-08-24  Bruno Haible  <bruno@clisp.org>
43618
43619         * gnulib-tool (func_create_testdir): Use non-default values of
43620         sourcebase and m4base.
43621
43622 2006-08-24  Bruno Haible  <bruno@clisp.org>
43623
43624         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43625         HTML structure.
43626
43627 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43628
43629         * modules/openat (Depends-on): Add lchown.
43630
43631 2006-08-23  Bruno Haible  <bruno@clisp.org>
43632
43633         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43634         of gl_LOCK_EARLY instead of gl_LOCK.
43635
43636 2006-08-23  Bruno Haible  <bruno@clisp.org>
43637
43638         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43639         on OSF/1 to no.
43640         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43641
43642 2006-08-23  Bruno Haible  <bruno@clisp.org>
43643
43644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43645         as unusable.
43646
43647         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43648         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43649         (gl_LOCK): New macro.
43650
43651 2006-08-22  Simon Josefsson  <jas@extundo.com>
43652
43653         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43654         to md5 module.
43655
43656 2006-08-22  Simon Josefsson  <jas@extundo.com>
43657
43658         * MODULES.html.sh: Add "Support for maintaining and release
43659         projects".
43660
43661         * build-aux/gnupload: New file, from coreutils.
43662
43663 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43664
43665         Avoid the need for AC_LIBSOURCES in m4 macros.
43666         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43667         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43668         * modules/check-version (EXTRA_DIST): Add check-version.h.
43669         * modules/crc (EXTRA_DIST): Add crc.h.
43670         * modules/des (EXTRA_DIST): Add des.h.
43671         * modules/gc (EXTRA_DIST): Add gc.h.
43672         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43673         * modules/getline (EXTRA_DIST): Add getline.h.
43674         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43675         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43676         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43677         * modules/md2 (EXTRA_DIST): Add md2.h.
43678         * modules/md4 (EXTRA_DIST): Add md4.h.
43679         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43680         * modules/read-file (EXTRA_DIST): Add read-file.h.
43681         * modules/readline (EXTRA_DIST): Add readline.h.
43682         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43683         rijndael-api-fst.h.
43684
43685 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43686
43687         * m4/rijndael.m4 (gl_ARCFOUR):
43688         * m4/arctwo.m4 (gl_ARCTWO):
43689         * m4/check-version.m4 (gl_CHECK_VERSION):
43690         * m4/crc.m4 (gl_CRC):
43691         * m4/des.m4 (gl_DES):
43692         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43693         * m4/gc.m4 (gl_GC):
43694         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43695         * m4/getline.m4 (gl_FUNC_GETLINE):
43696         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43697         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43698         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43699         * m4/md2.m4 (gl_MD2):
43700         * m4/md4.m4 (gl_MD4):
43701         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43702         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43703         * m4/readline.m4 (gl_FUNC_READLINE):
43704         * m4/rijndael.m4 (gl_RIJNDAEL):
43705         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43706         to get the necessary .h files and whatnot.
43707
43708 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43709
43710         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43711         gnulib rather than the other way around.
43712         * config/srclistvars.sh (COREUTILS): Remove.
43713
43714 2006-08-22  Jim Meyering  <jim@meyering.net>
43715
43716         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43717
43718         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43719
43720 2006-08-22  Eric Blake  <ebb9@byu.net>
43721
43722         * modules/regexprops-generic: New file.
43723         * MODULES.html.sh (Support for building documentation): List it.
43724
43725 2006-08-22  Eric Blake  <ebb9@byu.net>
43726
43727         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43728         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43729         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43730         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43731
43732 2006-08-22  Bruno Haible  <bruno@clisp.org>
43733
43734         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43735         and lib_LTLIBRARIES like the other lib_* variables.
43736
43737 2006-08-22  Bruno Haible  <bruno@clisp.org>
43738
43739         * build-aux/x-to-1.in: New file, from GNU gettext.
43740
43741 2006-08-22  Bruno Haible  <bruno@clisp.org>
43742
43743         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43744         <utmpx.h> exists.
43745
43746 2006-08-22  Bruno Haible  <bruno@clisp.org>
43747
43748         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43749         <utmpx.h> exists.
43750
43751 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43752
43753         BeOS portability.
43754         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43755         exist.
43756         Problem reported by Bruno Haible.
43757
43758 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43759
43760         Avoid the need for AC_LIBSOURCES in m4 macros.
43761         * modules/acl (EXTRA_DIST): Add acl.h.
43762         * modules/argmatch (Files): Add m4/argmatch.m4.
43763         (configure.ac): Add gl_ARGMATCH.
43764         (EXTRA_DIST): Renamed from lib_SOURCES, for
43765         consistency with the other modules.  Remove argmatch.c.
43766         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43767         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43768         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43769         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43770         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43771         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43772         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43773         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43774         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43775         * modules/closeout (EXTRA_DIST): Add closeout.h.
43776         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43777         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43778         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43779         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43780         dirname.h; remove basename.c and stripslash.c.
43781         * modules/exclude (EXTRA_DIST): Add exclude.h.
43782         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43783         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43784         * modules/file-type (EXTRA_DIST): Add file-type.h.
43785         * modules/filemode (EXTRA_DIST): Add filemode.h.
43786         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43787         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43788         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43789         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43790         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43791         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43792         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43793         * modules/getdate (EXTRA_DIST): Add getdate.c.
43794         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43795         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43796         * modules/getpass (EXTRA_DIST): Add getpass.h.
43797         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43798         * modules/group-member (EXTRA_DIST): Add group-member.h.
43799         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43800         * modules/hash (EXTRA_DIST): Add hash.h.
43801         * modules/human (EXTRA_DIST): Add human.h.
43802         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43803         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43804         * modules/lchown (EXTRA_DIST): Add lchown.h.
43805         * modules/long-options (EXTRA_DIST): Add long-options.h.
43806         * modules/lstat (EXTRA_DIST): Add lstat.h.
43807         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43808         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43809         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43810         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43811         * modules/memxor (EXTRA_DIST): Add memxor.h.
43812         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43813         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43814         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43815         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43816         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43817         * modules/physmem (EXTRA_DIST): Add physmem.h.
43818         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43819         * modules/posixver (EXTRA_DIST): Add posixver.h.
43820         * modules/quote (EXTRA_DIST): Add quote.h.
43821         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43822         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43823         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43824         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43825         regex_internal.h regexec.c.
43826         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43827         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43828         * modules/same (EXTRA_DIST): Add same.h.
43829         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43830         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43831         * modules/savedir (EXTRA_DIST): Add savedir.h.
43832         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43833         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43834         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43835         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43836         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43837         * modules/strdup (EXTRA_DIST): Add strdup.h.
43838         * modules/strftime (EXTRA_DIST): Add strftime.h.
43839         * modules/strndup (EXTRA_DIST): Add strndup.h.
43840         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43841         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43842         * modules/time_r (EXTRA_DIST): Add time_r.h.
43843         * modules/timespec (EXTRA_DIST): Add timespec.h.
43844         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43845         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43846         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43847         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43848         * modules/userspec (EXTRA_DIST): Add userspec.h.
43849         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43850         * modules/utimens (EXTRA_DIST): Add utimens.h.
43851         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43852         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43853         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43854         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43855         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43856         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43857         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43858         * modules/yesno (EXTRA_DIST): Add yesno.h.
43859
43860 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43861
43862         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43863
43864         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43865         * m4/dev-ino.m4, same-inode.m4: Remove.
43866
43867         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43868         * m4/acl.m4 (AC_FUNC_ACL):
43869         * m4/backupfile.m4 (gl_BACKUPFILE):
43870         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43871         * m4/canon-host.m4 (gl_CANON_HOST):
43872         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43873         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43874         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43875         * m4/cloexec.m4 (gl_CLOEXEC):
43876         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43877         * m4/closeout.m4 (gl_CLOSEOUT):
43878         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43879         * m4/dirname.m4 (gl_DIRNAME):
43880         * m4/exclude.m4 (gl_EXCLUDE):
43881         * m4/exitfail.m4 (gl_EXITFAIL):
43882         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43883         * m4/file-type.m4 (gl_FILE_TYPE):
43884         * m4/filemode.m4 (gl_FILEMODE):
43885         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43886         * m4/fpending.m4 (gl_FUNC_FPENDING):
43887         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43888         * m4/fts.m4 (gl_FUNC_FTS):
43889         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43890         * m4/getdate.m4 (gl_GETDATE):
43891         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43892         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43893         * m4/getpass.m4 (gl_FUNC_GETPASS):
43894         * m4/gettime.m4 (gl_GETTIME):
43895         * m4/getugroups.m4 (gl_GETUGROUPS):
43896         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43897         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43898         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43899         * m4/hash.m4 (gl_HASH):
43900         * m4/idcache.m4 (gl_IDCACHE):
43901         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43902         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43903         * m4/long-options.m4 (gl_LONG_OPTIONS):
43904         * m4/lstat.m4 (gl_FUNC_LSTAT):
43905         * m4/md5.m4 (gl_MD5):
43906         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43907         * m4/memcoll.m4 (gl_MEMCOLL):
43908         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43909         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43910         * m4/memxor.m4 (gl_MEMXOR):
43911         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43912         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43913         * m4/modechange.m4 (gl_MODECHANGE):
43914         * m4/mountlist.m4 (gl_MOUNTLIST):
43915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43916         * m4/openat.m4 (gl_FUNC_OPENAT):
43917         * m4/pathmax.m4 (gl_PATHMAX):
43918         * m4/physmem.m4 (gl_PHYSMEM):
43919         * m4/posixtm.m4 (gl_POSIXTM):
43920         * m4/posixver.m4 (gl_POSIXVER):
43921         * m4/quote.m4 (gl_QUOTE):
43922         * m4/quotearg.m4 (gl_QUOTEARG):
43923         * m4/readtokens.m4 (gl_READTOKENS):
43924         * m4/readutmp.m4 (gl_READUTMP):
43925         * m4/regex.m4 (gl_REGEX):
43926         * m4/safe-read.m4 (gl_SAFE_READ):
43927         * m4/safe-write.m4 (gl_SAFE_WRITE):
43928         * m4/same.m4 (gl_SAME):
43929         * m4/save-cwd.m4 (gl_SAVE_CWD):
43930         * m4/savedir.m4 (gl_SAVEDIR):
43931         * m4/settime.m4 (gl_SETTIME):
43932         * m4/sha1.m4 (gl_SHA1):
43933         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43934         * m4/stat-macros.m4 (gl_STAT_MACROS):
43935         * m4/stat-time.m4 (gl_STAT_TIME):
43936         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43937         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43938         * m4/strdup.m4 (gl_FUNC_STRDUP):
43939         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43940         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43941         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43942         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43943         * m4/time_r.m4 (gl_TIME_R):
43944         * m4/timespec.m4 (gl_TIMESPEC):
43945         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43946         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43947         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43948         * m4/userspec.m4 (gl_USERSPEC):
43949         * m4/utimecmp.m4 (gl_UTIMECMP):
43950         * m4/utimens.m4 (gl_UTIMENS):
43951         * m4/xalloc.m4 (gl_XALLOC):
43952         * m4/xgetcwd.m4 (gl_XGETCWD):
43953         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43954         * m4/xreadlink.m4 (gl_XREADLINK):
43955         * m4/xstrtod.m4 (gl_XSTRTOD):
43956         * m4/yesno.m4 (gl_YESNO):
43957         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43958         to get the necessary .h files and whatnot.
43959
43960 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43961             Bruno Haible  <bruno@clisp.org>
43962
43963         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43964         /bin/sh understanding of '!' conditional negation.
43965
43966 2006-08-21  Jim Meyering  <jim@meyering.net>
43967
43968         * modules/openat (Depends-on): Really alphabetize.
43969
43970         * modules/acl (Depends-on): Add error and quote.
43971
43972         * check-module (find_included_lib_files): Add at-func.c to the
43973         ok-to-include-more-than-once white list.
43974
43975         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43976
43977 2006-08-21  Bruno Haible  <bruno@clisp.org>
43978
43979         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43980         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43981         Reported by Martin Lambers <marlam@marlam.de>.
43982
43983 2006-08-21  Bruno Haible  <bruno@clisp.org>
43984
43985         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43986         specify an installation location, don't emit a noinst_LIBRARIES or
43987         noinst_LTLIBRARIES assignment.
43988
43989 2006-08-21  Bruno Haible  <bruno@clisp.org>
43990
43991         BeOS portability.
43992         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43993         BeOS has mbrtowc() but no <wctype.h>.
43994
43995 2006-08-21  Bruno Haible  <bruno@clisp.org>
43996
43997         BeOS portability.
43998         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43999         exist.
44000
44001 2006-08-21  Bruno Haible  <bruno@clisp.org>
44002
44003         BeOS portability.
44004         * lib/mbchar.h: Include <wctype.h> only if it exists.
44005
44006 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44007
44008         Remove files that are no longer needed by their respective modules.
44009         * m4/obstack.m4: Remove.
44010         * m4/strerror_r.m4: Remove.
44011         * m4/uint32_t.m4: Remove.
44012         * m4/uintptr_t.m4: Remove.
44013         * m4/ullong_max.m4: Remove.
44014         * m4/xstrtoimax.m4: Remove.
44015         * m4/xstrtoumax.m4: Remove.
44016
44017         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44018         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44019         dependencies now capture this.
44020
44021         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44022         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44023         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44024         * m4/human.m4 (gl_HUMAN): Likewise.
44025         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44026         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44027
44028         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44029
44030         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44031         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44032         stdint.
44033         * m4/human.m4 (gl_HUMAN): Likewise.
44034         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44035         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44036         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44037         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44038         * m4/xstrtol (gl_XSTRTOL): Likewise.
44039
44040         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44041         AC_TYPE_LONG_LONG_INT.
44042         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44043         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44044         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44045         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44046
44047         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44048         on stdbool.
44049
44050         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44051         (gl_PREREQ_XSTRTOUL): Remove.
44052
44053         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44054
44055         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44056         mode.
44057
44058 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44059
44060         Add and change modules to make it easier for coreutils to use
44061         gnulib-tool.
44062         * modules/backupfile (Files): Remove m4/d-ino.m4.
44063         (Depends-on): Add d-ino.
44064         * modules/cycle-check (Depends-on): Add stdint.
44065         (lib_SOURCES): Add cycle-check.h.
44066         * modules/d-ino: New module.
44067         * modules/d-type: New module.
44068         * modules/error (Files): Remove m4/strerror_r.m4.
44069         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44070         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44071         m4/inttypes_h.m4, m4/uintmax_t.m4.
44072         (Depends-on): Add stdint.
44073         (lib_SOURCES): Add fsusage.h.
44074         * modules/getcwd (Files): Remove d-ino.m4.
44075         (Depends-on): Add d-ino.
44076         * modules/getndelim2 (Depends-on): Add stdint.
44077         * modules/glob (Files): Remove m4/d-type.m4.
44078         (Depends-on): Add d-type.
44079         * modules/host-os: New module.
44080         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44081         m4/inttypes_h.m4, m4/uintmax_t.m4.
44082         * Depends-on: Add stdint.
44083         (lib_SOURCES): Add human.h.
44084         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44085         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44086         m4/uintmax_t.m4, m4/ulonglong.m4.
44087         (Depends-on): Add stdint.
44088         (EXTRA_DIST): Add inttostr.h.
44089         * modules/lchmod: New module.
44090         * modules/link-follow: New module.
44091         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44092         (Depends-on): Add lchmod.
44093         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44094         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44095         (Depends-on): Add stdint.
44096         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44097         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44098         (Depends-on): Add stdint.
44099         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44100         * modules/perl: New module.
44101         * modules/regex (Depends-on): Add stdint.
44102         * modules/rmdir-errno: New module.
44103         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44104         m4/intmax_t.m4.
44105         (Depends-on): Add stdint.
44106         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44107         m4/uintmax_t.m4.
44108         (Depends-on): Add stdint.
44109         * modules/unlink-busy: New module.
44110         * modules/utimecmp (Depends-on): Add stdint.
44111         * modules/uptime: New module.
44112         * modules/winsz-ioctl: New module.
44113         * modules/winsz-termios: New module.
44114         * modules/xnanosleep (Depends-on): Add nanosleep.
44115         * modules/ullong_max: Remove.
44116         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44117         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44118         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44119         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44120         (Depends-on): Add inttypes.
44121         (lib_SOURCES): Add xstrtol.h.
44122         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44123         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44124         * MODULES.html.sh: Move 'assert' into the assert section.
44125         Move 'dummy' into the linking section.
44126         Remove ullong_max.
44127         Add section for compatibility checks for POSIX:2001 functions,
44128         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44129         winsz-ioctl, and winsz-termios into it.
44130         Add lchmod.
44131         Add top-level Misc section and put host-os, perl, and uptime
44132         into it.
44133
44134 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44137         now assume the stdint module.  Do not include inttypes.h.
44138         * lib/fsusage.h: Likewise.
44139         * lib/getndelim2.c: Likewise.
44140         * lib/human.h: Likewise.
44141         * lib/inttostr.h: Likewise.
44142         * lib/obstack.c: Likewise.
44143         * lib/regex_internal.h: Likewise.
44144         * lib/tempname.c: Likewise.
44145         * lib/utimecmp.c: Likewise.
44146         * lib/xstrtol.h: Likewise.
44147
44148         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44149
44150         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44151         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44152         * lib/xtime.h: Likewise.
44153
44154 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44155
44156         * modules/openat (Files): Add lib/fchmodat.c.
44157         Fixes problem reported by Jay Youngman.
44158
44159 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44160
44161         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44162         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44163
44164 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44165             Bruno Haible  <bruno@clisp.org>
44166
44167         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44168         and is a script that invokes bison. Tighten the code. Add comments.
44169
44170 2006-08-18  Jim Meyering  <jim@meyering.net>
44171
44172         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44173         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44174         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44175         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44176
44177 2006-08-18  Bruno Haible  <bruno@clisp.org>
44178
44179         * modules/bison-i18n: New file.
44180         * MODULES.html.sh (Internationalization functions): Add it.
44181
44182 2006-08-18  Bruno Haible  <bruno@clisp.org>
44183
44184         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44185         sys/statvfs.h. When getmntinfo was found, check its declaration and
44186         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44187
44188 2006-08-18  Bruno Haible  <bruno@clisp.org>
44189
44190         * m4/bison-i18n.m4: New file, from bison.
44191
44192 2006-08-18  Bruno Haible  <bruno@clisp.org>
44193
44194         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44195         (ME_DUMMY): Treat "kernfs" as a dummy.
44196         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44197
44198 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44199
44200         Update from coreutils.
44201
44202         2006-08-15  Jim Meyering  <jim@meyering.net>
44203
44204         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44205
44206         2006-01-17  Jim Meyering  <jim@meyering.net>
44207
44208         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44209
44210         2006-01-11  Jim Meyering  <jim@meyering.net>
44211
44212         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44213         Check for the lchmod function.
44214
44215 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44216
44217         Update from coreutils.
44218
44219         * lib/__fpending.h: Add copyright notice.
44220         * lib/fprintftime.h: Likewise.
44221         * lib/savedir.c: Use (C) in copyright notice.
44222         * lib/savedir.h: Likewise.
44223
44224         2006-08-15  Jim Meyering  <jim@meyering.net>
44225
44226         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44227         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44228         in support of the EXPECTED_ERRNO macro.
44229         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44230         definitions.  Instead, define the appropriate symbols and include
44231         "at-func.c".
44232         * lib/mkdirat.c (mkdirat): Likewise.
44233         * lib/fchmodat.c (fchmodat): Likewise.
44234         (ENOSYS): Remove definition.
44235         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44236         it.  Don't include "unistd--.h" -- it wasn't ever used.
44237
44238         2006-01-17  Jim Meyering  <jim@meyering.net>
44239
44240         Rewrite fts.c not to change the current working directory,
44241         by using openat, fstatat, fdopendir, etc..
44242
44243         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44244         (HAVE_OPENAT_SUPPORT): Define.
44245         [_LIBC] (fchdir): Don't undef or define; no longer used.
44246         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44247         Now, this `function' always succeeds, and consumes its file descriptor
44248         parameter -- so callers must not close such FDs.  Update callers.
44249         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44250         (diropen): Add parameter, SP.  Adjust all callers.
44251         Implement using diropen_fd, rather than open.
44252         (fts_open): Initialize new member, fts_cwd_fd.
44253         Remove fts_rft-setting code.
44254         (fts_close): Close fts_cwd_fd, if necessary.
44255         (__opendir2): Define in terms of opendir or opendirat,
44256         depending on whether the FST_NOCHDIR flag is set.
44257         (fts_build): Since fts_safe_changedir consumes its FD, and since
44258         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44259         and close the dup'd file descriptor upon failure.
44260         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44261         (fts_safe_changedir): Tweak semantics to reflect that this function
44262         now calls cwd_advance_fd and hence consumes its FD argument.
44263         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44264         [struct FTS] (fts_rft): Remove now-unused member.
44265         [struct FTS] (fts_cycle.state): Improve comment.
44266
44267         * lib/openat.c (openat_needs_fchdir): New function.
44268         * lib/openat.h (openat_needs_fchdir): Declare it.
44269
44270 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44271
44272         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44273         Problem and fix reported by Pádraig Brady in
44274         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44275
44276 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44277
44278         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44279
44280 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44281
44282         * lib/memcoll.c (memcoll): Optimize for the common case where the
44283         arguments are bytewise equal.
44284
44285 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44286
44287         * doc/regexprops-generic.texi: Add a copyright notice.
44288
44289 2006-08-15  Bruno Haible  <bruno@clisp.org>
44290
44291         * modules/tmpdir (License): Change to LGPL.
44292
44293 2006-08-15  Bruno Haible  <bruno@clisp.org>
44294
44295         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44296         module.
44297
44298 2006-08-14  Simon Josefsson  <jas@extundo.com>
44299
44300         * config/srclist.txt: Add gnupload.
44301
44302 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44303
44304         Change copyright notice from LGPL 2 to GPL 2, since that's the
44305         standard form used in the gnulib repository.
44306         * tests/test-lock.c: Likewise.
44307         * tests/test-stdint.c: Likewise.
44308         * tests/test-tls.c: Likewise.
44309
44310         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44311         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44312         Add copyright notice.
44313
44314         * check-module: Add copyright notice.  Output a copyright
44315         notice if "--version" is specified.
44316         * modules/COPYING: New file.
44317         * tests/test-getaddrinfo.c: Add copyright notice.
44318         * tests/test-verify.c: Likewise.
44319
44320 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44321
44322         Change copyright notice from LGPL 2 to GPL 2, since that's the
44323         standard form used in the gnulib repository.
44324         * lib/lock.c: LGPL -> GPL.
44325         * lib/lock.h: Likewise.
44326         * lib/strnlen1.c: Likewise.
44327         * lib/strnlen1.h: Likewise.
44328         * lib/tls.c: Likewise.
44329         * lib/tls.h: Likewise.
44330         * lib/tmpdir.c: Likewise.
44331
44332         * lib/TODO: Remove; this belongs only in coreutils.
44333
44334 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44335
44336         Add copyright notices to long-enough files that lack them, since
44337         otherwise the files aren't clearly free.  Use the same notice that
44338         getdate.texi already uses.
44339         * doc/alloca-opt.texi: Add copyright notice.
44340         * doc/alloca.texi: Likewise.
44341         * doc/ctime.texi: Likewise.
44342         * doc/functions.texi: Likewise.
44343         * doc/gcd.texi: Likewise.
44344         * doc/gnulib-tool.texi: Likewise.
44345         * doc/inet_ntoa.texi: Likewise.
44346         * doc/visibility.texi: Likewise.
44347
44348         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44349         * doc/quote.texi: Add copyright notice.
44350
44351         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44352         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44353         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44354         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44355         is now obsolete, and give a pointer to the Sun list.
44356         Add copyright notice.
44357
44358 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44359
44360         * config/srclistvars.sh: Add copyright notice.
44361
44362 2006-08-14  Eric Blake  <ebb9@byu.net>
44363
44364         Import the following change from libc:
44365
44366         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44367
44368         Upstream bug 2997.
44369         * lib/misc/error.c: Add space between program name and message if file
44370         name is missing.
44371
44372 2006-08-12  Karl Berry  <karl@gnu.org>
44373
44374         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44375         remove, these originate in gnulib now.
44376
44377 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44378
44379         * doc/Makefile (standards.info standards.html standards.dvi):
44380         Also depend on make-stds.texi.
44381
44382 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44383
44384         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44385         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44386
44387         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44388         in wchar_t.  Problem reported by Eric Blake.
44389
44390         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44391         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44392         Also, help the compiler to keep LEN in a register.
44393
44394 2006-08-11  Eric Blake  <ebb9@byu.net>
44395
44396         * users.txt: Sort.  Add tar.
44397
44398 2006-08-11  Bruno Haible  <bruno@clisp.org>
44399
44400         * users.txt: New file.
44401
44402 2006-08-11  Bruno Haible  <bruno@clisp.org>
44403
44404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44405         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44406
44407 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44408
44409         * modules/snprintf (Depends-on): Remove minmax.
44410         (Maintainer): Add self and Bruno.
44411
44412 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44413
44414         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44415         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44416         (EOVERFLOW): Define if the system does not.
44417         Do not include "minmax.h"; it wasn't used.
44418         (snprintf): Don't assume size_t promotes to an unsigned type.
44419         Fix bug when generated string was too long for the buffer: the
44420         buffer's contents are supposed to be the initial prefix of the
44421         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44422         exceeds INT_MAX; do the check ourselves.
44423
44424         Import the following changes from libc:
44425
44426         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44427
44428         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44429         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44430         set wc to the byte which couldn't be converted.
44431         (re_string_reconstruct): Don't clear valid_raw_len before calling
44432         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44433         tip_context using re_string_context_at.
44434
44435         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44436
44437         * lib/posix/regex.h: g++ still cannot handled [restrict].
44438
44439         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44440
44441         * lib/posix/regex.h: Remove special handling for VMS.
44442
44443 2006-08-10  Jim Meyering  <jim@meyering.net>
44444
44445         * modules/same-inode: New module.
44446         * modules/dev-ino: New module.
44447         * modules/cycle-check: Depend on these modules, rather than simply
44448         including their .h files.
44449         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44450         required via m4/cycle-check.m4.
44451         * modules/same: Depend on new same-inode module, rather than
44452         including same-inode.h.
44453         * modules/chdir-safer: New file.
44454
44455         * modules/chown (Depends-on): Add stat-macros.
44456
44457 2006-08-10  Jim Meyering  <jim@meyering.net>
44458
44459         * m4/cycle-check.m4: New file.
44460         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44461         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44462
44463 2006-08-10  Eric Blake  <ebb9@byu.net>
44464
44465         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44466         in from original proposal.
44467
44468 2006-08-10  Eric Blake  <ebb9@byu.net>
44469         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44470
44471         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44472         namespace.
44473
44474 2006-08-10  Bruno Haible  <bruno@clisp.org>
44475
44476         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44477         as well.
44478
44479 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44480
44481         Sync from coreutils.
44482
44483         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44484
44485         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44486         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44487
44488 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44489
44490         * modules/restrict: Remove; no longer needed now that we assume
44491         Autoconf 2.59 or later.
44492         * MODULES.html.sh: Remove 'restrict'.
44493         * modules/argp (Depends-on): Remove 'restrict'.
44494         * modules/base64 (Depends-on): Likewise.
44495         * modules/gc (Depends-on): Likewise.
44496         * modules/getaddrinfo (Depends-on): Likewise.
44497         * modules/glob (Depends-on): Likewise.
44498         * modules/inet_ntop (Depends-on): Likewise.
44499         * modules/inet_pton (Depends-on): Likewise.
44500         * modules/memxor (Depends-on): Likewise.
44501         * modules/regex (Depends-on): Likewise.
44502         * modules/strtok_r (Depends-on): Likewise.
44503         * modules/time_r (Depends-on): Likewise.
44504
44505 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44506
44507         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44508         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44509         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44510         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44511         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44512         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44513         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44514         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44515
44516         Merge from coreutils.
44517         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44518         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44519         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44520         * m4/time_r.m4 (gl_TIME_R): Likewise.
44521
44522 2006-08-09  Karl Berry  <karl@gnu.org>
44523
44524         * config/srclist.txt: no more gettext-tools, per Bruno.
44525
44526 2006-08-08  Eric Blake  <ebb9@byu.net>
44527
44528         * modules/verror: New module.
44529         * MODULES.html.sh: Document it.
44530
44531 2006-08-08  Eric Blake  <ebb9@byu.net>
44532
44533         * lib/verror.h, lib/verror.c: New files.
44534
44535 2006-08-08  Eric Blake  <ebb9@byu.net>
44536
44537         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44538         verror_at_line output complies with GNU Coding Standards even when
44539         file is NULL.
44540
44541 2006-08-07  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44544         versions of AIX.
44545         Reported by Ralf Wildenhues.
44546
44547 2006-08-07  Bruno Haible  <bruno@clisp.org>
44548
44549         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44550         in an AC_DEFUN. Needed so that the autoconf snippets can use
44551         AC_REQUIRE.
44552
44553 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44554
44555         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44556         Initialize pkgdata_DATA.
44557         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44558         overriding it.
44559
44560 2006-08-06  Eric Blake  <ebb9@byu.net>
44561
44562         * lib/error.h: Fold in some upstream changes from glibc.
44563         * lib/error.c: Likewise.
44564
44565 2006-08-04  Bruno Haible  <bruno@clisp.org>
44566
44567         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44568         Make the mostlyclean-local rule depend on mostlyclean-generic.
44569         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44570
44571 2006-07-31  Bruno Haible  <bruno@clisp.org>
44572
44573         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44574         <stdlib.h>, <string.h>.
44575
44576 2006-07-30  Bruno Haible  <bruno@clisp.org>
44577
44578         * modules/readlink (License): Change to LGPL.
44579
44580 2006-07-30  Bruno Haible  <bruno@clisp.org>
44581
44582         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44583         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44584         set PKGDATADIR to point to it.
44585
44586 2006-07-30  Bruno Haible  <bruno@clisp.org>
44587
44588         * modules/csharpexec (configure.ac): Comment out macro invocation.
44589         * modules/javaexec (configure.ac): Likewise.
44590         * modules/javacomp-script (configure.ac): Likewise.
44591
44592         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44593
44594 2006-07-30  Bruno Haible  <bruno@clisp.org>
44595
44596         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44597         linked-list.
44598
44599 2006-07-30  Bruno Haible  <bruno@clisp.org>
44600
44601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44602
44603 2006-07-30  Bruno Haible  <bruno@clisp.org>
44604
44605         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44606         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44607         get removed.
44608
44609 2006-07-29  Bruno Haible  <bruno@clisp.org>
44610
44611         Make it possible for gnulib-tool to work with locally modified or
44612         augmented gnulib repositories.
44613         * gnulib-tool (func_usage): Document --local-dir option.
44614         (local_gnulib_dir): New variable.
44615         Handle --local-dir option.
44616         (func_lookup_file): New function.
44617         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44618         (func_get_description, func_get_filelist, func_get_description,
44619         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44620         func_get_automake_snippet, func_get_include_directive,
44621         func_get_license, func_get_maintainer): Use func_lookup_file.
44622         (func_import, func_create_testdir): Use func_lookup_file.
44623
44624 2006-07-29  Bruno Haible  <bruno@clisp.org>
44625
44626         * modules/setenv (Depends-on): Add unistd.
44627
44628 2006-07-29  Bruno Haible  <bruno@clisp.org>
44629
44630         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44631
44632 2006-07-29  Bruno Haible  <bruno@clisp.org>
44633
44634         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44635
44636 2006-07-29  Bruno Haible  <bruno@clisp.org>
44637
44638         * gnulib-tool (import, update): If there is no Makefile.am, look at
44639         aclocal.m4, instead of bailing out.
44640
44641 2006-07-29  Bruno Haible  <bruno@clisp.org>
44642
44643         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44644         Categorize the options by when they are useful.
44645
44646 2006-07-29  Bruno Haible  <bruno@clisp.org>
44647
44648         * gnulib-tool (func_usage): Document option --no-libtool.
44649         Handle option --no-libtool.
44650         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44651         for changed semantics of $libtool variable.
44652         (func_import): Likewise. If libtool is not used, show this through
44653         an option --no-libtool.
44654         (func_create_testdir): Update.
44655
44656 2006-07-29  Bruno Haible  <bruno@clisp.org>
44657
44658         * gnulib-tool (func_import): Extend error message about missing
44659         --doc-base.
44660
44661 2006-07-29  Bruno Haible  <bruno@clisp.org>
44662
44663         * gnulib-tool (func_import): Don't create the $docbase directory if
44664         there is no file to store there.
44665
44666 2006-07-29  Bruno Haible  <bruno@clisp.org>
44667
44668         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44669         relevant, look for configure.ac there, not in the current directory.
44670         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44671
44672 2006-07-29  Bruno Haible  <bruno@clisp.org>
44673
44674         * gnulib-tool (SORT): New variable.
44675         (func_usage): Undocument --assume-autoconf option.
44676         Remove --assume-autoconf option handling.
44677         (autoconf_minversion): Determine from the contents of configure.ac.
44678         (func_import): Remove autoconf_minversion handling.
44679         Suggested by Eric Blake.
44680
44681 2006-07-29  Bruno Haible  <bruno@clisp.org>
44682
44683         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44684
44685 2006-07-29  Bruno Haible  <bruno@clisp.org>
44686
44687         * config/srclist.txt (*setenv.[ch]): Remove rules.
44688
44689 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44690
44691         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44692
44693 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44694
44695         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44696         arpa/inet.h.
44697
44698 2006-07-28  Simon Josefsson  <jas@extundo.com>
44699
44700         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44701         * modules/inet_pton (Depends-on): Likewise.
44702
44703 2006-07-28  Simon Josefsson  <jas@extundo.com>
44704
44705         * m4/netinet_in_h.m4: New file.
44706
44707 2006-07-28  Simon Josefsson  <jas@extundo.com>
44708
44709         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44710         #include's.
44711
44712 2006-07-28  Simon Josefsson  <jas@extundo.com>
44713
44714         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44715         #include's.
44716
44717 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44718
44719         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44720         setgid on directories only if they set these bits.
44721         * lib/modechange.h: Remove obsolete comment about masks.
44722
44723 2006-07-28  Eric Blake  <ebb9@byu.net>
44724
44725         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44726         macro expansion.
44727
44728 2006-07-28  Bruno Haible  <bruno@clisp.org>
44729
44730         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44731
44732 2006-07-28  Bruno Haible  <bruno@clisp.org>
44733
44734         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44735
44736 2006-07-28  Bruno Haible  <bruno@clisp.org>
44737
44738         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44739         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44740         Define fallbacks.
44741         Avoids link error on FreeBSD 4.x.
44742         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44743
44744         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44745         encoding.
44746         * lib/mbswidth.c (iswcntrl): Likewise.
44747
44748 2006-07-27  Bruno Haible  <bruno@clisp.org>
44749
44750         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44751         test.
44752
44753 2006-07-27  Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44756         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44757         defined.
44758
44759 2006-07-26  Eric Blake  <ebb9@byu.net>
44760
44761         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44762
44763 2006-07-26  Eric Blake  <ebb9@byu.net>
44764
44765         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44766         like mingw that lack mkstemp.
44767         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44768         avoid compilation warning on mingw.
44769
44770 2006-07-26  Bruno Haible  <bruno@clisp.org>
44771
44772         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44773         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44774         INT_FAST*_MIN, INTPTR_MIN.
44775
44776 2006-07-25  Bruno Haible  <bruno@clisp.org>
44777
44778         * modules/version-etc (Depends-on): Add stdarg.
44779
44780 2006-07-25  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44783         complex commands.
44784
44785 2006-07-25  Bruno Haible  <bruno@clisp.org>
44786
44787         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44788         defined in <stdarg.h> or config.h.
44789
44790 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44791
44792         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44793         (gl_STDIO_SAFER): Remove.
44794
44795 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44796
44797         * MODULES.html.sh (File stream based Input/Output):
44798         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44799         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44800         * modules/fopen-safer, modules/tmpfile-safer: New files.
44801         * modules/stdio-safer: Remove.
44802
44803 2006-07-24  Bruno Haible  <bruno@clisp.org>
44804
44805         * modules/tmpdir: New file.
44806         * MODULES.html.sh (File system functions): Add it.
44807
44808 2006-07-24  Bruno Haible  <bruno@clisp.org>
44809
44810         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44811         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44812
44813 2006-07-24  Bruno Haible  <bruno@clisp.org>
44814
44815         * modules/clean-temp: New file.
44816
44817 2006-07-24  Bruno Haible  <bruno@clisp.org>
44818
44819         * m4/tmpdir.m4: New file, from GNU gettext.
44820
44821 2006-07-24  Bruno Haible  <bruno@clisp.org>
44822
44823         * lib/tmpdir.h: New file, from GNU gettext.
44824         * lib/tmpdir.c: New file, from GNU gettext.
44825
44826 2006-07-24  Bruno Haible  <bruno@clisp.org>
44827
44828         * lib/clean-temp.h: New file, from GNU gettext.
44829         * lib/clean-temp.c: New file, from GNU gettext.
44830
44831 2006-07-23  Eric Blake  <ebb9@byu.net>
44832
44833         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44834         (Depends-on): Add binary-io.
44835
44836 2006-07-23  Eric Blake  <ebb9@byu.net>
44837
44838         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44839
44840 2006-07-23  Eric Blake  <ebb9@byu.net>
44841
44842         * lib/tmpfile-safer.c: New file.
44843         * lib/stdio-safer.h (fopen_safer): Add prototype.
44844         * lib/stdio--.h (tmpfile): Make safer.
44845
44846 2006-07-23  Bruno Haible  <bruno@clisp.org>
44847
44848         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44849         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44850         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44851         gl_linked_remove_at): Use it.
44852
44853 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44854         and Simon Josefsson <jas@extundo.com>
44855
44856         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44857
44858         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44859
44860 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44861
44862         * modules/close-stream: New file.
44863         * modules/closeout (Description): Make it clear that it exits
44864         with a diagnostic on error.
44865         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44866         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44867
44868 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         * m4/close-stream.m4: New file.
44871
44872 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44873
44874         * lib/close-stream.c, lib/close-stream.h: New files.
44875
44876 2006-07-22  Bruno Haible  <bruno@clisp.org>
44877
44878         Merge from GNU gettext 0.15.
44879
44880         2006-05-01  Bruno Haible  <bruno@clisp.org>
44881
44882                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44883
44884         2006-07-22  Bruno Haible  <bruno@clisp.org>
44885
44886                 * modules/javaversion: New file.
44887                 * MODULES.html.sh (Java): Add javaversion.
44888
44889         2006-03-12  Bruno Haible  <bruno@clisp.org>
44890
44891                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44892
44893         2005-12-04  Bruno Haible  <bruno@clisp.org>
44894
44895                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44896                 (untested).
44897
44898         2006-06-21  Bruno Haible  <bruno@clisp.org>
44899
44900                 Avoid warnings from recent versions of mcs.
44901                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44902                 -o, -L, -r any more. Use options documented since mcs-1.0
44903                 instead. Similarly for -g.
44904
44905         2005-12-04  Bruno Haible  <bruno@clisp.org>
44906
44907                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44908                 .resources, not .resource.
44909
44910         2005-07-09  Bruno Haible  <bruno@clisp.org>
44911
44912                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44913                 add a .dll suffix.
44914                 Reported by Mark Junker <mjscod@gmx.de>.
44915
44916         2006-07-22  Bruno Haible  <bruno@clisp.org>
44917
44918                 * modules/gettext: Upgrade to gettext-0.15.
44919                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44920                 m4/visibility.m4.
44921                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44922
44923 2006-07-22  Bruno Haible  <bruno@clisp.org>
44924
44925         Merge from GNU gettext 0.15.
44926
44927         2006-03-25  Bruno Haible  <bruno@clisp.org>
44928
44929                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44930
44931         2006-07-21  Bruno Haible  <bruno@clisp.org>
44932
44933                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44934                 "1.1".
44935
44936         2006-05-09  Bruno Haible  <bruno@clisp.org>
44937
44938                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44939                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44940                 for the conftestver execution.
44941
44942         2006-05-01  Bruno Haible  <bruno@clisp.org>
44943
44944                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44945                 optional target-version argument. Verify that the compiler
44946                 groks source of the specified source-version, or add -source
44947                 option as necessary. Verify that the compiler produces
44948                 bytecode in the specified target-version, or add -target and
44949                 -source options as necessary. Make the result of the test
44950                 available as variable CONF_JAVAC. Also log error output in
44951                 config.log.
44952
44953         2006-03-11  Bruno Haible  <bruno@clisp.org>
44954
44955                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44956
44957         2006-05-09  Bruno Haible  <bruno@clisp.org>
44958
44959                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44960                 CLASSPATH_SEPARATOR to a semicolon.
44961
44962         2006-03-12  Bruno Haible  <bruno@clisp.org>
44963
44964                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44965                 available as variable CONF_JAVA, for subsequent autoconf
44966                 tests. Also log error output in config.log.
44967
44968         2006-07-19  Bruno Haible  <bruno@clisp.org>
44969
44970                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44971                 that getline works on glibc2 systems. Needed to avoid trouble
44972                 in relocatable.c.
44973                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44974
44975         2005-12-04  Bruno Haible  <bruno@clisp.org>
44976
44977                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44978                 launcher (untested).
44979
44980         2005-12-04  Bruno Haible  <bruno@clisp.org>
44981
44982                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44983
44984         2006-07-22  Bruno Haible  <bruno@clisp.org>
44985
44986                 * gettext.m4: Update from GNU gettext-0.15.
44987                 * nls.m4: Likewise.
44988                 * po.m4: Likewise.
44989                 * inttypes-pri.m4: Likewise.
44990                 * inttypes-h.m4: Renamed from inttypes.m4.
44991                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44992
44993 2006-07-22  Bruno Haible  <bruno@clisp.org>
44994
44995         Merge from GNU gettext 0.15.
44996
44997         2005-07-05  Bruno Haible  <bruno@clisp.org>
44998
44999                 * printf-args.c (printf_fetchargs): Work around broken
45000                 definition of wint_t on mingw.
45001
45002         2005-02-12  Bruno Haible  <bruno@clisp.org>
45003
45004                 * xallocsa.h: Add extern "C" for C++.
45005
45006         2006-05-17  Bruno Haible  <bruno@clisp.org>
45007
45008                 Cygwin portability.
45009                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45010
45011         2006-04-30  Bruno Haible  <bruno@clisp.org>
45012
45013                 * progreloc.c: Include <mach-o/dyld.h> if available.
45014                 (find_executable): Use _NSGetExecutablePath when possible.
45015
45016         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45017
45018                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45019                 function.
45020
45021         2005-12-29  Bruno Haible  <bruno@clisp.org>
45022
45023                 * progreloc.c (set_program_name_and_installdir): Fix
45024                 compilation error.
45025
45026         2005-12-04  Bruno Haible  <bruno@clisp.org>
45027
45028                 Cygwin portability.
45029                 * progreloc.c: Include <windows.h> also on Cygwin.
45030                 (find_executable): Add support for Cygwin.
45031                 (set_program_name_and_installdir): Handle also platforms with
45032                 nonempty EXEEXT.
45033
45034         2006-07-11  Bruno Haible  <bruno@clisp.org>
45035
45036                 * javacomp.c: Fix a comment.
45037                 Reported by Jim Meyering.
45038
45039         2006-04-30  Bruno Haible  <bruno@clisp.org>
45040
45041                 * javacomp.h (compile_java_class): Add source_version,
45042                 target_version arguments.
45043                 * javacomp.c: Rewritten to choose only a compiler that
45044                 respects the specified source_version and target_version.
45045
45046         2006-06-27  Bruno Haible  <bruno@clisp.org>
45047
45048                 Assume correct S_ISDIR macro.
45049                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45050
45051         2006-07-22  Bruno Haible  <bruno@clisp.org>
45052
45053                 * javaversion.h: New file, from GNU gettext.
45054                 * javaversion.c: New file, from GNU gettext.
45055                 * javaversion.java: New file, from GNU gettext.
45056                 * javaversion.class: New file, from GNU gettext.
45057
45058         2006-05-17  Bruno Haible  <bruno@clisp.org>
45059
45060                 Cygwin portability.
45061                 * javaexec.c (execute_java_class): Test for jview program
45062                 also on Cygwin.
45063
45064         2006-04-09  Bruno Haible  <bruno@clisp.org>
45065
45066                 * fatal-signal.c: Don't include string.h.
45067                 (at_fatal_signal): Use a copying loop instead of memcpy.
45068
45069         2005-12-04  Bruno Haible  <bruno@clisp.org>
45070
45071                 * csharpexec.c: Add support for 'clix' launcher (untested).
45072                 (execute_csharp_using_sscli): New function.
45073                 (execute_csharp_program): Call it.
45074
45075         2006-06-21  Bruno Haible  <bruno@clisp.org>
45076
45077                 Avoid warnings from recent versions of mcs.
45078                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45079                 -o, -L, -r any more. Use options documented since mcs-1.0
45080                 instead. Similarly for -g.
45081
45082         2005-07-09  Bruno Haible  <bruno@clisp.org>
45083
45084                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45085                 add a .dll suffix.
45086                 Reported by Mark Junker <mjscod@gmx.de>.
45087
45088         2006-06-17  Bruno Haible  <bruno@clisp.org>
45089
45090                 * config.charset: Update for NetBSD 3.0.
45091
45092         2006-05-17  Bruno Haible  <bruno@clisp.org>
45093
45094                 Cygwin portability.
45095                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45096
45097         2006-05-16  Bruno Haible  <bruno@clisp.org>
45098
45099                 * localcharset.c [CYGWIN]: Include <windows.h>.
45100                 (get_charset_aliases): For Cygwin, return the same CPxxx
45101                 aliases list as under WIN32.
45102                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45103                 the environment variables. Fall back to GetACP().
45104
45105         2006-04-05  Bruno Haible  <bruno@clisp.org>
45106
45107                 * config.charset: Update Juan Manuel Guerrero's address.
45108
45109         2005-02-12  Bruno Haible  <bruno@clisp.org>
45110
45111                 * allocsa.h: Add extern "C" for C++.
45112
45113         2005-02-10  Bruno Haible  <bruno@clisp.org>
45114
45115                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45116                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45117
45118         2006-07-22  Bruno Haible  <bruno@clisp.org>
45119
45120                 * gettext.h: Update to GNU gettext-0.15.
45121
45122 2006-07-22  Bruno Haible  <bruno@clisp.org>
45123
45124         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45125         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45126         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45127
45128 2006-07-21  Eric Blake  <ebb9@byu.net>
45129
45130         * modules/stdlib-safer: New file.
45131         * MODULES.html.sh (File stream based Input/Output): Add
45132         stdlib-safer.
45133
45134 2006-07-21  Eric Blake  <ebb9@byu.net>
45135
45136         * lib/stdlib-safer.h: New file from coreutils, required by
45137         stdlib--.h.
45138
45139 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45140
45141         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45142
45143 2006-07-20  Bruno Haible  <bruno@clisp.org>
45144
45145         * gnulib-tool: Recognize new option --assume-autoconf.
45146         (autoconf_minversion): New variable.
45147         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45148
45149 2006-07-20  Bruno Haible  <bruno@clisp.org>
45150
45151         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45152
45153 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45154
45155         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45156         Reindent and repaginate.
45157
45158 2006-07-19  Derek Price  <derek@ximbiot.com>
45159
45160         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45161         Correct grammar.
45162
45163 2006-07-17  Bruno Haible  <bruno@clisp.org>
45164
45165         * modules/list: New file.
45166         * modules/array-list: New file.
45167         * modules/carray-list, modules/carray-list-tests: New files.
45168         * modules/linked-list, modules/linked-list-tests: New files.
45169         * modules/avltree-list, modules/avltree-list-tests: New files.
45170         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45171         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45172         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45173         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45174         * modules/oset: New file.
45175         * modules/array-oset: New file.
45176         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45177         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45178         * tests/test-carray_list.c: New file.
45179         * tests/test-linked_list.c: New file.
45180         * tests/test-avltree_list.c: New file.
45181         * tests/test-rbtree_list.c: New file.
45182         * tests/test-linkedhash_list.c: New file.
45183         * tests/test-avltreehash_list.c: New file.
45184         * tests/test-rbtreehash_list.c: New file.
45185         * tests/test-avltree_oset.c: New file.
45186         * tests/test-rbtree_oset.c: New file.
45187         * MODULES.html.sh (Container data structures): New section.
45188
45189 2006-07-17  Bruno Haible  <bruno@clisp.org>
45190
45191         * m4/gl_list.m4: New file.
45192
45193 2006-07-17  Bruno Haible  <bruno@clisp.org>
45194
45195         * lib/gl_list.h: New file.
45196         * lib/gl_list.c: New file.
45197         * lib/gl_array_list.h: New file.
45198         * lib/gl_array_list.c: New file.
45199         * lib/gl_carray_list.h: New file.
45200         * lib/gl_carray_list.c: New file.
45201         * lib/gl_linked_list.h: New file.
45202         * lib/gl_linked_list.c: New file.
45203         * lib/gl_anylinked_list1.h: New file.
45204         * lib/gl_anylinked_list2.h: New file.
45205         * lib/gl_avltree_list.h: New file.
45206         * lib/gl_avltree_list.c: New file.
45207         * lib/gl_anyavltree_list1.h: New file.
45208         * lib/gl_anyavltree_list2.h: New file.
45209         * lib/gl_rbtree_list.h: New file.
45210         * lib/gl_rbtree_list.c: New file.
45211         * lib/gl_anyrbtree_list1.h: New file.
45212         * lib/gl_anyrbtree_list2.h: New file.
45213         * lib/gl_anytree_list1.h: New file.
45214         * lib/gl_anytree_list2.h: New file.
45215         * lib/gl_linkedhash_list.h: New file.
45216         * lib/gl_linkedhash_list.c: New file.
45217         * lib/gl_anyhash_list1.h: New file.
45218         * lib/gl_anyhash_list2.h: New file.
45219         * lib/gl_avltreehash_list.h: New file.
45220         * lib/gl_avltreehash_list.c: New file.
45221         * lib/gl_rbtreehash_list.h: New file.
45222         * lib/gl_rbtreehash_list.c: New file.
45223         * lib/gl_anytreehash_list1.h: New file.
45224         * lib/gl_anytreehash_list2.h: New file.
45225
45226         * lib/gl_oset.h: New file.
45227         * lib/gl_oset.c: New file.
45228         * lib/gl_array_oset.h: New file.
45229         * lib/gl_array_oset.c: New file.
45230         * lib/gl_avltree_oset.h: New file.
45231         * lib/gl_avltree_oset.c: New file.
45232         * lib/gl_rbtree_oset.h: New file.
45233         * lib/gl_rbtree_oset.c: New file.
45234         * lib/gl_anytree_oset.h: New file.
45235
45236 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45237
45238         * m4/mkancesdirs.m4: New file.
45239         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45240         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45241         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45242         it.
45243
45244 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45245
45246         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45247         * lib/mkancesdirs.h: New files.
45248         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45249         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45250         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45251         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45252         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45253         callers changed.  Revamp internals significantly, by not
45254         attempting to create directories that are temporarily more
45255         permissive than the final results.  Do not attempt to use
45256         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45257         This removes some race conditions, fixes some bugs, and simplifies
45258         things.  Use new dirchownmod function to do owner and mode changes.
45259         * lib/mkdir-p.h: Likewise.
45260         * lib/modechange.c (octal_to_mode): New function.
45261         (struct mode_change): New member mentioned.
45262         (make_node_op_equals): New arg mentioned.  All callers changed.
45263         (mode_compile): Keep track of which mode bits the user has explicitly
45264         mentioned.
45265         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45266         New arg PMODE_BITS, to keep track of which mode bits the user
45267         mentioned; it treats S_ISUID and S_ISGID speciall.
45268         All callers changed.
45269         * lib/modechange.h: Likewise.
45270
45271 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45272
45273         * MODULES.html.sh: Add mkancestors.
45274         * modules/mkancesdirs: New module.
45275         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45276         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45277         The chdir-safer and afs files are now orphans; I'll remove them
45278         unless someone speaks up.
45279         Add lib/dirchownmod.c, lib/dirchownmod.h.
45280         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45281         Add lchown, mkancesdirs.
45282         (Maintainer): Add self.
45283
45284 2006-07-15  Karl Berry  <karl@gnu.org>
45285
45286         * gnulib-tool: help message wording/arrangement.
45287
45288 2006-07-14  Simon Josefsson  <jas@extundo.com>
45289
45290         * doc/gnulib.texi (Libtool and Windows): New section.
45291
45292 2006-07-12  Simon Josefsson  <jas@extundo.com>
45293
45294         * modules/gendocs (License): Fix license, approved by Karl.
45295
45296 2006-07-12  Eric Blake  <ebb9@byu.net>
45297
45298         * MODULES.html.sh: Add gendocs.
45299
45300 2006-07-11  Eric Blake  <ebb9@byu.net>
45301
45302         * modules/fdl: New module, to install doc/fdl.texi.
45303         * MODULES.html.sh: Add new section for documentation modules.
45304         * gnulib-tool: Avoid space-tab.
45305         (--doc-base): New option, to manage files from doc.
45306
45307 2006-07-11  Eric Blake  <ebb9@byu.net>
45308
45309         * m4/absolute-header.m4: Fix comments to match recent change.
45310
45311 2006-07-11  Eric Blake  <ebb9@byu.net>
45312
45313         * gnulib-tool: List --doc-base before --tests-base.
45314
45315 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45316
45317         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45318
45319 2006-07-11  Bruno Haible  <bruno@clisp.org>
45320
45321         * README: Mention where to put documentation.
45322
45323 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45324
45325         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45326
45327 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45328
45329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45330         to stdint.m4.
45331
45332 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45333
45334         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45335         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45336         "no/such/file/stdint.h" when there is no such file, so that
45337         the resulting C code can be parsed by dodgy compilers.
45338         Problems reported by Bob Proulx.
45339
45340 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45341
45342         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45343         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45344         macros into the GNU _D_EXACT_NAMLEN.
45345         * lib/savedir.c:  Likewise.
45346         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45347
45348 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45349         and Paul Eggert  <eggert@cs.ucla.edu>
45350
45351         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45352         * m4/savedir.m4:
45353         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45354         macros into the GNU _D_EXACT_NAMLEN.
45355
45356 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45357
45358         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45359         around the absolute name, to work around a problem with the HP-UX
45360         11.23 native C compiler, reported by Bob Proulx.
45361
45362 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45363
45364         * doc/maintain.texi, make-stds.texi: Sync from
45365         <http://savannah.gnu.org/projects/gnustandards>.
45366
45367 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45368
45369         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45370
45371 2006-07-09  Jim Meyering  <jim@meyering.net>
45372
45373         * m4/glob.m4: Remove a doubled word in a comment.
45374
45375 2006-07-09  Jim Meyering  <jim@meyering.net>
45376
45377         * lib/argp-pv.c: Remove a doubled word in a comment.
45378         * lib/check-version.c (check_version): Likewise.
45379         * lib/javacomp.c (compile_java_class): Likewise.
45380
45381 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45382
45383         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45384         for the benefit of people using Autoconf 2.60.  If you want to
45385         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45386         (or m4/onceonly.m4, if pre-2.57) manually.
45387
45388 2006-07-08  Jim Meyering  <jim@meyering.net>
45389
45390         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45391         comment.
45392         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45393         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45394         comment.
45395
45396 2006-07-08  Jim Meyering  <jim@meyering.net>
45397
45398         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45399
45400 2006-07-07  Simon Josefsson  <jas@extundo.com>
45401
45402         * tests/test-crc.c: Change expected crc value, the test vector
45403         were probably computed using the old broken crc.c?
45404
45405 2006-07-06  Simon Josefsson  <jas@extundo.com>
45406
45407         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45408         now the canonical place for the M4 file).
45409
45410         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45411         from the sys_socket dependency now.
45412
45413         * modules/inet_pton (Files): Ditto.
45414
45415         * modules/inet_ntop (Files): Ditto.
45416
45417 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45418
45419         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45420         not gl_PREREQ_GETUSERSHELL.
45421
45422 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45423
45424         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45425         with only one argument, for Autoconf 2.60.
45426         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45427         expand to nothing, so add a shell command to avoid syntax error.
45428         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45429
45430 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45431
45432         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45433
45434 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45435
45436         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45437         no longer needed.  Check for isblank decl.
45438         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45439         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45440         of existence.
45441
45442 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45443
45444         * lib/getloadavg.c: Use __VMS, not VMS.
45445         * lib/getopt.c: Likewise.
45446         * lib/getpagesize.h: Likewise.
45447         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45448         and probably does not work.
45449
45450 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45451
45452         * lib/.cppi-disable: Add wcwidth.
45453         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45454         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45455         (ISGRAPH): Remove.  All uses changed to isgraph.
45456         (FOLD) [!defined _LIBC]: Remove special case.
45457         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45458         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45459         HAVE_ISBLANK.
45460         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45461         case.
45462
45463 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45464
45465         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45466         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45467         brackets.  Other minor changes to suppress some compiler
45468         warnings.
45469
45470 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45471         and Paul Eggert  <eggert@cs.ucla.edu>
45472
45473         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45474         of invoking obsolescent AC_HEADER_DIRENT macro.
45475         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45476         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45477         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45478         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45479         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45480         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45481         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45482         * m4/readdir.m4: Remove; no longer needed.
45483
45484 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45485         and Paul Eggert  <eggert@cs.ucla.edu>
45486
45487         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45488         Don't worry about this obsolete case any more.
45489         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45490         directories.
45491         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45492         worry about this obsolete case any more.
45493         * lib/fts.c: Likewise.
45494         * lib/getcwd.c: Likewise.
45495         * lib/glob.h: Likewise.
45496         * lib/savedir.c: Likewise.
45497
45498 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45501         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45502         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45503         needed.
45504         All uses removed.
45505         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45506         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45507         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45508         needed.
45509         * m4/getdate.m4 (gl_GETDATE): Likewise.
45510         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45511         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45512         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45513         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45514         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45515         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45516         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45517         needed.
45518
45519 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45520
45521         * lib/memcasecmp.c: Include <limits.h>.
45522         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45523         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45524         Don't assume isdigit succeeds only on '0' through '9'.
45525
45526 2006-07-05  Eric Blake  <ebb9@byu.net>
45527
45528         * modules/getaddrinfo (Depends-on): Add snprintf.
45529
45530 2006-07-05  Eric Blake  <ebb9@byu.net>
45531
45532         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45533         to avoid 'header present but could not be compiled' on cygwin.
45534
45535 2006-07-05  Eric Blake  <ebb9@byu.net>
45536
45537         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45538         missing from netdb.h.
45539         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45540
45541 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45542
45543         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45544         no longer needed.
45545         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45546         * m4/getdate.m4 (gl_GETDATE): Likewise.
45547         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45548         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45549         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45550         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45552
45553 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45554
45555         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45556         All uses of is_space replaced by isspace.
45557         * lib/exit.h: Don't talk about STDC_HEADERS.
45558         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45559         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45560         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45561         replaced by isprint etc.
45562         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45563         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45564         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45565         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45566         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45567         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45568
45569 2006-07-05  Bruno Haible  <bruno@clisp.org>
45570
45571         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45572         the function exists, before testing against AIX.
45573         Reported by Martin Lambers <marlam@marlam.de>.
45574
45575 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45576
45577         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45578         From Mark D. Baushke.
45579
45580 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45581
45582         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45583         to the absolute name, not just one, to bypass Sun C 5.8's
45584         "warning: #include of /usr/include/... may be non-portable".
45585
45586 2006-07-04  Eric Blake  <ebb9@byu.net>
45587
45588         * modules/dirname-tests: New test module.
45589         * tests/test-dirname.c: New file, replacing dirname.c
45590         TEST_DIRNAME section that was recently deleted.
45591
45592 2006-07-04  Bruno Haible  <bruno@clisp.org>
45593
45594         Assume ANSI C header files and <ctype.h> functions.
45595         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45596         (mbsnwidth): Use isprint, iscntrl instead.
45597
45598 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45599
45600         Merge from coreutils.
45601         * MODULES.html.sh: Add xstrtold.
45602         * modules/xstrtold: New file.
45603         * modules/cycle-check (Files): Add lib/same-inode.h.
45604         * modules/dirname (Files): Add m4/double-slash-root.m4.
45605         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45606         * modules/mkdir-p (Files): Add lib/same-inode.h.
45607         * modules/same (Files): Add lib/same-inode.h.
45608
45609 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45610
45611         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45612         This is to keep the terminology clean; POSIX talks about
45613         "absolute pathnames", not "full pathnames", but the GNU
45614         Coding Standards say to use "path" for something else;
45615         so use "absolute" to keep both sides happy.
45616         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45617         Set gl_absolute_header, not gl_full_header_path.
45618         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45619         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45620         All uses changed.
45621
45622         Merge from coreutils.
45623
45624         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45625
45626         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45627         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45628         want to require the building of c-strtod.o.
45629         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45630         needs -lm directly.
45631         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45632
45633         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45634
45635         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45636         --as-needed option if available.  Problem reported by Albert Chin in
45637         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45638         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45639         cc merely issues a bunch of annoying warnings for --as-needed
45640         (this problem was reported by Bob Proulx).  Also, try linking with
45641         -lm to detect a bug in binutils 2.16 (this problem was reported
45642         by Ralf Wildenhues).
45643
45644         2006-06-18  Jim Meyering  <jim@meyering.net>
45645
45646         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45647         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45648         macro.
45649         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45650         also check for glibc-2.4's abort-inducing bug.
45651
45652         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45653         Low-probability clean-up should be to use rmdir to get rid of
45654         the just-created directory, not unlink.
45655
45656         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45657         configure fail, and request a bug report to inform us about it.
45658         Add a comment that, barring reports to the contrary, in 2007 we'll
45659         assume ftruncate is universally available.
45660
45661         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45662
45663         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45664
45665         2006-03-12  Jim Meyering  <jim@meyering.net>
45666
45667         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45668         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45669         * m4/same.m4 (gl_SAME): Likewise.
45670         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45671
45672         2006-03-11  Eric Blake  <ebb9@byu.net>
45673
45674         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45675         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45676         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45677         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45678
45679 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45680
45681         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45682         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45683         reported by Mark D. Baushke, one in
45684         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45685
45686         Merge from coreutils.
45687
45688         * lib/.cppi-disable: Add stdint_.h.
45689         * lib/.cvsignore: Add stdint.h.
45690
45691         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45692
45693         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45694         both double and long double versions.
45695         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45696         * lib/xstrtold.c: New file.
45697         * lib/xstrtod.h (xstrtold): New decl.
45698
45699         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45700
45701         * lib/filemode.c (setst): Remove.
45702         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45703         (arguably) clearer, and the generated code is a bit smaller on my
45704         Debian GNU/Linux stable x86 host.
45705
45706         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45707
45708         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45709         Assume that filemode.h includes sys/types.h and sys/stat.h.
45710         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45711         (ftypelet): Reorder to put common cases first, for efficiency.
45712         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45713         to do 'M'.
45714         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45715         of 10, for compatibility with FreeBSD.  All callers changed.
45716         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45717         types that can't be deduced solely from st_mode.  First arg is now a
45718         const pointer.
45719         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45720         (strmode): Renamed from mode_string.
45721         (filemodestring): New decl.
45722         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45723         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45724         needed.
45725         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45726
45727         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45728
45729         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45730         fsusage.h now does that.  Include fsusage.h first, to test interface.
45731         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45732         at most one method (the old code could have generated decls that
45733         didn't conform to C89, not that this was ever exercised).
45734         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45735
45736         2006-03-19  Jim Meyering  <jim@meyering.net>
45737
45738         Work even in a chroot where d_ino values for entries in "/"
45739         don't match the stat.st_ino values for the same names.
45740         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45741         number, iterate through all entries again, using lstat instead.
45742         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45743         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45744
45745         * lib/getcwd.c (__getcwd): Clarify a comment.
45746         Use memcpy in place of a call to strcpy.
45747
45748         2006-03-12  Jim Meyering  <jim@meyering.net>
45749
45750         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45751         matches that of the current directory (which we're about to chdir ".."
45752         out of), then save the dev-ino of the parent, instead.
45753
45754         * lib/same-inode.h (SAME_INODE): New file/macro.
45755         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45756         Include "same-inode.h", instead.
45757         * lib/same.c: Likewise.
45758         * lib/cycle-check.h: Include "same-inode.h".
45759         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45760         * lib/cycle-check.c (SAME_INODE): Remove definition.
45761         * lib/root-dev-ino.h: Include "same-inode.h".
45762
45763         2006-03-11  Eric Blake  <ebb9@byu.net>
45764
45765         * lib/same.c (same_name): s/base_name/last_component/
45766         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45767         * lib/filenamecat.c (file_name_concat): Likewise.
45768
45769         2006-03-11  Eric Blake  <ebb9@byu.net>,
45770                     Paul Eggert  <eggert@cs.ucla.edu>
45771
45772         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45773         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45774         drive prefix.
45775         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45776         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45777         (last_component): New method.
45778         * lib/dirname.c (dir_len): Determine when drive letters need a
45779         subsequent slash.  Preserve // when it is special.
45780         (dir_name): Don't append dot when drive letter is absolute.
45781         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45782         * lib/basename.c (base_name): New semantics - malloc the result.
45783         Preserve // when it is special.  Preserve relative files that look
45784         like drive letters.
45785         (base_len): Preserve // when it is special.
45786         (last_component): New method, similar to old base_name semantics.
45787         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45788         base_name.  Strip redundant slashes from ///.
45789
45790 2006-07-03  Jim Meyering  <jim@meyering.net>
45791
45792         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45793         macro is used before the first cycle_check call.
45794
45795 2006-07-03  Eric Blake  <ebb9@byu.net>
45796
45797         * modules/dirname (Depends-on): Add xstrndup.
45798
45799 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45800
45801         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45802         test cases, so that config.log is a bit easier to follow.
45803
45804 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45805
45806         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45807         both are 64 bits, since this seems to be the tradition, and this
45808         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45809         we ever run into a host that prefers long long to long in this
45810         case, we'll need another configure-time test.  Problem reported by
45811         Jim Meyering.
45812
45813 2006-07-02  Eric Blake  <ebb9@byu.net>
45814
45815         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45816
45817 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45818
45819         * modules/inttypes (Depends-on): No longer depends on stdint.
45820         * modules/stdint (Description): Say more about assumptions.
45821         Say that the fast types might differ.  Say macros are used.
45822         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45823         (Makefile.am): Revise list of substituted symbols to match
45824         new stdint.m4.
45825         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45826         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45827         * tests/test-stdint.c (verify_same_types)
45828         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45829         the code conforms to C99/C89.
45830         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45831         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45832
45833 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45834
45835         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45836         but fix a bug, by requiring at least 64 bits.
45837         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45838         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45839         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45840         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45841
45842         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45843         changes.  Make 2.59 a prerequisite.  Check and substitute for
45844         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45845         inttypes.h.  Do not use special include files; just use the
45846         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45847         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45848         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45849         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45850         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45851         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45852         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45853         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45854         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45855         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45856         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45857         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45858         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45859         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45860         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45861         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45862         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45863         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45864         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45865         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45866         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45867         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45868         not check for things that C99 does not require, e.g., int8_t.  If
45869         a test isn't needed unless <stdint.h> isn't working, and is
45870         unlikely to be needed for any other reason, then don't do it
45871         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45872         size_t, since we assume C89 freestanding at least.  Do not check
45873         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45874         the right thing even if the types are not defined.  Instead use:
45875         (gl_STDINT_TYPE_PROPERTIES): New macro.
45876         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45877         testing whether <sys/types.h> clashes, as Autoconf does this for
45878         us now.  All uses removed.
45879         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45880         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45881         (gl_CHECK_TYPE_SAME):
45882         Remove; no longer needed.
45883         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45884         exists, since we'll return 0 anyway in that case.
45885         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45886
45887 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45888
45889         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45890         possible collision with system files.
45891         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45892         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45893         WCHAR_MIN and WCHAR_MAX in this case.
45894         (<stddef.h>): Do not include; no longer needed.
45895         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45896         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45897         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45898         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45899         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45900         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45901         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45902         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45903         !defined(__c99))]: Include in this case too, since it's harmless
45904         now.
45905         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45906         dangerous to do so.
45907         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45908         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45909         (_STDINT_MIN, _STDINT_MAX): New macros.
45910         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45911         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45912         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45913         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45914         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45915         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45916         macros, not typedefs; this simplifies things quite a bit.
45917         Use long int for all types narrower than int64_t.
45918         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45919         Define in terms of long long int or int64_t or long int,
45920         not int64_t or int32_t.  This saves some compile-time testing.
45921         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45922         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45923         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45924         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45925         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45926         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45927         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45928         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45929         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45930         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45931         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45932         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45933         undef any previous version and define our own version, for
45934         simplicity and consistency with the new macros for types.
45935         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45936         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45937         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45938         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45939         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45940         @WINT_T_SUFFIX@ to keep things simple here.
45941         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45942         Simplify by assuming typical 8/16/32/64 host, since we're
45943         already doing that elsewhere anyway.
45944         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45945         and assume long long int is 64 bits if available.  This
45946         speeds up 'configure'.
45947
45948 2006-07-01  Eric Blake  <ebb9@byu.net>
45949
45950         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45951         Reported by Andreas Buening.
45952
45953 2006-07-01  Eric Blake  <ebb9@byu.net>
45954
45955         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45956
45957 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45958
45959         * lib/getaddrinfo.c: fixed typo
45960
45961 2006-06-29  Jim Meyering  <jim@meyering.net>
45962
45963         * modules/strftime (Maintainer): Add my name, since with the
45964         FPRINTFTIME changes strftime.c has forked from glibc.
45965
45966 2006-06-29  Eric Blake  <ebb9@byu.net>
45967
45968         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45969
45970 2006-06-29  Eric Blake  <ebb9@byu.net>
45971
45972         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45973
45974 2006-06-29  Eric Blake  <ebb9@byu.net>
45975
45976         * lib/stat_.h: New file.
45977
45978 2006-06-29  Eric Blake  <ebb9@byu.net>
45979
45980         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45981         unused static function.
45982
45983 2006-06-29  Eric Blake  <ebb9@byu.net>
45984
45985         * doc/functions.texi (Function Portability): Document missing lstat
45986         on mingw.
45987
45988 2006-06-29  Eric Blake  <ebb9@byu.net>
45989
45990         * MODULES.html.sh: Add sys_stat.
45991         * modules/sys_stat: New module.
45992         * modules/mkstemp (Depends-on): Add sys_stat.
45993
45994 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45995
45996         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45997
45998 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45999
46000         * m4/c-bs-a.m4: Removed.
46001
46002 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46003
46004         * lib/strftime.c: Assume strftime() exists.
46005
46006 2006-06-29  Derek Price  <derek@ximbiot.com>
46007
46008         * modules/c-bs-a: Removed - \a is C89.
46009         * MODULES.html.sh: Remove c-bs-a.
46010
46011 2006-06-29  Bruno Haible  <bruno@clisp.org>
46012
46013         * modules/wcwidth (License): Change to LGPL.
46014
46015 2006-06-28  Simon Josefsson  <jas@extundo.com>
46016
46017         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46018         on _WIN32.
46019
46020         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46021         getnameinfo.
46022
46023 2006-06-28  Simon Josefsson  <jas@extundo.com>
46024
46025         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46026
46027 2006-06-28  Simon Josefsson  <jas@extundo.com>
46028
46029         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46030         functions there.  It will succeed on Windows XP, but on Windows
46031         2000 and (presumably) earlier, it will fail, and use the internal
46032         re-implementation.
46033         (use_win32_p): New function.
46034         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46035         Support AI_NUMERICSERV to disable getservbyname.
46036         (getnameinfo): New function, only supports
46037         NI_NUMERICHOST|NI_NUMERICSERV for now.
46038
46039         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46040         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46041         getnameinfo.
46042
46043 2006-06-28  Eric Blake  <ebb9@byu.net>
46044
46045         * modules/wcwidth: New file.
46046         * modules/mbchar (Depends-on): Add wcwidth.
46047         * modules/mbswidth (Depends-on): Add wcwidth.
46048         * MODULES.html.sh: Add wcwidth.
46049
46050 2006-06-28  Eric Blake  <ebb9@byu.net>
46051
46052         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46054
46055 2006-06-28  Eric Blake  <ebb9@byu.net>
46056
46057         * lib/xvasprintf.h: Fix comments.
46058
46059 2006-06-28  Eric Blake  <ebb9@byu.net>
46060
46061         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46062         * lib/mbswidth.c (wcwidth): Move from here...
46063         * lib/wcwidth.h: ...to this new file.
46064
46065 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46066
46067         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46068
46069         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46070         it's obsolete.
46071         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46072
46073 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46074
46075         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46076         Autoconf 2.60 says this stuff was obsolete.
46077
46078 2006-06-28  Bruno Haible  <bruno@clisp.org>
46079
46080         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46081
46082 2006-06-28  Bruno Haible  <bruno@clisp.org>
46083
46084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46085         gt_TYPE_WCHAR_T.
46086
46087 2006-06-28  Bruno Haible  <bruno@clisp.org>
46088
46089         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46090         declaration for wcwidth.
46091         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46092
46093 2006-06-28  Bruno Haible  <bruno@clisp.org>
46094
46095         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46096         (mkdir): Define using _mkdir.
46097
46098 2006-06-28  Bruno Haible  <bruno@clisp.org>
46099
46100         * lib/getaddrinfo.h: Fix POSIX URL.
46101         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46102         _WIN32.
46103         (use_win32_p): Make static.
46104         (getaddrinfo): Reject service name if it is empty or does not consist
46105         solely of decimal digits, or if its value is > 65535.
46106         (getnameinfo): Remove useless casts.
46107
46108 2006-06-27  Simon Josefsson  <jas@extundo.com>
46109
46110         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46111         Eggert and Martin Lambers.
46112
46113 2006-06-27  Simon Josefsson  <jas@extundo.com>
46114
46115         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46116         Eggert and Martin Lambers.
46117
46118 2006-06-27  Bruno Haible  <bruno@clisp.org>
46119
46120         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46121         result to 0, not to empty.
46122         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46123
46124 2006-06-27  Bruno Haible  <bruno@clisp.org>
46125
46126         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46127
46128 2006-06-26  Simon Josefsson  <jas@extundo.com>
46129
46130         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46131         present.
46132
46133 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46134
46135         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46136         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46138
46139 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46140
46141         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46142
46143 2006-06-26  Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46146
46147 2006-06-26  Bruno Haible  <bruno@clisp.org>
46148
46149         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46150
46151 2006-06-26  Bruno Haible  <bruno@clisp.org>
46152
46153         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46154         SGI C compiler in pre-C99 mode.
46155         Suggested by Mark D. Baushke and Larry Jones.
46156
46157 2006-06-26  Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46160         WCHAR_MAX.
46161         Reported by Mark D. Baushke and Larry Jones.
46162
46163 2006-06-26  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46166         in pre-C99 mode.
46167         Suggested by Mark D. Baushke and Larry Jones.
46168
46169 2006-06-23  Simon Josefsson  <jas@extundo.com>
46170             Bruno Haible  <bruno@clisp.org>
46171
46172         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46173         Emit mostlyclean-local rule.
46174         (func_emit_tests_Makefile_am): Likewise.
46175         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46176
46177 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46178
46179         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46180
46181 2006-06-23  Bruno Haible  <bruno@clisp.org>
46182
46183         * tests/test-stdint.c: Update to match ISO C 99 Technical
46184         Corrigendum 1.
46185
46186 2006-06-23  Bruno Haible  <bruno@clisp.org>
46187
46188         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46189
46190 2006-06-23  Bruno Haible  <bruno@clisp.org>
46191
46192         * lib/stdint_.h: Treat IRIX like OpenBSD.
46193
46194 2006-06-23  Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46197         ISO C 99 Technical Corrigendum 1.
46198
46199 2006-06-22  Simon Josefsson  <jas@extundo.com>
46200
46201         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46202         MinGW.
46203
46204 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46205
46206         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46207         needed.  Some compiler complained about some of them.  Problem reported
46208         by Larry Jones in
46209         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46210
46211 2006-06-21  Simon Josefsson  <jas@extundo.com>
46212
46213         * tests/test-getaddrinfo.c: New file.
46214
46215         * modules/getaddrinfo-tests: New file.
46216
46217         * MODULES.html.sh: Add inet_pton.
46218
46219         * modules/inet_pton: New file.
46220
46221 2006-06-21  Simon Josefsson  <jas@extundo.com>
46222
46223         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46224         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46225         of using the (limited) gnulib implementation on Windows XP.
46226
46227         * m4/inet_pton.m4: New file.
46228
46229 2006-06-21  Simon Josefsson  <jas@extundo.com>
46230
46231         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46232         variable.
46233
46234         * lib/socket_.h: Don't define WINVER.
46235
46236         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46237         slightly modified to work in gnulib.
46238
46239 2006-06-21  Simon Josefsson  <jas@extundo.com>
46240
46241         * doc/gnulib.texi (Windows sockets): Add.
46242
46243 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46244
46245         * lib/read-file.c (fread_file): Start with buffer allocation of
46246         0 bytes rather than 1 byte; this simplifies the code.
46247         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46248         code to free buffer and save/restore errno.
46249         (internal_read_file): Remove unused local.
46250
46251 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46252
46253         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46254         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46255         Problem reported by Denis Excoffier in
46256         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46257
46258 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46259
46260         * modules/sys_socket, modules/socklen: Include sys/types since
46261         FreeBSD 4.x's sys/socket.h needs it.
46262
46263 2006-06-19  Simon Josefsson  <jas@extundo.com>
46264
46265         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46266
46267 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46268
46269         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46270
46271 2006-06-19  Bruno Haible  <bruno@clisp.org>
46272
46273         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46274         and FULL_PATH_INTTYPES_H in angle brackets.
46275         Reported by Mark D. Baushke <mdb@gnu.org>.
46276
46277 2006-06-17  Eric Blake  <ebb9@byu.net>
46278
46279         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46280         errno.
46281
46282 2006-06-17  Bruno Haible  <bruno@clisp.org>
46283
46284         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46285         <sys/inttypes.h>.
46286
46287 2006-06-17  Bruno Haible  <bruno@clisp.org>
46288
46289         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46290         whether errno is declared. Assume <errno.h> declares errno.
46291
46292 2006-06-17  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46295
46296 2006-06-17  Bruno Haible  <bruno@clisp.org>
46297
46298         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46299         problem on Solaris 2.5.1.
46300
46301 2006-06-16  Eric Blake  <ebb9@byu.net>
46302
46303         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46304         * lib/unicodeio.c [!defined errno]: Likewise.
46305         * lib/strtol.c [!defined errno]: Likewise.
46306         * lib/strtod.c [!defined errno]: Likewise.
46307
46308 2006-06-15  Eric Blake  <ebb9@byu.net>
46309
46310         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46311
46312 2006-06-15  Eric Blake  <ebb9@byu.net>
46313
46314         * config/srclist.txt (ssize_t.m4): Lose sync.
46315
46316 2006-06-15  Bruno Haible  <bruno@clisp.org>
46317
46318         * modules/stdint (Files): Include m4/full-header-path.m4,
46319         m4/size_max.m4, m4/wchar_t.m4.
46320         (Makefile.am): Many more substitutions.
46321         * modules/stdint-tests: New file.
46322         * tests/test-stdint.c: New file.
46323
46324 2006-06-15  Bruno Haible  <bruno@clisp.org>
46325
46326         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46327         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46328         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46329         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46330         gl_CHECK_TYPE_SAME): New macros.
46331
46332 2006-06-15  Bruno Haible  <bruno@clisp.org>
46333
46334         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46335
46336 2006-06-15  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/stdint_.h: Rewritten to be fully auto-configured.
46339         Fixes bug on HP-UX/IA64.
46340
46341 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46342
46343         * lib/getdate.y (__attribute__): Don't define if already defined.
46344         Problem reported by Larry Jones.
46345         * lib/utimens.c (__attribute__): Likewise.
46346
46347 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46348
46349         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46350         reported by Andreas Schwab.
46351
46352 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46353             Bruno Haible  <bruno@clisp.org>
46354
46355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46356         check for the declaration of strnlen and a run test that exposes the
46357         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46358         rpl_strndup.
46359
46360 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46361             Bruno Haible  <bruno@clisp.org>
46362
46363         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46364
46365 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46366
46367         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46368         compile test, for Tru64 4.0D.
46369
46370 2006-05-28  Karl Berry  <karl@gnu.org>
46371
46372         * config/srclist.txt (printf-args.c): lose sync.
46373
46374 2006-05-26  Martin Lambers  <marlam@marlam.de>
46375
46376         * lib/getpass.c: Updates the test for the native W32 API, and adds
46377         missing includes, thus fixing compilation warnings.
46378
46379 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46380
46381         * lib/exclude.c (exclude_fnmatch): New function.
46382         (excluded_file_name): Call exclude_fnmatch.
46383         * lib/exclude.h (excluded_file_name): New prototype
46384
46385 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46386
46387         * lib/tempname.c (small_open, large_open): New macros.
46388         (__open, __open64) [!_LIBC]: Remove.
46389         (__gen_tempname): Use small_open and large_open instead of __open
46390         and __open64.  This fixes a portability bug on HP-UX 11.11i
46391         reported by Simon Wing-Tang in
46392         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46393
46394 2006-05-24  Bruno Haible  <bruno@clisp.org>
46395
46396         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46397         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46398         Reported by Thorsten Maerz <torte@netztorte.de> via
46399         Aaron Stone <aaron@serendipity.cx>.
46400
46401 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46402
46403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46404         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46405         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46406         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46407         not really conditional on the cache.
46408         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46409
46410 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46411
46412         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46413         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46414         (my_usleep): Don't mishandle maximum value.
46415
46416 2006-05-19  Jim Meyering  <jim@meyering.net>
46417
46418         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46419
46420 2006-05-17  Bruno Haible  <bruno@clisp.org>
46421
46422         Cygwin portability.
46423         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46424
46425 2006-05-17  Bruno Haible  <bruno@clisp.org>
46426
46427         * lib/stdint_.h: Fix recognition of Cygwin.
46428
46429 2006-05-15  Bruno Haible  <bruno@clisp.org>
46430
46431         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46432         on libtool patch by Ralf Wildenhues.
46433
46434 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46435
46436         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46437         test for C99 conformance; (bool) 0.5 is an integer constant
46438         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46439         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46440
46441 2006-05-11  Simon Josefsson  <jas@extundo.com>
46442
46443         * m4/xvasprintf.m4: Fix obvious typo.
46444
46445 2006-05-11  Jim Meyering  <jim@meyering.net>
46446
46447         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46448         James Lemley.
46449
46450 2006-05-10  Simon Josefsson  <jas@extundo.com>
46451
46452         * lib/md4.c: Typo fix, update copyright years.
46453         (K1, K2): Don't use L because it turn computations into 64-bit on
46454         64-bit platforms.
46455
46456 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46457
46458         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46459         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46460         unwanted sign propagation, e.g., on hosts with 64-bit int.
46461         There still are some problems with reeelly weird theoretical hosts
46462         (e.g., 33-bit int) but it's not worth worrying about now.
46463         * lib/sha1.c (rol): Likewise.
46464         (K1, K2, K3, K4): Remove unnecessary L suffix.
46465
46466 2006-05-10  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/des.c: Cast to avoid warnings.
46469
46470 2006-05-09  Bruno Haible  <bruno@clisp.org>
46471
46472         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46473         (Depends-on): Depend also on xsize, stdarg.
46474         (configure.ac): Add gl_XVASPRINTF.
46475
46476 2006-05-09  Bruno Haible  <bruno@clisp.org>
46477
46478         * m4/xvasprintf.m4: New file.
46479
46480 2006-05-09  Bruno Haible  <bruno@clisp.org>
46481
46482         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46483         (EOVERFLOW): Define fallback value.
46484         (xstrcat): New function.
46485         (xvasprintf): Recognize the special case of a string concatenation.
46486
46487 2006-05-08  Eric Blake  <ebb9@byu.net>
46488
46489         * gnulib-tool (func_version): Base copyright year on CVS date.
46490         (func_emit_copyright_notice): New function.
46491         (func_emit_lib_Makefile_am): Use it.
46492         (func_emit_tests_Makefile_am): Likewise.
46493         (func_import): Likewise.
46494
46495 2006-05-08  Bruno Haible  <bruno@clisp.org>
46496
46497         * modules/stdarg: New file.
46498         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46499
46500 2006-05-08  Bruno Haible  <bruno@clisp.org>
46501
46502         * m4/stdarg.m4: New file, from GNU gettext.
46503
46504 2006-05-08  Bruno Haible  <bruno@clisp.org>
46505
46506         * config/srclist.txt (build-aux/config.rpath): different from latest
46507         release.
46508
46509 2006-05-08  Bruno Haible  <bruno@clisp.org>
46510
46511         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46512
46513 2006-05-05  Jim Meyering  <jim@meyering.net>
46514
46515         * m4/warning.m4: New file, derived from bison's file by the same name.
46516
46517 2006-05-03  Bruno Haible  <bruno@clisp.org>
46518
46519         * lib/stdint_.h: Shorter URL.
46520         * lib/inttypes.h: Likewise.
46521
46522 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46523
46524         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46525
46526 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46527
46528         * lib/verify.h: Document the internals better.  Most of this change
46529         was written by Bruno Haible.
46530
46531 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46532
46533         * doc/verify.texi: New file, partly based on a proposal by
46534         Bruno Haible.
46535
46536 2006-05-02  Bruno Haible  <bruno@clisp.org>
46537
46538         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46539         test from here...
46540         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46541
46542 2006-04-29  Bruno Haible  <bruno@clisp.org>
46543
46544         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46545         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46546
46547 2006-04-29  Bruno Haible  <bruno@clisp.org>
46548
46549         * gnulib-tool: Make --update option actually work.
46550
46551 2006-04-29  Bruno Haible  <bruno@clisp.org>
46552
46553         * doc/gcd.texi: New file.
46554         * doc/gnulib.texi: Include it.
46555
46556 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46557
46558         * lib/getdate.y (get_date): When adding relative date, start with the
46559         initial time, not with the result of the first mktime call.
46560
46561 2006-04-25  Bruno Haible  <bruno@clisp.org>
46562
46563         * gnulib-tool (func_import): Output the include directives in three
46564         blocks, sorted separately.
46565         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46566
46567 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46568
46569         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46570         to define main with arguments, for C++.  Reported by Eric Blake.
46571         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46572         Prefer 'int main ()' to 'int main (void)', for C++.
46573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46574         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46575         for 'main', for C99 and C++.
46576
46577 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46578
46579         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46580         Don't assume that exit status -1 is valid.
46581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46582         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46583         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46584         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46585         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46586         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46587         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46588         functions can be used without declaring them, or that you can
46589         exit with status -1.
46590         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46591
46592 2006-04-24  Karl Berry  <karl@gnu.org>
46593
46594         * config/srclist.txt (longdouble.m4): sync lost.
46595
46596 2006-04-24  Eric Blake  <ebb9@byu.net>
46597
46598         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46599
46600 2006-04-24  Bruno Haible  <bruno@clisp.org>
46601
46602         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46603         poll() implementation in AIX.
46604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46605
46606 2006-04-24  Bruno Haible  <bruno@clisp.org>
46607
46608         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46609         assigned exactly once.
46610
46611 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46612             Bruno Haible  <bruno@clisp.org>
46613
46614         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46615         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46616         for AM_CPPFLAGS.
46617
46618 2006-04-23  Bruno Haible  <bruno@clisp.org>
46619
46620         * modules/copy-file: Depend on unistd.
46621         * modules/execute: Likewise.
46622         * modules/fatal-signal: Likewise.
46623         * modules/findprog: Likewise.
46624         * modules/mkdtemp : Likewise.
46625         * modules/pipe: Likewise.
46626         * modules/wait-process: Likewise.
46627
46628 2006-04-23  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46631         condition was already detected.
46632         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46633
46634 2006-04-23  Bruno Haible  <bruno@clisp.org>
46635
46636         * lib/copy-file.c: Include <unistd.h> unconditionally.
46637         * lib/execute.c: Likewise.
46638         * lib/fatal-signal.c: Likewise.
46639         * lib/findprog.c: Likewise.
46640         * lib/mkdtemp.c: Likewise.
46641         * lib/pipe.h: Likewise.
46642         * lib/pipe.c: Likewise.
46643         * lib/wait-process.h: Likewise.
46644
46645 2006-04-23  Bruno Haible  <bruno@clisp.org>
46646
46647         * gnulib-tool (func_usage): Fix --import description. Document
46648         --update.
46649         (func_import): Create temporary file in a temporary directory, if
46650         --dry-run is specified. Silence errors from 'grep' when there are no
46651         m4 files in $m4dir.
46652         (func_create_testdir): Silence errors from 'grep' when there are no
46653         m4 files in $m4dir.
46654         Reported by Karl Berry <karl@freefriends.org>.
46655
46656 2006-04-20  Bruno Haible  <bruno@clisp.org>
46657
46658         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46659         one argument, so that the code will be portable to Autoconf 2.60.
46660         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46661         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46662         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46663
46664 2006-04-19  Derek Price  <derek@ximbiot.com>
46665             Eric Blake  <ebb9@byu.net>
46666
46667         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46668         rather than "/full/path.h".  Update comment to match.  Shorten &
46669         generalize m4_translit call via AS_TR_CPP.
46670
46671 2006-04-19  Derek Price  <derek@ximbiot.com>
46672             Eric Blake  <ebb9@byu.net>
46673
46674         * lib/inttypes.h: Correct grammar in comment.
46675
46676 2006-04-18  Derek Price  <derek@ximbiot.com>
46677             Paul Eggert  <eggert@cs.ucla.edu>
46678
46679         * modules/inttypes: New file.
46680         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46681
46682 2006-04-18  Derek Price  <derek@ximbiot.com>
46683             Paul Eggert  <eggert@cs.ucla.edu>
46684
46685         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46686         New files.
46687
46688 2006-04-18  Derek Price  <derek@ximbiot.com>
46689             Paul Eggert  <eggert@cs.ucla.edu>
46690
46691         * lib/inttypes.h: New file.
46692         * lib/strtoimax.c: Assume <inttypes.h>.
46693
46694 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46695
46696         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46697         isn't mounted.  Problem reported by Kir Kolyshkin.
46698
46699 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46700
46701         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46702         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46703         Derek R. Price.
46704         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46705         implementation.
46706
46707 2006-04-12  Eric Blake  <ebb9@byu.net>
46708
46709         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46710         is now done automatically by the corresponding Autoconf macro.
46711
46712 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46713
46714         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46715         time_r.h.
46716
46717 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46718
46719         Merge regex changes from libc, removing some of our
46720         POSIX-conformance changes that were rejected and redoing them in a
46721         less-intrusive way.
46722
46723         * lib/regcomp.c (re_compile_internal, init_dfa):
46724         Length arg is now size_t, not Idx.  All uses changed.
46725         (peek_token): Forward decl now says internal_function.
46726         (__re_error_msgid, __re_error_msgid_idx):
46727         Now static rather than extern with attribute_hidden.
46728         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46729         For some reason libc prefers K&R style defns for external functions.
46730         (regerror) [!defined _LIBC]: Likewise.
46731         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46732         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46733         (build_range_exp, build_collating_symbol):
46734         Use K&R-style defn.
46735         (re_compile_fastmap): Use '\0' to memset, not 0.
46736         (utf8_sb_map): Make the calculations more obvious.
46737         (init_dfa, parse_bracket_exp, build_charclass_op):
46738         Call calloc and cast result, as glibc does.
46739         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46740         (build_range_exp, build_collating_symbol):
46741         Now internal functions.
46742
46743         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46744
46745         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46746         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46747         Don't depend on VMS; depend on __VMS instead, for POSIX
46748         namespace cleanness.
46749         (regoff_t): Define to ssize_t, not long int.
46750
46751         Remove the REG_ macros named below.  Instead, make the old names
46752         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46753         __USE_GNU_REGEX.
46754         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46755         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46756         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46757         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46758         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46759         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46760         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46761         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46762         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46763         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46764         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46765         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46766         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46767         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46768         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46769         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46770         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46771         (REG_NREGS):
46772         Remove.  All uses replaced by the old RE_* names.
46773         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46774         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46775         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46776         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46777         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46778         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46779         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46780         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46781         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46782         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46783         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46784         Don't bother having these macros be independent of each others'
46785         values, since they no longer exist in the POSIX name space.
46786
46787         Rename the following member names back to their old names,
46788         unless !__USE_GNU_REGEX.  All uses changed back.
46789         (buffer): Renamed from re_buffer.
46790         (allocated): Renamed from re_allocated.
46791         (used): Renamed from re_used.
46792         (syntax): Renamed from re_syntax.
46793         (fastmap): Renamed from re_fastmap.
46794         (translate): Renamed from re_translate.
46795         (can_be_null): Renamed from re_can_be_null.
46796         (regs_allocated): Renamed from re_regs_allocated.
46797         (fastmap_accurate): Renamed from re_fastmap_accurate.
46798         (no_sub): Renamed from re_no_sub.
46799         (not_bol): Renamed from re_not_bol.
46800         (not_eol): Renamed from re_not_eol.
46801         (newline_anchor): Renamed from re_newline_anchor.
46802         (num_regs): Renamed from rm_num_regs.
46803         (start): Renamed from rm_start.
46804         (end): Renamed from rm_end.
46805
46806         (free_state): Move up a bit.
46807
46808         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46809         #define to be empty.
46810         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46811         when that is what is intended.
46812         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46813         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46814         (MAX): New macro.
46815         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46816         All uses changed back to re_malloc, etc.  It's now the caller's
46817         responsibility to check for overflow; all callers changed.
46818         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46819         (re_x2nrealloc): Remove.
46820         (free_state): Remove decl.
46821
46822         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46823         (re_set_registers, re_exec):
46824         Use K&R-style defn.
46825
46826         2006-01-31  Roland McGrath  <roland@redhat.com>
46827
46828         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46829         Reported by Mike Frysinger <vapier@gentoo.org>.
46830
46831         2006-01-15  Andreas Jaeger  <aj@suse.de>
46832
46833         [BZ #1950]
46834         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46835         build_wcs_upper_buffer change.
46836         (build_wcs_upper_buffer): Change return type.
46837
46838         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46839
46840         * lib/regex_internal.h: Include <stdint.h> if available.
46841
46842         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46843
46844         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46845
46846         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46847
46848         * lib/regcomp.c: Adjust for changed secondary hash function.
46849
46850         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46851
46852         * lib/regex.h: Pretty printing.
46853         Clean up namespace a bit.
46854
46855         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46856
46857         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46858         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46859
46860         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46861                     Ulrich Drepper  <drepper@redhat.com>
46862
46863         [BZ #1302]
46864         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46865         changed.
46866         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46867
46868         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46869
46870         [BZ #281]
46871         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46872         * lib/regcomp.c: Remove unnecessary uses of
46873         unsigned RE_TRANSLATE_TYPE.
46874         * lib/regex_internal.h: Likewise.
46875         * lib/regex_internal.c: Likewise.
46876         * lib/regexec.c: Likewise.
46877         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46878
46879         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46880
46881         * lib/regexec.c (find_recover_state): Remove unnecessary
46882         initialization.
46883         (transit_state_bkref): Make DFA a const pointer.
46884         (get_subexp): Likewise.
46885         (check_arrival): Likewise.
46886         (update_cur_sifted_state): Likewise.
46887         (re_search_internal): Likewise.
46888         (prune_impossible_nodes): Likewise.
46889         (acquire_init_state_context): Likewise.
46890         (proceed_next_node): Likewise.
46891         (set_regs): Likewise.
46892         (free_fail_stack_return): Likewise.
46893         (check_arrival_expand_ecl): Mark DFA parameter as const.
46894         (check_arrival_expand_ecl_sub): Likewise.
46895         (check_subexp_limits): Likewise.
46896         (sub_epsilon_src_nodes):  Likewise.
46897         (add_epsilon_src_nodes):  Likewise.
46898         (merge_state_array): Likewise.
46899         (update_regs): Likewise.
46900         (build_trtable): Likewise.
46901         (sift_states_backward): Mark MCTX parameter as const.
46902         (build_sifted_states): Likewise.
46903         (update_cur_sifted_state): Likewise.
46904         (sift_states_mkref): Likewise.
46905         (check_arrival_expand_ecl): Mark eclosure as const.
46906         (check_dst_limits_calc_pos_1): Likewise.
46907         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46908         pointer.
46909
46910         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46911
46912         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46913         (transit_state_sb): Likewise.
46914         (transit_state_mb): Likewise.
46915         (sift_states_iter_mb): Likewise.
46916         (check_arrival_add_next_nodes): Likewise.
46917         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46918         [_LIBC] (re_search_2_stub): Use mempcpy.
46919
46920         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46921         mbrtowc for very simple UTF-8 case.
46922
46923         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46924         a pointer-to-const.
46925         (re_acquire_state_context): Likewise.
46926         * lib/regex_internal.h: Adjust prototypes.
46927
46928         * lib/regex.c: Prevent using C++ compilers.
46929
46930         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46931         (re_acquire_state_context): Likewise.
46932
46933 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46934
46935         * modules/regex (Depends-on): Add ssize_t.
46936
46937 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46938
46939         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46940         translation table.
46941
46942 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46943
46944         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46945
46946 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46947             Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46950         <sys/types.h> and <inttypes.h>.
46951
46952 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46953
46954         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46955         `__error_t_defined', so argp.h will not typedef the former.
46956
46957 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46958
46959         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46960         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46961         glibc names.  Even if glibc is changed to conform to POSIX, the
46962         traditional names will be available anyway, since regex depends on
46963         the extensions module.  Also, fix a longstanding typo in the
46964         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46965         reported by Emanuele Giaquinta.  Also, change sense of cached
46966         variable, so that the message makes sense.
46967
46968 2006-03-24  Simon Josefsson  <jas@extundo.com>
46969
46970         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46971         including some doc fixes.
46972         (base64_encode_alloc): Fix +1 bug on allocation failures.
46973
46974 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46975
46976         * lib/base64.c (base64_encode): Do not read past end of array with
46977         unsanitized input on systems with CHAR_BIT > 8.
46978
46979 2006-03-24  Eric Blake  <ebb9@byu.net>
46980
46981         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46982
46983 2006-03-22  Karl Berry  <karl@gnu.org>
46984
46985         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46986         * config/srclistvars.sh (COREUTILS): new var.
46987
46988 2006-03-17  Jim Meyering  <jim@meyering.net>
46989
46990         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46991         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46992
46993 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46994
46995         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46996         no longer needs it.  Instead, check that regoff_t is as least
46997         as wide as ptrdiff_t.
46998
46999         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47000         so that our regex.h stays compatible with the installed regex.
47001         This is helpful for installers who configure --without-included-regex.
47002         Problem reported by Emanuele Giaquinta.
47003
47004 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47005
47006         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47007         Typedef to long int, not to off_, as POSIX will likely change
47008         in that direction.
47009
47010 2006-03-15  Eric Blake  <ebb9@byu.net>
47011
47012         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47013
47014 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47015
47016         * lib/argp-help.c (validate_uparams): Fix typo
47017         * lib/argp-parse.c (argp_default_options): Consistently begin help
47018         messages with a lowercase letter.
47019
47020 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47021
47022         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47023         overrun buffers and shouldn't be used (much as gets shouldn't be
47024         used).
47025         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47026
47027 2006-03-08  Simon Josefsson  <jas@extundo.com>
47028
47029         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47030         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47031
47032 2006-03-08  Simon Josefsson  <jas@extundo.com>
47033
47034         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47035         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47036
47037 2006-03-08  Simon Josefsson  <jas@extundo.com>
47038
47039         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47040         signal that configure disabled the device.
47041
47042 2006-03-08  Simon Josefsson  <jas@extundo.com>
47043
47044         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47045         languages.
47046
47047 2006-03-07  Simon Josefsson  <jas@extundo.com>
47048
47049         * modules/getopt (Depends-on): Add unistd.
47050
47051         * modules/unistd: New file.
47052
47053 2006-03-07  Simon Josefsson  <jas@extundo.com>
47054
47055         * modules/gc-random: New file.
47056
47057 2006-03-07  Simon Josefsson  <jas@extundo.com>
47058
47059         * m4/unistd_h.m4: New file.
47060
47061 2006-03-07  Simon Josefsson  <jas@extundo.com>
47062
47063         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47064         test to be side-effect free by storing the result in the cache
47065         variable gl_cv_lib_readline, and moving the assignment of
47066         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47067         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47068
47069 2006-03-07  Simon Josefsson  <jas@extundo.com>
47070
47071         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47072         error on missing devices (the functions will return an error).
47073
47074         * m4/gc.m4: Move random stuff to gc-random.m4
47075
47076 2006-03-07  Simon Josefsson  <jas@extundo.com>
47077
47078         * lib/unistd_.h: New file.
47079
47080 2006-03-07  Simon Josefsson  <jas@extundo.com>
47081
47082         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47083
47084 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47085
47086         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47087         Problem reported by Juan Manuel Guerrero.
47088
47089 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47090
47091         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47092         the unistd module.
47093         * lib/getlogin_r.c: Likewise.
47094         * lib/getlogin_r.h: Likewise.
47095         * lib/glob.c: Likewise.
47096         * lib/pagealign_alloc.c: Likewise.
47097         * lib/unistd_.h: Remove; no longer needed.
47098
47099 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47100
47101         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47102         Add unistd.
47103         * modules/c-stack (Depends-on): Add unistd.
47104         * modules/getlogin_r: Likewise.
47105         * modules/glob: Likewise.
47106         * modules/pagealign_alloc: Likewise.
47107         * modules/unistd (Files): Remove lib/unistd_.h.
47108         (EXTRA_DIST): Remove.
47109         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47110         need unistd_.h.
47111         (MOSTLYCLEANFILES): Remove unistd.h-t.
47112
47113 2006-03-03  Simon Josefsson  <jas@extundo.com>
47114
47115         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47116
47117 2006-03-03  Simon Josefsson  <jas@extundo.com>
47118
47119         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47120         libidn and bison.
47121
47122 2006-03-03  Simon Josefsson  <jas@extundo.com>
47123
47124         * build-aux/maint.mk: Add indent target.
47125
47126 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47127
47128         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47129         our replacement poll.h in any case, to avoid a differing
47130         declaration from a system header.  Seen on AIX.
47131
47132 2006-03-01  Simon Josefsson  <jas@extundo.com>
47133
47134         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47135         <kasal@ucw.cz>.
47136
47137 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47138
47139         * modules/gettime (Depends-on): Add extensions module.
47140         * modules/nanosleep (Depends-on): Likewise.
47141         * modules/settime (Depends-on): Likewise.
47142
47143 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47144
47145         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47146         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47147         pedantically.
47148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47149         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47150
47151         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47152         not "==".  Reported by Ralf Wildenhues.
47153
47154 2006-03-01  Karl Berry  <karl@gnu.org>
47155
47156         * doc/Copyright/request-*: new files, synced from gnuorg.
47157
47158 2006-03-01  Karl Berry  <karl@gnu.org>
47159
47160         * config/srclist.txt (Copyright/*): new entries.
47161
47162 2006-02-28  Simon Josefsson  <jas@extundo.com>
47163
47164         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47165
47166 2006-02-27  Simon Josefsson  <jas@extundo.com>
47167
47168         * lib/base64.h: Indent #define's.  From Jim Meyering
47169         <jim@meyering.net>.
47170
47171 2006-02-27  Jim Meyering  <jim@meyering.net>
47172
47173         Revert the change of 2006-02-24, so these files can continue
47174         to be sync'd from gettext.
47175         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47176         of `config.h'.
47177
47178 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47179
47180         * modules/intprops: New file.
47181         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47182         Add intprops.
47183         * modules/getloadavg (Files): Remove lib/intprops.h.
47184         (Depends-on): Add intprops.
47185         * modules/human: Likewise.
47186         * modules/inttostr: Likewise.
47187         * modules/openat: Likewise.
47188         * modules/sig2str: Likewise.
47189         * modules/userspec: Likewise.
47190         * modules/utimecmp: Likewise.
47191         * modules/xnanosleep: Likewise.
47192         * modules/xstrtol: Likewise.
47193
47194 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47195
47196         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47197         * modules/lock-tests (TESTS): Use $(EXEEXT).
47198         * modules/tls-tests: Likewise.
47199         * modules/argp-tests: Likewise.
47200         (check_PROGRAMS): New var, replacing...
47201         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47202
47203 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47204
47205         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47206         `config.h'.
47207
47208 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47209
47210         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47211
47212 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47213
47214         Sync from coreutils.
47215         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47216         gl_CHDIR_SAFER.
47217
47218 2006-02-22  Jim Meyering  <jim@meyering.net>
47219
47220         Sync from coreutils.
47221         * m4/chdir-safer.m4: New file.
47222
47223 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47224
47225         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47226         AT_FDCWD exceeds INT_MAX.
47227         * lib/openat.h (AT_FDCWD): Likewise.
47228
47229 2006-02-17  Eric Blake  <address@hidden>
47230
47231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47232
47233 2006-02-16  Simon Josefsson  <jas@extundo.com>
47234
47235         * modules/getaddrinfo (Depends-on): Add sys_socket.
47236
47237 2006-02-15  Simon Josefsson  <jas@extundo.com>
47238
47239         * build-aux/maint.mk: Add dsyntax-check rule.
47240
47241 2006-02-15  Eric Blake  <ebb9@byu.net>
47242
47243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47244         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47245         'present but cannot compile' warnings on cygwin.
47246         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47247         use ws2tcpip.h if sys/socket.h works.
47248         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47249         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47250
47251 2006-02-14  Simon Josefsson  <jas@extundo.com>
47252
47253         * modules/maintainer-makefile (Files): Rename.
47254
47255         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47256         and (the local) Makefile.cfg to maint-cfg.mk.
47257
47258         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47259         to the latter.
47260
47261         * modules/maintainer-makefile: New module.
47262
47263         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47264         severaly stripped to make it possible to build it up from scratch
47265         with reliable tests.
47266
47267         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47268         fixes to permit overriding the default actions when configure and
47269         makefile are not available.
47270
47271 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47272
47273         Sync from coreutils.
47274         * modules/lstat (Depends-on): Don't depend on xalloc.
47275         (License): Change from GPL to LGPL, since this is now simply a
47276         replacement for a libc function.
47277
47278 2006-02-14  Jim Meyering  <jim@meyering.net>
47279
47280         Sync from coreutils.
47281
47282         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47283         failure on deficient systems, and simplify gnulib lgpl dependencies.
47284         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47285         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47286
47287         * lib/xalloc-die.c: Remove unused definition of N_.
47288
47289 2006-02-14  Jim Meyering  <jim@meyering.net>
47290
47291         Sync from coreutils.
47292         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47293         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47294         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47295         double-quote uses of that variable, to accommodate the rare case in
47296         which getmntent is available in none of the libraries checked.  This
47297         happens at least on FreeBSD 5.0.
47298
47299 2006-02-13  Simon Josefsson  <jas@extundo.com>
47300
47301         * gnulib-tool (Usage): Fix --import, from
47302         karl@freefriends.org (Karl Berry).
47303
47304 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47305
47306         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47307
47308 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47309
47310         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47311         "autoupdate" on 2005-12-12.
47312
47313 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47314
47315         * modules/closeout (Depends-on): Remove atexit.
47316
47317 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47318
47319         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47320         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47321
47322 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47323
47324         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47325         __EXTENSIONS__ if this causes compilation to fail.  Problem
47326         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47327         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47328
47329 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47330
47331         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47332         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47334         All uses changed.
47335
47336 2006-01-26  Simon Josefsson  <jas@extundo.com>
47337
47338         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47339         prototype is visible on mingw32.
47340
47341         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47342         for mingw32.
47343
47344         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47345         mingw32).
47346
47347 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47348
47349         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47350         attempt to open for write; this always fails, at least on POSIX
47351         hosts.  This reinstates the 2006-01-09 change, which was
47352         inadvertently removed.
47353
47354 2006-01-26  Bruno Haible  <bruno@clisp.org>
47355
47356         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47357         Reported by Paul Eggert.
47358
47359 2006-01-26  Bruno Haible  <bruno@clisp.org>
47360             Paul Eggert  <eggert@cs.ucla.edu>
47361
47362         * lib/stdbool_.h (_Bool)
47363         [(! (defined __cplusplus || defined __BEOS__)
47364           && !defined __GNUC__
47365           && !(defined __HP_cc || defined __xlc__
47366                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47367                || defined __sgi))]:
47368         #define to signed char in these cases too; this simplifies
47369         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47370         etc., separately) and makes it more conservative.
47371
47372 2006-01-25  Simon Josefsson  <jas@extundo.com>
47373
47374         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47375         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47376         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47377
47378 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47379
47380         * lib/argp-namefrob.h: Bugfix. Remove stray #
47381
47382 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47383
47384         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47385         so that we test the test.
47386         Check for yet another HP-UX cc bug involving *bool |= bool.
47387
47388 2006-01-25  Karl Berry  <karl@gnu.org>
47389
47390         * config/srclist.txt (vasnprintf.c): sync lost.
47391
47392 2006-01-25  Jim Meyering  <jim@meyering.net>
47393
47394         Sync from the stable (b5) branch of coreutils:
47395
47396         * lib/fts.c (fts_children): Don't let close() clobber errno from
47397         failed fchdir().
47398
47399         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47400         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47401         a dangling symlink.  That can also happen at least for ELOOP.
47402         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47403         FYI, this bug predates the inclusion of fts.c in coreutils.
47404
47405         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47406         in their own block, so pre-c99 compilers don't object.
47407
47408         Avoid the double-free (first in fts_read, second in fts_close) that
47409         would occur when an `active' directory is made inaccessible (e.g.,
47410         via chmod a-x) during a traversal.
47411         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47412         before returning.  Reproduce this failure by
47413         mkdir -p a/b; cd a; chmod a-x . b
47414         Reported by Stavros Passas.
47415
47416 2006-01-25  Jim Meyering  <jim@meyering.net>
47417
47418         * lib/fileblocks.c: Remove more useless parentheses.
47419         * lib/readutmp.h: Likewise.
47420
47421 2006-01-25  Bruno Haible  <bruno@clisp.org>
47422
47423         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47424         warnings.
47425         Reported by Paul Eggert.
47426
47427 2006-01-25  Bruno Haible  <bruno@clisp.org>
47428
47429         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47430         rid of a trap command. For Solaris sh.
47431         Reported by Mark D. Baushke <mdb@gnu.org>.
47432
47433 2006-01-24  Simon Josefsson  <jas@extundo.com>
47434
47435         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47436         Bruno.
47437
47438 2006-01-24  Karl Berry  <karl@gnu.org>
47439
47440         * config/srclist.txt (argp-namefrob.h): sync lost.
47441
47442 2006-01-24  Jim Meyering  <jim@meyering.net>
47443
47444         * modules/openat (Files): Add lib/intprops.h.
47445         From Mark D. Baushke.
47446
47447 2006-01-24  Jim Meyering  <jim@meyering.net>
47448
47449         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47450         Reported by Mark D. Baushke.
47451
47452 2006-01-24  Jim Meyering  <jim@meyering.net>
47453
47454         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47455
47456 2006-01-24  Bruno Haible  <bruno@clisp.org>
47457
47458         * modules/strnlen (Maintainer): Change from glibc to all.
47459
47460 2006-01-24  Bruno Haible  <bruno@clisp.org>
47461
47462         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47463         Patch by Paul Eggert.
47464
47465 2006-01-24  Bruno Haible  <bruno@clisp.org>
47466
47467         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47468         already has it.
47469         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47470         2005-11-26.
47471
47472         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47473         'signed char' to avoid problems with the built-in _Bool type.
47474         Reported by Paul Eggert on 2005-11-26.
47475
47476 2006-01-24  Bruno Haible  <bruno@clisp.org>
47477
47478         * gnulib-tool (func_import): Avoid constructing complicated sed
47479         expressions inside backquote.
47480         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47481
47482 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47483
47484         These changes imported from libc.
47485         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47486         test and two separate function calls.
47487         * lib/strndup.c (__strndup): Add libc_hidden_def.
47488
47489 2006-01-23  Simon Josefsson  <jas@extundo.com>
47490
47491         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47492         Remove the test_*_SOURCES variable: automake infers it by default.
47493         * modules/tls-tests: Likewise.
47494
47495 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47496
47497         Work around porting bugs reported by Dieter in
47498         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47499         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47500         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47501         Include "getopt.h" first, to check interface.
47502         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47503         !HAVE_DECL_GETENV.
47504         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47505         (__strndup): Revert to K&R-style function dfns, the glibc style.
47506         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47507         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47508         Include strnlen.h first, to get prototype properly.
47509         (strnlen): Renamed from __strnlen.
47510         Remove weak alias.
47511
47512 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47513
47514         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47515
47516 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47517
47518         * config/srclist.txt: Adjust to reflect glibc reorganization.
47519         This affects only comments.
47520
47521 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47522
47523          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47524          Reported by Bruce Korb <bkorb@gnu.org>.
47525
47526 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47527
47528         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47529         to pacify gcc -Wswitch-default.
47530
47531 2006-01-22  Bruno Haible  <bruno@clisp.org>
47532
47533         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47534         temporary buffer for sprintf, take into account the precision also
47535         for 'd', 'i', 'u', 'o', 'x', 'X'.
47536
47537 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47538
47539         * modules/argp-tests: New module
47540         * tests/test-argp.c: New file
47541         * tests/test-argp-2.sh: New file
47542
47543 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47544
47545         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47546         (__argp_base_name): Removed
47547         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47548         typo.
47549         (__argp_base_name): Provide macro definition or extern declaration
47550         depending on the configuration
47551
47552 2006-01-20  Simon Josefsson  <jas@extundo.com>
47553
47554         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47555
47556 2006-01-20  Simon Josefsson  <jas@extundo.com>
47557
47558         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47559
47560 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47561
47562         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47563         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47564         Suggested by Bruno Haible.
47565
47566 2006-01-20  Karl Berry  <karl@gnu.org>
47567
47568         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47569         until changes propagate, I guess.
47570
47571 2006-01-19  Simon Josefsson  <jas@extundo.com>
47572
47573         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47574
47575 2006-01-19  Simon Josefsson  <jas@extundo.com>
47576
47577         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47578
47579 2006-01-19  Simon Josefsson  <jas@extundo.com>
47580
47581         * gnulib-tool: Set check_PROGRAMS.
47582
47583         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47584         modules/des-tests, modules/gc-arcfour-tests,
47585         modules/gc-arctwo-tests, modules/gc-des-tests,
47586         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47587         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47588         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47589         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47590         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47591         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47592         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47593         test_*_SOURCES.
47594
47595 2006-01-18  Simon Josefsson  <jas@extundo.com>
47596
47597         * modules/socklen (Depends-on): Depend on sys_socket.
47598
47599 2006-01-18  Simon Josefsson  <jas@extundo.com>
47600
47601         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47602         modules/des-tests, modules/gc-arcfour-tests,
47603         modules/gc-arctwo-tests, modules/gc-des-tests,
47604         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47605         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47606         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47607         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47608         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47609         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47610         $(EXEEXT) to automake TESTS variable, for mingw32.
47611
47612 2006-01-17  Simon Josefsson  <jas@extundo.com>
47613
47614         * modules/socklen (Include): Need sys/socket.h.
47615
47616 2006-01-17  Bruno Haible  <bruno@clisp.org>
47617
47618         * modules/ssize_t (Include): Add <sys/types.h>.
47619
47620 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47621
47622         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47623         it's not portable and it doesn't work with cross-compiles.
47624         Problem reported by Bruno Haible.  Fix missing-$ typo in
47625         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47626         -zignore from being used with Sun's C compiler.
47627
47628 2006-01-12  Simon Josefsson  <jas@extundo.com>
47629
47630         * lib/base64.c: Fix warning, reported by Bruno Haible
47631         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47632
47633 2006-01-12  Bruno Haible  <bruno@clisp.org>
47634
47635         * modules/ldd: New file.
47636         * build-aux/ldd.sh.in: New file.
47637         * MODULES.html.sh (Support for building libraries and executables): Add
47638         ldd.
47639
47640 2006-01-12  Bruno Haible  <bruno@clisp.org>
47641
47642         * m4/ldd.m4: New file.
47643
47644 2006-01-12  Bruno Haible  <bruno@clisp.org>
47645
47646         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47647         endless loop while replacing $auxdir with build-aux.
47648
47649 2006-01-11  Simon Josefsson  <jas@extundo.com>
47650
47651         * lib/stdint_.h (SIZE_MAX): Add missing (.
47652
47653 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47654
47655         Sync from coreutils.
47656         * lib/md5.c: Fix commentary typos.
47657         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47658         * lib/md5.h (__attribute__): Remove; unused.
47659         * lib/sha1.c: Fix commentary to match md5 better.
47660         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47661         so that we don't need to worry about alignment.  All uses changed.
47662         This merges the 2005-10-28 md5 change into sha1.
47663
47664 2006-01-11  Jim Meyering  <jim@meyering.net>
47665
47666         Sync from coreutils.
47667         * lib/md5.c (OP): Fix spacing.
47668
47669 2006-01-11  Bruno Haible  <bruno@clisp.org>
47670
47671         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47672         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47673         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47674
47675 2006-01-11  Bruno Haible  <bruno@clisp.org>
47676
47677         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47678         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47679         the "early" section as well.
47680
47681 2006-01-11  Bruno Haible  <bruno@clisp.org>
47682
47683         Avoid "ar: no archive members specified" error on MacOS X.
47684         * gnulib-tool (func_modules_add_dummy): New function.
47685         (func_import, func_create_testdir): Invoke it.
47686
47687 2006-01-11  Bruno Haible  <bruno@clisp.org>
47688
47689         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47690         with $auxdir in AC_CONFIG_FILES statements.
47691
47692 2006-01-11  Bruno Haible  <bruno@clisp.org>
47693
47694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47695         Initialize also noinst_HEADERS to empty.
47696
47697 2006-01-11  Bruno Haible  <bruno@clisp.org>
47698
47699         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47700         variables.
47701         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47702         autoreconf.
47703
47704 2006-01-11  Bruno Haible  <bruno@clisp.org>
47705
47706         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47707         overridable by the user.
47708         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47709
47710 2006-01-10  Simon Josefsson  <jas@extundo.com>
47711
47712         * modules/sys_socket: New file.
47713
47714 2006-01-10  Simon Josefsson  <jas@extundo.com>
47715
47716         * m4/sys_socket_h.m4: New file.
47717
47718 2006-01-10  Simon Josefsson  <jas@extundo.com>
47719
47720         * lib/socket_.h: New file.
47721
47722 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47723
47724         * modules/readutmp (Maintainer): Add myself.
47725
47726 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47727
47728         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47729         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47730         People who are still concerned with buggy memcmp implementations
47731         can invoke gl_FUNC_MEMCMP themselves.
47732
47733 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47734
47735         * lib/regex_internal.h (BITSET_WORD_BITS):
47736         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47737         preprocessor mishandles large unsigned values as if they were signed.
47738         Problem reported by Claudio Fontana in
47739         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47740
47741 2006-01-10  Jim Meyering  <jim@meyering.net>
47742
47743         Avoid the double-free (first in fts_read, second in fts_close) that
47744         would occur when an `active' directory is made inaccessible (e.g.,
47745         via chmod a-x) during a traversal.
47746         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47747         before returning.  Reproduce this failure by
47748         mkdir -p a/b; cd a; chmod a-x . b
47749         Reported by Stavros Passas.
47750
47751         Sync from coreutils.
47752         * lib/sha1.c: Tweak grammar in a comment.
47753
47754 2006-01-10  Jim Meyering  <jim@meyering.net>
47755
47756         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47757         Patch by Joerg Sonnenberger.
47758
47759 2006-01-10  Bruno Haible  <bruno@clisp.org>
47760
47761         * modules/readutmp: Depend on module free.
47762         * modules/strtok_r: Depend on module restrict.
47763
47764 2006-01-10  Bruno Haible  <bruno@clisp.org>
47765
47766         * modules/gettext (configure.ac): Add an invocation of
47767         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47768
47769 2006-01-10  Bruno Haible  <bruno@clisp.org>
47770
47771         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47772         Reported by Werner Lemberg <wl@gnu.org>.
47773
47774 2006-01-10  Bruno Haible  <bruno@clisp.org>
47775
47776         * lib/localcharset.c: Update from GNU gettext.
47777
47778 2006-01-10  Bruno Haible  <bruno@clisp.org>
47779
47780         * lib/argp.h (__const): Remove macro. Use const instead.
47781         * lib/argp-fmtstream.h (__const): Likewise.
47782         * lib/glob_.h (__const): Remove macro.
47783         * lib/glob-libc.h: Use const instead of __const.
47784
47785 2006-01-10  Bruno Haible  <bruno@clisp.org>
47786
47787         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47788         variable.
47789         Needed to avoid an automake error regarding the 'gettext' module.
47790
47791 2006-01-09  Simon Josefsson  <jas@extundo.com>
47792
47793         * modules/inet_ntop (Depends-on): Add restrict.
47794
47795 2006-01-09  Simon Josefsson  <jas@extundo.com>
47796
47797         * modules/gc-rijndael-tests (License): Put under LGPL.
47798
47799         * modules/gc-des-tests (License): Likewise.
47800
47801         * modules/gc-arcfour-tests (License): Likewise.
47802
47803         * modules/gc-arctwo-tests (License): Likewise.
47804
47805         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47806
47807         * modules/gc-hmac-sha1-tests (Files): Likewise.
47808
47809         * modules/gc-hmac-md5-tests (License): Likewise.
47810
47811         * modules/gc-sha1-tests (License): Likewise.
47812
47813         * modules/gc-md5-tests (License): Likewise.
47814
47815         * modules/gc-md4-tests (License): Likewise.
47816
47817         * modules/gc-md2-tests (License): Likewise.
47818
47819         * modules/gc-tests (License): Likewise.
47820
47821         * modules/des-tests (License): Likewise.
47822
47823         * modules/md4-tests (License): Likewise.
47824
47825         * modules/md2-tests (License): Likewise.
47826
47827 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47828
47829         Sync from coreutils:
47830
47831         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47832         * modules/lib-ignore: New file.
47833         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47834         chdir-safer.m4, lchmod.m4.
47835         * modules/openat: Add mkdirat.c, openat-priv.h.
47836
47837 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47838
47839         Sync from coreutils.
47840         * m4/lib-ignore.m4: New file.
47841         * m4/lchmod.m4: New file.
47842
47843 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47844
47845         Sync from coreutils.
47846         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47847         for write access: POSIX says that must fail.
47848         * lib/fts.c (diropen): Likewise.
47849         * lib/save-cwd.c (save_cwd): Likewise.
47850         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47851         well, for minor improvements on hosts that lack O_DIRECTORY.
47852         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47853         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47854         Fall back on chown if open failed with EACCES.
47855
47856         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47857         Report an error at compile-time if only a 1-second nominal clock
47858         resolution is found.
47859
47860         * lib/lchmod.h: New file.
47861         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47862         (make_dir_parents): Use lchown rather than chown, and
47863         lchmod rather than chmod.
47864
47865         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47866         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47867         "proc" reported by n0dalus.
47868
47869         * lib/mountlist.c: Include <limits.h>.
47870         (dev_from_mount_options)
47871         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47872         New function.  It no longer assumes "dev=" has the System V meaning
47873         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47874         (read_file_system_list)
47875         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47876         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47877         dev= in that case.
47878
47879         * lib/posixtm.h (PDS_PRE_2000): New macro.
47880         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47881         allow_century.  All usages changed.  Reject dates outside the range
47882         1969-1999 if PDS_PRE_2000 is used.
47883
47884 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47885
47886         Sync from coreutils.
47887         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47888         (Time of day items): Mention the possibility of leap seconds.
47889         Problem reported by Dr. David Alan Gilbert.
47890
47891 2006-01-09  Jim Meyering  <jim@meyering.net>
47892
47893         Sync from coreutils.
47894
47895         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47896
47897         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47898
47899         * lib/modechange.c (mode_compile): Reject an invalid mode string
47900         that starts with an octal digit.  From Andreas Gruenbacher.
47901
47902         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47903         and dup to open_safer and dup_safer, respectively.
47904         (openat_permissive): Fix typo in comment.
47905
47906         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47907         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47908         (_): Remove; no longer needed.
47909         (openat): Renamed from rpl_openat; no need for rpl_openat
47910         since openat.h renames openat for us.
47911         Replace most of the body with a call to openat_permissive,
47912         to avoid duplicate code.
47913         Port to (probably hypothetical) environments were mode_t is
47914         wider than int.
47915         (openat_permissive): Require mode arg, so that we can check
47916         types better.  Put it just after flags.  Change cwd failure
47917         indicator from pointer-to-bool to pointer-to-errno-value.
47918         All callers changed.
47919         Invoke openat_save_fail and/or openat_restore_fail if
47920         cwd_errno is null, so that openat can call us.
47921         (openat_permissive, fdopendir, fstatat, unlinkat):
47922         Simplify errno handling to avoid some duplicate code,
47923         as it's OK to set errno on success.
47924         * lib/openat.h: Revamp code so that function macros depend on
47925         __OPENAT_PREFIX only, not also on AT_FDCWD.
47926         (openat_ro): Remove.  Caller changed to use openat_permissive.
47927         (openat_permissive): Now a macro, if not a function.
47928         (openat_restore_fail, openat_save_fail): Now always functions,
47929         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47930
47931         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47932         and openat.c.
47933         * lib/mkdirat.c: Include openat-priv.h.
47934         Remove definitions of macros defined therein.
47935         * lib/openat.c: Likewise.
47936
47937         * lib/mkdirat.c (mkdirat): New file and function.
47938         * lib/openat.h (mkdirat): Declare.
47939
47940         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47941
47942         * lib/openat.h (openat_permissive): Declare.
47943         (openat_ro): Define.
47944
47945         * lib/openat.c (EXPECTED_ERRNO): New macro.
47946         (openat_permissive): New function -- used in remove.c rewrite.
47947         (all functions): Set errno just before returning, only if there
47948         was an actual failure.
47949         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47950
47951         Emulate openat-family functions using Linux's procfs, if possible.
47952         Idea and some code based on Ulrich Drepper's glibc changes.
47953
47954         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47955         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47956         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47957         before falling back on save_cwd and restore_cwd.
47958         (fdopendir, fstatat, unlinkat): Likewise.
47959
47960         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47961         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47962
47963         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47964         as second argument to va_arg.  Otherwise, some versions of gcc
47965         warn that `if this code is reached, the program will abort'.
47966
47967 2006-01-09  Jim Meyering  <jim@meyering.net>
47968
47969         Sync from coreutils.
47970         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47971         Require openat-priv.h.
47972
47973 2006-01-09  Bruno Haible  <bruno@clisp.org>
47974
47975         * modules/strnlen (Include): Use strnlen.h.
47976
47977 2006-01-09  Bruno Haible  <bruno@clisp.org>
47978
47979         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47980
47981 2006-01-09  Bruno Haible  <bruno@clisp.org>
47982
47983         * lib/sysexit_.h (EX_OK): New macro.
47984         Suggested by Martin Lambers <marlam@marlam.de>.
47985
47986 2006-01-09  Bruno Haible  <bruno@clisp.org>
47987
47988         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47989         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47990
47991 2006-01-09  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47994         numbers.
47995
47996 2006-01-09  Bruno Haible  <bruno@clisp.org>
47997
47998         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47999         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48000         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48001         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48002
48003 2006-01-09  Bruno Haible  <bruno@clisp.org>
48004
48005         * build-aux/javacomp.sh.in: New file, moved from lib/.
48006         * modules/javacomp-script (Files): Update.
48007         (configure.ac): Add AC_CONFIG_FILES invocation.
48008         (EXTRA_DIST): Remove variable.
48009
48010         * build-aux/javaexec.sh.in: New file, moved from lib/.
48011         * modules/javaexec (Files): Update.
48012         (configure.ac): Add AC_CONFIG_FILES invocation.
48013         (EXTRA_DIST): Remove javaexec.sh.in.
48014
48015         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48016         * modules/csharpcomp-script (Files): Update.
48017         (configure.ac): Add AC_CONFIG_FILES invocation.
48018         (EXTRA_DIST): Remove variable.
48019
48020         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48021         * modules/csharpexec (Files): Update.
48022         (configure.ac): Add AC_CONFIG_FILES invocation.
48023         (EXTRA_DIST): Remove csharpexec.sh.in.
48024
48025 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48026
48027         Sync from coreutils.
48028
48029         Add POSIX ACL support
48030         * lib/acl.h (copy_acl, set_acl): Add declarations.
48031         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48032         systems other than Linux.
48033         (chmod_or_fchmod): New function: use fchmod when possible,
48034         and chmod otherwise.
48035         (file_has_acl): Add a POSIX ACL implementation, with a
48036         Linux-specific subcase.
48037         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48038         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48039         acls are unsupported.
48040         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48041         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48042         are unsupported.
48043
48044 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48045
48046         Sync from coreutils.
48047         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48048
48049 2006-01-07  Bruno Haible  <bruno@clisp.org>
48050
48051         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48052         gl_EARLY.
48053
48054 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48055
48056         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48057         Problem reported for Mingw by Mark Junker.
48058
48059 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48060
48061         * README: Gnulib normally doesn't generate a tarball.
48062
48063 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48064
48065         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48066         long int, not int, for nanosecond counts, so that people who are
48067         used to POSIX struct timespec won't be surprised.  Reported by Jim
48068         Meyering.
48069
48070 2005-12-28  Bruno Haible  <bruno@clisp.org>
48071
48072         * build-aux/config.rpath: Update from GNU gettext.
48073
48074 2005-12-16  Jim Meyering  <jim@meyering.net>
48075
48076         * modules/fprintftime: New module.
48077         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48078
48079 2005-12-16  Jim Meyering  <jim@meyering.net>
48080
48081         * m4/fprintftime.m4: New file.
48082
48083 2005-12-16  Jim Meyering  <jim@meyering.net>
48084
48085         * lib/fprintftime.c, lib/fprintftime.h: New files.
48086
48087 2005-12-15  Simon Josefsson  <jas@extundo.com>
48088
48089         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48090         new m4/socklen.m4.
48091
48092 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48093
48094         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48095         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48096
48097 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48098
48099         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48100         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48101         struct uparams is valid. Fall back to the default values if it is
48102         not.
48103
48104 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48105
48106         * modules/argp (Files): Add argp-pin.c
48107         (Depends-on): dirname
48108         (lib_SOURCES): Add argp-pin.c
48109
48110 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48111
48112         * m4/argp.m4:  Check if program_invocation_name and
48113         program_invocation_short_name are declared and define appropriate
48114         macros if they are not.
48115
48116 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48117
48118         * lib/argp-help.c (__argp_base_name): New function
48119         (__argp_short_program_name): Rewrite using __argp_base_name
48120         * lib/argp-namefrob.h: Define program_invocation_name and
48121         program_invocation_short_name if requested
48122         (__argp_base_name): Add prototype
48123         * lib/argp-parse.c (argp_def): Use gettext wrappers
48124         (argp_default_parser): Use __argp_base_name
48125         * lib/argp-pin.c: New file. Defines program_invocation_name and
48126         program_invocation_short_name on systems that lack them.
48127
48128 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48129
48130         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48131         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48132         porting problem reported by Georg Schwarz in
48133         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48134
48135 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48136
48137         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48138         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48139         porting problem reported by Georg Schwarz in
48140         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48141
48142 2005-12-05  Bruno Haible  <bruno@clisp.org>
48143
48144         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48145         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48146         Reported by Mark Junker <mjscod@gmx.de>.
48147
48148 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48149
48150         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48151         Use implementation from Albert Chin, with some
48152         comments/corrections by Stepan Kasal and myself.
48153
48154 2005-12-02  Bruno Haible  <bruno@clisp.org>
48155
48156         * gnulib-tool (func_import): Accept GPLed build tool modules when
48157         --lgpl is given.
48158         * modules/csharpcomp-script: New file.
48159         * modules/csharpcomp: Depend on it.
48160         * modules/javacomp-script: New file.
48161         * modules/javacomp: Depend on it.
48162         Suggested by Simon Josefsson.
48163
48164 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48165
48166         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48167         statement, to work around an HP-UX 10.20 compiler bug reported by
48168         Peter O'Gorman.
48169
48170 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48171
48172         * modules/savedir (Depends-on): Add openat.
48173
48174 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48175
48176         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48177         (uintmax_t) [defined uintmax_t]: Do not declare.
48178         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48179         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48180         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48181         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48182         sake of portability to weird hosts that C allows (though we don't
48183         know of any practical examples).
48184
48185         * lib/savedir.h (fdsavedir): New decl.
48186         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48187         contains most of the former guts of savedir.
48188         (savedir): Use savedirstream.
48189         Include "openat.h".
48190
48191 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48192
48193         * modules/obstack (Files): Add m4/ulonglong.m4.
48194         Problem reported by Davide Angelocola.
48195
48196 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48197
48198         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48199         coreutils no longer futzes with rounding modes.
48200
48201 2005-11-14  Jim Meyering  <jim@meyering.net>
48202
48203         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48204         replacement of mkstemp.
48205
48206 2005-11-10  Simon Josefsson  <jas@extundo.com>
48207
48208         * lib/readline.c: Remove EOL.
48209
48210 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48211
48212         * modules/gethrxtime (Depends-on): Add gettime.
48213
48214 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48215
48216         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48217         or gettimeofday; no longer needed.
48218
48219 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48220
48221         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48222         time business.
48223         (gethrxtime) [! (HAVE_NANOUPTIME
48224         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48225         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48226         our own approximation.
48227
48228 2005-11-08  Eric Blake  <ebb9@byu.net>
48229
48230         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48231
48232 2005-11-08  Eric Blake  <ebb9@byu.net>
48233
48234         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48235
48236 2005-11-04  Bruno Haible  <bruno@clisp.org>
48237
48238         * gnulib-tool: Implement --update mode.
48239
48240 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48241
48242         Fix porting problem reported by Theodoros V. Kalamatianos.
48243         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48244         Don't assume that futimes failing means we must fail.
48245
48246 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48247
48248         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48249         variables to suggest the intended function of the PATH_MAX check.
48250
48251 2005-10-30  Kean Johnston  <jkj@sco.com>
48252
48253         Trivial changes to support SCO systems.
48254         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48255         as PATH_MAX.
48256         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48257         where __ptr is null when no I/O is pending.
48258
48259 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48260
48261         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48262         leave errno alone.  Problem reported by Dmitry V. Levin.
48263
48264 2005-10-28  Simon Josefsson  <jas@extundo.com>
48265
48266         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48267         Test more.
48268
48269         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48270
48271         * modules/md2, modules/md2-tests: New files.
48272
48273 2005-10-28  Simon Josefsson  <jas@extundo.com>
48274
48275         * m4/inet_ntop.m4: More tests.
48276
48277         * m4/gc-md2.m4, md2.m4: New file.
48278
48279 2005-10-28  Simon Josefsson  <jas@extundo.com>
48280
48281         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48282         "restrict" keywords, as per POSIX.  Protect the function
48283         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48284         Don't use K&R prototypes.  Check the sprintf return values.
48285         Re-define EAFNOSUPPORT if not present.  Indent.
48286
48287         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48288         suggested by Bruno Haible <bruno@clisp.org>.
48289
48290         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48291
48292         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48293
48294         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48295         libgcrypt).
48296
48297         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48298
48299         * lib/md2.h, lib/md2.c: New files.
48300
48301 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48302
48303         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48304         errno alone.  Problem reported by Frederic Jolliton.
48305
48306 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48307
48308         * modules/verify (License): Change from GPL to LGPL.  This is a
48309         tiny module and there are apparently near-equivalents that are
48310         under the BSD license.
48311
48312 2005-10-24  Simon Josefsson  <jas@extundo.com>
48313
48314         * modules/sha1: Relicense to LGPL.
48315
48316 2005-10-24  Simon Josefsson  <jas@extundo.com>
48317
48318         * lib/md4.h: Shrink buffer size, now that we changed the type.
48319
48320 2005-10-23  Simon Josefsson  <jas@extundo.com>
48321
48322         * gnulib-tool (func_import): Fix --tests-base.
48323
48324 2005-10-22  Simon Josefsson  <jas@extundo.com>
48325
48326         * modules/arcfour (Depends-on): Need stdint.
48327
48328 2005-10-22  Simon Josefsson  <jas@extundo.com>
48329
48330         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48331         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48332
48333 2005-10-22  Simon Josefsson  <jas@extundo.com>
48334
48335         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48336         suggested by Bruno Haible <bruno@clisp.org>.
48337
48338 2005-10-22  Simon Josefsson  <jas@extundo.com>
48339
48340         * lib/crc.h: Include stddef.h, for size_t.
48341
48342 2005-10-22  Simon Josefsson  <jas@extundo.com>
48343
48344         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48345         arcfour_context struct (simplify test vector testing in GNU
48346         Shishi).
48347
48348 2005-10-21  Simon Josefsson  <jas@extundo.com>
48349
48350         * modules/des, modules/des-tests: New files.
48351
48352         * modules/gc-des, modules/gc-des-tests: New files.
48353
48354         * tests/test-des.c, tests/test-gc-des.c: New file.
48355
48356 2005-10-21  Simon Josefsson  <jas@extundo.com>
48357
48358         * modules/arctwo, modules/arctwo-tests: New files.
48359
48360         * tests/test-arctwo.c: New file.
48361
48362         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48363
48364         * tests/test-gc-arctwo.c: New file.
48365
48366 2005-10-21  Simon Josefsson  <jas@extundo.com>
48367
48368         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48369         Bruno Haible <bruno@clisp.org>.
48370
48371         * m4/gc-des.m4: New file.
48372
48373 2005-10-21  Simon Josefsson  <jas@extundo.com>
48374
48375         * m4/arctwo.m4: New file.
48376
48377         * m4/gc-arctwo.m4: New file.
48378
48379 2005-10-21  Simon Josefsson  <jas@extundo.com>
48380
48381         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48382         block.
48383
48384 2005-10-21  Simon Josefsson  <jas@extundo.com>
48385
48386         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48387         <bruno@clisp.org>.
48388
48389         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48390
48391         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48392         Bruno Haible <bruno@clisp.org>.
48393
48394         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48395         <bruno@clisp.org>.
48396
48397 2005-10-21  Simon Josefsson  <jas@extundo.com>
48398
48399         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48400
48401 2005-10-21  Simon Josefsson  <jas@extundo.com>
48402
48403         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48404
48405 2005-10-21  Simon Josefsson  <jas@extundo.com>
48406
48407         * lib/des.h, lib/des.c: New files.
48408
48409         * lib/gc-gnulib.c: Support DES.c
48410
48411 2005-10-21  Simon Josefsson  <jas@extundo.com>
48412
48413         * lib/arctwo.h, lib/arctwo.c: New files.
48414
48415         * lib/gc-gnulib.c: Support ARCTWO.
48416
48417 2005-10-21  Simon Josefsson  <jas@extundo.com>
48418
48419         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48420         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48421
48422 2005-10-21  Simon Josefsson  <jas@extundo.com>
48423
48424         * gnulib-tool (func_import, func_create_testdir): Define automake
48425         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48426         Makefile.am snippet),
48427         suggested by Bruno Haible <bruno@clisp.org>.
48428
48429         * modules/gc (Makefile.am): Use it.
48430
48431 2005-10-21  Bruno Haible  <bruno@clisp.org>
48432
48433         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48434         patch.
48435
48436 2005-10-19  Simon Josefsson  <jas@extundo.com>
48437
48438         * tests/test-gc-rijndael.c: New file.
48439
48440         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48441
48442 2005-10-19  Simon Josefsson  <jas@extundo.com>
48443
48444         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48445         interface too.
48446
48447 2005-10-19  Simon Josefsson  <jas@extundo.com>
48448
48449         * tests/test-gc-arcfour.c: New file.
48450
48451         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48452
48453 2005-10-19  Simon Josefsson  <jas@extundo.com>
48454
48455         * modules/gc-md4, modules/gc-md4-tests: New file.
48456
48457         * tests/test-gc-md4.c: New file.
48458
48459 2005-10-19  Simon Josefsson  <jas@extundo.com>
48460
48461         * m4/gc-md4.m4: New file.
48462
48463 2005-10-19  Simon Josefsson  <jas@extundo.com>
48464
48465         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48466         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48467         <kasal@ucw.cz>.
48468
48469 2005-10-19  Simon Josefsson  <jas@extundo.com>
48470
48471         * m4/gc-arcfour.m4: New file.
48472
48473         * m4/gc-rijndael.m4: New file.
48474
48475 2005-10-19  Simon Josefsson  <jas@extundo.com>
48476
48477         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48478
48479 2005-10-19  Simon Josefsson  <jas@extundo.com>
48480
48481         * lib/gc-gnulib.c: Support ARCFOUR.
48482
48483 2005-10-19  Simon Josefsson  <jas@extundo.com>
48484
48485         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48486         support.
48487
48488         * lib/gc.h: Add ECB enum type.
48489
48490         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48491
48492 2005-10-18  Simon Josefsson  <jas@extundo.com>
48493
48494         * tests/test-md5.c: New file.
48495
48496         * modules/md5-tests: New file.
48497
48498 2005-10-18  Simon Josefsson  <jas@extundo.com>
48499
48500         * tests/test-md4.c: New file.
48501
48502         * modules/md4, modules/md4-tests: New files.
48503
48504 2005-10-18  Simon Josefsson  <jas@extundo.com>
48505
48506         * m4/md4.m4: New file.
48507
48508 2005-10-18  Simon Josefsson  <jas@extundo.com>
48509
48510         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48511
48512 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48513
48514         * gnulib-tool (func_create_testdir): Omit the second check whether
48515         BUILT_SOURCES in nonempty.
48516
48517 2005-10-17  Simon Josefsson  <jas@extundo.com>
48518
48519         * tests/test-rijndael.c: New file.
48520
48521 2005-10-17  Simon Josefsson  <jas@extundo.com>
48522
48523         * modules/sha1: Depend on stdint instead of md5.
48524
48525         * modules/md5: Depend on stdint, remove uint32_t.
48526
48527 2005-10-17  Simon Josefsson  <jas@extundo.com>
48528
48529         * modules/gc-sha1-tests: New file.
48530
48531         * tests/test-gc-sha1.c: New file.
48532
48533 2005-10-17  Simon Josefsson  <jas@extundo.com>
48534
48535         * m4/md5.m4: Remove call to uint32_t.m4.
48536
48537 2005-10-17  Simon Josefsson  <jas@extundo.com>
48538
48539         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48540
48541         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48542         md5.h.
48543
48544         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48545
48546         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48547
48548 2005-10-17  Simon Josefsson  <jas@extundo.com>
48549
48550         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48551
48552 2005-10-17  Simon Josefsson  <jas@extundo.com>
48553
48554         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48555
48556 2005-10-17  Simon Josefsson  <jas@extundo.com>
48557
48558         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48559
48560         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48561
48562 2005-10-17  Bruno Haible  <bruno@clisp.org>
48563
48564         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48565         that it can also be used in a test.
48566
48567 2005-10-16  Bruno Haible  <bruno@clisp.org>
48568
48569         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48570         TESTS_ENVIRONMENT, so that individual tests can augment it.
48571
48572         * gnulib-tool (func_create_testdir): Use an intermediate target for
48573         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48574         macros, like $(ALLOCA_H), which cannot be passed through the command
48575         line.
48576
48577 2005-10-15  Simon Josefsson  <jas@extundo.com>
48578
48579         * modules/rijndael-tests: New file.
48580
48581         * modules/rijndael: New file.
48582
48583 2005-10-15  Simon Josefsson  <jas@extundo.com>
48584
48585         * m4/rijndael.m4: New file.
48586
48587 2005-10-15  Simon Josefsson  <jas@extundo.com>
48588
48589         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48590
48591         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48592
48593 2005-10-14  Simon Josefsson  <jas@extundo.com>
48594
48595         * tests/test-arcfour.c: New file.
48596
48597         * modules/arcfour, modules/arcfour-tests: New files.
48598
48599 2005-10-14  Simon Josefsson  <jas@extundo.com>
48600
48601         * m4/arcfour.m4: New file.
48602
48603 2005-10-14  Simon Josefsson  <jas@extundo.com>
48604
48605         * lib/arcfour.h, lib/arcfour.c: New files.
48606
48607 2005-10-14  Roland McGrath  <roland@redhat.com>
48608
48609         Import from libc.  [BZ #1331]
48610         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48611         macro argument.
48612         Reported by Matej Vela <vela@debian.org>.
48613
48614 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48615
48616         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48617         include <wchar.h>; no longer needed.
48618
48619 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48620
48621         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48622
48623 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48624         and  Ulrich Drepper  <drepper@redhat.com>
48625
48626         Import from libc.
48627         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48628         instead of inline stream orientation test and two separate
48629         function calls.  Pay no attention to USE_IN_LIBIO.
48630
48631 2005-10-13  Simon Josefsson  <jas@extundo.com>
48632
48633         * modules/gc-hmac-md5-tests: New file.
48634
48635         * tests/test-gc-hmac-sha1.c: New file.
48636
48637         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48638
48639         * modules/gc-hmac-md5-tests: New file.
48640
48641         * tests/test-gc-md5.c: New file.
48642
48643         * modules/gc-md5-tests: New file.
48644
48645 2005-10-13  Simon Josefsson  <jas@extundo.com>
48646
48647         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48648         Move memory allocation outside of loop.
48649
48650 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48651
48652         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48653         intermediate directory is in a read-only file system.  Problem
48654         reported by Eric Blake.
48655
48656 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48657
48658         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48659
48660 2005-10-12  Simon Josefsson  <jas@extundo.com>
48661
48662         * tests/test-hmac-sha1.c: New file.
48663
48664         * modules/hmac-sha1-tests: New file.
48665
48666         * modules/hmac-sha1: New file.
48667
48668 2005-10-12  Simon Josefsson  <jas@extundo.com>
48669
48670         * modules/gc-sha1: New file.
48671
48672 2005-10-12  Simon Josefsson  <jas@extundo.com>
48673
48674         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48675
48676         * tests/test-gc-pbkdf2-sha1.c: New file.
48677
48678 2005-10-12  Simon Josefsson  <jas@extundo.com>
48679
48680         * modules/gc-md5, modules/gc-hmac-md5: New files.
48681
48682         * modules/gc (Files): Remove md5, memxor and hmac files.
48683
48684 2005-10-12  Simon Josefsson  <jas@extundo.com>
48685
48686         * m4/gc-pbkdf2-sha1.m4: New file.
48687
48688         * m4/gc-hmac-sha1.m4: New file.
48689
48690         * m4/gc-sha1: New file.
48691
48692         * m4/hmac-sha1.m4: New file.
48693
48694 2005-10-12  Simon Josefsson  <jas@extundo.com>
48695
48696         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48697
48698         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48699
48700 2005-10-12  Simon Josefsson  <jas@extundo.com>
48701
48702         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48703         suggested by Bruno Haible <bruno@clisp.org>.
48704
48705 2005-10-12  Simon Josefsson  <jas@extundo.com>
48706
48707         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48708
48709 2005-10-12  Simon Josefsson  <jas@extundo.com>
48710
48711         * lib/gc-pbkdf2-sha1.c: New file.
48712
48713         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48714
48715 2005-10-12  Simon Josefsson  <jas@extundo.com>
48716
48717         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48718
48719         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48720
48721 2005-10-12  Simon Josefsson  <jas@extundo.com>
48722
48723         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48724         GC_USE_HMAC_MD5, respectively.
48725
48726         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48727         (gc_md5): Fix typo.
48728
48729         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48730
48731         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48732
48733         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48734
48735 2005-10-12  Bruno Haible  <bruno@clisp.org>
48736
48737         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48738         Reported by Stepan Kasal <kasal@ucw.cz>.
48739
48740 2005-10-11  Simon Josefsson  <jas@extundo.com>
48741
48742         * tests/test-crc.c: New file.
48743
48744         * modules/crc, modules/crc-tests: New files.
48745
48746 2005-10-11  Simon Josefsson  <jas@extundo.com>
48747
48748         * m4/crc.m4: New file.
48749
48750 2005-10-11  Simon Josefsson  <jas@extundo.com>
48751
48752         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48753
48754         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48755
48756         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48757
48758 2005-10-11  Simon Josefsson  <jas@extundo.com>
48759
48760         * lib/crc.h, lib/crc.c: New files.
48761
48762         * lib/gc.h (gc_hash_buffer): Add doc.
48763
48764 2005-10-11  Bruno Haible  <bruno@clisp.org>
48765
48766         * modules/c-strcasestr: New file.
48767         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48768
48769 2005-10-11  Bruno Haible  <bruno@clisp.org>
48770
48771         * modules/c-strcase: New file.
48772         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48773
48774 2005-10-11  Bruno Haible  <bruno@clisp.org>
48775
48776         * lib/strcasecmp.c: Include limits.h.
48777         (strcasecmp): Avoid integer overflow on exotic platforms.
48778         * lib/strncasecmp.c: Include limits.h.
48779         (strncasecmp): Avoid integer overflow on exotic platforms.
48780         Reported by Paul Eggert.
48781
48782 2005-10-11  Bruno Haible  <bruno@clisp.org>
48783
48784         * lib/c-strcasestr.h: New file, from GNU gettext.
48785         * lib/c-strcasestr.c: New file, from GNU gettext.
48786
48787 2005-10-11  Bruno Haible  <bruno@clisp.org>
48788
48789         * lib/c-strcase.h: New file, from GNU gettext.
48790         * lib/c-strcasecmp.c: New file, from GNU gettext.
48791         * lib/c-strncasecmp.c: New file, from GNU gettext.
48792
48793 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48794
48795         * modules/mempcpy (License): GPL -> LGPL.
48796         * modules/strchrnul (License): Likewise.
48797         * modules/sysexits (License): Likewise.
48798
48799 2005-10-08  Simon Josefsson  <jas@extundo.com>
48800
48801         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48802
48803 2005-10-07  Simon Josefsson  <jas@extundo.com>
48804
48805         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48806
48807 2005-10-06  Simon Josefsson  <jas@extundo.com>
48808
48809         * tests/test-hmac-md5.c: New file.
48810
48811         * modules/hmac-md5-tests: New file.
48812
48813         * modules/hmac-md5: New file.
48814
48815 2005-10-06  Simon Josefsson  <jas@extundo.com>
48816
48817         * m4/hmac-md5.m4: New file.
48818
48819         * m4/memxor.m4: Require gl_C_RESTRICT.
48820
48821 2005-10-06  Simon Josefsson  <jas@extundo.com>
48822
48823         * lib/memxor.c (memxor): Avoid casts and warnings.
48824
48825 2005-10-06  Simon Josefsson  <jas@extundo.com>
48826
48827         * lib/hmac-md5.c: New file.
48828
48829         * lib/hmac.h: New file.
48830
48831 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48832
48833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48834         promotes to int, not unsigned int, to catch the AIX 5.3
48835         compiler bug.
48836
48837 2005-10-05  Simon Josefsson  <jas@extundo.com>
48838
48839         * modules/memxor: New file.
48840
48841         * modules/iconv (Files): Move config.rpath to havelib, it is used
48842         there.
48843
48844         * modules/havelib (Files): Add config.rpath.
48845
48846 2005-10-05  Simon Josefsson  <jas@extundo.com>
48847
48848         * m4/memxor.m4: New file.
48849
48850 2005-10-05  Simon Josefsson  <jas@extundo.com>
48851
48852         * lib/memxor.c (memxor): Fix compiler error.
48853
48854         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48855         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48856
48857         * lib/memxor.h, lib/memxor.c: New files.
48858
48859         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48860         we assume all systems have it, suggested by Jim Meyering
48861         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48862         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48863         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48864         same reasons.
48865
48866 2005-10-05  Simon Josefsson  <jas@extundo.com>
48867
48868         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48869
48870 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48871
48872         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48873         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48874         needed, since the source code now assumes these .h files.
48875
48876 2005-10-05  Derek Price  <derek@ximbiot.com>
48877
48878         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48879
48880 2005-10-05  Bruno Haible  <bruno@clisp.org>
48881
48882         * modules/stdint (License): Change to LGPL.
48883
48884 2005-10-04  Simon Josefsson  <jas@extundo.com>
48885
48886         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48887         D. Baushke" <mdb@gnu.org>.
48888
48889 2005-10-04  Bruno Haible  <bruno@clisp.org>
48890
48891         * lib/verify.h (verify_true): Provide alternative definition for C++.
48892
48893 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48894
48895         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48896         (SSIZE_MAX): New macro, if not already defined.
48897         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48898         than 2 GiB.
48899
48900 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48901
48902         Sync from coreutils.
48903         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48904         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48905         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48906         ULLONG_MAX doesn't work with 2.7.2.1.
48907
48908 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48909
48910         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48911         From Ben Pfaff.
48912
48913         * modules/exclude (Depends-on): Depend on verify.
48914         * modules/strtoimax (Depends-on): Likewise.
48915         * modules/utimecmp (Depends-on): Likewise.
48916
48917 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48918
48919         * lib/exclude.c: Include verify.h.
48920         (verify): Remove.  All callers changed to use verify.h's version.
48921         * lib/strtoimax.c: Likewise.
48922         * lib/utimecmp.c: Likewis.e
48923
48924         Sync from coreutils.
48925         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48926         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48927         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48928         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48929         bother returning ENOSYS if settimeofday or stime fails; just let
48930         them return whatever errno they want to return.
48931         * lib/utimens.c: Include unistd.h, for dup2.
48932         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48933         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48934
48935 2005-10-02  Jim Meyering  <jim@meyering.net>
48936
48937         Sync from coreutils.
48938         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48939         from glibc-2.2.5 that fails for read-only files.
48940
48941 2005-10-02  Jim Meyering  <jim@meyering.net>
48942
48943         Sync from coreutils.
48944         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48945         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48946         `#if HAVE_CONFIG_H'.
48947         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48948         Remove AT_FDCWD test.
48949         Do not consume the fd unless successful.
48950         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48951         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48952         block, so that we don't even try to compile it if settimeofday is
48953         available.  This works around a compilation failure on OSF1 V5.1,
48954         due to stime requiring a `long int*' while tv_sec is `int'.
48955
48956 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48957
48958         Sync from coreutils.
48959         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48960         against `yes', rather than just testing for nonempty.
48961
48962 2005-10-01  Simon Josefsson  <jas@extundo.com>
48963
48964         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48965         and Darwin.
48966
48967         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48968         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48969         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48970         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48971         Check if struct addrinfo is declared.
48972
48973 2005-10-01  Simon Josefsson  <jas@extundo.com>
48974
48975         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48976         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48977         AI_* and EAI_* definitions.  Protect function declarations.
48978
48979 2005-10-01  Jim Meyering  <jim@meyering.net>
48980
48981         Sync from coreutils.
48982
48983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48984         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48985         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48986         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48987         in the inet and nsl libraries.  Required on Solaris 5.7.
48988
48989 2005-10-01  Jim Meyering  <jim@meyering.net>
48990
48991         Sync from coreutils.
48992         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48993         in the inet and nsl libraries.  Required on Solaris 5.7.
48994
48995 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48996
48997         * lib/getdelim.c (getdelim): Remove unused variables.
48998
48999 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49000
49001         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49002         so that the code works even with ancient cpp.  Portability problem
49003         with GCC 2.7.2.1 reported by Thomas M.Ott.
49004
49005 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49006
49007         * modules/regex (Depends-on): Add strcase.
49008
49009         * modules/gethostname (Licence): Change from GPL to LGPL, since
49010         gethostname.c is a trivial implementation of a standard library
49011         function.
49012         * modules/poll (License): Change from GPL to LGPL, since it's
49013         derived from LGPL code.
49014
49015 2005-09-27  Jim Meyering  <jim@meyering.net>
49016
49017         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49018         HAVE_CONFIG_H.
49019
49020         * lib/intprops.h (signed_type_or_expr__): Define.
49021         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49022         for unsigned types.
49023
49024 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49025
49026         * lib/verify.h (verify_expr): Remove, replacing with:
49027         (verify_true): New macro that returns true instead of void.
49028         (verify_type__): Remove.
49029         (verify): Use verify_true rather than verify_type__.
49030
49031 2005-09-26  Bruno Haible  <bruno@clisp.org>
49032
49033         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49034         is necessary.
49035         (lib_SOURCES): Remove mbchar.c.
49036         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49037         (Files): Add m4/mbrtowc.m4.
49038         * modules/mbiter: Likewise.
49039         * modules/mbuiter: Likewise.
49040
49041 2005-09-26  Bruno Haible  <bruno@clisp.org>
49042
49043         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49044         compile mbchar.c if they are not both present.
49045         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49046         * m4/mbiter.m4 (gl_MBITER): Likewise.
49047         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49048         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49049         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49050
49051 2005-09-25  Jim Meyering  <jim@meyering.net>
49052
49053         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49054         also uses socklen_t.
49055
49056 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49057
49058         * lib/utimens.c (ENOSYS): Define if not already defined.
49059         (futimens): Support having a null PATH if the file descriptor
49060         is nonnegative.
49061
49062         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49063         Remove.
49064         (__attribute): Define to empty unless GCC 3.1 or later.
49065         This works around a core dump on OpenBSD 3.4, which has GCC
49066         2.95.3, which dumps core when given __attribute__(()).  It also
49067         simplifies other tests, since we really don't want to bother with
49068         worrying about which ancient version of GCC supported what.
49069         Original problem reported by Yoann Vandoorselaere, with part of
49070         the fix suggested by Derek Price.
49071
49072 2005-09-24  Jim Meyering  <jim@meyering.net>
49073
49074         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49075         so we can once again use a positive bitfield width of 1 -- now we
49076         don't have to explain why we were using a bitfield width of 2.
49077
49078 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49079
49080         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49081         and similarly for the other external symbols.  Problem reported
49082         by James Gallager.
49083
49084         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49085         bug reported by Jim Meyering.
49086
49087         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49089         not needed, since socklen is a prerequisite module.
49090
49091 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49092
49093         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49094         Problem reported by Eric Blake.
49095         (getaddrinfo): Initialize se so that it's not garbage.
49096         Redo internal storage allocation so that it doesn't make unportable
49097         assumptions about alignment.
49098         Fix a memory leak.
49099
49100         * lib/utimens.c (futimens): Use futimesat if available.
49101         Prefer it to futimes since it doesn't have the futimes bug.
49102
49103         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49104         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49105         Instead, declare a function that returns a pointer to an array,
49106         and use verify_type__ to declare the size of the array.
49107         Problem and germ of a solution reported by Bruno Haible.
49108         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49109         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49110
49111 2005-09-23  Jim Meyering  <jim@meyering.net>
49112
49113         Sync from coreutils.
49114         Correct build failure (socklen_t not defined) on at least
49115         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49116         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49117
49118 2005-09-23  Jim Meyering  <jim@meyering.net>
49119
49120         * modules/getaddrinfo (Depends-on): Add socklen.
49121
49122 2005-09-23  Bruno Haible  <bruno@clisp.org>
49123
49124         * tests/test-verify.c: New file.
49125
49126 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         Sync from coreutils.
49129
49130         * modules/argmatch (Depends-on): Add verify.
49131         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49132         unistd-safer.
49133         * modules/save-cwd (Depends-on): Likewise.
49134
49135         * modules/openat (Files): Add lib/openat-die.c.
49136         (Depends-on): Remove error, exitfail.
49137         Add dirname.
49138
49139         * modules/verify: New file.
49140         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49141         with "verify" module.
49142
49143 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49144
49145         Sync from coreutils.
49146
49147         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49148         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49149         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49150         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49151         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49152         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49153         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49154         Don't bother checking for string.h, stdlib.h, unistd.h.
49155         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49156         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49157         module's job.
49158         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49159         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49160
49161         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49162         (gl_GETDATE): Use it.
49163
49164         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49165
49166 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49167
49168         Sync from coreutils.
49169
49170         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49171         stat-time.h.
49172         * lib/argmatch.h: Include verify.h
49173         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49174         (ARGMATCH_ASSERT): Remove; unused.
49175         * lib/canonicalize.c: Assume STDC_HEADERS.
49176         * lib/exclude.c: Include "strcase.h".
49177         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49178         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49179         and stdio-safer.h.
49180         (getusershell): Call fopen, not fopen_safer.
49181         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49182         Do not include unistd-safer.h.
49183         (save_cwd): Don't call fd_safer; no longer needed
49184         now that we include fcntl--.h.
49185
49186         * lib/getdate.y (relative_time): New type.
49187         (RELATIVE_TIME_0): New constant.
49188         (parser_control): Use relative_time instead of doing it ourselves.
49189         (%union): Add new relative_time rel member.
49190         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49191         Now typeless.
49192         (relunit, relunit_snumber): Now of type rel.
49193         (zone, rel, relunit, get_date): Adjust to above changes.
49194
49195         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49196         Do not include unistd-safer.h.
49197         (getloadavg): Don't call fd_safer; no longer needed
49198         now that we include fcntl--.h.
49199
49200         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49201         (make_dir_parents): Treat ENOSYS like EEXIST.
49202
49203         Improve quality of diagnostics on restore_cwd failure.
49204         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49205         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49206         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49207         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49208         each time through the loop.  Do not diagnose restore_cwd failure;
49209         that is the caller's job (and perhaps the caller does not care).
49210
49211         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49212         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49213         If the file already exists but is not a directory, don't bother
49214         to try to make its parents.
49215         Close potential file descriptor leak if we can't chdir("/") (!).
49216         Don't always return true if chdir($PWD) fails; return true only
49217         if the requested action was done successfully (except for the
49218         chdir($PWD)).
49219         Don't log final directory unless we actually made it.
49220         Refactor to avoid duplicate code to fix up permissions.
49221         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49222
49223         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49224         to make it a bit faster and (I hope) clearer.
49225         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49226         Fix bug in formats like %2N.
49227
49228         * lib/verify.h: New file.
49229
49230 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         Sync from coreutils.
49233         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49234
49235 2005-09-22  Jim Meyering  <jim@meyering.net>
49236
49237         Sync from coreutils.
49238
49239         * m4/lstat.m4 (gl_FUNC_LSTAT):
49240         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49241         Remove obsolete comment.
49242         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49243         * m4/xstrtod.m4: Likewise.
49244
49245         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49246
49247 2005-09-22  Jim Meyering  <jim@meyering.net>
49248
49249         Sync from coreutils.
49250
49251         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49252
49253         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49254         the .tm_year member, since otherwise gcc-4.0 would now warn about
49255         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49256
49257         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49258         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49259
49260         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49261         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49262         when run in a time zone for which daylight savings time is in effect
49263         for the starting date.
49264
49265         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49266         stop us from restricting permissions of just-created absolute-named
49267         directories.
49268         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49269         to restore initial working directory.
49270         * lib/mkdir-p.c (make_dir_parents): New parameter:
49271         different_working_dir, to tell caller if/when we change the working
49272         directory and are unable to return to the initial one.
49273         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49274         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49275         `return false'.  This fixes a bug introduced on 2004-07-30.
49276
49277         * lib/openat.c (fdopendir): Be sure to close the supplied
49278         file descriptor before returning.  This makes our replacement
49279         implementation a little closer to Solaris's, where fdopendir
49280         ties the file descriptor to the returned DIR* pointer.
49281         * lib/openat.c (unlinkat): New function.
49282         * lib/openat.h (unlinkat): Add prototype.
49283         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49284         (openat_restore_fail): Rename from openat_restore_die.
49285         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49286
49287         Provide an alternative to exiting immediately upon save_cwd or
49288         restore_cwd failure.  Now, an application can arrange e.g.,
49289         to perform a longjump in that case.
49290         * lib/openat.c: Include dirname.h.
49291         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49292         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49293         and openat_restore_die rather than calling error directly.
49294         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49295
49296         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49297         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49298         define.
49299
49300         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49301         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49302                             int utc, int nanoseconds);
49303         Background:
49304         date should not have to allocate a megabyte of virtual memory to
49305         handle a format argument like +%1048575T.  When implemented with
49306         strftime, it must allocate such a buffer, use strftime to fill it
49307         in, print it, then free it.
49308         With fprintftime, it simply prints everything and exits.
49309         With no need for memory allocation, that's one fewer way to fail.
49310         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49311         optional field width, not before, so we accept %9:z, not %:9z.
49312         (my_strftime): Be sure to use L_('x') for literals.
49313
49314         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49315         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49316         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49317         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49318         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49319         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49320         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49321         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49322         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49323         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49324         * lib/xgethostname.c, lib/xreadlink.c:
49325         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49326
49327         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49328         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49329         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49330         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49331         and don't include <sys/file.h>).
49332
49333 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49334
49335         Sync from coreutils.
49336
49337         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49338         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49339         [!LDAV_DONE]: Avoid unused variable warning.
49340
49341 2005-09-21  Bruno Haible  <bruno@clisp.org>
49342
49343         * lib/unicodeio.h (unicode_to_mb): New declaration.
49344
49345 2005-09-20  Derek Price  <derek@ximbiot.com>
49346
49347         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49348         getaddrinfo.h.
49349
49350 2005-09-20  Bruno Haible  <bruno@clisp.org>
49351
49352         * gnulib-tool: Remove trailing slashes from the values specified for
49353         --source-base, --m4-base, --tests-base, --aux-dir.
49354         Suggested by Simon Josefsson <jas@extundo.com>.
49355
49356 2005-09-20  Bruno Haible  <bruno@clisp.org>
49357
49358         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49359         func_modules_to_filelist, func_import, func_create_testdir): Make all
49360         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49361         change when gnulib-tool is invoked in a different locale.
49362
49363 2005-09-19  Simon Josefsson  <jas@extundo.com>
49364
49365         * m4/socklen.m4: Fix typo.
49366
49367 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49368
49369         Use a consistent style for including <config.h>.
49370         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49371         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49372         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49373         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49374         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49375         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49376         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49377         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49378         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49379         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49380         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49381         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49382         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49383         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49384         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49385         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49386         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49387         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49388         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49389         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49390         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49391         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49392         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49393         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49394         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49395         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49396         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49397         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49398         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49399         lib/xstrtoumax.c, lib/yesno.c:
49400         Standardize inclusion of config.h.
49401         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49402         lib/inttostr.h:  Removed inclusion of config.h from header files.
49403         * lib/inttostr.c:  Adjusted in-tree users.
49404         * lib/timespec.h: Remove superfluous warning to include config.h.
49405         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49406         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49407         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49408         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49409         config.h with HAVE_CONFIG_H.
49410
49411 2005-09-19  Jim Meyering  <jim@meyering.net>
49412
49413         * modules/pathmax (License): Change to LGPL.
49414
49415 2005-09-19  Derek Price  <derek@ximbiot.com>
49416
49417         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49418
49419 2005-09-19  Bruno Haible  <bruno@clisp.org>
49420
49421         * gnulib-tool (import): Provide default for --tests-base.
49422
49423 2005-09-19  Bruno Haible  <bruno@clisp.org>
49424
49425         * doc/quote.texi: New file, extracted from gnulib.texi.
49426         * doc/ctime.texi: New file, extracted from gnulib.texi.
49427         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49428         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49429         * doc/gnulib.texi: Include them.
49430
49431 2005-09-18  Bruno Haible  <bruno@clisp.org>
49432
49433         Portability fix.
49434         * gnulib-tool (func_readlink): New function.
49435         (func_ln_if_changed): Use it.
49436
49437 2005-09-18  Bruno Haible  <bruno@clisp.org>
49438
49439         * gnulib-tool: Support --with-tests also with --import.
49440         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49441         (func_import): Use variables $testsbase and $inctests. Emit a
49442         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49443         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49444         SUBDIRS += $testsdir.
49445         (func_create_testdir): Update.
49446
49447 2005-09-18  Bruno Haible  <bruno@clisp.org>
49448
49449         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49450         instead of $dry_run.
49451         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49452         (func_ln_if_changed): Don't handle dry-run here.
49453         (func_import): In dry-run mode, detect more precisely which actions
49454         would be performed, and don't use "...ing" verbs.
49455
49456 2005-09-18  Bruno Haible  <bruno@clisp.org>
49457
49458         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49459         (func_import): Use join on two temporary files instead of three nested
49460         loops, in order to determine which files are new or old.
49461
49462 2005-09-18  Bruno Haible  <bruno@clisp.org>
49463
49464         * gnulib-tool (func_import): Comment out code that spits out the
49465         new files with --dry-run.
49466
49467 2005-09-18  Bruno Haible  <bruno@clisp.org>
49468
49469         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49470
49471 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49472
49473         * lib/stat-time.h: New file.
49474         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49475         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49476         in a different way.
49477         (timespec_cmp): New function.
49478         * lib/utimecmp.c: Include stat-time.h.
49479         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49480         members exist, not on the obsolescent ST_MTIM_NSEC.
49481         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49482
49483 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49484
49485         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49486
49487 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49488
49489         * MODULES.html.sh (File system functions): Add stat-time.
49490         * modules/stat-time: New file.
49491         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49492         is now done in a different way, by the stat-time module.
49493         * modules/utimecmp (Depends-on): Add stat-time.
49494
49495 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49496
49497         * m4/st_mtim.m4: Remove.  Superseded by...
49498         * m4/stat-time.m4: New file.
49499         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49500         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49501
49502 2005-09-15  Derek Price  <derek@ximbiot.com>
49503
49504         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49505
49506 2005-09-15  Derek Price  <derek@ximbiot.com>
49507
49508         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49509         * lib/regex_internal.c: Ditto, using this...
49510         (__GNUC_PREREQ): ...new macro.
49511         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49512         using...
49513         (__GNUC_PREREQ): ...this new macro.
49514
49515         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49516
49517 2005-09-15  Derek Price  <derek@ximbiot.com>
49518             Paul Eggert  <eggert@cs.ucla.edu>
49519
49520         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49521         changes, consolidating in...
49522         * lib/regex_internal.h: ...this file.
49523
49524 2005-09-13  Jim Meyering  <jim@meyering.net>
49525
49526         * lib/canon-host.c: Filter through gnu indent and reword comments
49527         slightly.
49528         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49529
49530 2005-09-13  Derek Price  <derek@ximbiot.com>
49531
49532         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49533         failure.
49534         Reported by Jim Meyering  <jim@meyering.net>.
49535
49536 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49537
49538         * lib/base64.c: Typo.
49539         (base64_encode): Put b64str in initialized data section.
49540
49541 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49542
49543         Merge glibc and coreutils changes into gnulib, plus a few
49544         extra fixes.
49545         * lib/md5.c: Use #error rather than a string.
49546         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49547         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49548         (__attribute__): Define to empty for non recent-GCC.
49549         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49550         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49551         Renamed from their non-__ counterparts, with new macros replacing
49552         them if not _LIBC.  Add __THROW attribute.
49553         (rol): Remove.
49554         (struct md5_ctx): Align buffer if using GCC.
49555         * lib/sha1.h (struct sha1_ctx): Likewise.
49556         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49557         The old name was backwards.
49558         (NOTSWAP): Remove; not used.
49559         (rol): New macro, moved here from md5.h.
49560         (sha1_process_block): Remove a FIXME that doesn't make sense.
49561
49562 2005-09-12  Derek Price  <derek@ximbiot.com>
49563
49564         Return usable errors from canon-host.
49565         * lib/canon-host.h: New file.
49566         * lib/canon-host.c (canon_host): Wrap...
49567         (canon_host_r): ...this new function, which now relies exclusively on
49568         getaddrinfo.
49569         (ch_strerror): New function.
49570         (last_cherror): New global.
49571         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49572         interface.
49573         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49574         void *.
49575         (freeaddrinfo): Free ai->ai_canonname when set.
49576
49577 2005-09-12  Derek Price  <derek@ximbiot.com>
49578
49579         Make canon-host require getaddrinfo.
49580         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49581         AC_LIBSOURCE canon-host.h.  Call...
49582         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49583         gl_GETADDRINFO.
49584         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49585
49586 2005-09-12  Derek Price  <derek@ximbiot.com>
49587
49588         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49589         LGPL.
49590         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49591
49592 2005-09-12  Derek Price  <derek@ximbiot.com>
49593
49594         * lib/gai_strerror.c: Include config.h when available.  Include
49595         getaddrinfo.h before other headers to test interface.
49596         Reported by Larry Jones <lawrence.jones@ugs.com>.
49597
49598 2005-09-12  Derek Price  <derek@ximbiot.com>
49599             Paul Eggert  <eggert@cs.ucla.edu>
49600
49601         * modules/glob (Files): Add glob-libc.h.
49602
49603 2005-09-12  Derek Price  <derek@ximbiot.com>
49604             Paul Eggert  <eggert@cs.ucla.edu>
49605
49606         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49607         glob_.h, glob-libc.h.
49608         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49609
49610 2005-09-12  Derek Price  <derek@ximbiot.com>
49611             Paul Eggert  <eggert@cs.ucla.edu>
49612
49613         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49614         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49615         protecting things that should be done only in gnulib contexts.
49616         * lib/glob_.h: New file, containing only the glob things needed for
49617         gnulib.
49618         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49619         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49620         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49621         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49622         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49623         and to respect the namespace rules better.
49624
49625 2005-09-08  Simon Josefsson  <jas@extundo.com>
49626
49627         * modules/socklen: New file.
49628
49629 2005-09-08  Simon Josefsson  <jas@extundo.com>
49630
49631         * m4/socklen.m4: New file.
49632
49633 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49634
49635         * modules/utimens (Files): Add m4/utimbuf.m4, since
49636         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49637         Reported by Sergey Poznyakoff.
49638
49639 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49640
49641         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49642         definitions, since that's the preferred style in glibc.
49643         Fix a minor spacing issue, and update copyright notice to match
49644         glibc's.
49645
49646 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49647
49648         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49649
49650 2005-09-06  Simon Josefsson  <jas@extundo.com>
49651
49652         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49653         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49654
49655 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49656
49657         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49658         warning.
49659
49660 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49661
49662         * config/srclist.txt: Add glibc bug 1302.
49663
49664 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49665
49666         Change bitset word type from unsigned int to unsigned long int,
49667         as this has better performance on typical 64-bit hosts.
49668         Port bitset code to hosts with unusual word sizes.
49669         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49670         (build_collating_symbol):
49671         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49672         argument is a bitset.  This is merely a style issue, but it makes
49673         it clearer that an entire array is expected.
49674         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49675         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49676         Port to the case where bitset_word is not the same as unsigned int.
49677         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49678         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49679         Likewise.
49680         * lib/regexec.c (check_dst_limits_calc_pos_1,
49681         check_subexp_matching_top):
49682         (build_trtable, group_nodes_into_DFAstates):
49683         Likewise.
49684         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49685         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49686         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49687         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49688         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49689         * lib/regcomp.c (optimize_subexps, lower_subexp):
49690         Work even if bitset_word has holes in its bitwise representation.
49691         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49692         * lib/regexec.c (check_dst_limits_calc_pos_1,
49693         check_subexp_matching_top):
49694         Likewise.
49695         * lib/regex_internal.c (re_string_reconstruct):
49696         Don't assume UCHAR_MAX == 255.
49697         * lib/regex_internal.h (bitset_set_all): Likewise.
49698         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49699         All uses changed.
49700         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49701         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49702         All uses changed.
49703         (BITSET_WORD_MAX): New macro.
49704         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49705         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49706         (bitset_empty, bitset_copy):
49707         Prefer sizeof (bitset) to multiplying it out ourselves.
49708         (bitset_not_merge): Remove; unused.
49709         (bitset_contain): Return bool, not unsigned int with one bit on.
49710         All callers changed.
49711         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49712         alignment than re_node_set; do this by defining a new internal
49713         type struct dests_alloc and using it to allocate memory.
49714
49715 2005-09-05  Bruno Haible  <bruno@clisp.org>
49716
49717         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49718         links.
49719
49720 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49721
49722         * modules/size_max (Makefile.am): Add size_max.h
49723
49724 2005-09-04  Derek Price  <derek@ximbiot.com>
49725
49726         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49727
49728 2005-09-03  Simon Josefsson  <jas@extundo.com>
49729
49730         * gnulib-tool: Fix typo.
49731
49732 2005-09-03  Simon Josefsson  <jas@extundo.com>
49733
49734         * config/srclist.txt: Add glibc bug 1293.
49735
49736 2005-09-03  Derek Price  <derek@ximbiot.com>
49737
49738         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49739         From Larry Jones <lawrence.jones@ugs.com>.
49740
49741 2005-09-02  Simon Josefsson  <jas@extundo.com>
49742
49743         * modules/socklen: New file.
49744
49745 2005-09-02  Simon Josefsson  <jas@extundo.com>
49746
49747         * modules/havelib: New module.
49748
49749         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49750         Use havelib.
49751
49752 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49753
49754         Check for arithmetic overflow when calculating sizes, to prevent
49755         some buffer-overflow issues.  These patches are conservative, in the
49756         sense that when I couldn't determine whether an overflow was possible,
49757         I inserted a run-time check.
49758         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49759         macros.
49760         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49761         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49762         (re_xnrealloc, re_x2nrealloc): New inline functions.
49763         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49764         parse_bracket_exp):
49765         (build_equiv_class, build_charclass): Check for arithmetic overflow
49766         in size expression calculations.
49767         * lib/regex_internal.c (re_string_realloc_buffers):
49768         (build_wcs_upper_buffer, re_node_set_add_intersect):
49769         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49770         (re_dfa_add_node, register_state): Likewise.
49771         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49772         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49773         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49774         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49775
49776 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49777
49778         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49779         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49780
49781 2005-09-02  Bruno Haible  <bruno@clisp.org>
49782
49783         Support for lib vs. lib64 distinction on biarch platforms.
49784         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49785         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49786         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49787
49788 2005-09-02  Bruno Haible  <bruno@clisp.org>
49789
49790         * gnulib-tool (import): In the other first-use case, provide defaults
49791         as well.
49792
49793 2005-09-02  Bruno Haible  <bruno@clisp.org>
49794
49795         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49796         patches not yet found in the latest gettext release.
49797
49798 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49799
49800         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49801         to avoid a collision with bits/local_lim.h in glibc.
49802         All uses changed.  Problem reported by Dmitry V. Levin in
49803         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49804
49805         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49806         bugs in int versus size_t comparisons.
49807         (re_string_context_at): Fix bug where the code assumed that
49808         Idx is signed.
49809
49810         Use bool where appropriate.
49811         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49812         All callers changed.
49813         (calc_eclosure_iter): Likewise, for ROOT arg.
49814         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49815         (build_charclass_op): Likewise, for NON_MATCH arg.
49816         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49817         (re_string_construct_common): Likewise, for ICASE arg.
49818         * lib/regexec.c (re_search_2_stub, re_search_stub):
49819         Likewise, for RET_LEN arg.
49820         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49821         (set_regs): Likewise, for FL_BACKTRACK arg.
49822         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49823         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49824         (calc_eclosure_iter, parse_bracket_exp):
49825         Use bool for internal variables that are booleans.
49826         * lib/regexec.c (re_search_internal, check_matching,
49827         proceed_next_node):
49828         (set_regs, build_sifted_states, sift_states_bkref):
49829         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49830         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49831         (find_collation_sequence_value):
49832         Likewise.
49833         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49834         (re_node_set_compare):
49835         Return bool, not int. All callers changed.
49836         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49837         (build_trtable, check_node_accept): Likewise.
49838         * lib/regex_internal.h: Include stdbool.h.
49839
49840         Fix bugs uncovered when converting to bool.
49841         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49842         failure instead of charging ahead blindly.
49843         * lib/regex_internal.c (register_state): Likewise.
49844         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49845         for freeing internal storage.
49846         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49847         bitset pieces used as boolean, to avoid undefined behavior
49848         on hosts that do int overflow checking.
49849
49850 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49851
49852         * config/srclist.txt: Add glibc bugs 1285-1287.
49853
49854 2005-09-01  Jim Meyering  <jim@meyering.net>
49855
49856         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49857         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49858         Require gl_STAT_MACROS, too.
49859
49860 2005-09-01  Bruno Haible  <bruno@clisp.org>
49861
49862         * gnulib-tool (import): In the first-use case, provide defaults.
49863
49864 2005-09-01  Bruno Haible  <bruno@clisp.org>
49865
49866         * gnulib-tool (func_import): Remove the .tmp files.
49867
49868 2005-09-01  Bruno Haible  <bruno@clisp.org>
49869
49870         * gnulib-tool (func_import): Fix handling of symbolic links.
49871
49872 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49873
49874         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49875         old glibc regex code mishandles strings longer than 2**31 bytes.
49876         This patch fixes this when the regex code is used in gnulib
49877         (i.e., outside glibc).
49878
49879         This patch should not affect the use of the regex code inside
49880         glibc.  No doubt this problem also needs to be handled for glibc
49881         as well, but the result will be an incompatible change to the
49882         glibc ABI, and the old ABI will have to be supported too.  That
49883         can be the the subject for another patch.
49884
49885         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49886         governing whether the rest of this patch is active.  By default,
49887         the macro is disabled and the patch has no effect.
49888         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49889         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49890         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49891         (re_match_2, re_set_registers): Use the new types.
49892         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49893         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49894         New macros.
49895         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49896         (re_string_context_at, bin_tree_t, re_dfastate_t):
49897         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49898         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49899         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49900         (re_string_char_size_at, re_string_wchar_at):
49901         (re_string_elem_size_at):
49902         Use the new types and macros to port to 64-bit hosts.
49903         Use unsigned types for internal values, so that the code
49904         mostly works even for arrays larger than SSIZE_MAX.
49905         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49906         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49907         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49908         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49909         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49910         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49911         (calc_inveclosure, parse_dup_op, build_range_exp):
49912         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49913         (fetch_number, create_token_tree, mark_opt_subexp):
49914         Likewise.
49915         * lib/regex_internal.c (re_string_construct_common,
49916         create_ci_newstate):
49917         (create_cd_newstate, re_string_allocate, re_string_construct):
49918         (re_string_realloc_buffers, build_wcs_upper_buffer):
49919         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49920         (re_string_reconstruct, re_string_peek_byte_case):
49921         (re_string_fetch_byte_case, re_string_context_at):
49922         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49923         (re_node_set_init_copy, re_node_set_add_intersect):
49924         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49925         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49926         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49927         (re_acquire_state, re_acquire_state_context, register_state):
49928         Likewise.
49929         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49930         search_cur_bkref_entry):
49931         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49932         (re_search_internal, re_search_2_stub, re_search_stub)
49933         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49934         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49935         (update_cur_sifted_state, check_dst_limits):
49936         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49937         (check_subexp_limits, sift_states_bkref, merge_state_array):
49938         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49939         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49940         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49941         (expand_bkref_cache, check_node_accept_bytes):
49942         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49943         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49944         (acquire_init_state_context, check_halt_node_context):
49945         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49946         (sift_states_backward, clean_state_log_if_needed):
49947         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49948         (find_recover_state, transit_state_sb, transit_state_mb):
49949         (transit_state_bkref, build_trtable, match_ctx_clean):
49950         Likewise.
49951         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49952         to work around an assumption that REG_MISSING is negative.
49953
49954         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49955         (seek_collating_symbol_entry) [defined _LIBC]:
49956         (lookup_collation_sequence_value) [defined _LIBC]:
49957         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49958         Use prototypes rather than old-style function definitions.
49959         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49960         (transit_state_sb) [0]:
49961         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49962
49963         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49964         rm_eo.
49965
49966         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49967         (optimize_subexps, lower_subexp):
49968         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49969         since the signed shift might overflow.  Use 1u<<31 instead.
49970         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49971         Likewise.
49972         * lib/regexec.c (check_dst_limits_calc_pos_1,
49973         check_subexp_matching_top): Likewise.
49974
49975         * lib/regcomp.c (optimize_subexps, lower_subexp):
49976         Use CHAR_BIT rather than 8, for clarity.
49977         * lib/regexec.c (check_dst_limits_calc_pos_1):
49978         (check_subexp_matching_top): Likewise.
49979         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49980         have to worry about portability issues when shifting it left.
49981         Remove no-longer-needed test for table_size > 0.
49982         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49983         in a word, as the resulting behavior is undefined.
49984         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49985         in one case, a <= should have been an <, and in another case the
49986         whole test was missing.
49987         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49988         the standard name CHAR_BIT.
49989         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49990         this is not true on one's complement and signed-magnitude hosts.
49991
49992         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49993         next_last_offset.
49994         (struct re_dfa_t): Remove unused member states_alloc.
49995         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49996
49997 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49998
49999         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50000         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50001         and large-file glibc and in 32-bit large-file Solaris.
50002
50003 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50004
50005         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50006         lengths fit in regoff_t; this isn't true if regoff_t is the same
50007         width as size_t.
50008         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50009         (= START + RANGE) instead of RANGE.  This avoids overflow
50010         problems when regoff_t is the same width as size_t.
50011         All callers changed.
50012         (re_search_2_stub): Check for overflow when adding the
50013         sizes of the two strings.
50014         (re_search_stub): Check for overflow when adding START
50015         to RANGE; if it occurs, substitute the extreme value.
50016
50017 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50018
50019         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50020
50021 2005-08-31  Jim Meyering  <jim@meyering.net>
50022
50023         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50024         a pointer-to-const.
50025         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50026         (register_state): Likewise.
50027         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50028         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50029         (group_nodes_into_DFAstates): Likewise.
50030
50031 2005-08-31  Jim Meyering  <jim@meyering.net>
50032
50033         * check-module: Add a FIXME comment.
50034
50035 2005-08-31  Eric Blake  <ebb9@byu.net>
50036
50037         * modules/unistd-safer (Files): Add unistd--.h.
50038         * modules/stdio-safer (Files): Add stdio--.h.
50039
50040 2005-08-31  Derek Price  <derek@ximbiot.com>
50041
50042         * lib/getdelim.c (getdelim): Return EOF on EOF.
50043         Reported by Larry Jones <lawrence.jones@ugs.com>.
50044
50045 2005-08-31  Bruno Haible  <bruno@clisp.org>
50046
50047         Avoid unnecessary diffs in the generated lib/Makefile.am.
50048         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50049         the generated files.
50050         (func_import): Don't set cmd.
50051
50052 2005-08-31  Bruno Haible  <bruno@clisp.org>
50053
50054         * lib/strstr.c: Include <stddef.h>, for NULL.
50055         * lib/strcasestr.c: Likewise.
50056         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50057
50058 2005-08-31  Bruno Haible  <bruno@clisp.org>
50059
50060         * gnulib-tool: New option --macro-prefix.
50061         (func_import): Use macro_prefix.
50062         (import): Handle option --macro-prefix.
50063
50064 2005-08-31  Bruno Haible  <bruno@clisp.org>
50065
50066         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50067         Also use new variables cached_lgpl, cached_libtool.
50068
50069 2005-08-31  Bruno Haible  <bruno@clisp.org>
50070
50071         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50072         always instantiating them.
50073
50074 2005-08-31  Bruno Haible  <bruno@clisp.org>
50075
50076         * gnulib-tool (func_import): Read the previous cached settings
50077         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50078         earlier added by gnulib but are now dropped. Warn when a gnulib file
50079         overwrites a non-gnulib file.
50080
50081 2005-08-31  Bruno Haible  <bruno@clisp.org>
50082
50083         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50084         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50085         projects that don't keep autogenerated files in CVS. Put into
50086         actioncmd only the specified modules, not the transitive closure.
50087
50088 2005-08-31  Bruno Haible  <bruno@clisp.org>
50089
50090         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50091         Create directories that shall be filled.
50092         (import): Don't look for gl_* macros in configure.ac. Recurse across
50093         all directories containing a gnulib-cache.m4 files, if meaningful.
50094
50095 2005-08-31  Bruno Haible  <bruno@clisp.org>
50096
50097         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50098         (import): Set seen_libtool when we see gl_LIBTOOL.
50099
50100 2005-08-31  Bruno Haible  <bruno@clisp.org>
50101
50102         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50103         declaration macro definitions from generated gnulib.m4.
50104
50105 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50106
50107         * lib/iconvme.h: Add prototype for iconv_alloc.
50108
50109 2005-08-29  Simon Josefsson  <jas@extundo.com>
50110
50111         * lib/iconvme.c: Fix errno.
50112
50113 2005-08-29  Bruno Haible  <bruno@clisp.org>
50114
50115         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50116         that it works when the directory contains spaces.
50117
50118 2005-08-29  Bruno Haible  <bruno@clisp.org>
50119
50120         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50121
50122 2005-08-29  Bruno Haible  <bruno@clisp.org>
50123
50124         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50125         Emit more advice.
50126
50127 2005-08-29  Bruno Haible  <bruno@clisp.org>
50128         and Stepan Kasal  <kasal@ucw.cz>
50129
50130         * check-module: If more parameters are given, check each of them
50131         separately; add more exceptions, as noted by Jim Meyering.
50132         (check_module): New procedure.
50133         (%exempt_header): Now contains all exceptions.
50134
50135 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50136
50137         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50138
50139 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50140
50141         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50142
50143 2005-08-28  Bruno Haible  <bruno@clisp.org>
50144
50145         * m4/gnulib-tool.m4: New file.
50146
50147 2005-08-27  Jim Meyering  <jim@meyering.net>
50148
50149         * modules/unistd-safer (Files): Add pipe-safer.c.
50150         * modules/fcntl-safer (Files): Add creat-safer.c.
50151
50152 2005-08-27  Jim Meyering  <jim@meyering.net>
50153
50154         * m4/stdlib-safer.m4: New file.  From coreutils.
50155         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50156         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50157         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50158         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50159         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50160
50161 2005-08-27  Jim Meyering  <jim@meyering.net>
50162
50163         * lib/fopen-safer.c: Merge minor changes from coreutils.
50164         * lib/dup-safer.c: Likewise.
50165         * lib/fd-safer.c: Likewise.
50166
50167         Merge from coreutils.
50168         * lib/stdio--.h: New file.
50169         * lib/stdlib--.h: New file.
50170         * lib/mkstemp-safer.c: New file.
50171
50172         GNU tar needs these.
50173         * lib/pipe-safer.c: New file.
50174         * lib/creat-safer.c: New file.
50175         * lib/fcntl--.h (creat): Define to creat_safer.
50176         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50177         * lib/unistd--.h (pipe): Define to pipe_safer.
50178         * lib/unistd-safer.h: Declare pipe_safer.
50179
50180 2005-08-26  Simon Josefsson  <jas@extundo.com>
50181
50182         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50183         Haible <bruno@clisp.org>.
50184
50185 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50186
50187         * lib/regex_internal.h: Remove all references to
50188         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50189         or better.
50190         (bitset_not, bitset_merge, bitset_not_merge):
50191         (bitset_mask, re_string_allocate, re_string_construct):
50192         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50193         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50194         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50195         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50196         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50197         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50198         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50199         (re_acquire_state_context):
50200         Remove unnecessary forward decls.
50201         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50202         Put __attribute at function definition,
50203         now that the function decl has been removed.
50204         * lib/regex_internal.c (re_string_peek_byte_case):
50205         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50206         Likewise.
50207
50208 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50209
50210         * m4/regex.m4: Add AC_PREREQ(2.50).
50211         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50212
50213 2005-08-25  Simon Josefsson  <jas@extundo.com>
50214
50215         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50216         __fsetlocking.
50217
50218 2005-08-25  Simon Josefsson  <jas@extundo.com>
50219
50220         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50221         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50222         GLIBC specific code.
50223
50224 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50225
50226         Make regex safe for g++.  This fixes one real bug (an "err"
50227         that should have been "*err").  g++ problem reported by
50228         Sam Steingold.
50229         * lib/regex_internal.h (re_calloc): New macro, consistent with
50230         re_malloc etc.  All callers of calloc changed to use re_calloc.
50231         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50232         not int.  All callers changed.
50233         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50234         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50235         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50236         (find_recover_state): Change "err" to "*err"; this fixes what
50237         appears to be a real bug.
50238         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50239         versus int.
50240
50241 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50242
50243         * modules/regex (Depends-on): Add malloc, since the code
50244         assumes that !malloc(0) means failure.
50245
50246 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50247
50248         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50249
50250         alloca modernization/simplification for regex.
50251         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50252         needs to be at the start of the file, and can be moved into
50253         regex_internal.h and simplified.
50254         * lib/regex_internal.h: Include <alloca.h>.
50255         (__libc_use_alloca) [!defined _LIBC]: New macro.
50256         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50257         now works outside glibc.
50258
50259 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50260
50261         * config/srclist.txt: Add glibc bugs 1241, 1245.
50262
50263 2005-08-25  Jim Meyering  <jim@meyering.net>
50264
50265         * lib/open-safer.c: Include <config.h>.
50266         Otherwise, we'd lose LARGEFILE support in any file using
50267         e.g. "fcntl--.h"
50268
50269 2005-08-25  Bruno Haible  <bruno@clisp.org>
50270
50271         * m4/minmax.m4: Require autoconf 2.52.
50272         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50273         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50274         alternatives of translit over the alphabet.
50275         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50276
50277 2005-08-24  Simon Josefsson  <jas@extundo.com>
50278
50279         * tests/test-getpass.c: New file.
50280
50281 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50282
50283         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50284         for GNU regex features.
50285
50286 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50287
50288         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50289         * lib/regex.h (regerror): Likewise.
50290
50291         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50292         requires this.  (The code never needed it.)
50293
50294         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50295         All uses of recently-renamed identifiers changed to use the new,
50296         POSIX-compliant names.  The code will build and run just fine
50297         without these changes, but it's better to eat our own dog food
50298         and use the standard-conforming names.
50299
50300         * lib/regex.h: Fix a multitude of POSIX name space violations.
50301         These changes have an effect only for programs that define
50302         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50303         do not change anything for programs compiled in the normal way.
50304         Also, there is no effect on the ABI.
50305
50306         (_REGEX_SOURCE): New macro.
50307         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50308         defined and _GNU_SOURCE is not; this fixes a name space violation.
50309
50310         Rename the following macros to obey POSIX requirements.
50311         The old names are still visible as macros if _REGEX_SOURCE is defined.
50312         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50313         RE_BACKSLASH_ESCAPE_IN_LISTS.
50314         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50315         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50316         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50317         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50318         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50319         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50320         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50321         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50322         (REG_INTERVALS): renamed from RE_INTERVALS.
50323         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50324         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50325         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50326         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50327         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50328         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50329         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50330         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50331         RE_UNMATCHED_RIGHT_PAREN_ORD.
50332         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50333         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50334         (REG_DEBUG): renamed from RE_DEBUG.
50335         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50336         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50337         unusual, since we can't clash with the POSIX REG_ICASE.
50338         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50339         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50340         (REG_NO_SUB): renamed from RE_NO_SUB.
50341         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50342         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50343         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50344         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50345         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50346         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50347         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50348         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50349         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50350         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50351         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50352         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50353         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50354         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50355         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50356         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50357         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50358         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50359         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50360         (REG_FIXED): Renamed from REGS_FIXED.
50361         (REG_NREGS): Renamed from RE_NREGS.
50362
50363         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50364         of other REG_* macros, since POSIX says the user is allowed to
50365         #undef these macros selectively.
50366
50367         (reg_errcode_t): Update comment stating what other tables need
50368         to be consistent.
50369
50370         Rename the following enum values to obey POSIX requirements.
50371         The old names are still visible as macros.
50372         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50373         is not defined, since GNU is supposed to be a superset of POSIX as
50374         much as possible, and since we want reg_errcode_t to be a signed
50375         type for implementation consistency.
50376         (_REG_NOERROR): Renamed from REG_NOERROR.
50377         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50378         (_REG_BADPAT): Renamed from REG_BADPAT.
50379         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50380         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50381         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50382         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50383         (_REG_EBRACK): Renamed from REG_EBRACK.
50384         (_REG_EPAREN): Renamed from REG_EPAREN.
50385         (_REG_EBRACE): Renamed from REG_EBRACE.
50386         (_REG_BADBR): Renamed from REG_BADBR.
50387         (_REG_ERANGE): Renamed from REG_ERANGE.
50388         (_REG_ESPACE): Renamed from REG_ESPACE.
50389         (_REG_BADRPT): Renamed from REG_BADRPT.
50390         (_REG_EEND): Renamed from REG_EEND.
50391         (_REG_ESIZE): Renamed from REG_ESIZE.
50392         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50393         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50394         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50395         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50396         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50397
50398         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50399         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50400         changed.  But support the old name if the new one is not defined
50401         and if _REGEX_SOURCE.
50402
50403         Change the following member names in struct re_pattern_buffer.
50404         The old names are still supported if !_REGEX_SOURCE.
50405         The new names are always supported, regardless of _REGEX_SOURCE.
50406         (re_buffer): Renamed from buffer.
50407         (re_allocated): Renamed from allocated.
50408         (re_used): Renamed from used.
50409         (re_syntax): Renamed from syntax.
50410         (re_fastmap): Renamed from fastmap.
50411         (re_translate): Renamed from translate.
50412         (re_can_be_null): Renamed from can_be_null.
50413         (re_regs_allocated): Renamed from regs_allocated.
50414         (re_fastmap_accurate): Renamed from fastmap_accurate.
50415         (re_no_sub): Renamed from no_sub.
50416         (re_not_bol): Renamed from not_bol.
50417         (re_not_eol): Renamed from not_eol.
50418         (re_newline_anchor): Renamed from newline_anchor.
50419
50420         Change the following member names in struct re_registers.
50421         The old names are still supported if !_REGEX_SOURCE.
50422         The new names are always supported, regardless of _REGEX_SOURCE.
50423         (rm_num_regs): Renamed from num_regs.
50424         (rm_start): Renamed from start.
50425         (rm_end): Renamed from end.
50426
50427         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50428         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50429         Prepend __ to parameter names.
50430
50431         Undo yesterday's changes.
50432
50433 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50434
50435         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50436         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50437         lib/regex.c.
50438
50439 2005-08-24  Jim Meyering  <jim@meyering.net>
50440
50441         Sync from coreutils.
50442         * m4/fcntl-safer.m4: New file.
50443
50444         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50445         and object files for this module.
50446
50447 2005-08-24  Jim Meyering  <jim@meyering.net>
50448
50449         Sync from coreutils.
50450         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50451
50452 2005-08-24  Jim Meyering  <jim@meyering.net>
50453
50454         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50455         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50456
50457 2005-08-24  Jim Meyering  <jim@meyering.net>
50458
50459         * modules/fcntl-safer: New module.
50460         * modules/fts (Depends-on): Add fcntl-safer.
50461         * MODULES.html.sh (File descriptor based Input/Output):
50462         Add fcntl-safer.
50463
50464 2005-08-24  Bruno Haible  <bruno@clisp.org>
50465
50466         Support for unit test modules.
50467         * modules/README: Mention tests modules.
50468         * modules/TEMPLATE-TESTS: New file.
50469         * gnulib-tool: New options --extract-tests-module, --with-tests and
50470         --tests-base (unused for the moment).
50471         (testsbase, inctests): New variables.
50472         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50473         (func_verify_module): Exclude TEMPLATE-TESTS.
50474         (func_verify_nontests_module, func_verify_tests_module): New functions.
50475         (func_get_dependencies): Add implicit dependency for tests modules.
50476         (func_get_tests_module): New function.
50477         (func_modules_transitive_closure): When --with-tests was specified,
50478         include the unit tests as well, unless explicitly avoided.
50479         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50480         (func_emit_tests_Makefile_am): New function.
50481         (func_create_testdir): When --with-tests was specified, emit a
50482         tests/ directory.
50483         * MODULES.html.sh (Future developments): Update.
50484
50485 2005-08-24  Bruno Haible  <bruno@clisp.org>
50486
50487         * modules/tls-tests: New file.
50488         * tests/test-tls.c: New file, from GNU gettext.
50489
50490 2005-08-24  Bruno Haible  <bruno@clisp.org>
50491
50492         * modules/lock-tests: New file.
50493         * tests/test-lock.c: New file, from GNU gettext.
50494
50495 2005-08-24  Bruno Haible  <bruno@clisp.org>
50496
50497         * lib/lock.h: Add multiple inclusion guard.
50498         * lib/tls.h: Add multiple inclusion guard.
50499
50500 2005-08-24  Bruno Haible  <bruno@clisp.org>
50501
50502         * gnulib-tool: Add support for the --aux-dir option to
50503         --create-testdir, --create-megatestdir, --test, --megatest.
50504         (func_create_testdir, func_create_megatestdir): Optionally emit a
50505         AC_CONFIG_AUX_DIR directive.
50506         (create-testdir, create-megatestdir, test, megatest): Provide a
50507         default value for $auxdir.
50508
50509 2005-08-24  Bruno Haible  <bruno@clisp.org>
50510
50511         * gnulib-tool (import): Use compound statement instead of subshell
50512         where possible.
50513
50514 2005-08-24  Bruno Haible  <bruno@clisp.org>
50515
50516         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50517
50518 2005-08-24  Bruno Haible  <bruno@clisp.org>
50519
50520         * gnulib-tool (func_version): Update.
50521
50522 2005-08-24  Bruno Haible  <bruno@clisp.org>
50523
50524         * gnulib-tool (func_import, func_create_testdir,
50525         func_create_megatestdir): Quote all autoconf macro arguments.
50526
50527 2005-08-24  Bruno Haible  <bruno@clisp.org>
50528
50529         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50530         option --force, because --force causes the aclocal.m4 of each
50531         subdirectory to be newer than the corresponding config.h.in.
50532
50533 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50534
50535         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50536         All contents moved to gl_REGEX.
50537         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50538         assume that it does.
50539
50540 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         * lib/regex.h (REG_NOSYS)
50543         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50544         Define, since POSIX requires it as of 2001.
50545         (_REG_ENOSYS)
50546         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50547         New private symbol, used to keep the enum signed in all cases.
50548         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50549         Youngman in
50550         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50551
50552         * lib/regex_internal.c (re_string_skip_chars, register_state):
50553         (calc_state_hash):
50554         Remove forward decls; no longer needed now that we use prototypes.
50555         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50556         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50557         (clean_state_log_if_needed): Likewise.
50558
50559 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50560
50561         * config/srclist.txt: Add glibc bugs 1231-1233.
50562
50563 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50564
50565         Fix problems reported by Sam Steingold in
50566         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50567         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50568         assumed that reg_errcode_t is a signed type, which is not
50569         necessarily true if _XOPEN_SOURCE is not defined.
50570         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50571         since some compilers warn about it otherwise.
50572
50573 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50574
50575         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50576         (init_word_char, create_initial_state, duplicate_node_closure):
50577         (fetch_token, peek_token_bracket, build_range_exp):
50578         (build_collating_symbol): Remove forward decls; no longer needed
50579         now that we use prototypes.
50580
50581         * lib/regcomp.c:
50582         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50583         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50584         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50585         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50586         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50587         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50588         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50589         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50590         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50591         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50592         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50593         (build_charclass, build_charclass_op, fetch_number, create_tree):
50594         (create_token_tree, mark_opt_subexp, duplicate_tree):
50595         Use prototypes rather than old-style definitions.
50596
50597         * lib/regex_internal.c:
50598         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50599         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50600         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50601         (re_string_reconstruct, re_string_peek_byte_case):
50602         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50603         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50604         (re_node_set_init_copy, re_node_set_add_intersect):
50605         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50606         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50607         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50608         (re_acquire_state, re_acquire_state_context, register_state):
50609         (create_ci_newstate, create_cd_newstate, free_state):
50610         Likewise.
50611         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50612         re_search_2):
50613         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50614         (re_search_internal, prune_impossible_nodes):
50615         (acquire_init_state_context, check_matching, static):
50616         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50617         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50618         (update_regs, sift_states_backward, build_sifted_states):
50619         (clean_state_log_if_needed, merge_state_array):
50620         (update_cur_sifted_state, add_epsilon_src_nodes):
50621         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50622         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50623         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50624         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50625         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50626         (check_arrival, check_arrival_add_next_nodes):
50627         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50628         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50629         (check_node_accept_bytes, check_node_accept, extend_buffers):
50630         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50631         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50632         (sift_ctx_init):
50633         Likewise.
50634
50635         * lib/regex_internal.h:
50636         (re_string_allocate, re_string_construct, re_string_reconstruct):
50637         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50638         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50639         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50640         (re_string_context_at, re_string_peek_byte_case):
50641         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50642         is defined, since we now use prototypes always.
50643
50644         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50645         C89 or better.  All uses removed.
50646
50647 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50648
50649         * config/srclist.txt: Add glibc bugs 1220-1227.
50650
50651 2005-08-20  Jim Meyering  <jim@meyering.net>
50652
50653         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50654         of unused local, dfa.
50655
50656 2005-08-20  Bruno Haible  <bruno@clisp.org>
50657
50658         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50659
50660 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50661
50662         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50663         (re_node_set_insert_last, re_dfa_add_node):
50664         Rename local variables to avoid GCC shadowing warnings.
50665
50666 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50667
50668         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50669         [defined lint]: Suppress bogus uninitialized-variable warnings.
50670
50671         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50672         and let the caller return REG_ESPACE if out of space.  This
50673         removes an uninitialied-variable warning with GCC 4.0.1, and also
50674         avoids taking the address of a local variable.  All callers
50675         changed.
50676
50677 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50678
50679         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50680         $LIBCSRC/posix/regexec.c.
50681         Add glibc bug 1217 for regcomp.c.
50682
50683 2005-08-19  Jim Meyering  <jim@meyering.net>
50684
50685         * lib/regexec.c (proceed_next_node): Redo local variables to
50686         avoid GCC shadowing warnings.
50687
50688 2005-08-18  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/strstr.c (strstr): Fix return value in multibyte case.
50691         * lib/strcasestr.c (strcasestr): Likewise.
50692
50693 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50694
50695         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50696
50697 2005-08-17  Jim Meyering  <jim@meyering.net>
50698
50699         Make the %s format (seconds since the epoch) work for a negative
50700         number and when used with a zero-padded field width, e.g. %015s.
50701
50702         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50703         label so that it precedes the code to set `digits'.  Otherwise,
50704         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50705         print `00-22'.  Now, it prints `-0022', as it should.
50706
50707 2005-08-17  Bruno Haible  <bruno@clisp.org>
50708
50709         * modules/strstr (Files): Add m4/mbrtowc.m4.
50710         (Depends-on): Add mbuiter.
50711
50712 2005-08-17  Bruno Haible  <bruno@clisp.org>
50713
50714         * modules/strcasestr: New file.
50715         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50716         strcasestr.
50717
50718 2005-08-17  Bruno Haible  <bruno@clisp.org>
50719
50720         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50721
50722 2005-08-17  Bruno Haible  <bruno@clisp.org>
50723
50724         * modules/mbuiter: New file.
50725         * MODULES.html.sh (Extended multibyte and wide character utilities):
50726         Add mbuiter.
50727
50728 2005-08-17  Bruno Haible  <bruno@clisp.org>
50729
50730         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50731         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50732
50733 2005-08-17  Bruno Haible  <bruno@clisp.org>
50734
50735         * m4/strcasestr.m4: New file.
50736
50737 2005-08-17  Bruno Haible  <bruno@clisp.org>
50738
50739         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50740         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50741
50742 2005-08-17  Bruno Haible  <bruno@clisp.org>
50743
50744         * lib/strcasestr.h: New file.
50745         * lib/strcasestr.c: New file.
50746
50747 2005-08-17  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/strcasecmp.c: Use mbuiter.h.
50750
50751 2005-08-17  Bruno Haible  <bruno@clisp.org>
50752
50753         * lib/mbuiter.h: New file.
50754
50755 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50756
50757         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50758         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50759         and gl_GETOPT are both invoked via different paths (as happens
50760         with GNU tar CVS because it uses both argp and getopt), the former
50761         wins.
50762
50763 2005-08-16  Bruno Haible  <bruno@clisp.org>
50764
50765         * modules/tls: New file.
50766         * MODULES.html.sh (Multithreading): Add tls.
50767
50768 2005-08-16  Bruno Haible  <bruno@clisp.org>
50769
50770         * modules/strnlen1: New file.
50771         * MODULES.html.sh (String handling): Add strnlen1.
50772
50773 2005-08-16  Bruno Haible  <bruno@clisp.org>
50774
50775         * modules/strcase (Files): Add m4/mbrtowc.m4.
50776         (Depends-on): Add strnlen1, mbchar.
50777
50778 2005-08-16  Bruno Haible  <bruno@clisp.org>
50779
50780         * modules/mbiter: New file.
50781         * MODULES.html.sh (Extended multibyte and wide character utilities):
50782         Add mbiter.
50783
50784 2005-08-16  Bruno Haible  <bruno@clisp.org>
50785
50786         * modules/mbfile: New file.
50787         * MODULES.html.sh (Extended multibyte and wide character utilities):
50788         Add mbfile.
50789
50790 2005-08-16  Bruno Haible  <bruno@clisp.org>
50791
50792         * modules/mbchar: New file.
50793         * MODULES.html.sh (Extended multibyte and wide character utilities):
50794         New section.
50795
50796 2005-08-16  Bruno Haible  <bruno@clisp.org>
50797
50798         * m4/tls.m4: New file, from GNU gettext.
50799
50800 2005-08-16  Bruno Haible  <bruno@clisp.org>
50801
50802         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50803         always.
50804         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50805
50806 2005-08-16  Bruno Haible  <bruno@clisp.org>
50807
50808         * m4/mbiter.m4: New file.
50809
50810 2005-08-16  Bruno Haible  <bruno@clisp.org>
50811
50812         * m4/mbfile.m4: New file.
50813
50814 2005-08-16  Bruno Haible  <bruno@clisp.org>
50815
50816         * m4/mbchar.m4: New file.
50817
50818 2005-08-16  Bruno Haible  <bruno@clisp.org>
50819
50820         * lib/tls.h: New file, from GNU gettext.
50821         * lib/tls.c: New file, from GNU gettext.
50822
50823 2005-08-16  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/strnlen1.h: New file.
50826         * lib/strnlen1.c: New file.
50827
50828 2005-08-16  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50831         (mbi_init): Update.
50832         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50833         NUL byte, not after it.
50834
50835 2005-08-16  Bruno Haible  <bruno@clisp.org>
50836
50837         * lib/strcase.h (strcasecmp): Add note in comments.
50838         * lib/strncasecmp.c: Use code from strcasecmp.c.
50839         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50840         (strcasecmp): Work correctly in multibyte locales.
50841
50842 2005-08-16  Bruno Haible  <bruno@clisp.org>
50843
50844         * lib/mbiter.h: New file.
50845
50846 2005-08-16  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/mbfile.h: New file.
50849
50850 2005-08-16  Bruno Haible  <bruno@clisp.org>
50851
50852         * lib/mbchar.h: New file.
50853         * lib/mbchar.c: New file.
50854
50855 2005-08-16  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50858         the valid ones. Makes the comparison operations transitive:
50859         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50860         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50861
50862 2005-08-15  Simon Josefsson  <jas@extundo.com>
50863
50864         * modules/ssize_t (License): Change to 'unlimited'.
50865
50866         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50867
50868 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50869
50870         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50871         Add comments for each pending glibc patch.
50872
50873 2005-08-15  Bruno Haible  <bruno@clisp.org>
50874
50875         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50876         __cplusplus is defined.
50877
50878 2005-08-14  Jim Meyering  <jim@meyering.net>
50879
50880         Sync from coreutils.
50881
50882         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50883         Use the hash-table-based cycle-detection code not just when
50884         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50885         Reported by James Youngman in
50886         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50887         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50888         FTS_TIGHT_CYCLE_CHECK.
50889         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50890         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50891         once again.
50892         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50893         * lib/fts.c (fd_safer): Remove decl.
50894         Include fcntl--.h rather than unistd-safer.h
50895         (fts_safe_changedir): Don't call fd_safer; no longer needed
50896         now that we include fcntl--.h.
50897
50898 2005-08-12  Simon Josefsson  <jas@extundo.com>
50899
50900         * modules/getndelim2: Use ssize_t module.
50901         * modules/getnline: Likewise.
50902         * modules/safe-read: Likewise.
50903         * modules/xreadlink: Likewise.
50904
50905         * modules/ssize_t: New file.
50906
50907 2005-08-12  Simon Josefsson  <jas@extundo.com>
50908
50909         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50910
50911 2005-08-12  Simon Josefsson  <jas@extundo.com>
50912
50913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50914         ssize_t.
50915
50916 2005-08-12  Simon Josefsson  <jas@extundo.com>
50917
50918         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50919         readline, getdelim and check_version.
50920         (Support for systems lacking ISO C 99: Sizes of integer types):
50921         Add size_max.
50922
50923 2005-08-12  Bruno Haible  <bruno@clisp.org>
50924
50925         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50926
50927 2005-08-11  Simon Josefsson  <jas@extundo.com>
50928
50929         * modules/readline: New file.
50930
50931         * modules/strnlen (Files): Add strnlen.h.
50932
50933 2005-08-11  Simon Josefsson  <jas@extundo.com>
50934
50935         * m4/readline.m4: New file.
50936
50937 2005-08-11  Simon Josefsson  <jas@extundo.com>
50938
50939         * lib/readline.h, readline.c: New file.
50940
50941 2005-08-11  Simon Josefsson  <jas@extundo.com>
50942
50943         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50944         gl_AVOID.
50945
50946 2005-08-11  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50949
50950 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50951
50952         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50953
50954 2005-08-10  Simon Josefsson  <jas@extundo.com>
50955
50956         * tests/test-iconvme.c: New file.
50957
50958 2005-08-10  Simon Josefsson  <jas@extundo.com>
50959
50960         * m4/strnlen.m4: New file.
50961
50962         * m4/strndup.m4: Don't check for strnlen declaration, done in
50963         strnlen.m4.
50964
50965 2005-08-10  Simon Josefsson  <jas@extundo.com>
50966
50967         * lib/strndup.c: Use strnlen.h.
50968
50969         * lib/strnlen.h: New file.
50970
50971 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50972
50973         * README: Typos.
50974
50975 2005-08-02  Simon Josefsson  <jas@extundo.com>
50976
50977         * modules/readline: New file.
50978
50979 2005-08-02  Simon Josefsson  <jas@extundo.com>
50980
50981         * modules/getdelim: New file.
50982
50983         * modules/getline: Rewrite, don't use getndelim2.
50984
50985 2005-08-02  Simon Josefsson  <jas@extundo.com>
50986
50987         * m4/getline.m4: Separate out getdelim stuff into separate module.
50988
50989         * m4/getdelim.m4: New file.
50990
50991 2005-08-02  Simon Josefsson  <jas@extundo.com>
50992
50993         * lib/getline.h, getline.c: Rewrite.
50994
50995         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50996
50997 2005-07-31  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/lock.h (gl_lock_initializer): New macro.
51000         (gl_lock_define_initialized): Use it.
51001         (gl_rwlock_initializer): New macro.
51002         (gl_rwlock_define_initialized): Use it.
51003         (gl_recursive_lock_initializer): New macro.
51004         (gl_recursive_lock_define_initialized): Use it.
51005
51006 2005-07-30  Karl Berry  <karl@gnu.org>
51007
51008         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51009         Report from Ben Pfaff, regarding getopt.
51010
51011 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51012
51013         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51014         normal way.
51015         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51016         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51017         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51018         (gl_GETOPT): Use the new macros.  Most of the implementation
51019         is moved to the new macros.  This is for programs like Emacs
51020         that don't want all the functionality of gl_GETOPT.
51021
51022 2005-07-26  Bruno Haible  <bruno@clisp.org>
51023
51024         * m4/lock.m4: Update from GNU gettext.
51025
51026 2005-07-26  Bruno Haible  <bruno@clisp.org>
51027
51028         * lib/lock.h: Update from GNU gettext.
51029         * lib/lock.c: Update from GNU gettext.
51030
51031 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51032
51033         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51034         obsolescent AC_TRY_RUN.  Include the default includes files, for
51035         'exit'.
51036
51037 2005-07-24  Bruno Haible  <bruno@clisp.org>
51038
51039         * modules/visibility: New file.
51040         * MODULES.html.sh (Misc): Add visibility.
51041
51042 2005-07-24  Bruno Haible  <bruno@clisp.org>
51043
51044         * m4/visibility.m4: New file.
51045
51046 2005-07-24  Bruno Haible  <bruno@clisp.org>
51047
51048         * doc/visibility.texi: New file.
51049
51050 2005-07-22  Bruno Haible  <bruno@clisp.org>
51051
51052         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51053         $(ALLOCA_H), redundant through BUILT_SOURCES.
51054         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51055         redundant through BUILT_SOURCES.
51056         * modules/byteswap (Makefile.am): Remove explicit dependency on
51057         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51058         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51059         $(FNMATCH_H), redundant through BUILT_SOURCES.
51060         * modules/getopt (Makefile.am): Remove explicit dependency on
51061         $(GETOPT_H), redundant through BUILT_SOURCES.
51062         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51063         redundant through BUILT_SOURCES.
51064         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51065         redundant through BUILT_SOURCES.
51066         * modules/stdbool (Makefile.am): Remove explicit dependency on
51067         $(STDBOOL_H), redundant through BUILT_SOURCES.
51068         * modules/stdint (Makefile.am): Remove explicit dependency on
51069         $(STDINT_H), redundant through BUILT_SOURCES.
51070         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51071         Remove explicit dependency on $(SYSEXITS_H).
51072         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51073
51074 2005-07-18  Simon Josefsson  <jas@extundo.com>
51075
51076         * lib/check-version.c (check_version): Accept identical versions too.
51077
51078 2005-07-18  Bruno Haible  <bruno@clisp.org>
51079
51080         * modules/lock: New file.
51081         * MODULES.html.sh (Multithreading): New section.
51082
51083 2005-07-18  Bruno Haible  <bruno@clisp.org>
51084
51085         * m4/lock.m4: New file, from GNU gettext.
51086
51087 2005-07-18  Bruno Haible  <bruno@clisp.org>
51088
51089         * lib/lock.h: New file, from GNU gettext.
51090         * lib/lock.c: New file, from GNU gettext.
51091
51092 2005-07-18  Bruno Haible  <bruno@clisp.org>
51093
51094         * lib/lock.h (gl_once_t): New type.
51095         (gl_once_define, gl_once): New macros.
51096         * lib/lock.c (fresh_once): New variable.
51097         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51098         functions.
51099
51100 2005-07-16  Simon Josefsson  <jas@extundo.com>
51101
51102         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51103         workaround, suggested by Bruno.
51104
51105 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51106
51107         * modules/xalloc (Depends-on): Add xalloc-die.
51108         * modules/xvasprintf (Depends-on): Add xalloc-die.
51109
51110 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51111
51112         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51113         with a minor change.
51114
51115 2005-07-15  Bruno Haible  <bruno@clisp.org>
51116
51117         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51118         When using lib/poll.c, define poll as rpl_poll.
51119
51120 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51121
51122         * modules/argp (Depends-on): Remove unlocked-io.
51123
51124 2005-07-14  Derek Price  <derek@ximbiot.com>
51125
51126         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51127         for glob symlink bug.
51128
51129 2005-07-14  Bruno Haible  <bruno@clisp.org>
51130
51131         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51132         Instead, test for *_unlocked function declarations directly.
51133
51134 2005-07-11  Simon Josefsson  <jas@extundo.com>
51135
51136         * modules/size_max: New file.
51137
51138         * modules/xsize: Depend on size_max module for size_max.m4.
51139
51140 2005-07-11  Simon Josefsson  <jas@extundo.com>
51141
51142         * lib/size_max.h: New file.
51143
51144 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51147         copyright symbol and the year.
51148         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51149         (version_etc_va): Use parameterized copyright notice.
51150         Reword to conform to the current GNU coding standards.
51151
51152 2005-07-11  Karl Berry  <karl@gnu.org>
51153
51154         * doc/gnulib.texi (Quoting): new node.
51155         (Initial import): more info, from Patrice.
51156
51157 2005-07-11  Bruno Haible  <bruno@clisp.org>
51158
51159         * gnulib-tool (func_usage): Document option --avoid.
51160         (Command line options): Handle --avoid.
51161         (func_acceptable): New function.
51162         (func_modules_transitive_closure): Use it.
51163
51164 2005-07-11  Bruno Haible  <bruno@clisp.org>
51165
51166         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51167         Reported by Jim Meyering.
51168
51169 2005-07-10  Bruno Haible  <bruno@clisp.org>
51170
51171         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51172         Needed when size_t is smaller than 'unsigned int'.
51173         Reported by Paul Eggert.
51174
51175 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51176
51177         * modules/argp (Depends-on): Add unlocked-io
51178
51179 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51180
51181         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51182         block of defines.
51183
51184 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51185
51186         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51187         fix now.
51188
51189 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51190         and Paul Eggert  <eggert@cs.ucla.edu>
51191
51192         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51193         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51194
51195 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51196
51197         * modules/regex (Files): Add lib/regex_internal.c,
51198         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51199         (Depends-on): Add extensions.
51200         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51201
51202 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51203
51204         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51205         pathconf.
51206         * m4/same.m4 (gl_SAME): Likewise.
51207         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51208
51209         * m4/regex.m4: Adjust to new libc regex implementation.
51210         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51211         all the .c and .h parts of (the new) regex.
51212         Quote the m4 stuff better.
51213         Check for RE_ICASE bug of old gnulib.
51214         Check for REG_STARTEND of recent libc.
51215         Rename local variables from jm_* to gl_*.
51216         Quote operand of "test -f".
51217         Say "recent enough" version of libc, not "version 2".
51218         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51219         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51220         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51221         Remove check for btowc, isascii.
51222         Require AM_LANGINFO_CODESET.
51223
51224 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51225
51226         * lib/regex.c, regex.h: Sync from libc.
51227         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51228         * lib/regexec.c:
51229         New files, synced from libc, except that regex_internal.h
51230         currently has a small porting fix.
51231
51232 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51233
51234         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51235         regex_internal.c, regexec.c.
51236         Add regex_internal.h too, but as a comment, since the libc version
51237         is currently broken in gnulib mode.
51238
51239 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51240
51241         Support programs like Emacs that use gnulib but not gettext.
51242         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51243         * modules/gettext-h: New file.
51244         * modules/gettext (Files): Remove lib/gettext.h.
51245         (Depends-on): Add gettext-h.
51246         (Makefile.am): Remove lib_SOURCES.
51247         * modules/argmatch, modules/c-stack, modules/closeout:
51248         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51249         * modules/execute, modules/file-type, modules/getaddrinfo:
51250         * modules/getopt, modules/human, modules/javacomp:
51251         * modules/javaexec, modules/mkdir-p, modules/obstack:
51252         * modules/openat, modules/pagealign_alloc, modules/pipe:
51253         * modules/quotearg, modules/regex, modules/rpmatch:
51254         * modules/unicodeio, modules/userspec, modules/version-etc:
51255         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51256         * modules/xsetenv:
51257         Depend on gettext-h, not gettext.
51258
51259 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51260
51261         * gnulib-tool (func_import): Add support for 'public domain' license.
51262         * modules/alloca, modules/atexit, modules/memmove:
51263         Now public domain, not GPL.
51264         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51265         * modules/realloc, modules/strerror, modules/strtod:
51266         Now LGPL, not GPL.
51267
51268 2005-07-05  Bruno Haible  <bruno@clisp.org>
51269
51270         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51271         autoconf CVS. Needed for mingw.
51272
51273 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51274
51275         Remove the dependency of the strftime module on the tzset module.
51276         * modules/strftime (Depends-on): Remove dependency on tzset.
51277
51278 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51279
51280         Remove the dependency of the strftime module on the tzset module.
51281         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51282         gl_FUNC_TZSET_CLOBBER.
51283
51284 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51285
51286         Remove the dependency of the strftime module on the tzset module.
51287         * lib/strftime.c (my_strftime)
51288         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51289         Copy the input structure, to work around some of the bug with
51290         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51291         Solaris releases, you should also use the tzset module, but we won't
51292         require it as a dependency any more since we don't want LGPLed code
51293         to depend on GPLed code.
51294
51295 2005-07-02  Jim Meyering  <jim@meyering.net>
51296
51297         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51298         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51299         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51300         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51301
51302 2005-07-02  Jim Meyering  <jim@meyering.net>
51303
51304         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51305
51306 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51309         declares only 'struct timespec;' (!).
51310
51311 2005-07-01  Jim Meyering  <jim@meyering.net>
51312
51313         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51314         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51315         * lib/save-cwd.c, tempname.c:
51316         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51317         and don't include <sys/file.h>).
51318
51319 2005-06-29  Jim Meyering  <jim@meyering.net>
51320
51321         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51322         type name.  Use the variable name instead.
51323         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51324         Likewise.
51325
51326 2005-06-28  Simon Josefsson  <jas@extundo.com>
51327
51328         * modules/check-version (Files): Add check-version.m4.
51329
51330 2005-06-28  Simon Josefsson  <jas@extundo.com>
51331
51332         * m4/check-version.m4: New file, suggested by Jim Meyering
51333         <jim@meyering.net>.
51334
51335 2005-06-28  Simon Josefsson  <jas@extundo.com>
51336
51337         * lib/check-version.h, lib/check-version.c: New files.
51338
51339 2005-06-28  Simon Josefsson  <jas@extundo.com>
51340
51341         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51342         collision with global variable.  Better indentation.  Don't
51343         increment buffer pointer beyond buffer end.  Based on comments
51344         from Paul Eggert <eggert@cs.ucla.edu>.
51345
51346         * lib/base64.h: Indent.
51347
51348 2005-06-28  Simon Josefsson  <jas@extundo.com>
51349
51350         * doc/gnulib.texi (Library version handling): New section.
51351
51352 2005-06-28  Jim Meyering  <jim@meyering.net>
51353
51354         * check-module (find_included_lib_files): Hard-code another
51355         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51356         but modules/fts-lgpl (correctly) does not list those files.
51357
51358         * modules/canonicalize (Files): Add lib/pathmax.h.
51359
51360 2005-06-25  Simon Josefsson  <jas@extundo.com>
51361
51362         * modules/check-version: New file.
51363
51364 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51365
51366         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51367         initializer of struct addrinfo, as an indication that we don't
51368         care how many members the structure has.
51369
51370 2005-06-24  Derek Price  <derek@ximbiot.com>
51371         and Bruno Haible  <bruno@clisp.org>
51372
51373         Remove stat module & update lstat.
51374         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51375         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51376         * m4/stat.m4: Remove this file.
51377
51378 2005-06-24  Derek Price  <derek@ximbiot.com>
51379         and Bruno Haible  <bruno@clisp.org>
51380
51381         Remove stat module & update lstat.
51382         * lib/stat.c: Remove this file...
51383         (slash_aware_lstat): ...moving this content and its support...
51384         * lib/lstat.c (rpl_lstat): ...into here.
51385         * lib/lstat.h: New file.
51386
51387 2005-06-24  Derek Price  <derek@ximbiot.com>
51388         and Bruno Haible  <bruno@clisp.org>
51389
51390         Remove stat module & update lstat.
51391         * config/srclist.txt (libc sources): Remove stat.
51392
51393 2005-06-24  Derek Price  <derek@ximbiot.com>
51394         and Bruno Haible  <bruno@clisp.org>
51395
51396         Remove stat module & update lstat.
51397         * MODULES.html.sh (stat): Remove.
51398         * MODULES.html: Regenerated.
51399         * modules/lstat (Description): Correct function name.
51400         (Files): Add "lstat.h".
51401         (Depends-on): Remove stat, add xalloc, stat-macros.
51402         * modules/stat: Remove this file.
51403         (Include): Add "lstat.h", remove <sys/stat.h>.
51404
51405 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51406
51407         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51408         (ranged_convert): Don't save conversion in a temporary struct.
51409         This causes a warning with GCC 4.0.0, and anyway in the typical
51410         case it's not worth the extra 100 bytes or so of code.
51411         (ranged_convert, __mktime_internal): When calling a function via a
51412         pointer P, use P () rather than (*P) (), as we now assume C89 or
51413         better.
51414
51415 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51416
51417         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51418         "who -r" failed to give output.  Problem reported by Tim Waugh.
51419
51420         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51421         (xcalloc): Use it to avoid needless tests.
51422         Problem reported by Jim Meyering.
51423
51424 2005-06-20  Derek Price  <derek@ximbiot.com>
51425
51426         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51427         unnecessary for Autoconfs > 2.59c.
51428
51429 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51430
51431         * lib/argp.h (__option_is_short): Check upper limit of
51432         __key. Isprint() requires its argument to have the value
51433         of an unsigned char or EOF.
51434
51435 2005-06-16  Jim Meyering  <jim@meyering.net>
51436
51437         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51438         when either N or S is zero.
51439
51440 2005-06-16  Derek Price  <derek@ximbiot.com>
51441
51442         * m4/bison.m4: Declare YACC & YFLAGS precious.
51443
51444 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51445
51446         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51447         multibyte string or pattern, fall back on unibyte matching.
51448         Problem reported by James Youngman.
51449
51450 2005-06-08  Bruno Haible  <bruno@clisp.org>
51451
51452         * modules/csharpcomp: New file.
51453         * MODULES.html.sh (C#): Add csharpcomp.
51454
51455 2005-06-08  Bruno Haible  <bruno@clisp.org>
51456
51457         * m4/csharpcomp.m4: New file, from GNU gettext.
51458
51459 2005-06-08  Bruno Haible  <bruno@clisp.org>
51460
51461         * lib/csharpcomp.h: New file, from GNU gettext.
51462         * lib/csharpcomp.c: New file, from GNU gettext.
51463         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51464
51465 2005-06-08  Bruno Haible  <bruno@clisp.org>
51466
51467         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51468         warning on mingw.
51469
51470 2005-06-07  Derek Price  <derek@ximbiot.com>
51471
51472         Sync from CVS.
51473         * lib/glob_.h: Indent nested #ifdef.
51474
51475 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51476
51477         Sync from coreutils.
51478         Use "file name" when talking about file names, instead of "filename"
51479         or "path", as per the GNU coding standards.
51480         * lib/mkdir-p.c: Renamed from makepath.c.
51481         (make_dir_parents): Renamed from make_path.  All callers changed.
51482         * lib/mkdir-p.h: Likewise.  All includers changed.
51483         * lib/filenamecat.c: Renamed from path-concat.c.
51484         (file_name_concat): Renamed from path_concat.  All callers changed.
51485         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51486         * lib/filenamecat.h: Likewise.  All includers changed.
51487         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51488         in comments or local variable names.
51489         * lib/basename.c: Likewise.
51490         * lib/canonicalize.c, canonicalize.h: Likewise.
51491         * lib/dirname.c, dirname.h: Likewise.
51492         * lib/euidaccess.c: Likewise.
51493         * lib/exclude.c: Likewise
51494         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51495         * lib/fsusage.c, fsuage.h: Likewise.
51496         * lib/fts.c, fts_.h: Likewise.
51497         * lib/getcwd.c: Likewise.
51498         * lib/getloadavg.c: Likewise.
51499         * lib/mkstemp.c: Likewise.
51500         * lib/mountlist.c, mountlist.h: Likewise.
51501         * lib/openat.c, openat.h: Likewise.
51502         * lib/readlink-stub.c: Likewise.
51503         * lib/readutmp.c, readutmp.h: Likewise.
51504         * lib/rename.c: Likewise.
51505         * lib/rmdir.c: Likewise.
51506         * lib/same.c: Likewise.
51507         * lib/savedir.c: Likewise.
51508         * lib/stripslash.c: Likewise.
51509         * lib/tempname.c: Likewise.
51510         * lib/xreadlink.c: Likewise.
51511         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51512         All uses changed.
51513         * lib/exclude.h: Likewise.
51514
51515         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51516         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51517         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51518         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51519         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51520         files have been getting away with it for years (MORE/BSD 4.3
51521         is extinct now).
51522         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51523         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51524
51525         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51526         Define to 256, not 255, as per modern POSIX.
51527
51528 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51529
51530         Sync from coreutils.
51531         Use "file name" when talking about file names, instead of "filename"
51532         or "path", as per the GNU coding standards.
51533         * MODULES.html.sh: mkdir-p renamed from makepath.
51534         filenamecat renamed from path-concat.
51535         * modules/filenamecat: Renamed from modules/path-concat.
51536         (Files): filenamecat.h and filenamecat.c renamed from
51537         path-concat.h and path-concat.c.
51538         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51539         (Include): filenamecat.h, not path-concat.h.
51540         * modules/mkdir-p: Renamed from modules/makepath.
51541         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51542         makepath.c.
51543         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51544         (Include): mkdir-p.h, not makepath.h.
51545
51546 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51547
51548         Sync from coreutils.
51549         * m4/mkdir-p.m4: Renamed from makepath.m4.
51550         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51551         Rename files from makepath.c to mkdir-p.c, and from
51552         makepath.h to mkdir-p.h.
51553         * m4/filenamecat.m4: Renamed from path-concat.m4.
51554         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51555         Rename files from path-concat.c to filenamecat.c,
51556         and from path-concat.h to filenamecat.h.
51557         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51558         "file name" in local variables or comments.
51559         * m4/rename.m4: Likewise.
51560
51561 2005-06-01  Bruno Haible  <bruno@clisp.org>
51562
51563         * modules/csharpexec: New file.
51564         * MODULES.html.sh (C#): New section.
51565
51566 2005-06-01  Bruno Haible  <bruno@clisp.org>
51567
51568         * m4/csharp.m4: New file, from GNU gettext.
51569         * m4/csharpexec.m4: New file, from GNU gettext.
51570
51571 2005-06-01  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/csharpexec.h: New file, from GNU gettext.
51574         * lib/csharpexec.c: New file, from GNU gettext.
51575         * lib/csharpexec.sh.in: New file, from GNU gettext.
51576
51577 2005-05-31  Derek Price  <derek@ximbiot.com>
51578             Paul Eggert  <eggert@cs.ucla.edu>
51579
51580         Sync from cvs.
51581         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51582
51583 2005-05-31  Derek Price  <derek@ximbiot.com>
51584             Paul Eggert  <eggert@cs.ucla.edu>
51585
51586         Sync from cvs.
51587         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51588
51589 2005-05-29  Derek Price  <derek@ximbiot.com>
51590
51591         * config/srclist.txt (glob_.h, glob.c): Add these files.
51592
51593 2005-05-29  Derek Price  <derek@ximbiot.com>
51594
51595         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51596         * modules/glob: New file.
51597         * modules/getlogin_r: Add link to POSIX spec in description.
51598
51599 2005-05-29  Derek Price  <derek@ximbiot.com>
51600             Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * m4/glob.m4: New file.
51603
51604 2005-05-29  Derek Price  <derek@ximbiot.com>
51605             Paul Eggert  <eggert@cs.ucla.edu>
51606
51607         * lib/glob_.h, lib/glob.c: New files.
51608
51609 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51610
51611         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51612         * modules/fts-lgpl (Depends-on): Remove gettext.
51613
51614 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51615
51616         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51617         and don't require gt_INTTYPES_PRI.
51618
51619 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51620
51621         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51622
51623         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51624         the configuration hassle isn't worth it.
51625         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51626         (LONGEST_MODIFIER, PRIuMAX): Remove.
51627
51628 2005-05-27  Bruno Haible  <bruno@clisp.org>
51629
51630         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51631
51632 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51633
51634         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51635         _POSIX_PTHREAD_SEMANTICS for Solaris.
51636
51637 2005-05-25  Derek Price  <derek@ximbiot.com>
51638
51639         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51640
51641 2005-05-25  Derek Price  <derek@ximbiot.com>
51642             Paul Eggert  <eggert@cs.ucla.edu>
51643
51644         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51645         * lib/getlogin_r.c, getlogin_r.h: New files.
51646
51647 2005-05-25  Bruno Haible  <bruno@clisp.org>
51648             Derek Price  <derek@ximbiot.com>
51649
51650         * lib/getlogin_r.h: Simplify API documentation.
51651
51652 2005-05-23  Derek Price  <derek@ximbiot.com>
51653
51654         * modules/minmax (Files): Add m4/minmax.m4.
51655         (configure.ac): Add gl_MINMAX.
51656
51657 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51658
51659         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51660         so that unistd-safer.h (GPL'ed code) need not be included.
51661
51662 2005-05-22  Bruno Haible  <bruno@clisp.org>
51663
51664         * m4/minmax.m4: New file.
51665         Based on a patch by Derek Price <derek@ximbiot.com>.
51666
51667 2005-05-22  Bruno Haible  <bruno@clisp.org>
51668
51669         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51670         (INT64_MIN): Fix definition.
51671         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51672
51673         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51674         NEED_SIGNED_INT_TYPES.
51675
51676         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51677         HAVE_SYSTEM_INTTYPES.
51678
51679 2005-05-22  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51682         Also include <sys/param.h> if it defines MIN, MAX.
51683         Based on a patch by Derek Price <derek@ximbiot.com>.
51684
51685 2005-05-21  Jim Meyering  <jim@meyering.net>
51686
51687         * modules/fts (Files): Add m4/inttypes-pri.m4.
51688         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51689
51690 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51691
51692         New fts module.
51693         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51694         (setup_dir, free_dir): New functions.
51695         (enter_dir, leave_dir): Define trivial
51696         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51697         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51698         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51699         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51700         Move to fts-cycle.c.
51701         (fts_open): Use setup_dir.
51702         (fts_close): Use free_dir.
51703         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51704         This adds a label and some gotos, but the alternatives were messier.
51705         Check for memory allocation failure when entering a dir.
51706         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51707         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51708         (FTS): New member fts_cycle, that is a union that contains the
51709         old active_dir_ht and cycle_state.  All uses changed to mention
51710         fts_cycle.ht and fts_cycle.state.
51711         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51712         fts.c, with the following changes:
51713         (setup_dir, free_dir): New functions.
51714         (enter_dir): Now returns bool.  Return true if successful, false
51715         if memory exhausted.  All callers changed.
51716         Do not bother partly cleaning up on
51717         memory allocation failure; that is free_dir's job.
51718         However, free ad if hash_insert fails, to avoid memory leak.
51719         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51720         fts->fts_options to see which union member to use.
51721
51722 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51723
51724         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51725         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51726
51727 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51728
51729         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51730
51731 2005-05-20  Jim Meyering  <jim@meyering.net>
51732
51733         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51734         Now a macro, to pacify GCC.
51735
51736 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51737
51738         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51739         of -1.
51740
51741 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51742
51743         * lib/chown.c (rpl_chown): Return -1 on failure.
51744
51745 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51746
51747         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51748         Don't check for stddef.h.
51749         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51750         don't use its results.
51751         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51752         since we include them unconditionally.  Don't require
51753         AM_STDBOOL_H, since stdbool is a prerequisite.
51754         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51755         since we assume C89 or better.
51756         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51757         as we don't use their results.
51758         Don't check for fchdir, memmove, memset, strrchr, as we use
51759         them unconditionally.
51760         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51761         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51762
51763 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51764
51765         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51766         Include <stddef.h> unconditionally, since we assume C89 now.
51767         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51768         * lib/fts.c: Include fts_.h first, to check interface.
51769         Do not include intprops.h; no longer needed.
51770         Include cycle-check.h and hash.h, since fts_.h no longer does.
51771         Remove unnecessary casts of closedir to void.
51772         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51773         decide whether to decrement nlinks.
51774         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51775         (FTS): Use struct hash_table * instead of Hash_table, so that
51776         we no longer need to include hash.h here.
51777
51778 2005-05-18  Jim Meyering  <jim@meyering.net>
51779
51780         * modules/dirfd (License): Change to LGPL.  Most of the code
51781         is already in the public domain.
51782
51783 2005-05-18  Jim Meyering  <jim@meyering.net>
51784
51785         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51786         Reported by Yoann Vandoorselaere.
51787
51788 2005-05-17  Jim Meyering  <jim@meyering.net>
51789
51790         * m4/fts.m4: New file, from coreutils.
51791
51792 2005-05-17  Jim Meyering  <jim@meyering.net>
51793
51794         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51795
51796 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51797
51798         Sync from coreutils.
51799         * m4/unlinkdir.m4: New file.
51800
51801 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51802
51803         Sync from coreutils.
51804         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51805         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51806         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51807         White space changes only.
51808         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51809         special.
51810         * lib/yesno.c: Include getline.h, not ctype.h.
51811         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51812         Use getline to remove arbitrary restriction on response length.
51813
51814 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51815
51816         * config/srclist-update: Spell out "Street" in FSF postal
51817         mail address; this is the style the FSF seems to prefer.
51818
51819         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51820         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51821         this updates FSF postal mail address.
51822
51823         Sync from coreutils.
51824         * modules/unlinkdir: New file.
51825         * modules/yesno (Depends-on): Add getline.
51826         * MODULES.html.sh (File system functions): Add unlinkdir.
51827
51828 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51829
51830         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51831         lib/strsep.h:
51832         Change the initial comment to refer to GPL, not LGPL.
51833         gnulib-tool will change it to LGPL as needed.
51834
51835         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51836         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51837         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51838         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51839         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51840         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51841         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51842         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51843         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51844         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51845         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51846         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51847         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51848         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51849         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51850         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51851         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51852         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51853         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51854         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51855         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51856         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51857         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51858         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51859         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51860         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51861         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51862         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51863         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51864         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51865         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51866         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51867         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51868         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51869         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51870         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51871         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51872         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51873         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51874         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51875         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51876         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51877         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51878         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51879         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51880         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51881         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51882         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51883         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51884         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51885         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51886         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51887         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51888         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51889         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51890         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51891         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51892         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51893         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51894         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51895         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51896         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51897         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51898         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51899         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51900         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51901         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51902         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51903         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51904         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51905         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51906         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51907         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51908         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51909         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51910         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51911         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51912         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51913         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51914         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51915         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51916         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51917         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51918         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51919         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51920         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51921         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51922         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51923         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51924         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51925         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51926         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51927         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51928         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51929         lib/yesno.c, lib/yesno.h:
51930         Update FSF postal mail address.
51931
51932 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51933
51934         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51935         tests/test-memmem.c, tests/test-stpncpy.c:
51936         Update FSF postal mail address.
51937
51938 2005-05-13  Bruno Haible  <bruno@clisp.org>
51939
51940         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51941         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51942         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51943         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51944         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51945         Add support for 64-bit integers in the MSVC compiler.
51946
51947 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51948
51949         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51950
51951 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51952
51953         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51954
51955 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51956
51957         * doc/getdate.texi (General date syntax): Don't say that date
51958         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51959         Problem reported by Nic Ferrier.
51960
51961 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51962
51963         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51964         specified in ai_socktype. Fix invalid ai_protocol
51965         check. ai_protocol is usually set to 0 or depending on
51966         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51967         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51968         ai_socktype / ai_protocol in the returned addrinfo structure.
51969
51970 2005-05-10  Simon Josefsson  <jas@extundo.com>
51971
51972         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51973         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51974
51975 2005-05-10  Karl Berry  <karl@gnu.org>
51976
51977         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51978         (from http://www.gnu.org/licenses).
51979         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51980         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51981         fdl.texi suffices.
51982
51983 2005-05-10  Karl Berry  <karl@gnu.org>
51984
51985         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51986         (COPYING.DOC): remove.
51987
51988         * config/srclist-update: new FSF address.
51989
51990 2005-05-10  Derek Price  <derek@ximbiot.com>
51991
51992         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51993         possible.
51994
51995 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51996             Bruno Haible  <bruno@clisp.org>
51997
51998         * modules/inet_ntop: New file.
51999         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52000         inet_ntop.
52001
52002 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52003             Bruno Haible  <bruno@clisp.org>
52004
52005         * m4/inet_ntop.m4: New file.
52006
52007 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52008             Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/inet_ntop.h: New file.
52011         * lib/inet_ntop.c: New file, from glibc with modifications.
52012
52013 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         * modules/time_r (License): Change to LGPL.
52016         * modules/extensions (License): Change to LGPL.  Actually,
52017         the license is more permissive than that, but currently gnulib-tool
52018         doesn't know how to handle more-permissive licenses.
52019
52020         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52021         Problem reported by Dave Love.
52022
52023 2005-05-08  Jim Meyering  <jim@meyering.net>
52024
52025         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52026         blank.
52027
52028 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52029
52030         * modules/argmatch (Depends-on): Add stdbool.
52031         * modules/backupfile (Depends-on): Likewise.
52032         * modules/chdir-long (Depends-on): Likewise.
52033         * modules/closeout (Depends-on): Likewise.
52034         * modules/cycle-check (Depends-on): Likewise.
52035         * modules/dirname (Depends-on): Likewise.
52036         * modules/fnmatch (Depends-on): Likewise.
52037         * modules/fsusage (Depends-on): Likewise.
52038         * modules/fwriteerror (Depends-on): Likewise.
52039         * modules/getcwd (Depends-on): Likewise.
52040         * modules/getloadavg (Depends-on): Likewise.
52041         * modules/hard-locale (Depends-on): Likewise.
52042         * modules/makepath (Depends-on): Likewise.
52043         * modules/mountlist (Depends-on): Likewise.
52044         * modules/nanosleep (Depends-on): Likewise.
52045         * modules/posixtm (Depends-on): Likewise.
52046         * modules/quotearg (Depends-on): Likewise.
52047         * modules/readtokens (Depends-on): Likewise.
52048         * modules/readtokens0 (Depends-on): Likewise.
52049         * modules/readutmp (Depends-on): Likewise.
52050         * modules/save-cwd (Depends-on): Likewise.
52051         * modules/strftime (Depends-on): Likewise.
52052         * modules/userspec (Depends-on): Likewise.
52053         * modules/utimecmp (Depends-on): Likewise.
52054         * modules/xgetcwd (Depends-on): Likewise.
52055         * modules/xnanosleep (Depends-on): Likewise.
52056         * modules/xstrtod (Depends-on): Likewise.
52057         * modules/yesno (Depends-on): Likewise.
52058
52059 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52060
52061         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52062         needless checks.
52063
52064 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52065
52066         Merge from coreutils.  Among other things,
52067         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52068         * lib/fd-safer.c: New file.
52069         * lib/fcntl-safer.h, open-safer.c: Remove.
52070         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52071         * lib/dup-safer.c: Include unistd-safer.h first.
52072         Don't include errno.h.
52073         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52074         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52075         * lib/file-type.c: Rely on file-type.h change.
52076         * lib/getloadavg.c: Include unistd-safer.h.
52077         (getloadavg): Use safer open.
52078         * lib/getusershell.c: Include "stdio-safer.h".
52079         (getusershell): Use safer fopen.
52080         * lib/long-options.c (long_options): Use NULL rather than 0.
52081         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52082         'free'.
52083         * lib/modechange.c: Likewise.
52084         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52085         (MODE_DONE): New constant.
52086         (struct mode_change): Remove 'next' member.
52087         (make_node_op_equals): New function; like the old one of the
52088         same name, except it allocates an array.
52089         (mode_compile, mode_create_from_ref): Use it.
52090         (mode_compile): Allocate result as an array, not a linked list.
52091         Parse octal string ourself, so that we catch mistakes like "+0".
52092         (mode_adjust): Arg is an array, not a linked list.
52093         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52094         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52095         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52096         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52097         Remove.  This is now stat-macros.h's job.
52098         (talloc): Remove.  All callers replaced by xalloc, so that
52099         our invokers don't have to worry about reporting memory failures.
52100         (make_node_op_equals): Remove.
52101         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52102         New constants.
52103         (struct mode_change): Moved here from modechange.h.
52104         (mode_append_entry): Remove.
52105         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52106         apps to have incorrect behavior.  Use simpler algorithm for head
52107         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52108         Detect more invalid usages rather than having somewhat-random behavior.
52109         Don't insert an "a=" action, as that leads to incorrect behavior.
52110         (mode_compile, mode_create_from_ref): Return NULL on error instead
52111         of an enum, since now there's only one way to have an error.  All
52112         callers changed.
52113         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52114         at the correct time.  Simplify calculation of "+u" and its ilk.
52115         Don't mishandle "+X".
52116         (mode_free): Remove "register" and localize decls.
52117         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52118         (struct mode_change): Move to modechange.c; callers don't
52119         need to see this stuff.
52120         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52121         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52122         (mode_change, mode_adjust): Reflect the new signatures noted above.
52123         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52124         that might redefine system include files.
52125         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52126         (my_usleep): Use NULL rather than (void *) 0.
52127         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52128         Use siginterrupt to specify that system calls should be interrupted.
52129         (rpl_nanosleep): Move initialization of suspended closer to call of
52130         my_usleep.
52131         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52132         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52133         (desirable_utmp_entry): New function.
52134         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52135         using x2nrealloc, to simplify logic.
52136         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52137         size calculation.  Do not assume utmp file is a regular file.
52138         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52139         (READ_UTMP_CHECK_PIDS): New constant.
52140         * lib/save-cwd.c: Include unistd-safer.h.
52141         (save_cwd): Use fd_safer.
52142         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52143         [!_LIBC] Include "stat-macros.h" instead.
52144         * lib/unistd-safer.h (fd_safer): New decl.
52145
52146 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52147
52148         * modules/getloadavg (Depends-on): Add unistd-safer.
52149         * modules/getusershell (Depends-on): Add stdio-safer.
52150         * modules/lstat (Depends-on): Remove xalloc.
52151         * modules/mkstemp (Depends-on): Add stat-macros.
52152         * modules/modechange (Depends-on): Remove xstrtol.
52153         Add stat-macros, xalloc.
52154         * modules/save-cwd (Depends-on): Add unistd-safer.
52155         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52156         * modules/unistd-safer (Files): Add lib/fd-safer.c
52157         (Makefile.am): Remove lib_SOURCES.
52158
52159         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52160         Remove fcntl-safer; unistd-safer supersedes it.
52161
52162 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52165         AC_HEADER_STAT.
52166         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52167         (gl_PREREQ_CHOWN): Remove.
52168         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52169         it.  Don't require AC_HEADER_STAT.
52170         (gl_PREREQ_LSTAT): Remove.
52171         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52172         Don't require AC_HEADER_STAT.
52173         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52174         (gl_PREREQ_RMDIR): Remove.
52175         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52176         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52177         the stat-macros module a prerequisite.
52178         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52179         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52180         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52181         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52182         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52183         variable names.
52184         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52185         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52186         variable prefixes.
52187         * m4/fcntl-safer.m4: Remove.
52188         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52189         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52190         Invoke gl_PREREQ_FD_SAFER.
52191         (gl_PREREQ_FD_SAFER): New macro.
52192         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52193         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52194         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52195         Remove duplicate call to AC_LIBOBJ(readutmp).
52196         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52197
52198         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52199         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52200
52201 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * MODULES.html.sh (Misc): Add byteswap.
52204
52205 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52206
52207         * modules/getcwd (Depends-on): Add extensions.
52208         * modules/openat (Depends-on): Likewise.
52209
52210 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52211
52212         * modules/byteswap: New file.
52213
52214 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52215
52216         * m4/byteswap.m4: New file.
52217
52218 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52219
52220         * lib/byteswap_.h: New file.
52221
52222 2005-04-25  Karl Berry  <karl@gnu.org>
52223
52224         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52225
52226 2005-04-25  Albert Chin  <china@thewrittenword.com>
52227
52228         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52229         Toolkit C bug.
52230
52231 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52232
52233         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52234         (func_ln_if_changed) Remove forcibly for no error message
52235         in case file does not exist.
52236
52237 2005-04-19  Simon Josefsson  <jas@extundo.com>
52238
52239         * gnulib-tool (Options): Make --symlink mean --symbolic.
52240
52241 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52242
52243         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52244
52245 2005-04-16  Simon Josefsson  <jas@extundo.com>
52246
52247         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52248
52249 2005-04-15  Simon Josefsson  <jas@extundo.com>
52250
52251         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52252
52253 2005-04-15  Simon Josefsson  <jas@extundo.com>
52254
52255         * gnulib-tool: Rename --symlink to --symbolic.
52256
52257 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52258
52259         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52260         symbolic links to files instead of copying/moving.  Add --aux-dir,
52261         specifying directory relative --dir where auxiliary build tools
52262         are placed.
52263
52264 2005-04-14  Bruno Haible  <bruno@clisp.org>
52265
52266         * modules/allocsa (License): Change to LGPL.
52267         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52268
52269 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52270
52271         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52272         that "UTC +1 second" continues to work.  Problem reported
52273         by Dmitry V. Levin.
52274         (relunit_snumber): New rule.
52275         (relunit): Use it.
52276
52277 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52278
52279         * lib/getdate.y (universal_time_zone_table): New constant.
52280         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52281         universal_time_zone_table.
52282         (lookup_zone): Prefer universal_time_zone_table to
52283         local_time_zone_table, so that "GMT" time stamps are allowed in
52284         London during the summer.  Problem reported by Ian Abbott.
52285
52286 2005-04-12  Jim Meyering  <jim@meyering.net>
52287
52288         * lib/human.c (humblock): Set *options even when returning due to
52289         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52290         warning from gcc-4.
52291
52292 2005-04-09  Jim Meyering  <jim@meyering.net>
52293
52294         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52295         -Wuninitialized: initialize tm0.tm_year.
52296
52297 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52298
52299         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52300         count, since there's no maximum.  All uses changed.
52301         Add member dsts_seen.
52302         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52303         not being INT_MAX.
52304         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52305         Use pc_rels_seen to decide whther a date is absolute.
52306
52307         * lib/getdate.y (number): Don't overwrite year.
52308         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52309         check.
52310
52311 2005-04-02  Simon Josefsson  <jas@extundo.com>
52312
52313         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52314         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52315
52316 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52317
52318         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52319         where no absolute path name can be longer than PATH_MAX.
52320
52321 2005-03-27  Jim Meyering  <jim@meyering.net>
52322
52323         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52324
52325 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52326
52327         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52328         "one's complement" -> "ones' complement" in comment, as per Knuth.
52329         "value of type" -> "type or expression" in comment.
52330         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52331
52332 2005-03-26  Jim Meyering  <jim@meyering.net>
52333
52334         Comment nits.
52335         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52336         Correct typos: s/or/of/.
52337
52338 2005-03-26  Jim Meyering  <jim@meyering.net>
52339
52340         * modules/check-include-files: Move to ../ and rename to...
52341         * check-module: ...this.
52342
52343 2005-03-25  Jim Meyering  <jim@meyering.net>
52344
52345         * modules/xvasprintf (Files): Add xalloc.h.
52346
52347 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52348
52349         * modules/gettext (Files): config/config.rpath ->
52350         build-aux/config.rpath
52351         * modules/iconv (Files): Likewise.
52352         Problem reported by Oskar Liljeblad.
52353
52354 2005-03-23  Jim Meyering  <jim@meyering.net>
52355
52356         * modules/check-include-files: New script to check for
52357         missing dependencies, multiple includes, etc.
52358
52359         * modules/c-strtold (Depends-on): Add xalloc.
52360         * modules/c-strtod (Depends-on): Add xalloc.
52361         * modules/hash (Depends-on): Add xalloc.
52362         (Files): Remove lib/xalloc.h.
52363
52364         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52365         * modules/userspec (Files): Add lib/inttostr.h.
52366
52367 2005-03-23  Jim Meyering  <jim@meyering.net>
52368
52369         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52370
52371 2005-03-22  Jim Meyering  <jim@meyering.net>
52372
52373         * modules/stat-macros: New module.
52374         * modules/canonicalize, modules/euidaccess, modules/file-type,
52375         * modules/filemode, modules/lchown, modules/makepath,
52376         * modules/rmdir, modules/stat: Depend on new stat-macros module
52377         rather than listing lib/stat-macros.h manually.
52378         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52379
52380 2005-03-22  Jim Meyering  <jim@meyering.net>
52381
52382         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52383
52384 2005-03-22  Bruno Haible  <bruno@clisp.org>
52385
52386         * config/srclist.txt: Replace target directory 'config' with
52387         'build-aux'.
52388         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52389         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52390         ../build-aux/.
52391
52392 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52393
52394         * modules/chdir-long (Depends-on): Add mempcpy.
52395
52396         * modules/acl, modules/backupfile, modules/c-strtod,
52397         modules/c-strtold, modules/canon-host, modules/canonicalize,
52398         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52399         modules/exclude, modules/exitfail, modules/file-type,
52400         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52401         modules/getdate, modules/getline, modules/getpagesize,
52402         modules/getpass, modules/getugroups, modules/group-member,
52403         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52404         modules/inttostr, modules/long-options, modules/makepath,
52405         modules/md5, modules/memcasecmp, modules/memcoll,
52406         modules/modechange, modules/mountlist, modules/path-concat,
52407         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52408         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52409         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52410         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52411         modules/strftime, modules/strndup, modules/strverscmp,
52412         modules/timespec, modules/unlocked-io, modules/userspec,
52413         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52414         modules/yesno:
52415         Remove lib_SOURCES line from Makefile.am section, as this is now
52416         done automatically by the corresponding Autoconf macro.
52417
52418 2005-03-21  Jim Meyering  <jim@meyering.net>
52419
52420         Changes imported from coreutils.
52421
52422         * lib/cycle-check.c: Don't include xalloc.h.
52423
52424         * lib/path-concat.c: Don't include assert.h.
52425         (path_concat): Remove assertion that would have triggered
52426         for ABASE starting with more than one slash.
52427         Reported by Andreas Schwab.
52428
52429         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52430         properly when ABASE is an absolute file name.
52431         Correct the description of this function.
52432         Include <assert.h>.
52433         Add an assertion and a test driver.
52434         This fixes a bug introduced on 2004-07-02.
52435         Andreas Schwab reported the resulting failure of cp --parents:
52436         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52437
52438 2005-03-21  Jim Meyering  <jim@meyering.net>
52439
52440         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52441         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52442
52443 2005-03-21  Jim Meyering  <jim@meyering.net>
52444         and  Paul Eggert  <eggert@cs.ucla.edu>
52445
52446         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52447         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52448         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52449         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52450         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52451         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52452         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52453         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52454         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52455         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52456         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52457         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52458         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52459         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52460         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52461         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52462         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52463         for these modules.
52464
52465 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52466
52467         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52468         (which shouldn't happen), generate nothing instead of returning 0
52469         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52470
52471 2005-03-16  Bruno Haible  <bruno@clisp.org>
52472
52473         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52474         HAVE_LONGLONG_64BIT.
52475
52476 2005-03-16  Bruno Haible  <bruno@clisp.org>
52477
52478         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52479         HAVE_LONGLONG_64BIT.
52480
52481 2005-03-16  Bruno Haible  <bruno@clisp.org>
52482
52483         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52484         HAVE_LONGLONG_64BIT.
52485
52486 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52487
52488         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52489         reliably distinguish strftime failure from empty output on POSIX
52490         hosts.
52491
52492 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52493
52494         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52495         (iconv_string): Don't guess a size-zero buffer, as that might cause
52496         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52497         result would be 'too large', where 'too large' is (heuristically)
52498         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52499         overflow concerns.  This will prevent some unwanted malloc failures
52500         when the inputs are very large.
52501
52502 2005-03-15  Karl Berry  <karl@gnu.org>
52503
52504         * config/srclist.txt (config.rpath): from gettext.
52505         * config/config.rpath: update.
52506
52507 2005-03-15  Bruno Haible  <bruno@clisp.org>
52508
52509         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52510         to 'negate'.
52511
52512         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52513         variable.
52514
52515         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52516         results.
52517
52518 2005-03-14  Simon Josefsson  <jas@extundo.com>
52519
52520         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52521         <fx@gnu.org>.
52522
52523 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52524
52525         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52526         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52527         intprops.h.
52528         * lib/strtol.c: Likewise.
52529
52530 2005-03-14  Jim Meyering  <jim@meyering.net>
52531
52532         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52533         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52534         to be nonzero so that we (and caller) can detect the difference
52535         between a valid zero-length expansion and an error return, even
52536         when the underlying strftime fails before writing anything into
52537         that location.
52538
52539 2005-03-14  Bruno Haible  <bruno@clisp.org>
52540
52541         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52542         Update from GNU gettext 0.14.3.
52543
52544 2005-03-10  Jim Meyering  <jim@meyering.net>
52545
52546         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52547
52548 2005-03-10  Jim Meyering  <jim@meyering.net>
52549
52550         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52551         so that this module works on systems without fchdir.
52552
52553 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52554
52555         Factor int-properties macros into a single file, except for
52556         glibc-related files.
52557         * lib/intprops.h: New file.
52558         * lib/getloadavg.c: Include it instead of limits.h.
52559         (INT_STRLEN_BOUND): Remove.
52560         * lib/human.c: Include intprops.h.
52561         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52562         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52563         302/1000.
52564         * lib/inttostr.h: Include intprops.h instead of limits.h.
52565         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52566         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52567         for consistency with intprops.h.
52568         (time_t_is_integer, twos_complement_arithmetic): Use them.
52569         * lib/sig2str.h: Include <signal.h>, intprops.h.
52570         (INT_STRLEN_BOUND): Remove.
52571         * lib/strftime.c (TYPE_SIGNED): Remove.
52572         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52573         * lib/strtol.c: Adjust comments to match intprops.h.
52574         * lib/userspec.c: Include intprops.h.
52575         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52576         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52577         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52578         instead of rolling our own expressions.
52579         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52580
52581         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52582         instead of int.
52583         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52584         the right thing even if adding 1900 would overflow.  Similarly
52585         for tm_mon + 1 and tm_yday + 1.
52586         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52587         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52588         (DO_SIGNED_NUMBER): New macro.
52589         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52590
52591 2005-03-07  Bruno Haible  <bruno@clisp.org>
52592
52593         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52594
52595 2005-03-07  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52598
52599 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52600
52601         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52602         (func_import): Only replace files via --import when they have actually
52603         changed.
52604
52605 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52606
52607         * m4/mmap-anon.m4: New file.
52608         * m4/pagealign_alloc.m4: New file.
52609
52610 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52611             Bruno Haible  <bruno@clisp.org>
52612
52613         * modules/pagealign_alloc: New file.
52614         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52615
52616 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52617             Bruno Haible  <bruno@clisp.org>
52618
52619         * lib/pagealign_alloc.h: New file.
52620         * lib/pagealign_alloc.c: New file.
52621
52622 2005-03-03  Bruno Haible  <bruno@clisp.org>
52623
52624         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52625         Use an all-permissive copyright notice, recommended by RMS.
52626
52627 2005-03-02  Bruno Haible  <bruno@clisp.org>
52628
52629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52630         of AIX, the replacement has to be done only after <string.h> is
52631         included, therefore not in config.h. stpncpy.h does the replacement,
52632         and stpncpy.c uses it.
52633
52634 2005-03-02  Bruno Haible  <bruno@clisp.org>
52635
52636         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52637         stpncpy.c uses it.
52638
52639 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52640
52641         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52642         The workaround isn't strictly needed for POSIX conformance, and
52643         it's too much of a pain to configure and maintain.  We'll ask
52644         people to fix their kernels instead.
52645         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52646         (NANOSLEEP_BUG_WORKAROUND): Remove.
52647         (xnanosleep): Remove the workaround.
52648
52649 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52650
52651         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52652         Reported by Derek Price.
52653         (Include): Add "timespec.h".
52654
52655         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52656
52657 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52658
52659         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52660         to detect nanosleep bug.
52661
52662 2005-03-01  Bruno Haible  <bruno@clisp.org>
52663
52664         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52665
52666 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52667
52668         * modules/gethrxtime: New file.
52669         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52670         (Depends-on): Add gethrxtime.
52671         (configure.ac): Add gl_XNANOSLEEP.
52672         (Makefile.am): Remove lib_SOURCES line.
52673
52674 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52675
52676         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52677         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52678
52679 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52680
52681         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52682         * lib/timespec.h (gettime): Return void, since it always
52683         succeeds now.  All uses changed.
52684         * lib/gettime.c (gettime) Likewise.
52685         [HAVE_NANOTIME]: Prefer nanotime.
52686         Assume gettimeofday succeeds, as POSIX requires.
52687         Assime time () succeeds, since other code already does.
52688         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52689         (timespec_subtract): Remove.
52690         (NANOSLEEP_BUG_WORKAROUND): New constant.
52691         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52692         things considerably.  Use it only on GNU/Linux hosts, since the
52693         workaround shouldn't be needed elsewhere.
52694
52695 2005-02-24  Bruno Haible  <bruno@clisp.org>
52696
52697         * modules/gettext (Files): Add m4/glibc2.m4.
52698
52699 2005-02-24  Bruno Haible  <bruno@clisp.org>
52700
52701         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52702         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52703         * m4/progtest.m4:
52704         Update from GNU gettext 0.14.2.
52705         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52706
52707 2005-02-24  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52710         * lib/config.charset: Update from GNU gettext 0.14.2.
52711
52712 2005-02-24  Bruno Haible  <bruno@clisp.org>
52713
52714         * lib/gettext.h: Update from GNU gettext 0.14.2.
52715
52716 2005-02-23  Simon Josefsson  <jas@extundo.com>
52717
52718         * m4/iconvme.m4: New file.
52719
52720 2005-02-23  Jim Meyering  <jim@meyering.net>
52721
52722         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52723         change.
52724         Thanks to Bruno Haible for catching it.
52725
52726 2005-02-22  Simon Josefsson  <jas@extundo.com>
52727
52728         * modules/iconvme: New file.
52729
52730         * MODULES.html.sh: Add iconvme.
52731
52732 2005-02-22  Simon Josefsson  <jas@extundo.com>
52733
52734         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52735
52736 2005-02-22  Simon Josefsson  <jas@extundo.com>
52737
52738         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52739
52740 2005-02-22  Jim Meyering  <jim@meyering.net>
52741
52742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52743         s/ifndef/ifdef/.
52744
52745 2005-02-20  Neil Conway  <neilc@samurai.com>
52746
52747         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52748         returned by OSX/Darwin if the specified buffer is not large
52749         enough for the hostname.
52750
52751 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52752
52753         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52754         pass it to _help, otherwise the latter coredumps trying to
52755         dereference state.root_argp.
52756
52757 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52758
52759         * modules/chdir-long (Depends-on): Add memrchr.
52760         * modules/memrchr (Files): Add lib/memrchr.h.
52761         (Include): "memrchr.h".
52762
52763 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52766
52767 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52768
52769         * lib/memrchr.h: New file.
52770         * lib/chdir-long.c: Include it.
52771         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52772         Don't bother including stddef.h.
52773
52774 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52775
52776         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52777         inclusion.
52778         Include <sys/types.h>, for dev_t.
52779         (ME_DUMMY, ME_REMOTE): Move from here....
52780         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52781         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52782         Dmitry V. Levin.
52783         Include mountlist.h first, to test the interface.
52784
52785 2005-01-29  Bruno Haible  <bruno@clisp.org>
52786
52787         * lib/progname.c (program_name): Initialize.
52788         Needed when linking statically on MacOS X.
52789
52790 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         Sync from coreutils.
52793         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52794         (Depends-on): Add c-strtod.
52795         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52796
52797 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         Sync from coreutils.
52800         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52801
52802         Remove files that are specific to coreutils.
52803         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52804
52805 2005-01-28  Bruno Haible  <bruno@clisp.org>
52806
52807         * modules/javacomp: New file.
52808         * MODULES.html.sh (Java): Add javacomp.
52809
52810 2005-01-28  Bruno Haible  <bruno@clisp.org>
52811
52812         * m4/javacomp.m4: New file, from GNU gettext.
52813
52814 2005-01-28  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/javacomp.sh.in: New file, from GNU gettext.
52817         * lib/javacomp.h: New file, from GNU gettext.
52818         * lib/javacomp.c: New file, from GNU gettext.
52819
52820 2005-01-26  Simon Josefsson  <jas@extundo.com>
52821
52822         * lib/gai_strerror.c: Use GPL in header.
52823
52824 2005-01-26  Bruno Haible  <bruno@clisp.org>
52825
52826         * modules/javaexec: New file.
52827         * MODULES.html.sh (Java): Add javaexec.
52828
52829 2005-01-26  Bruno Haible  <bruno@clisp.org>
52830
52831         * m4/javaexec.m4: New file, from GNU gettext.
52832
52833 2005-01-26  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/javaexec.sh.in: New file, from GNU gettext.
52836         * lib/javaexec.h: New file, from GNU gettext.
52837         * lib/javaexec.c: New file, from GNU gettext.
52838
52839 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52840
52841         * modules/lchown (Depends-on): Remove lchown.h
52842
52843 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52844
52845         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52846         must be defined if the header file was not found, in order
52847         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52848
52849 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52850
52851         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52852         initializers for struct pentry_state.
52853         (__argp_error): Check return value of __asprintf
52854         (__argp_failure): Translate error message
52855
52856         * lib/argp-parse.c: Removed braces around the expansion of N_()
52857
52858 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52859
52860         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52861         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52862         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52863         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52864         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52865         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52866         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52867         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52868         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52869         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52870         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52871         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52872         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52873         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52874         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52875         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52876         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52877         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52878         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52879         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52880         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52881         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52882         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52883         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52884         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52885         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52886         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52887         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52888         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52889         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52890         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52891         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52892         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52893         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52894         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52895         Use an all-permissive copyright notice, recommended by RMS.
52896
52897 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52898
52899         * modules/chdir-long (Depends-on): Remove mempcpy.
52900
52901 2005-01-21  Jim Meyering  <jim@meyering.net>
52902
52903         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52904         same value as for Solaris 9.
52905
52906         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52907         component length.  This included changing the parameter to be
52908         of type `char *' rather than `char const *'.
52909         * lib/chdir-long.h (chdir_long): Update prototype.
52910
52911         * lib/openat.c (fdopendir, fstatat): New functions.
52912         * lib/openat.h: Include headers required for use of DIR and struct
52913         stat.
52914         [AT_SYMLINK_NOFOLLOW]: Define.
52915         (fdopendir, fstatat): Add prototypes.
52916
52917 2005-01-21  Bruno Haible  <bruno@clisp.org>
52918
52919         * modules/classpath: New file.
52920         * MODULES.html.sh (Java): Add classpath.
52921
52922 2005-01-21  Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/classpath.h: New file, from GNU gettext.
52925         * lib/classpath.c: New file, from GNU gettext.
52926
52927 2005-01-20  Simon Josefsson  <jas@extundo.com>
52928
52929         * modules/version-etc-fsf: New file.
52930
52931 2005-01-20  Simon Josefsson  <jas@extundo.com>
52932
52933         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52934         * lib/version-etc.c: Remove version_etc_copyright.
52935         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52936         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52937
52938 2005-01-20  Simon Josefsson  <jas@extundo.com>
52939
52940         * lib/base64.h (isbase64): Add.
52941
52942         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52943         using a unsigned prototype, don't inline.
52944         (base64_decode): Use it.
52945
52946 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52949         it.
52950
52951 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         * lib/save-cwd.c (save_cwd): Remove code to support the case
52954         where fchdir is missing or flaky.
52955
52956 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52959
52960 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52961
52962         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52963         AC_LIBSOURCES now does this.
52964         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52965         with new ullong_max module.
52966
52967 2005-01-19  Bruno Haible  <bruno@clisp.org>
52968
52969         * modules/sh-quote: New file.
52970         * MODULES.html.sh (Executing programs): Add sh-quote.
52971
52972 2005-01-19  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/sh-quote.h: New file, from GNU gettext.
52975         * lib/sh-quote.c: New file, from GNU gettext.
52976
52977 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52978
52979         Merge from coreutils.
52980         * m4/ullong_max.m4: New file.
52981         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52982         (gl_MACROS): Assume localeconv exists.
52983
52984 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         Merge changes from coreutils, as described below in several
52987         changelogs dated today.
52988
52989         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52990         (O_DIRECTORY): Remove; not needed here, since "." must be
52991         a directory.  All uses removed.
52992         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52993         universal on Suns, and we also need to test for IRIX.
52994         Revamp code to use 'if' rather than '#if'.
52995         Avoid unnecessary comparison of cwd->desc to 0.
52996
52997         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52998         for known valid error numbers rather than observed invalid ones.
52999
53000 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53001
53002         * modules/ullong_max: New file.
53003
53004         * modules/chdir-long, modules/openat: New files.
53005         * modules/save-cwd (Depends-on): Depend on chdir-long.
53006         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53007
53008 2005-01-18  Jim Meyering  <jim@meyering.net>
53009
53010         Merge from coreutils.
53011         * m4/chdir-long.m4, m4/openat.m4: New files.
53012         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53013         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53014         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53015         is sane and DOES follow symlinks.  Besides, testing 20 different
53016         systems found no broken chown implementations.
53017         Prompted by a change in rsync's copy of this macro.
53018         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53019
53020         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53021
53022         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53023         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53024         NULL-means-set-to-current-time semantics.
53025         Remove temporary file immediately, rather than waiting
53026         for configure's at-exit trap code to do it.
53027
53028 2005-01-18  Jim Meyering  <jim@meyering.net>
53029
53030         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53031
53032         * lib/utimens.c (futimens): Account for the fact that futimes
53033         can also fail with errno == ENOSYS or errno == ENOENT.
53034         Patch from Dmitry V. Levin.
53035
53036         Change the name of the robust chdir function from chdir to chdir_long.
53037         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53038         (restore_cwd): Use chdir_long, not chdir.
53039         * lib/chdir-long.c: Renamed from chdir.c.
53040         * lib/chdir-long.h: Renamed from chdir.h.
53041         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53042         Hurd.
53043
53044 2005-01-18  Bruno Haible  <bruno@clisp.org>
53045
53046         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53047         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53048         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53049         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53050         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53051         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53052         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53053         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53054         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53055         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53056         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53057         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53058         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53059         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53060         Use an all-permissive copyright notice, recommended by RMS.
53061
53062 2005-01-18  Bob Proulx  <bob@proulx.com>
53063
53064         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53065         simplify offsetof() macro construct to avoid compile failure with
53066         native HP-UX 11.0 ANSI C compiler.
53067
53068 2005-01-17  Bruno Haible  <bruno@clisp.org>
53069
53070         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53071         redundant because stpncpy.m4 takes care of it.
53072
53073 2005-01-17  Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53076
53077 2005-01-17  Bruno Haible  <bruno@clisp.org>
53078
53079         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53080         used.
53081
53082 2005-01-17  Bruno Haible  <bruno@clisp.org>
53083
53084         * lib/fwriteerror.h (fwriteerror): Change specification to include
53085         fclose.
53086         * lib/fwriteerror.c: Include <stdbool.h>.
53087         (fwriteerror): At the end, close the file stream. Record whether
53088         stdout was already closed.
53089
53090 2005-01-17  Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/execute.c (environ): Declare if needed.
53093         * lib/pipe.c (environ): Likewise.
53094         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53095
53096 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53097
53098         * modules/argp: Depend on vsnprintf
53099
53100 2005-01-10  Jim Meyering  <jim@meyering.net>
53101
53102         * modules/closeout (Depends-on): Add atexit.
53103
53104 2005-01-06  Bruno Haible  <bruno@clisp.org>
53105
53106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53107
53108 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53111         definitions to be after all include files, to avoid collisions.
53112         Problem reported by Bob Proulx.
53113
53114 2005-01-04  Jim Meyering  <jim@meyering.net>
53115
53116         Changes imported from coreutils.
53117         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53118         as the mkstemp template, use a temporary directory and an
53119         8.3-friendly template to avoid trouble on systems like DJGPP.
53120         Reported by Juan M. Guerrero via Stepan Kasal.
53121         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53122         close. Remove the temporary directory right away, rather than waiting
53123         for configure's at-exit trap code to do it.
53124         Suggestion from Stepan Kasal.
53125
53126 2005-01-01  Simon Josefsson  <jas@extundo.com>
53127
53128         * gnulib-tool: Print #include directives when --import'ing.
53129
53130 2004-12-28  Simon Josefsson  <jas@extundo.com>
53131
53132         * tests/test-base64.c: Include required header files.  Remove
53133         unused variables.
53134
53135 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53136
53137         * modules/error (Depends-on): Remove gettext.
53138
53139 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53140
53141         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53142         not needed.  This removes a dependency on the gettext module.
53143         [defined _LIBC]: Do not include <libintl.h>; not needed.
53144
53145 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53146
53147         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53148         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53149
53150 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53151
53152         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53153         HAVE_DECL_STRTOLD.
53154
53155 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53156
53157         * modules/getdate (Depends-on): Remove alloca-opt.
53158
53159 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53160
53161         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53162
53163 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53164
53165         * lib/argp-parse.c: Include <stddef.h>.
53166         (alignof, alignto): New macros.
53167         (parser_init): Don't assume that void * is aligned sufficiently
53168         for struct option.
53169
53170         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53171         need to extend the stack.
53172         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53173         large.
53174
53175 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53176
53177         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53178
53179 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53180
53181         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53182         (2004-10-24) change.  Apparently this was a false alarm.
53183
53184         * modules/getdate: Depend on alloca-opt, not alloca.
53185
53186 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53187
53188         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53189         Remove now-obsolete comment about AIX.
53190         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53191         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53192         (YYMAXDEPTH): New macro.
53193
53194 2004-12-18  Simon Josefsson  <jas@extundo.com>
53195
53196         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53197
53198 2004-12-18  Bruno Haible  <bruno@clisp.org>
53199
53200         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53201
53202 2004-12-18  Bruno Haible  <bruno@clisp.org>
53203
53204         * lib/fatal-signal.c (fatal_signals): Make non-const.
53205         (init_fatal_signals): New function.
53206         (uninstall_handlers, install_handlers): Ignore signals that were set to
53207         SIG_IGN.
53208         (at_fatal_signal): Call init_fatal_signals.
53209         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53210         SIG_IGN.
53211         Reported by Paul Eggert.
53212
53213 2004-12-18  Bruno Haible  <bruno@clisp.org>
53214
53215         * doc/alloca.texi: New file.
53216         * doc/alloca-opt.texi: New file.
53217
53218 2004-12-17  Jim Meyering  <jim@meyering.net>
53219
53220         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53221         Otherwise, install-sh could exit with improper exit status when
53222         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53223
53224 2004-12-16  Simon Josefsson  <jas@extundo.com>
53225
53226         * tests/test-base64.c: Add license.
53227
53228 2004-12-15  Stepan Kasal  <address@hidden>
53229
53230         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53231
53232 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53233
53234         * modules/getcwd (Files): Add m4/d-ino.m4.
53235         Suggested by Mark D. Baushke.
53236
53237 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53238
53239         * lib/getdate.y (textint): New member "negative".
53240         (time_zone_hhmm): New function.
53241         Expect 14 shift-reduce conflicts, not 13.
53242         (o_colon_minutes): New rule.
53243         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53244         (yylex): Set the "negative" member of signed numbers.
53245
53246 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53247
53248         * doc/getdate.texi (Time of day items, Time zone items):
53249         Describe new formats +00:00, UTC+00:00.
53250
53251 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53252
53253         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53254         spurious "-l"s.  Problem reported by Stepan Kasal.
53255
53256 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53259         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53260
53261 2004-12-04  Simon Josefsson  <jas@extundo.com>
53262
53263         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53264         Vandoorselaere <yoann@prelude-ids.org>.
53265
53266 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         Changes imported from coreutils.
53269         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53270         exist.
53271         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53272
53273 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53274
53275         Changes imported from coreutils.
53276         * lib/hard-locale.c: Assume <locale.h> exists.
53277         Include "strdup.h".
53278         (GLIBC_VERSION): New macro.
53279         (hard_locale): Assume setlocale exists.
53280         Rewrite to avoid #ifdef.
53281         Use strdup rather than malloc + strcpy.
53282         * lib/human.c: Assume <locale.h> exists.
53283         (human_readable): Assume localeconv exists.
53284
53285 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53286
53287         * modules/hard-locale (Depends-on): Add strdup.
53288
53289 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53290
53291         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53292         convert T2, not T.  (Imported from libc.)
53293
53294 2004-11-30  Simon Josefsson  <jas@extundo.com>
53295
53296         * modules/restrict (License): Change to LGPL.
53297
53298 2004-11-30  Simon Josefsson  <jas@extundo.com>
53299
53300         * m4/restrict.m4: Add copyright and copying conditions.
53301
53302 2004-11-30  Simon Josefsson  <jas@extundo.com>
53303
53304         * m4/base64.m4: New file.
53305
53306 2004-11-30  Simon Josefsson  <jas@extundo.com>
53307
53308         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53309         base64.
53310
53311         * tests/test-base64.c: New file.
53312
53313         * modules/base64: New file.
53314
53315 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53316
53317         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53318         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53319
53320         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53321
53322 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53323
53324         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53325         (__getcwd.c): Don't restore errno; glibc doesn't.
53326         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53327         first, falling back to our code only if its results look suspicious.
53328         Ensure that the resulting buffer is only as large as necessary.
53329
53330         * lib/readutmp.c: Include readutmp.h first.
53331         Include <errno.h>, since readutmp.h no longer does that.
53332         * lib/readutmp.h: Don't include <errno.h>,
53333         <sys/param.h>, <time.h>; not needed to establish interface.
53334         (errno): Remove decl.
53335         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53336         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53337         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53338
53339 2004-11-28  Simon Josefsson  <jas@extundo.com>
53340
53341         * lib/base64.h, base64.c: New file.
53342
53343 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53346
53347 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53348
53349         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53350         (Depends-on): Remove pathmax, same.  Add mempcpy.
53351         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53352         (Makefile.am): Append getcwd.h to lib_SOURCES.
53353         (Include): Add getcwd.h.
53354         (Maintainer): Change from Jim Meyering to "all, glibc",
53355         since getdate now uses intended-for-glibc code.
53356         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53357         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53358
53359 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53360
53361         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53362         HP's ANSI C compiler.
53363         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53364         Declaring int functions causes warnings on some modern systems and
53365         shouldn't be needed to compile on ancient ones.
53366         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53367         defined.
53368
53369         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53370         with the following changes.
53371         (__set_errno): Parenthesize properly.
53372         Include <stdbool.h>.
53373         (MIN, MAX, MATCHING_INO): New macros.
53374         (__getcwd): Define with prototype, not K&R form.
53375         Use heuristics to allocate default buffer on stack if possible.
53376         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53377         behavior, and to avoid the PATH_MAX limit when computing
53378         ../../../../...
53379         Use MATCHING_INO to compare inode number to file.
53380         Check for arithmetic overflow in size calculations.
53381         Fix bug in reallocation of dot array that caused getcwd to fail
53382         on directories nested deeper than 75.
53383         Be more careful about saving errno on error.
53384         Do not use realloc; use only free+malloc, as this is a bit
53385         more flexible and avoids a needless copy operation.
53386         Do not inspect st_dev and st_ino for symbolic links; POSIX
53387         doesn't specify the latter.
53388         Check for closedir errors.
53389         Avoid needless casts.
53390         Use "#ifdef weak_alias" around weak_alias, to be like other
53391         glibc code.
53392         The following changes to getcwd.c have effect only when used in
53393         gnulib; they have no effect inside glibc proper.
53394         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53395         as alloca isn't used.
53396         (alloca, __alloca): Likewise.
53397         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53398         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53399         unconditionally, as gnulib assumes C89 or better.
53400         Do not include <sys/param.h>.
53401         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53402         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53403         better.
53404         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53405         Include <dirent.h> in a way that is compatible with modern Autoconf.
53406         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53407         New macros, if not already defined.
53408         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53409         Use "_LIBC", not "defined _LIBC", for consistency.
53410         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53411         a mempcpy module.
53412         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53413         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53414         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53415         credit only to Jim Meyering and adjust the copyright dates.
53416         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53417         <stdlib.h>, <unistd.h>, "pathmax.h".
53418         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53419         (INITIAL_BUFFER_SIZE): Remove.
53420         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53421
53422 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53423
53424         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53425         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53426         Use the _ONCE methods, for efficiency.
53427         Check for fcntl.h.  In test program, include <errno.h>
53428         and <fcntl.h> if available.  Remove old K&R cruft from
53429         test program.  Check for common errors in GNU/Linux,
53430         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53431         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53432         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53433         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53434         name accordingly.
53435         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53436         accommodate new getcwd.c.
53437         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53438         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53439         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53440         that's all we need now.
53441
53442 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53443
53444         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53445         argp-parse.c depends on getopt internals, that means we should
53446         always use our getopt, to be on the safe side.
53447         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53448         order not to spoil the result of an eventual previous invocation
53449         of gl_GETOPT_SUBSTITUTE.
53450
53451 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53452
53453         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53454         redefinition warnings. To avoid them, include the defines
53455         in `#if !defined __need_getopt ... #endif'. The only place
53456         where __getopt_argv_const is used is in definitions
53457         of getopt_long and getopt_long_only below, which are as well
53458         protected by `#ifndef __need_getopt'.
53459         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53460         __need_getopt after including <stdio.h> and <unistd.h> These
53461         headers might have defined it.
53462
53463 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53466
53467 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53470         (futimens): New function, which uses futimes if available.
53471         (futimens, utimens): Support timespec==NULL, with same semantics
53472         as utime and utimens.
53473         * lib/utimens.h (futimens): New decl.
53474
53475 2004-11-23  Jim Meyering  <jim@meyering.net>
53476
53477         * lib/getopt_.h: Remove trailing blanks.
53478
53479 2004-11-23  Jim Meyering  <jim@meyering.net>
53480
53481         * lib/__fpending.c: Add comment.
53482
53483 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53484
53485         * modules/canonicalize (Depends-on): Add xreadlink.
53486         Problem reported by James Youngman.
53487
53488 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53489
53490         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53491         New macros.
53492         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53493         optopt): Use them instead of invoking ## directly; otherwise, the
53494         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53495
53496 2004-11-19  Bruno Haible  <bruno@clisp.org>
53497
53498         * lib/strtok_r.c: Move comments from here...
53499         * lib/strtok_r.h: ... to here.
53500
53501 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53502
53503         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53504         implementations that mishandle size_t overflow.
53505
53506 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53507
53508         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53509         might fail.  Problem reported by Yoann Vandoorselaere.
53510         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53511         implementations that mishandle size_t overflow.
53512
53513 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53514
53515         * modules/canon-host (Depends-on): Add strdup.
53516
53517 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53518
53519         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53520
53521 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53522
53523         * lib/canon-host.c: Include "strdup.h".
53524         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53525         Use strdup instead of malloc/strcpy to duplicate strings.
53526
53527         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53528         (human_space_before_unit): New constant.
53529         * lib/human.c (human_readable): Support it.
53530
53531         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53532         (xgetcwd): Set errno correctly when failing.
53533         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53534         the failure is actually due to a PATH_MAX problem.
53535
53536         Further getopt changes to make it more likely that glibc will
53537         buy the changes back.
53538         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53539         (getopt): Use it, so to preserve glibc semantic
53540         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53541         when compiling for libc.
53542         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53543         (getopt_long, getopt_long_only): Use it.
53544
53545         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53546         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53547         (getopt): Argv is now char * const *, as per standard.
53548         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53549         not char *__getopt_argv_const *.
53550         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53551         _getopt_long_only_r): Likewise.
53552         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53553         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53554         _getopt_long_r, _getopt_long_only_r): Likewise.
53555         * lib/getopt_.h (__getopt_argv_const): Remove.
53556         (getopt): Argv is now char * const *, as per standard.
53557
53558         * lib/getdate.y (tORDINAL): New token.
53559         (day, relunit): Allow it for relative times.
53560         (relative_time_table): Use tORDINAL for ordinals.
53561
53562 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53563
53564         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53565         Document that "second" isn't allowed as an ordinal number.
53566
53567 2004-11-16  Jim Meyering  <jim@meyering.net>
53568
53569         * modules/closeout (Depends-on): Add fpending.
53570
53571 2004-11-15  Jim Meyering  <jim@meyering.net>
53572
53573         * lib/closeout.c: Include "__fpending.h" once again.
53574         Include <stdbool.h>.
53575         (close_stdout): Don't fail just because stdout was closed initially,
53576         since some programs don't write to stdout in the normal course of
53577         operation (other than --version and --help), and we don't want this
53578         function to make e.g. `touch file >&-' fail.
53579         But do fail if it was closed and someone has tried to write to it.
53580         E.g., `printf foo >&-' must fail.
53581
53582 2004-11-13  Jim Meyering  <jim@meyering.net>
53583
53584         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53585
53586 2004-11-12  Simon Josefsson  <jas@extundo.com>
53587
53588         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53589         small doc fix is still pending.
53590
53591 2004-11-11  Simon Josefsson  <jas@extundo.com>
53592
53593         * modules/strtok_r: New file.
53594
53595         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53596         strtok_r.
53597
53598 2004-11-11  Simon Josefsson  <jas@extundo.com>
53599
53600         * m4/strtok_r.m4: New file.
53601
53602         * m4/getopt.m4: Replace opterr.
53603
53604 2004-11-11  Simon Josefsson  <jas@extundo.com>
53605
53606         * lib/strtok_r.h, strtok_r.c: New file.
53607
53608 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53609
53610         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53611         of replacing opterr, getopt, etc.  This should handle the
53612         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53613
53614 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53617         we can stop lying to compilers about the constness of argv when we
53618         are compiled outside glibc.
53619         (getopt, getopt_long, getopt_long_only): Use it.
53620         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53621         _getopt_internal, getopt): Likewise.
53622         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53623         _getopt_long_only_r): Likewise.
53624         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53625         _getopt_long_r, _getopt_long_only_r): Likewise.
53626
53627         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53628         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53629         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53630         the other external symbols.
53631         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53632         declaration, since the above renaming now works around collisions.
53633
53634 2004-11-11  Jim Meyering  <jim@meyering.net>
53635
53636         * lib/linebreak.c: Remove trailing blanks.
53637         * lib/alloca_.h: Likewise.
53638         * lib/acosl.c: Likewise.
53639         * lib/euidaccess.c: Likewise.
53640         * lib/allocsa.h: Likewise.
53641
53642 2004-11-10  Simon Josefsson  <jas@extundo.com>
53643
53644         * m4/getaddrinfo.m4: New file.
53645
53646 2004-11-10  Simon Josefsson  <jas@extundo.com>
53647
53648         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53649
53650 2004-11-10  Simon Josefsson  <jas@extundo.com>
53651
53652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53653         getaddrinfo.
53654
53655         * modules/getaddrinfo: New file.
53656
53657 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53658
53659         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53660
53661 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         * lib/mktime.c (SHR): New macro, which is a portable
53664         substitute for >> that should work even on Crays.
53665         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53666         Problem reported by Mark D. Baushke in
53667         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53668         * lib/getdate.y (SHR): Likewise.
53669         (tm_diff): Use it.
53670         * lib/strftime.c (SHR): Likewise.
53671         (tm_diff): Use it.
53672         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53673         quote_these_too, so that right shifts are well defined.  All uses
53674         changed.
53675
53676 2004-11-10  Jim Meyering  <jim@meyering.net>
53677
53678         Ensure that no close failure goes unreported.
53679         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53680         return early when it seems there's nothing to flush.
53681         Don't include __fpending.h.
53682
53683 2004-11-10  Jim Meyering  <jim@meyering.net>
53684
53685         * modules/closeout (Depends-on): Remove fpending.
53686
53687 2004-11-10  Jim Meyering  <jim@meyering.net>
53688
53689         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53690
53691 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53692
53693         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53694         gl_FUNC_STRFTIME.
53695         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53696         and AC_REQUIRE when possible, to avoid duplicate checks.
53697         Check for <wchar.h>.
53698
53699 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53700
53701         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53702
53703 2004-11-09  Bruno Haible  <bruno@clisp.org>
53704
53705         * m4/sockpfaf.m4: New file.
53706
53707 2004-11-05  Bruno Haible  <bruno@clisp.org>
53708
53709         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53710         Reported by Mark D. Baushke <mdb@cvshome.org>.
53711
53712 2004-11-04  Bruno Haible  <bruno@clisp.org>
53713
53714         2004-09-11  Bruno Haible  <bruno@clisp.org>
53715                 * allocsa.valgrind: New file.
53716         2004-02-06  Bruno Haible  <bruno@clisp.org>
53717                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53718                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53719                 Reported by Christopher Seip <chris.seip@hp.com>.
53720
53721 2004-11-04  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53724         (Makefile.am): Distribute it.
53725
53726 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53727
53728         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53729         with errno == ERANGE if the buffer is too small.
53730         Problem reported by Mark D. Baushke.
53731
53732 2004-11-03  Albert Chin  <china@thewrittenword.com>
53733             Paul Eggert  <eggert@cs.ucla.edu>
53734
53735         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53736         equivalent, substitute $ac_type for equivalent type rather than
53737         blindly using uint32_t *always* which won't work if uint32_t is not
53738         available.  Define _UINT32_T to work around typedef of uint32_t if
53739         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53740         2.5.1.
53741
53742 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53743
53744         * m4/jm-macros.m4: Sync from coreutils.
53745         (gl_MACROS): Check for mbrlen, for pathchk.
53746         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53747
53748 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         * lib/xreadlink.c (MAXSIZE): New macro.
53751         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53752         size does not exceed MAXSIZE.  Avoid cast.
53753         As suggested by Mark D. Baushke in
53754         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53755         if readlink fails with buffer size just under MAXSIZE, try again
53756         with MAXSIZE.
53757
53758 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53759
53760         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53761
53762 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53763         and  Paul Eggert  <eggert@cs.ucla.edu>
53764
53765         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53766         (get_date): Overparenthesize to avoid GCC warning.
53767
53768 2004-11-02  Bruno Haible  <bruno@clisp.org>
53769
53770         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53771         returns void.
53772
53773 2004-11-02  Bruno Haible  <bruno@clisp.org>
53774
53775         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53776         function returns void.
53777
53778 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53781         fflush_unlocked, flockfile, funlockfile, funlockfile,
53782         fputs_unlocked, putc_unlocked.
53783
53784 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53785
53786         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53787         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53788         already declared.
53789
53790 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53791
53792         * modules/getdate (Files): Add doc/getdate.texi.
53793         (Depends-on): Add setenv, xalloc.
53794
53795 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53796
53797         * lib/getdate.y: Add support for TZ="foo" within a date string.
53798         Fix some bugs near time_t boundaries.  Reject dates with
53799         out-of-range components, e.g., "Sept 31".
53800         Include <stdlib.h>, "setenv.h", "xalloc.h".
53801         (ISDIGIT_LOCALE): Remove; unused.
53802         Note that the TZ and time functions used here are not reentrant.
53803         (mktime_ok, get_tz): New functions.
53804         (TZBUFSIZE): New constant.
53805         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53806         This requires that we sometimes generate our own TZ="XXX..." setting.
53807
53808 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53809
53810         * doc/getdate.texi: New file, from coreutils with modifications for
53811         the new TZ parsing.
53812
53813 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53814
53815         * lib/mktime.c (not_equal_tm): Remove redundant check.
53816
53817 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53818
53819         * modules/regex (lib_SOURCES): Add regex.c.
53820         Reported by James Youngman in
53821         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53822
53823 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         * lib/getdate.y: Use Bison 1.875 features, and some minor
53826         code cleanups.  This change does not affect semantics.
53827         Don't include <stdlib.h>; no longer needed.
53828         Don't include unlocked-io.h; only the "#if TEST" code uses
53829         stdio, and performance isn't crucial there.
53830         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53831         Bison 1.875 features as described below.
53832         All uses of "PC." replaced by "pc->".
53833         (YYSTYPE): Add a forward declaration.
53834         (yylex, yyerror): Use full prototypes in forward decls.
53835         Use "%pure-parser" rather than obsolescent "%pure_parser".
53836         Use %parse-param and %lex-param instead of obsolescent
53837         YYPARSE_PARAM and YYLEX_PARAM.
53838         (meridian_table, month_and_day_table, time_units_table,
53839         relative_time_table, time_zone_table, military_table,
53840         lookup_zone, lookup_word, get_date):
53841         Use NULL instead of 0 where appropriate.
53842         (to_hour): Avoid abort (), to avoid a dependency on
53843         stdlib.h.
53844         (yyerror, yylex): Now accepts parser_control * arg.
53845         (main) [TEST]: Use '\0' rather than 0 for char.
53846
53847 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53848
53849         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53850
53851 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53854         It's now the caller's responsibility to handle the case where
53855         !HAVE_GETPAGESIZE && !defined getpagesize.
53856
53857         * lib/mktime.c (leapyear): Arg is long int, not int.
53858
53859 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53860
53861         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53862
53863 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53864
53865         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53866         missing.  Problem reported by James Youngman.
53867
53868 2004-10-16  Simon Josefsson  <jas@extundo.com>
53869
53870         * gnulib-tool: Fix comments.  Fix parse problem.
53871         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53872
53873 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53874
53875         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53876         implementation of getopt_long.  Problem reported by Alexander Taler in:
53877         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53878
53879 2004-10-15  Bruno Haible  <bruno@clisp.org>
53880
53881         * gnulib-tool: Untabify. Initialize supplied_libname.
53882         (func_usage): More homogenous output.
53883         (func_modules_transitive_closure, func_modules_to_filelist,
53884         func_emit_lib_Makefile_am): New functions.
53885         (func_import): New function, extracted from big case statement. Use
53886         func_get_license, func_modules_transitive_closure,
53887         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53888         opt_lgpl. Don't use test -a, as it's not portable.
53889         (func_create_testdir): Use func_modules_transitive_closure,
53890         func_modules_to_filelist, func_emit_lib_Makefile_am.
53891
53892 2004-10-15  Bruno Haible  <bruno@clisp.org>
53893
53894         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53895
53896 2004-10-15  Bruno Haible  <bruno@clisp.org>
53897
53898         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53899         the portions belonging to each module.
53900         Suggested by Derek Robert Price <derek@ximbiot.com>.
53901
53902 2004-10-12  Simon Josefsson  <jas@extundo.com>
53903
53904         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53905         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53906         to real functions.
53907
53908 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53909
53910         * modules/vsnprintf: New file.
53911
53912 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53913
53914         * m4/vsnprintf.m4: New file.
53915
53916 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53917
53918         * lib/vsnprintf.h: New file.
53919         * lib/vsnprintf.c: New file.
53920
53921 2004-10-11  Bruno Haible  <bruno@clisp.org>
53922
53923         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53924         vsnprintf.
53925
53926 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53927
53928         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53929
53930 2004-10-07  Bruno Haible  <bruno@clisp.org>
53931
53932         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53933         fits into the provided buffer.
53934
53935 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53936
53937         * lib/diacrit.c, diacrit.h: Add GPL notice.
53938
53939         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53940         notice.
53941         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53942         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53943         This avoids a potential constant-folding bug.
53944
53945 2004-10-05  Bruno Haible  <bruno@clisp.org>
53946
53947         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53948         for the declaration of strsep.
53949
53950 2004-10-05  Bruno Haible  <bruno@clisp.org>
53951
53952         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53953
53954 2004-10-04  Simon Josefsson  <jas@extundo.com>
53955
53956         * modules/memmem: New file.
53957         * tests/test-memmem.c: New file.
53958         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53959
53960 2004-10-04  Simon Josefsson  <jas@extundo.com>
53961
53962         * m4/memmem.m4: New file.
53963
53964 2004-10-04  Simon Josefsson  <jas@extundo.com>
53965
53966         * lib/memmem.h: New file.
53967         * lib/memmem.c: New file, taken from glibc.
53968
53969 2004-10-04  Simon Josefsson  <jas@extundo.com>
53970
53971         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53972         '#ifdef USE_UNLOCKED_IO'.
53973
53974 2004-10-04  Simon Josefsson  <jas@extundo.com>
53975
53976         * config/srclist.txt: Add memmem from glibc.
53977
53978 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53979
53980         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53981
53982         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53983         modules/exclude, modules/getdate, modules/getline,
53984         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53985         modules/getusershell, modules/linebuffer, modules/md5,
53986         modules/mountlist, modules/posixtm, modules/readtokens,
53987         modules/readutmp, modules/regex, modules/sha1,
53988         modules/version-etc, modules/yesno:
53989         Remove dependency on unlocked-io.
53990
53991 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53992
53993         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53994
53995         * m4/unlocked-io.m4: Add copyright notice.
53996         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53997
53998 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53999
54000         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54001         * lib/xmalloc.c (xmemdup): Likewise.
54002         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54003         XFREE): Remove these long-obsolescent macros.
54004         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54005         * lib/xstrdup.c: Remove.
54006
54007         * lib/regex.c (re_comp): Cast gettext return value to char *,
54008         Problem reported by Martin Neitzel via Mark D. Baushke.
54009
54010 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54011
54012         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54013         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54014         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54015         regex.c, sha1.c, version-etc.c, yesno.c:
54016         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54017         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54018         the includer's responsibility.
54019
54020         Sync from coreutils.
54021
54022         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54023         points to the start of a string, as the C Standard says the
54024         resulting behavior is undefined.
54025
54026         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54027         simple -> simple_backups, numbered_existing ->
54028         numbered_existing_backups, numbered -> numbered_backups
54029         to avoid shadowing problems.  All uses changed.
54030         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54031         * lib/backupfile.c (check_extension, numbered_backup):
54032         Rename locals to avoid shadowing 'basename'.
54033         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54034         once.
54035
54036         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54037         * lib/.cvsignore: Add getopt.h.
54038
54039 2004-10-04  Bruno Haible  <bruno@clisp.org>
54040
54041         * modules/README: New file.
54042         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54043         not a module.
54044
54045 2004-10-02  Jim Meyering  <jim@meyering.net>
54046
54047         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54048
54049 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54050
54051         * modules/strsep: New file.
54052
54053 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54054
54055         * m4/strsep.m4: New file.
54056
54057 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54058
54059         * lib/strsep.h: New file.
54060         * lib/strsep.c: New file.
54061
54062 2004-10-01  Simon Josefsson  <jas@extundo.com>
54063
54064         * lib/snprintf.c (snprintf): Handle size==0.
54065
54066 2004-10-01  Simon Josefsson  <jas@extundo.com>
54067             Bruno Haible  <bruno@clisp.org>
54068
54069         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54070         (snprintf): Declare 'args'.
54071
54072 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * lib/snprintf.c: Remove comments as to why each header is needed.
54075
54076 2004-10-01  Bruno Haible  <bruno@clisp.org>
54077
54078         * MODULES.html.sh: Add strsep.
54079
54080 2004-09-30  Simon Josefsson  <jas@extundo.com>
54081
54082         * modules/snprintf: New file.
54083
54084 2004-09-30  Simon Josefsson  <jas@extundo.com>
54085
54086         * m4/snprintf.m4: New file.
54087
54088 2004-09-30  Simon Josefsson  <jas@extundo.com>
54089
54090         * lib/snprintf.h, lib/snprintf.c: New files.
54091
54092 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54093
54094         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54095         (hol_entry_help): Never translate an empty string.
54096         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54097         * lib/argp.h (OPTION_NO_TRANS): New option.
54098
54099 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54100
54101         * modules/argp (Maintainer): Replace Simon Josefsson
54102         by Sergey Poznyakoff.
54103
54104 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54105
54106         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54107         changes merged back into glibc.
54108
54109 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54110
54111         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54112
54113 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54114
54115         * lib/xvasprintf.c: Include xalloc.h.
54116         (xvasprintf): Use xalloc_die, not xmalloc_die.
54117
54118 2004-09-29  Bruno Haible  <bruno@clisp.org>
54119
54120         * modules/alloca-opt: New file, derived from modules/alloca.
54121         * modules/allocsa: Depend on alloca-opt instead of alloca.
54122         * modules/setenv: Likewise.
54123         * modules/vasnprintf: Likewise.
54124         * MODULES.html.sh: Add alloca-opt.
54125
54126 2004-09-28  Simon Josefsson  <jas@extundo.com>
54127
54128         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54129         LGPL, and to replace license template from GPL to LGPL.
54130
54131 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54132
54133         * modules/dummy: Change license to LGPL.
54134
54135 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54138
54139 2004-09-24  Simon Josefsson  <jas@extundo.com>
54140
54141         * modules/minmax (License): Change from GPL to LGPL.
54142
54143 2004-09-23  Simon Josefsson  <jas@extundo.com>
54144
54145         * gnulib-tool (--import): Typo.
54146
54147 2004-09-23  Simon Josefsson  <jas@extundo.com>
54148
54149         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54150
54151 2004-09-22  Bruno Haible  <bruno@clisp.org>
54152
54153         * modules/*: Add 'License' field.
54154         * gnulib-tool: Accept --extract-license option.
54155         (func_get_license): New function.
54156
54157 2004-09-21  Bruno Haible  <bruno@clisp.org>
54158
54159         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54160         Reported by Simon Josefsson.
54161
54162 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54165         gl_AC_TYPE_LONG_LONG.
54166
54167 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54168
54169         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54170
54171 2004-09-18  Simon Josefsson  <jas@extundo.com>
54172         and  Paul Eggert  <eggert@cs.ucla.edu>
54173
54174         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54175         calls with autoreconf.  Define GL_LIB.
54176
54177 2004-09-14  Karl Berry  <karl@gnu.org>
54178
54179         * config/srclist.txt: unsync setenv.c, sigh.
54180
54181 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54182
54183         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54184         Problem reported by Bruno Haible in:
54185         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54186
54187 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54188
54189         * config/srclist.txt: Comment out argp-pvh.c.
54190
54191 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54192
54193         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54194         in case some system header has #define'd it.  Problem reported by
54195         Soeren D. Schulze in
54196         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54197
54198 2004-09-09  Karl Berry  <karl@gnu.org>
54199
54200         * regex.[ch]: delete from the root.  These were supposed to be
54201                 synced with emacs cvs, but this has not happened for about
54202                 a year, and anyway nothing else uses emacs regex.[ch].
54203                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54204                 lib/regex[.ch] is untouched.
54205
54206 2004-09-09  Bruno Haible  <bruno@clisp.org>
54207
54208         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54209
54210 2004-09-09  Bruno Haible  <bruno@clisp.org>
54211
54212         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54213         modifications.
54214         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54215
54216 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54217
54218         * modules/xvasprintf: New file.
54219         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54220
54221 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54222
54223         * lib/xvasprintf.h: New file.
54224         * lib/xvasprintf.c: New file.
54225         * lib/xasprintf.c: New file.
54226
54227 2004-09-08  Bruno Haible  <bruno@clisp.org>
54228
54229         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54230
54231 2004-09-08  Bruno Haible  <bruno@clisp.org>
54232
54233         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54234         length is > INT_MAX.
54235         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54236         more.
54237
54238 2004-09-08  Bruno Haible  <bruno@clisp.org>
54239
54240         * lib/stdint_.h: New file, taken from GNU clisp.
54241
54242 2004-09-08  Bruno Haible  <bruno@clisp.org>
54243             Oskar Liljeblad  <oskar@osk.mine.nu>
54244
54245         * modules/stdint: New file.
54246         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54247
54248 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54249
54250         Import from coreutils.
54251         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54252         strings on unbounded length.  alloca's performance benefits aren't
54253         that important here.
54254         (V_STRDUP): Remove.
54255         (parse_with_separator): New function, with most of the internals
54256         of the old parse_user_spec.  Allow user to omit both user and group,
54257         for compatibility with FreeBSD.
54258         Clone only the user name, not the entire spec.
54259         Do not set *uid, *gid unless entirely successful.
54260         Avoid memory leak in some failing cases.
54261         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54262         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54263         (parse_user_spec): Rewrite to use parse_with_separator.
54264
54265 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54266
54267         * modules/userspec: Don't depend on alloca.
54268
54269 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54270
54271         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54272
54273 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54274
54275         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54276         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54277         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54278
54279 2004-08-16  Simon Josefsson  <jas@extundo.com>
54280
54281         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54282         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54283         Add --dry-run for --import.
54284         Let user provided command line parameters override configure.ac
54285         settings.
54286
54287 2004-08-12  Simon Josefsson  <jas@extundo.com>
54288
54289         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54290         as discussed with Paul Eggert in threads rooted at
54291         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54292         and
54293         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54294         Before, the test was empty, and relied on ELIDE_CODE in source
54295         code.)
54296         (gl_PREREQ_GETOPT): New macro.
54297         (gl_GETOPT): Use them.
54298
54299 2004-08-12  Simon Josefsson  <jas@extundo.com>
54300
54301         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54302         * lib/getopt_.h: Renamed from getopt.h.
54303
54304 2004-08-12  Simon Josefsson  <jas@extundo.com>
54305
54306         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54307         Change default library name from libfoo to libgnu.
54308         Now, if you have a configure.ac that says:
54309                 gl_SOURCE_BASE(gl)
54310                 gl_M4_BASE(gl/m4)
54311                 gl_MODULES(error getopt etcetera)
54312                 gl_INIT
54313         you can import all you need by running:
54314                 ../gnulib/gnulib-tool --import
54315
54316         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54317         (Makefile.am): Rewrite, use logic from argz.
54318         (Include): Use <getopt.h> instead of "getopt.h".
54319
54320 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54321
54322         * modules/argp (Files): Add m4/unlocked-io.m4.
54323         (Depends-on): Add extensions.
54324
54325 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54326
54327         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54328         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54329         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54330         Check for program_invocation_name, program_invocation_short_name,
54331         flockfile, funlockfile, features.h, _getopt_long_only_r.
54332
54333 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54334
54335         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54336         its complicated substitute.
54337         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54338         and program_invocation_name.
54339         (__argp_basename) [!_LIBC]: Remove; the only use was
54340         replaced by its body.
54341         (__argp_short_program_name): Change condition from
54342         !defined __argp_short_program_name to
54343         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54344         to match argp-namefrob.h.
54345         (__argp_failure): Don't assume strerror_r returns char *.
54346         * lib/argp-parse.c (N_): Define unconditionally.
54347         (argp_default_options): Fill out initializers with 0 to avoid
54348         gcc warnings.
54349
54350 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54351
54352         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54353         getopt1.c.
54354
54355 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54356
54357         Merge from coreutils.
54358
54359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54360
54361         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54362         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54363
54364 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54365
54366         Merge from coreutils.
54367
54368         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54369         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54370         for Reliant Unix 5.43.
54371
54372         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54373         (union fooround): Use uintmax_t, not long int.
54374         The rest is a merge from libc:
54375         [defined _LIBC]: Include <shlib-compat.h>.
54376         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54377
54378         * lib/settime.c (settime): Recode to avoid warning with
54379         Sun Forte C 6U2.
54380
54381         * lib/strverscmp.c: Convert to UTF-8.
54382
54383 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54384
54385         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54386         m4/uintmax_t.m4.
54387
54388 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54389
54390         * modules/xalloc-die: New file.
54391         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54392
54393         * modules/md5 (Files): Add m4/uint32_t.m4.
54394         * modules/sha1: Renamed from modules/sha.
54395         (Files):
54396         Rename lib/sha.h to lib/sha1.h.
54397         Rename lib/sha.c to lib/sha1.c.
54398         Rename m4/sha.m4 to m4/sha1.m4.
54399         (lib_SOURCES): Likewise.
54400         (configure.ac): Rename gl_SHA to gl_SHA1.
54401         (Include): sha.h -> sha1.h.
54402
54403 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54404
54405         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54406         * m4/sha1.m4: Renamed from sha.m4.
54407         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54408
54409 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54410
54411         * lib/obstack.h (obstack_empty_p):
54412         Don't assume that chunk->contents is suitably aligned.
54413         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54414         Likewise. Problem reported by Benno in
54415         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54416
54417         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54418         readable.  This could be improved further but it'd take some work.
54419
54420 2004-08-08  Simon Josefsson  <jas@extundo.com>
54421
54422         * modules/xgethostname (Depends-on): Remove exit and error (not
54423         used).
54424
54425         * modules/getpass-gnu: Add getpass.h.
54426         (Depends-on): Add stdbool.
54427         * modules/getpass: Add getpass.h.
54428
54429 2004-08-08  Simon Josefsson  <jas@extundo.com>
54430
54431         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54432         Check getpass declaration.
54433
54434 2004-08-08  Simon Josefsson  <jas@extundo.com>
54435
54436         * lib/xgethostname.c: Don't include error.h (not used).
54437
54438         * lib/getpass.h: Add.
54439         * lib/getpass.c: Include getpass.h first.
54440
54441 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54442
54443         * lib/xalloc-die.c: New file.
54444         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54445         All uses removed.
54446         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54447         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54448         xalloc-die.c.
54449         (_, N_, xalloc_die): Move to xalloc-die.c.
54450         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54451         so that we needn't mess with xalloc_msg_memory_exhausted.
54452
54453         * lib/sha1.h: Renamed from sha.h.
54454         (SHA1_H): Renamed from _SHA_H.
54455         (sha1_ctx): Renamed from sha_ctx.
54456         (sha1_init_ctx): Renamed from sha_init_ctx.
54457         (sha1_process_block): Renamed from sha_process_block.
54458         (sha1_process_bytes): Renamed from sha_process_bytes.
54459         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54460         (sha1_read_ctx): Renamed from sha_read_ctx.
54461         (sha1_stream): Renamed from sha_stream.
54462         (sha1_buffer): Renamed from sha_buffer.
54463         * lib/sha1.c: Likewise; renamed from sha.c.
54464         Do not include <sys/types.h>.
54465         Include <stddef.h> rather than <stdlib.h>.
54466
54467 2004-08-08  Bruno Haible  <bruno@clisp.org>
54468
54469         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54470         FILESYSTEM_PREFIX_LEN.
54471         * lib/progreloc.c: Likewise.
54472         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54473
54474 2004-08-06  Simon Josefsson  <jas@extundo.com>
54475
54476         * modules/progname (Depends-on): Don't depend on stdbool.
54477
54478 2004-08-06  Simon Josefsson  <jas@extundo.com>
54479
54480         * modules/getsubopt: New file.
54481         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54482         getsubopt.
54483
54484 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54485
54486         More merge from coreutils.
54487
54488         * m4/utimens.m4, m4/utimecmp.m4: New files.
54489         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54490         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54491         prereq.m4, sha.m4: Import changes from coreutils.
54492
54493 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         More merge from coreutils.
54496         * modules/raise, modules/readtokens0, modules/utimens:
54497         * modules/utimecmp, module/xnanosleep: New files.
54498         * modules/strftime: Add lib/strftime.h.
54499         Change include from <time.h> to "strftime.h".
54500         * modules/yesno: Add lib/yesno.h.
54501         * modules/backupfile: Remove lib/addext.c.
54502         * modules/euidaccess: Add stat-macros.h.
54503         * modules/canonicalize, modules/euidaccess,
54504         modules/filemode, modules/lchown, modules/makepath,
54505         modules/rmdir, modules/stat: Likewise.
54506
54507 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         Merge from tar.
54510         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54511         SIZE_MAX is a valid preprocessor constant.
54512         (__argp_basename): Change from "#ifndef _LIBC"
54513         to "#ifndef __argp_short_program_name", so that
54514         we don't compile these functions for tar.
54515
54516         More merges from coreutils.
54517         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54518         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54519         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54520         * lib/addext.c: Remove; no longer needed.
54521         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54522         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54523         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54524         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54525         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54526         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54527         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54528         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54529         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54530         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54531         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54532         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54533         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54534         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54535         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54536         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54537         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54538         Import changes from coreutils.
54539
54540 2004-08-05  Simon Josefsson  <jas@extundo.com>
54541
54542         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54543
54544 2004-08-05  Simon Josefsson  <jas@extundo.com>
54545
54546         * m4/getsubopt.m4: New file.
54547
54548 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         Merge from coreutils.
54551
54552         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54553         * m4/getcwd-path-max.m4: New files.
54554
54555         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54556         FILESYSTEM_PREFIX_LEN ->
54557         FILE_SYSTEM_PREFIX_LEN.
54558         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54559         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54560         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54561         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54562
54563         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54564         prerequisite modules now handle the DOS stuff.
54565         Don't check for unistd.h.
54566
54567 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54568
54569         Merge from coreutils.
54570
54571         * lib/.gdb-history: Remove; this doesn't belong here.
54572
54573         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54574         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54575         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54576         * lib/getcwd.c: New files.
54577
54578         * lib/dirname.h: Include <stdbool.h>.
54579         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54580         for consistency with POSIX terminology.  All uses changed.
54581         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54582         (strip_trailing_slashes): Use bool for booleans.
54583         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54584
54585         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54586         sometimes returns a positive errno value even when it succeeds.
54587         (print_errno_message) [!LIBC]: Fall back on strerror if
54588         __strerror_r fails.
54589
54590         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54591         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54592         (longest_relative_suffix): New function.
54593         (path_concat): Use it.  Assume first argument is not NULL.
54594         Port to DOS.  Omit redundant separators.
54595         Report an error instead of returning NULL.
54596         Use mempcpy instead of memcpy.
54597         (xpath_concat): Remove: not declared or used.
54598
54599         * lib/same.h: Include <stdbool.h>
54600         (same_name): Return bool, not int.
54601         * lib/same.c (same_name): Likewise.
54602         (errno): Don't declare; we assume C89 or better now.
54603
54604         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54605         if not already defined.
54606
54607         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54608         * lib/dup-safer.c (errno): Likewise.
54609
54610 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54611
54612         Merge from coreutils.
54613         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54614         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54615         * modules/path-concat: Don't depend on strdup.
54616
54617 2004-08-03  Simon Josefsson  <jas@extundo.com>
54618
54619         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54620         * lib/progname.h: Don't include stdbool.h.
54621
54622 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54623
54624         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54625         * MODULES.html.sh (func_all_modules): Remove fatal.
54626
54627 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54628
54629         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54630
54631 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54632
54633         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54634         working.
54635
54636 2004-08-02  Simon Josefsson  <jas@extundo.com>
54637
54638         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54639         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54640         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54641
54642 2004-08-01  Simon Josefsson  <jas@extundo.com>
54643
54644         * lib/xgetdomainname.c: Include stdlib.h, for free().
54645
54646 2004-07-19  Bruno Haible  <bruno@clisp.org>
54647
54648         * MODULES.html.sh (func_all_modules): Add dummy.
54649
54650 2004-07-16  Simon Josefsson  <jas@extundo.com>
54651
54652         * modules/dummy: New file.
54653
54654 2004-07-16  Simon Josefsson  <jas@extundo.com>
54655
54656         * lib/dummy.c: New file.
54657
54658 2004-07-16  Bruno Haible  <bruno@clisp.org>
54659
54660         * lib/backupfile.h: Add extern "C" for C++.
54661         * lib/closeout.h: Likewise.
54662         * lib/copy-file.h: Likewise.
54663         * lib/findprog.h: Likewise.
54664         * lib/full-write.h: Likewise.
54665         * lib/pathname.h: Likewise.
54666         * lib/progname.h: Likewise.
54667         * lib/stpcpy.h: Likewise.
54668         * lib/stpncpy.h: Likewise.
54669         * lib/strcase.h: Likewise.
54670         * lib/strstr.h: Likewise.
54671         * lib/xalloc.h: Likewise.
54672
54673         * lib/mbswidth.h: Add extern "C" for C++.
54674         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54675
54676 2004-07-13  Robert Millan  <robertmh@gnu.org>
54677
54678         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54679
54680 2004-07-09  Simon Josefsson  <jas@extundo.com>
54681
54682         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54683         failed without this.)
54684
54685 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54686
54687         * modules/chown (Files): Add lib/fchown-stub.c, since
54688         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54689
54690 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54691
54692         * lib/fchown-stub.c: New file.
54693
54694 2004-06-24  Jim Meyering  <jim@meyering.net>
54695
54696         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54697
54698 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54699
54700         * modules/argz: Omit "#include".
54701
54702         * MODULES.html.sh (func_all_modules): Add calloc, to match
54703         2004-06-01 addition of calloc module.
54704
54705 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54706
54707         * m4/argz.m4: New file, which is autoupdated from libtool.
54708
54709 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54710
54711         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54712         libtool.
54713
54714 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54715
54716         * config/srclist-update: Don't insist on "USA." before the
54717         close-comment, as libtool omits the period and puts the */ on a
54718         separate line.
54719         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54720         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54721
54722 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54723
54724         * modules/argz: New file.
54725         * MODULES.html.sh (func_all_modules): Add argz.
54726
54727 2004-06-12  Jim Meyering  <jim@meyering.net>
54728         and  Paul Eggert  <eggert@cs.ucla.edu>
54729
54730         * modules/hash (Files): Add lib/xalloc.h.
54731         * modules/pipe (Depends-on): Add wait-process.
54732         * modules/stat (Depends-on): Add xalloc.
54733         * modules/userspec (Files): Add lib/userspec.h.
54734         * modules/xstrto
54735
54736         Upgrade from gettext-0.13.
54737         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54738         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54739         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54740
54741 2004-06-10  Jim Meyering  <jim@meyering.net>
54742
54743         * lib/calloc.c: New file.
54744
54745 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54746
54747         * lib/getdate.y (yylex): Allow space between sign and number.
54748         Problem reported by Dan Jacobson.
54749
54750 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         Merge from coreutils CVS.
54753
54754         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54755         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54756         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54757         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54758         xstrtol.m4: Fix copyright date and/or serial number.
54759
54760         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54761         See if we need an fchown replacement.
54762         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54763         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54764         and use the replacement function if we detect either defect.
54765
54766         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54767         gl_UTIMECMP.
54768
54769 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54770         and  Jim Meyering  <jim@meyering.net>
54771
54772         Merge from coreutils CVS.
54773
54774         * lib/stat-macros.h: New file, with contents from file-type.h
54775         and coreutils' system.h.
54776         * lib/file-type.c: Include "stat-macros.h".
54777         * lib/file-type.h (file_type): Move all macro definitions to new file,
54778         stat-macros.h.
54779
54780         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54781         Wrap old code with this conditional.
54782         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54783         function that does not dereference symlinks.
54784         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54785
54786         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54787         dependency problems.
54788         (xreadlink): Accept new arg SIZE, for efficiency.
54789         All decls and uses changed.
54790         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54791
54792         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54793         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54794
54795         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54796         sysexits.h.
54797
54798 2004-06-01  Jim Meyering  <jim@meyering.net>
54799
54800         * m4/calloc.m4: New file.
54801
54802 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54803
54804         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54805         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54806         Also, fix a typo in a diagnostic.
54807
54808 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54809
54810         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54811         or AC_FUNC_REALLOC.
54812
54813 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54816         macros to be defined.
54817         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54818         the allocator returns NULL because the requested size is zero.
54819
54820 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54821
54822         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54823         var.  Add comment explaining why libc still defines it.  This
54824         merges the following patch from glibc:
54825         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54826
54827 2004-05-20  Andreas Schwab  <schwab@suse.de>
54828
54829         * m4/free.m4: Replace free if it not known to work, not the other
54830         way round.
54831
54832 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54833
54834         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54835         present in glibc since revision 1.1 of this file.
54836         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54837         obstack_alignment_mask, obstack_alloc, obstack_base,
54838         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54839         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54840         obstack_grow0, obstack_init, obstack_int_grow,
54841         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54842         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54843         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54844         nonexistent functions.
54845
54846 2004-05-18  Karl Berry  <karl@gnu.org>
54847
54848         * config/srclist.txt: break link for vasnprintf.c.
54849
54850 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54851
54852         Port obstack to the AS/400, where pointers are 16 bytes wide and
54853         you cannot cast an integer to a valid pointer.  This patch is
54854         currently waiting to be integrated into glibc; see
54855         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54856
54857         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54858         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54859         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54860         (struct obstack): temp member is now a union of a pointer and
54861         an integer, instead of an integer.  All integer uses changed.
54862         This does not affect the physical layout of struct obstack,
54863         except on hosts (like the AS/400) where the size or alignment of
54864         void * is greater than that of ptrdiff_t.
54865         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54866         __STDC__)]: Store temporary in pointer member of union, not
54867         integer member.
54868         * lib/obstack.c: Include <stddef.h>, for offsetof.
54869         (struct fooalign): Remove; it doesn't need a name.
54870         (union fooround): Change double to long double, and add void *.
54871         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54872         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54873         not a macro.  Hence the values are always int; so remove all
54874         casts-to-int in uses.
54875
54876 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54877
54878         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54879         we can get this patch merged into glibc.
54880
54881 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54882             Paul Eggert  <eggert@cs.ucla.edu>
54883
54884         * m4/argp: Depend on alloca.
54885
54886 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54887             Paul Eggert  <eggert@cs.ucla.edu>
54888
54889         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54890         freecoding.
54891
54892 2004-05-17  Bruno Haible  <bruno@clisp.org>
54893
54894         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54895         precision that consists of a '.' followed by an empty digit string.
54896         Patch by Tor Lillqvist <tml@iki.fi>.
54897
54898 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54899
54900         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54901         for backward compatibility with older code.  We need our own
54902         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54903         it under some other name, and our alloca.h will define it.
54904
54905 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54906             Derek Price  <derek@ximbiot.com>
54907
54908         * lib/alloca.c: Include <alloca.h>, to get our interface.
54909         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54910         include <alloca.h> first.  Use C89 prototype for alloca; this
54911         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54912         Use #elif for simplicity, since we can assume C89 now.
54913         Don't try to source the system alloca.h since it will not be found
54914         and to prevent recursively including its replacement.
54915         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54916         * lib/regex.c: Likewise.
54917
54918 2004-05-16  Derek Price  <derek@ximbiot.com>
54919             Paul Eggert  <eggert@cs.ucla.edu>
54920
54921         getline cleanup.  This changes the getndelim2 API: both order of
54922         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54923         no delimiter).
54924
54925         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54926         interface does that.
54927         (getline): Always use getdelim, so that we don't have two
54928         copies of this code.
54929         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54930         if available.
54931         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54932         (GETNDELIM2_MAXIMUM): New macro.
54933         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54934         instead of the old practice of delim2==0.  All callers changed.
54935         Return -1 on overflow, instead of returning junk.
54936         Do not set *linesize unless allocation succeeds.
54937         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54938         that we include sys/types.h.
54939         * lib/getnline.h: Likewise.
54940         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54941         (getndelim2): Reorder arguments.
54942         * lib/getnline.c (getnline, getndelim):
54943         Don't discard the NMAX argument.
54944         (getnline): Invoke getndelim, to avoid code duplication.
54945         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54946         of (size_t) -1 by callers of the getnline family.
54947
54948 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54949
54950         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54951         Check for gettimeofday.
54952         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54953         Check for settimeofday, stime.
54954
54955 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54956
54957         * lib/nanosleep.c (suspended): Change its type from int to
54958         sig_atomic_t volatile.
54959         (first_call): Make it private to rpl_nanosleep, and have it
54960         be zero initially as that's a bit faster.
54961         (my_usleep): Round up fractional times instead of truncating them,
54962         as this is the usual meaning for 'sleep'.
54963
54964         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54965         doesn't work.
54966         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54967         (ENOSYS): Define if not defined.
54968         (settime): Fall back on stime if it exists and settimeofday fails.
54969         But don't bother with fallbacks if a method fails with errno == EPERM.
54970
54971 2004-05-11  Jim Meyering  <jim@meyering.net>
54972
54973         Prior to this change, the save_cwd caller required read access to the
54974         current directory on most systems (ones with the fchdir function).
54975
54976         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54977         fails, try write-only, and finally, resort to using xgetcwd.
54978
54979 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54980
54981         * lib/obstack.c, obstack.h: Import changes from libc.
54982
54983 2004-04-28  Bruno Haible  <bruno@clisp.org>
54984
54985         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54986         also implicitly appends .exe to executables.
54987         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54988         accepts Windows pathnames.
54989         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54990         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54991         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54992         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54993         Reported by Derek Robert Price <derek@ximbiot.com>.
54994
54995 2004-04-21  Karl Berry  <karl@gnu.org>
54996
54997         * config/srclist.txt (localcharset.c): break sync.
54998
54999 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55000
55001         * m4/host-os.m4: Add a copyright notice.
55002
55003 2004-04-20  Jim Meyering  <jim@meyering.net>
55004
55005         Change UTILS_ to gl_ in AC_DEFINE'd names.
55006         Change utils_- and jm_-prefixed variables, too.
55007         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55008         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55009         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55010
55011         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55012         Don't emit trailing blanks.
55013         Also rename jm_-prefixed variables to have gl_ prefix.
55014
55015         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55016         Also rename jm_-prefixed variables to have gl_ prefix.
55017
55018         * m4/jm-macros.m4: Reflect the renamings.
55019         * m4/prereq.m4: Likewise.
55020
55021 2004-04-20  Jim Meyering  <jim@meyering.net>
55022
55023         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55024         memory.
55025
55026 2004-04-20  Jim Meyering  <jim@meyering.net>
55027             Bruno Haible  <bruno@clisp.org>
55028
55029         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55030         memory when realloc fails.
55031
55032 2004-04-19  Jim Meyering  <jim@meyering.net>
55033
55034         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55035         now that readutmp.c may call `free (0)'.
55036
55037 2004-04-19  Bruno Haible  <bruno@clisp.org>
55038
55039         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55040         * m4/inttypes_h.m4: Likewise.
55041         * m4/stdint_h.m4: Likewise.
55042         * m4/intmax_t.m4: Likewise.
55043         * m4/uintmax_t.m4: Likewise.
55044
55045 2004-04-18  Jim Meyering  <jim@meyering.net>
55046
55047         * m4/prereq.m4: Don't forbid jm_ prefix.
55048
55049         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55050         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55051         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55052         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55053         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55054         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55055         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55056         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55057         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55058         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55059         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55060         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55061         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55062         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55063         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55064         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55065         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55066         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55067         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55068
55069 2004-04-18  Jim Meyering  <jim@meyering.net>
55070
55071         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55072         failure, don't leak memory and do call END_UTMP_ENT.
55073
55074 2004-04-16  Jim Meyering  <jim@meyering.net>
55075
55076         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55077         coreutils' stat program.
55078         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55079
55080 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55081
55082         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55083         C89.
55084         (CHAR_BIT): Remove, since we assume C89.
55085         Include <stdint.h> if available, as per current Autoconf CVS advice.
55086
55087 2004-03-31  Jim Meyering  <jim@meyering.net>
55088
55089         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55090         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55091         * m4/xalloc.m4: Likewise.
55092
55093 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55094
55095         Merge from coreutils.
55096
55097         * m4/inttostr.m4: New file.
55098         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55099         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55100         Require gl_CLOCK_TIME.
55101         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55102
55103 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55104
55105         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55106         not bool, to be more consistent with Unix conventions.
55107         Suggested by Bruno Haible.
55108
55109         Merge from coreutils.
55110
55111         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55112         * lib/umaxtostr.c: New files.
55113
55114         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55115         the usual <time.h> dance.
55116         (get_date): Change signature to support fractional time stamps.
55117         All callers changed.
55118         * lib/getdate.y: Include "getdate.h" first, as we can now
55119         assume C89 and don't need to worry about 'const'.
55120         Similarly, include "unlocked-io.h" near start, not in middle.
55121         Include <limits.h>.
55122         (textint.value): Use long int rather than int.
55123         (textint.digits): Use size_t rather than int.
55124         (BILLION, LOG10_BILLION): New constants.
55125         (parser_control): New member rel_ns.  Members day_ordinal,
55126         time_zone, month, day, hour, minutes, rel_year, rel_month,
55127         rel_day, rel_hour, rel_minutes, rel_seconds
55128         are now long int, not int.  Member seconds is now struct timespec,
55129         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55130         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55131         not int.
55132         (%union.intval): Now long int, not int.
55133         New member timespec.
55134         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55135         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55136         (spec): Now is a timespec or an item list.
55137         (timespec, items): New nonterminals.
55138         (time, rel, relunit, number, get_date):
55139         Add support for fractional seconds.
55140         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55141         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55142         (to_hour): First arg is now long int, not int.
55143         (to_year): Returns long int, not int.
55144         Don't treat year -70 like 70.
55145         (tm_diff): Returns long int, not int.
55146         (lookup_word): Use bool instead of int when appropriate.
55147         (yylex): Use size_t for count, not int.
55148         Detect overflow when parsing large integer constants.
55149         Add support for fractions.
55150         (get_date): Make pointers 'const' if possible.
55151         Use more-portable code to detect integer overflow.
55152         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55153         Don't use ctime; it's not reliable if the year has >4 digits.
55154
55155         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55156         This is for compatibility with BSD.
55157
55158         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55159         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55160         From coreutils' system.h.
55161
55162         * lib/userspec.c: Don't include "posixver.h".
55163         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55164         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55165         compatible extension.  Simplify code by removing a boolean int
55166         that was always nonzero if a string was nonnull.
55167
55168 2004-03-30  Jim Meyering  <jim@meyering.net>
55169
55170         Merge from coreutils.
55171
55172         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55173         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55174         on some systems one must include <grp.h> before it.
55175         Reported by Christian Krackowizer.
55176
55177 2004-03-30  Jim Meyering  <jim@meyering.net>
55178
55179         Merge from coreutils.
55180
55181         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55182
55183         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55184         an empty input stream.
55185
55186         * lib/readtokens.c: Include <stdbool.h>.
55187         (readtoken): Use `size_t' rather than int/long.
55188         All callers adjusted.
55189         Use `bool' rather than `int' where appropriate.
55190         Use memset rather than an explicit loop.
55191         Use x2nrealloc rather than xrealloc.
55192         Allow the use of `\0' as a delimiter.
55193         (readtokens): Likewise.
55194         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55195
55196 2004-03-30  Jim Meyering  <jim@meyering.net>
55197
55198         * m4/realloc.m4: Remove file, since now it does no more than
55199         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55200         the `configure.ac' section of module/realloc.
55201         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55202
55203 2004-03-30  Bruno Haible  <bruno@clisp.org>
55204
55205         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55206         nonnull.
55207
55208 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55209
55210         Merge changes to getloadavg.c from coreutils and Emacs.
55211
55212         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55213         Define to an expression, not to the empty string.
55214         Include cloexec.h and xalloc.h.
55215         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55216         Use set_cloexec_flag rather than rolling our own.
55217         * lib/cloexec.c, lib/cloexec.h: New files.
55218
55219 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55220
55221         * m4/cloexec.m4: New file.
55222
55223 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55224
55225         * lib/getopt.h: Sync with libc CVS.
55226
55227 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55228             Bruno Haible  <bruno@clisp.org>
55229
55230         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55231         mbswidth.
55232
55233 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55234             Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/mbswidth.h: Include <wchar.h> only if
55237         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55238         <wchar.h>.
55239         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55240
55241 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55242
55243         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55244         Sync with libc CVS.
55245         * lib/getopt_int.h: New file, also synced from libc.
55246
55247 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55248
55249         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55250         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55251         Bring back getopt.c, getopt.h, getopt1.c.
55252
55253 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55254
55255         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55256         All uses changed.  Check for sa_sigaction member; this fixes
55257         a bug first reported by Jason Andrade in
55258         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55259
55260 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55261
55262         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55263         '#if' expressions.  Unlike the code it replaces, it does not
55264         depend on (defined _SC_PAGESIZE).  However, it does depend on
55265         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55266         first reported by Jason Andrade in
55267         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55268
55269 2004-02-25  Simon Josefsson  <jas@extundo.com>
55270
55271         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55272
55273 2004-02-25  Simon Josefsson  <jas@extundo.com>
55274
55275         * lib/strdup.h: New file.
55276         * lib/strdup.c: Include it.
55277         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55278         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55279
55280 2004-02-23  Karl Berry  <karl@gnu.org>
55281
55282         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55283         (from fencepost.gnu.org:/gd/gnuorg).
55284
55285 2004-02-23  Karl Berry  <karl@gnu.org>
55286
55287         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55288         * config/srclist.txt: add maintain/standards documents.
55289
55290 2004-02-18  Bruno Haible  <bruno@clisp.org>
55291
55292         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55293         Reported by Derek Robert Price <derek@ximbiot.com>.
55294
55295 2004-02-16  Karl Berry  <karl@gnu.org>
55296
55297         * config/mkinstalldirs, install-sh: update from automake.
55298
55299 2004-02-06  Karl Berry  <karl@gnu.org>
55300
55301         * m4/po.m4: update from gettext 0.14.1.
55302
55303 2004-02-06  Karl Berry  <karl@gnu.org>
55304
55305         * lib/config.charset: update from gettext 0.14.1.
55306
55307 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55308
55309         Add comments and code, prompted by suggestions from Bruno Haible
55310         for sh-quote.
55311         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55312         describing the enum quoting_style values.
55313         * lib/quotearg.c (quotearg_alloc): New function.
55314         (quotearg_buffer_restyled): Treat lone { and } as special.
55315         Treat = as special.  Work around bug with older shells
55316         that "see" a '\' that is really the 2nd byte of a multibyte char.
55317         Quote empty string with shell_quoting_style.
55318
55319 2004-02-03  Bruno Haible  <bruno@clisp.org>
55320
55321         * m4/pipe.m4: New file, from GNU gettext.
55322
55323 2004-02-03  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/pipe.h: New file, from GNU gettext.
55326         * lib/pipe.c: New file, from GNU gettext.
55327
55328 2004-01-27  Bruno Haible  <bruno@clisp.org>
55329
55330         * m4/execute.m4: New file, from GNU gettext.
55331
55332 2004-01-27  Bruno Haible  <bruno@clisp.org>
55333
55334         * lib/execute.h: New file, from GNU gettext.
55335         * lib/execute.c: New file, from GNU gettext.
55336         * lib/w32spawn.h: New file, from GNU gettext.
55337
55338 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55339
55340         Merge from diffutils.
55341
55342         * lib/file-type.c (file_type): Add typed memory objects.
55343         * lib/file-type.h (S_TYPEISTMO): New macro.
55344
55345         * lib/c-stack.h (c_stack_action): Remove argv argument.
55346         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55347         (die): Don't calculate message unless segv_action returns.
55348         (get_stack_location, min_address_from_argv, max_address_from_argv,
55349         volatile stack_base, volatile_stack_size): Remove.
55350         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55351         that every segmentation violation is a stack overflow.  (Ouch!)
55352         See Debian bug 136249 (still outstanding) for more info about why
55353         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55354
55355 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55356
55357         Exit-status fix from coreutils.
55358
55359         Use exit_failure consistently in place of EXIT_FAILURE,
55360         so that program exit statuses are consistent on failure.
55361
55362         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55363         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55364         * lib/argmatch.h: Comment fix to match the above.
55365         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55366         Now a macro referring to exit_failure, instead of a separate
55367         variable.  Include "exitfail.h" to get it.
55368         * lib/xstrtol.h: Include "exitfail.h".
55369         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55370
55371         * lib/long-options.c (parse_long_options): Use prototype
55372         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55373         for clarity.
55374
55375 2004-01-21  Jim Meyering  <jim@meyering.net>
55376
55377         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55378         so as not to conflict with a different-sized __mktime_internal
55379         function in GNU libc.
55380         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55381         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55382
55383 2004-01-20  Karl Berry  <karl@gnu.org>
55384
55385         * config/config.guess: update from config.
55386
55387         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55388
55389 2004-01-20  Bruno Haible  <bruno@clisp.org>
55390
55391         Safer stack allocation.
55392         * lib/setenv.c: Include allocsa.h.
55393         (alloca): Remove fallback definition.
55394         (freea): Remove macro.
55395         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55396         instead of freea.
55397
55398 2004-01-20  Bruno Haible  <bruno@clisp.org>
55399
55400         * m4/eealloc.m4: New file, from GNU gettext.
55401
55402 2004-01-20  Bruno Haible  <bruno@clisp.org>
55403
55404         * m4/allocsa.m4: New file, from GNU gettext.
55405
55406 2004-01-20  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/xallocsa.h: New file, from GNU gettext.
55409         * lib/xallocsa.c: New file, from GNU gettext.
55410
55411 2004-01-20  Bruno Haible  <bruno@clisp.org>
55412
55413         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55414
55415 2004-01-20  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55418         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55419         specially.
55420
55421 2004-01-20  Bruno Haible  <bruno@clisp.org>
55422
55423         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55424         patch.
55425
55426 2004-01-20  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55429
55430 2004-01-20  Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/eealloc.h: New file.
55433
55434 2004-01-20  Bruno Haible  <bruno@clisp.org>
55435
55436         * lib/binary-io.h: Avoid warnings on Cygwin.
55437
55438 2004-01-20  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/allocsa.h: New file, from GNU gettext.
55441         * lib/allocsa.c: New file, from GNU gettext.
55442
55443 2004-01-18  Karl Berry  <karl@gnu.org>
55444
55445         * doc/gpl.texi, doc/lgpl.texi: new files.
55446
55447 2004-01-18  Karl Berry  <karl@gnu.org>
55448
55449         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55450         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55451
55452 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55453
55454         Merge from coreutils.
55455
55456         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55457         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55458         (gl_DEFAULT_POSIX2_VERSION): Move
55459         the documentation from 'configure' into 'config.hin',
55460         so that 'configure --help' isn't burdened by it and
55461         we don't have to worry about its formatting there.
55462         Reword the documentation so that it's more succinct
55463         and can be run together into a single paragraph.
55464         * m4/same.m4 (gl_SAME): Check for pathconf.
55465
55466 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55467
55468         Merge from coreutils.
55469
55470         * lib/posixver.c: Include posixver.h.
55471
55472         * lib/same.c: Include <stdbool.h>, <limits.h>.
55473         (_POSIX_NAME_MAX): Define if not defined.
55474         (MIN): New macro.
55475         (same_name): If file names are silently truncated, report
55476         that the file names are the same if they are the same after
55477         the silent truncation.
55478
55479         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55480         conversion function.
55481         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55482         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55483         longer needed.
55484
55485 2004-01-15  Jim Meyering  <jim@meyering.net>
55486
55487         Merge from coreutils.
55488
55489         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55490         if no library is required.
55491         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55492         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55493         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55494         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55495         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55496         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55497         value, $ac_cv_search_crypt, if it's "none required".
55498         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55499         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55500         not gl_FUNC_GETLOADAVG.
55501         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55502         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55503
55504 2004-01-15  Jim Meyering  <jim@meyering.net>
55505
55506         Merge from coreutils.
55507
55508         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55509         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55510         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55511
55512         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55513         optional configure-time default.
55514
55515         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55516
55517         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55518
55519 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55520
55521         Merge from coreutils.
55522
55523         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55524         value, $ac_cv_search_nanosleep, if it's "none required".
55525
55526 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55527
55528         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55529         with like-named macro in fnmatch.c.
55530         (EXT): Use an internal constant instead.
55531
55532         Merge fnmatch patches from glibc.
55533         * lib/fnmatch.c (mbsinit): Remove define.
55534         Add libc_hidden_ver (__fnmatch, fnmatch).
55535         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55536         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55537
55538 2004-01-14  Karl Berry  <karl@gnu.org>
55539
55540         * config/install-sh: update from automake.
55541
55542 2004-01-13  Karl Berry  <karl@gnu.org>
55543
55544         * config/install-sh: update from automake.
55545
55546 2004-01-09  Karl Berry  <karl@gnu.org>
55547
55548         * config/install-sh: update from automake.
55549
55550 2004-01-05  Karl Berry  <karl@gnu.org>
55551
55552         * config/config.{sub,guess}: update from config.
55553
55554 2003-12-31  Karl Berry  <karl@gnu.org>
55555
55556         * config/depcomp: update from automake.
55557
55558 2003-12-14  Karl Berry  <karl@gnu.org>
55559
55560         * lib/config.charset: update from gettext-runtime.
55561
55562 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55563
55564         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55565         Bug reported by Alfred M. Szmidt.
55566
55567 2003-12-03  Bruno Haible  <bruno@clisp.org>
55568
55569         * m4/gettext.m4: Upgrade from gettext-0.13.
55570         * m4/po.m4: Upgrade from gettext-0.13.
55571         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55572         * m4/intmax.m4: New file, from gettext-0.13.
55573         * m4/printf-posix.m4: New file, from gettext-0.13.
55574
55575 2003-11-29  Karl Berry  <karl@gnu.org>
55576
55577         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55578
55579 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55580             Bruno Haible  <bruno@clisp.org>
55581
55582         * lib/printf-parse.h: Don't include sys/types.h.
55583         (ARG_NONE): New macro.
55584         (char_directive): Change type of *arg_index fields to size_t.
55585         * lib/printf-parse.c: Don't include sys/types.h.
55586         (SSIZE_MAX): Remove macro.
55587         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55588         Remove unnecessary overflow check.
55589         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55590         fields.
55591
55592 2003-11-25  Bruno Haible  <bruno@clisp.org>
55593
55594         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55595
55596 2003-11-25  Bruno Haible  <bruno@clisp.org>
55597
55598         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55599         gt_TYPE_SSIZE_T.
55600
55601 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55602
55603         * modules/alloca: Remove dependency on xalloc.
55604
55605 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55606
55607         * lib/alloca.c: Remove dependency on xalloc module.
55608         (xalloc_die): Remove.
55609         (memory_full) [!defined emacs]: New macro.
55610         [!defined emacs]: Don't include xalloc.h.
55611         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55612         address arithmetic overflows.  Change datatypes a bit to avoid
55613         unnecessary casts.
55614
55615 2003-11-22  Jim Meyering  <jim@meyering.net>
55616
55617         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55618         s/size/size_t/.
55619
55620 2003-11-21  Karl Berry  <karl@gnu.org>
55621
55622         * config/config.{sub,guess}: update from config.
55623
55624 2003-11-18  Karl Berry  <karl@gnu.org>
55625
55626         * config/config.{sub,guess}: update from config.
55627
55628         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55629
55630 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55631
55632         * README: Mention that S+T cannot overflow if S is the size of
55633         an existing object and T is sufficiently small.
55634
55635 2003-11-17  Jim Meyering  <jim@meyering.net>
55636
55637         On systems without utime and without a utimes function capable of
55638         dealing with a NULL struct utimbuf* argument, this utime replacement
55639         could -- in unusual circumstances -- leak a file descriptor.
55640         * lib/utime.c: Include <unistd.h> and <errno.h>.
55641         (utime_null): Be sure to close `fd' and to preserve errno.
55642         Reported by Geoff Collyer via Arnold Robbins.
55643
55644 2003-11-17  Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55647         (Depends-on): Add xsize.
55648
55649 2003-11-17  Bruno Haible  <bruno@clisp.org>
55650
55651         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55652
55653 2003-11-17  Bruno Haible  <bruno@clisp.org>
55654
55655         * lib/vasnprintf.c (alloca): Remove fallback definition.
55656         (freea): Remove definition.
55657         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55658         Reported by Paul Eggert.
55659
55660 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55661             Bruno Haible  <bruno@clisp.org>
55662
55663         Protect against address arithmetic overflow.
55664         * lib/printf-args.h: Include stddef.h.
55665         (arguments): Change type of field 'count' to size_t.
55666         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55667         'unsigned int' where appropriate.
55668         * lib/printf-parse.h: Include sys/types.h.
55669         (char_directive): Change type of *arg_index fields to ssize_t.
55670         (char_directives): Change type of fields 'count', max_*_length to
55671         size_t.
55672         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55673         (SSIZE_MAX): Define fallback value.
55674         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55675         instead of 'int' where appropriate. Check a_allocated, d_allocated
55676         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55677         * lib/vasnprintf.c: Include xsize.h.
55678         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55679         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55680         overflow. Avoid wraparound when converting a width or precision from
55681         decimal to binary.
55682
55683 2003-11-16  Bruno Haible  <bruno@clisp.org>
55684
55685         Update from GNU gettext.
55686         * lib/printf-parse.c: Generalize to it can be compiled for wide
55687         strings.
55688         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55689         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55690         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55691         SNPRINTF): New macros.
55692         Don't include <alloca.h> if the file is used inside libintl.
55693         (local_wcslen): New function, for Solaris 2.5.1.
55694         (VASNPRINTF): Use it instead of wcslen.
55695
55696 2003-11-16  Bruno Haible  <bruno@clisp.org>
55697
55698         * lib/xsize.h (xmax): New function.
55699         (xsum, xsum3, xsum4): Declare as "pure" functions.
55700
55701 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55702
55703         * modules/xalloc (Files): Undo latest change, since xalloc.h
55704         no longer needs SIZE_MAX or PTRDIFF_MAX.
55705
55706 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55707
55708         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55709         gl_PTRDIFF_MAX.
55710
55711 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55712
55713         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55714         "return", to pacify some unknown compiler.  Problem reported
55715         by Joerg Schilling.
55716
55717 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55718
55719         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55720         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55721         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55722         heuristic is just as accurate as far as we know, and it removes a
55723         dependency on size_max.m4 and ptrdiff_max.m4.
55724
55725 2003-11-11  Bruno Haible  <bruno@clisp.org>
55726
55727         * modules/xsize (Files): Add m4/size_max.m4.
55728         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55729
55730 2003-11-11  Bruno Haible  <bruno@clisp.org>
55731
55732         * m4/size_max.m4: New file.
55733         * m4/ptrdiff_max.m4: New file.
55734         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55735         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55736         (gl_XALLOC): Invoke it.
55737
55738 2003-11-11  Bruno Haible  <bruno@clisp.org>
55739
55740         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55741         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55742         defined.
55743
55744 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55745
55746         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55747         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55748         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55749         From Bruno Haible.
55750         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55751         not (size_t) -1, since it's defined here.
55752
55753 2003-11-09  Karl Berry  <karl@gnu.org>
55754
55755         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55756
55757 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55758
55759         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55760         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55761         Reject sizes of exactly SIZE_MAX bytes.
55762         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55763         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55764
55765 2003-11-05  Bruno Haible  <bruno@clisp.org>
55766
55767         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55768         SIZE_MAX defined in <limits.h> on Solaris.
55769
55770 2003-11-04  Jim Meyering  <jim@meyering.net>
55771
55772         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55773         variable names, rather than @VAR@.
55774         * modules/poll: Likewise.
55775
55776 2003-11-04  Bruno Haible  <bruno@clisp.org>
55777
55778         * modules/xsize: New file.
55779         * modules/linebreak: Depend on xsize.
55780         * MODULES.html.sh (func_all_modules): Add xsize.
55781
55782 2003-11-04  Bruno Haible  <bruno@clisp.org>
55783
55784         * m4/xsize.m4: New file.
55785
55786 2003-11-04  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/xsize.h: New file.
55789         * lib/linebreak.c: Include xsize.h.
55790         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55791         argument for overflow.
55792         Suggested by Paul Eggert.
55793
55794 2003-11-03  Karl Berry  <karl@gnu.org>
55795
55796         * config/config.{guess,sub}: update from config.
55797
55798 2003-11-03  Jim Meyering  <jim@meyering.net>
55799
55800         * modules/userspec (lib_SOURCES): Add userspec.h.
55801         (Include): Add "userspec.h".
55802         Improve description.
55803
55804 2003-11-03  Jim Meyering  <jim@meyering.net>
55805
55806         * lib/userspec.c: Include "userspec.h".
55807         * lib/userspec.h: New file.
55808
55809 2003-11-03  Bruno Haible  <bruno@clisp.org>
55810
55811         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55812
55813 2003-11-03  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55816         available, to avoid (extremely rare) race condition.
55817         Suggested by Paul Eggert.
55818
55819 2003-11-02  Karl Berry  <karl@gnu.org>
55820
55821         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55822
55823 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55824
55825         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55826         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55827         (read_filesystem_list): Set and use me_type_malloced.
55828         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55829         whatever the type happens to be), for brevity and consistency.
55830         Check for size calculation overflow on Alphas running OSF/1.
55831
55832 2003-10-31  Jim Meyering  <jim@meyering.net>
55833
55834         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55835
55836         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55837
55838 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55839             Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55842         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55843
55844 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55847         netbsd*-gnu*.  Suggested by Robert Millan.
55848
55849 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55850
55851         * modules/group-member: Depend on stdbool.
55852
55853 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55854
55855         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55856
55857 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55858
55859         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55860         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55861         after the 'gnu' in these cases.  This fixes some bugs in the
55862         previous change, and is based on suggestions by Robert Millan.
55863
55864 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55865
55866         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55867         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55868         no longer needed.
55869         * lib/quotearg.c (quotearg_n_options): Use it.
55870         * lib/group-member.c: Include <stdbool.h>.
55871         (free_group_info): Arg is now const *; don't free arg.
55872         (get_group_info): Now returns bool and accepts struct group_info *,
55873         rather than returning a malloc'ed struct group_info *.
55874         All uses changed.  Check for overflow in internal size calculation.
55875
55876         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55877         rather than xmalloc/xrealloc.
55878         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55879         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55880         conformance bug: the old code used a pointer after freeing the
55881         storage that it addressed.
55882         * lib/hash.c (hash_initialize): Simplify the code by using
55883         xalloc_oversized rather than doing it by hand.
55884         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55885         the buffer preserved.  Use free and xmalloc instead.
55886         * lib/quotearg.c (quotearg_n_options): Likewise.
55887         Use a simpler test for size overflow.  Don't use xalloc_oversized
55888         because unsigned int might be wider than size_t (!); this suggests
55889         that we should switch from unsigned int to size_t for slot numbers.
55890
55891 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55892
55893         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55894         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55895         NetBSD kernels.  Requested by Richard Stallman.
55896
55897 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55898
55899         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55900         to allocate the returned structure.  Do not allocate a subarray,
55901         as x2nrealloc will do that.
55902         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55903         instead of xnrealloc.
55904         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55905
55906 2003-10-27  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/stdbool_.h: Better support for BeOS.
55909
55910 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55911
55912         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55913         now uses inline.
55914
55915 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55916
55917         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55918         callers that want to do their own size-overflow checking.  Include
55919         <stdbool.h>, since xalloc_oversized returns bool.
55920         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55921         to use xalloc_oversized.
55922
55923         Add two functions x2realloc, x2nrealloc, for programs that grow
55924         arrays dynamically by doubling their sizes.
55925         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55926         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55927         New functions.
55928
55929         Port to C99 semantics for 'inline' of external functions.
55930         Bug reported by Bruno Haible.
55931         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55932         with the old contents of xnmalloc.
55933         (xnmalloc, xmalloc): Use it.
55934         (xnrealloc_inline): New static inline function,
55935         with the old contents of xnrealloc.
55936         (xnrealloc, xrealloc): Use it.
55937
55938         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55939         that.
55940
55941 2003-10-26  Karl Berry  <karl@gnu.org>
55942
55943         * config/srclist.txt (COPYING.DOC): no longer available from
55944         /gd/gnuorg; don't know where the ultimate source is.
55945
55946 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55947
55948         Fix several address-calculation bugs in the hash modules,
55949         plus some minor code cleanup.
55950
55951         * lib/hash.h: Include <stdbool.h>, for bool.
55952         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55953         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55954         hash_get_n_entries, hash_get_max_bucket_length,
55955         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55956         hash_rehash): Use size_t rather than unsigned.
55957         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55958         hash_get_n_buckets_used, hash_get_n_entries,
55959         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55960         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55961         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55962         Likewise.
55963         (SIZE_MAX): Define if not defined.
55964         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55965         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55966         hash_print):
55967         Use const * when possible.
55968         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55969         (check_tuning): Fix bug: if tuning parameters were very close to
55970         0 or 1, rounding errors could have caused subscript violations.
55971         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55972         (hash_initialize): Add 'fail:' label
55973         to free table and return NULL, and use it to simplify code.
55974         Use calloc rather than clearing the storage ourself.
55975         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55976         buffer size calculations.
55977         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55978         Include <stddef.h>, for size_t.
55979         * lib/hash-pjw.c (hash_pjw): Likewise.
55980         Switch to method described by Bruno Haible.
55981         Include <limits.h>, for CHAR_BIT.
55982         (SIZE_BITS): New macro.
55983
55984 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55985
55986         * m4/getline.m4 (AM_FUNC_GETLINE):
55987         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55988         hosts.  Problem reported by Derek Robert Price in
55989         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55990         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55991         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55992
55993 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55994
55995         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55996         ceiling the allocation at NMAX bytes rather than silently
55997         discarding input bytes before NMAX is reached.  This makes
55998         a difference only if NMAX exceeds SIZE_MAX / 2.
55999
56000         * lib/obstack.c: Merge from glibc.
56001         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56002         Add libc_hidden_def (_obstack_newchunk).
56003         (_obstack_free) [! defined _LIBC]: Remove.
56004         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56005         a clone of the function body.
56006         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56007         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56008
56009         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56010         glibc.
56011         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56012         arg to memcpy.
56013
56014         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56015         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56016         Don't use lvalue casts, as GCC plans to remove support for them
56017         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56018         was also present in the non-GCC version, indicating that this
56019         code had always been buggy and had never been widely used.
56020         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56021         Use the fast variant of each macro, rather than copying the
56022         definiens of the fast variant; that way, we'll be more likely to
56023         catch future bugs in the fast variants.
56024
56025 2003-10-20  Bruno Haible  <bruno@clisp.org>
56026
56027         * modules/wait-process: New file.
56028         * MODULES.html.sh (func_all_modules): Add wait-process.
56029
56030 2003-10-20  Bruno Haible  <bruno@clisp.org>
56031
56032         * m4/wait-process.m4: New file.
56033
56034 2003-10-20  Bruno Haible  <bruno@clisp.org>
56035
56036         * lib/wait-process.h: New file, from GNU gettext.
56037         * lib/wait-process.c: New file, from GNU gettext.
56038
56039 2003-10-19  Jim Meyering  <jim@meyering.net>
56040
56041         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56042         HPUX 10.20.
56043
56044 2003-10-18  Karl Berry  <karl@gnu.org>
56045
56046         * config/config.guess: update from config.
56047
56048 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56049
56050         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56051         (getgroups): First arg is int, not size_t.
56052         Don't let 'free' mangle errno.
56053
56054 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56055
56056         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56057
56058 2003-10-16  Karl Berry  <karl@gnu.org>
56059
56060         * config/config.{guess,sub}: update from config.
56061
56062 2003-10-16  Jim Meyering  <jim@meyering.net>
56063
56064         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56065         memcpy.
56066
56067 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56068
56069         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56070         (SIZE_MAX): Remove.
56071         (new_exclude, add_exclude_file): Initial size no longer needs to
56072         be a power of 2.
56073         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56074         our own address arithmetic overflow checking.
56075
56076         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56077         (fnmatch): Do not alloca more than 2000 wide characters;
56078         instead, use malloc for large buffers.
56079         Check for address arithmetic overflow, and return -1
56080         with errno set to ENOMEM in that case.
56081         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56082         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56083         instead, return -1.  Check for address arithmetic overflow.
56084
56085 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56086
56087         Handle invalid suffixes and overflow independently, so that
56088         callers can treat them independently as needed.  Fix some bugs in
56089         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56090         suffix for a human-readable blocksize.  The major caller-visible
56091         change is the addition of a new
56092         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56093         that both overflow and suffix chars were found.
56094
56095         * lib/human.c (humblock): Don't check separately for invalid suffix
56096         char; that is xstrtoumax's job (now that its bug is fixed).
56097         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56098         INTMAX_MAX]: New macros.
56099         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56100         TYPE_MAXIMUM): New macros.
56101         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56102         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56103         if overflow occurs, as it's what __strtol does and it's more useful
56104         in practice.
56105         (__xstrtol): If __strtol reports some error other than ERANGE,
56106         reflect it to the caller as LONGINT_INVALID.  If it reports
56107         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56108         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56109         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56110         value.
56111         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56112         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56113         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56114         [defined UINTMAX_MAX]: New macros.
56115
56116 2003-10-14  Bruno Haible  <bruno@clisp.org>
56117
56118         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56119
56120 2003-10-14  Bruno Haible  <bruno@clisp.org>
56121
56122         * m4/sig_atomic_t: New file, from GNU gettext.
56123         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56124
56125 2003-10-14  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56128         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56129         Also use volatile where needed.
56130
56131 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56132
56133         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56134         Change maintainer from Bruno Haible to 'all'.
56135
56136 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56137
56138         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56139
56140 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56141
56142         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56143         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56144         and define in terms of the other primitives.
56145         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56146         (SIZE_MAX): Define if not already defined.
56147         (array_size_overflow): New function.
56148         (xalloc_die): Abort instead of exiting if 'error' returns.
56149         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56150         (xmalloc, xrealloc): Use them.
56151         (xcalloc): Check for address arithmetic overflow.
56152         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56153         a bit faster than strcpy.
56154
56155 2003-10-10  Simon Josefsson  <jas@extundo.com>
56156
56157         * modules/argp (Depends-on): Add restrict and strcase.
56158
56159 2003-10-10  Simon Josefsson  <jas@extundo.com>
56160
56161         * m4/argp.m4: Add AC_C_INLINE.
56162
56163 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56164
56165         Merge getpass from libc, plus a few fixes.
56166
56167         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56168         Include <stdbool.h>.
56169         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56170         __fsetlocking to empty.
56171         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56172         do include <bits/libc-lock.h>.
56173         Do not include <fcntl.h>; not needed.
56174         [_LIBC]: Include <wchar.h>.
56175         (NOTCANCEL_MODE): New macro.
56176         (flockfile, funlockfile) [_LIBC]: New macros.
56177         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56178         [!_LIBC]: New macros.
56179         (call_fclose): New function.
56180         (getpass): Use it.  Save tty stream separately; this simplifies the
56181         code and makes it more reliable if stdin happens to equal stdout.
56182         Invoke __fsetlocking on tty.
56183         Handle thread cancellation if needed.
56184         Namespace cleanup (use __tcgetattr, __getline).
56185         Use bool for Booleans.
56186         [USE_IN_LIBIO]: Handle wide streams.
56187         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56188         stream might go where.
56189
56190         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56191         doesn't have to include <stdio.h> before us.
56192         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56193         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56194         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56195         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56196         if not declared, so that we can use getpass.c code from libc without
56197         rewriting it.
56198         (flockfile, ftrylockfile, funlockfile): New macros.
56199
56200 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56201
56202         * modules/getpass: Depend on stdbool.
56203
56204 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56205
56206         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56207
56208 2003-10-07  Karl Berry  <karl@gnu.org>
56209
56210         * config/config.{guess,sub}: update from config.
56211
56212 2003-10-06  Jim Meyering  <jim@meyering.net>
56213             Bruno Haible  <bruno@clisp.org>
56214
56215         This lets translators provide better translations for the
56216         "Written by ..." part of --version output.
56217         * lib/version-etc.h: Include stdarg.h.
56218         (version_etc_copyright): Declare as readonly.
56219         (version_etc): Make this function variadic with a NULL-terminated list
56220         of author name strings.
56221         (version_etc_va): New declaration.
56222         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56223         (version_etc_copyright): Declare as readonly.
56224         (version_etc_va): New function. Provide a different translatable string
56225         for each possible number of authors < 10. Abbreviate when there are 10
56226         authors or more.
56227         (version_etc): Make this function variadic. Call version_etc_va.
56228         Suggestion from Gary V. Vaughan.
56229
56230         * lib/long-options.h (parse_long_options): Change prototype: the
56231         authors string is moved to the end and becomes variadic.
56232         * lib/long-options.c: Include stdarg.h.
56233         (parse_long_options): Make this function variadic, too.
56234         Call version_etc_va, not version_etc.
56235
56236 2003-10-06  Bruno Haible  <bruno@clisp.org>
56237
56238         * modules/version-etc-2: Remove file.
56239         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56240
56241 2003-10-06  Bruno Haible  <bruno@clisp.org>
56242
56243         * modules/fatal-signal: New file.
56244         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56245
56246 2003-10-06  Bruno Haible  <bruno@clisp.org>
56247
56248         * m4/fatal-signal.m4: New file.
56249         * m4/signalblocking.m4: New file, from GNU gettext.
56250
56251 2003-10-06  Bruno Haible  <bruno@clisp.org>
56252
56253         * lib/version-etc-2.h: Remove file.
56254         * lib/version-etc-2.c: Remove file.
56255
56256 2003-10-06  Bruno Haible  <bruno@clisp.org>
56257
56258         * lib/fatal-signal.h: New file, from GNU gettext.
56259         * lib/fatal-signal.c: New file, from GNU gettext.
56260
56261 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56262
56263         * README: Rework advice for preventing empty .o files.
56264         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56265         not <sys/types.h>.
56266
56267 2003-10-04  Karl Berry  <karl@gnu.org>
56268
56269         * lib/argp*: update from libc.
56270
56271 2003-10-04  Karl Berry  <karl@gnu.org>
56272
56273         * config/config.{guess,sub}: update from config.
56274
56275 2003-10-02  Bruno Haible  <bruno@clisp.org>
56276
56277         * modules/lchown (Include): Add lchown.h.
56278         * modules/time_r (Include): Use "..." syntax.
56279         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56280
56281 2003-10-01  Simon Josefsson  <jas@extundo.com>
56282
56283         * MODULES.html.sh (func_all_modules): Move gethostname from section
56284         'based on' to section 'lacking' POSIX:2001.
56285
56286 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56287
56288         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56289         to output mode on the same stream.
56290
56291 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56292
56293         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56294         Fix arg typo in previous patch.
56295
56296 2003-09-28  Jim Meyering  <jim@meyering.net>
56297
56298         * lib/error.c: Correct cpp indentation.
56299
56300 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56301
56302         * modules/free: New file.
56303
56304 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56305
56306         * m4/free.m4: New file.
56307
56308 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56309
56310         * lib/minmax.h (MIN, MAX)
56311         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56312         Omit the special code that used __typeof__, since we worry that
56313         it could be more trouble than it's worth.  See:
56314         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56315         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56316
56317         * lib/free.c: New file.
56318
56319 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56320
56321         Trivial fixes to Makefile.am parts of module listings.
56322         * modules/strstr: Append strstr.h to lib_SOURCES.
56323         * modules/strcase: Likewise, for strcase.h.
56324
56325 2003-09-27  Karl Berry  <karl@gnu.org>
56326
56327         * config/mkinstalldirs: update from automake.
56328
56329 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56330
56331         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56332         (error_tail): Do not loop, reallocating temporary buffer, since
56333         the output cannot contain more wide characters than the input
56334         contains bytes, the size must be big enough already.  This avoids
56335         one potential size overflow calculation.  Check for size overflow
56336         when calculating temporary buffer size.  Free temporary buffer
56337         when done, if it was allocated with malloc; this plugs a memory
56338         leak.  Remove casts from void * to pointers, that are no longer
56339         needed now that we're assuming C89 or better.
56340
56341         Merge error changes from glibc.
56342
56343         * lib/error.c, error.h: Update copyright notice header to match glibc.
56344         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56345         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56346         Disable cancellation while printing error.
56347         * lib/error.h: Prepend __ to parameter names.
56348
56349 2003-09-26  Jim Meyering  <jim@meyering.net>
56350
56351         * lib/error.c (error_tail): Move some declarations
56352         into inner scope where the local variables are used.
56353
56354 2003-09-26  Bruno Haible  <bruno@clisp.org>
56355
56356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56357         stpncpy().
56358         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56359
56360 2003-09-26  Bruno Haible  <bruno@clisp.org>
56361
56362         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56363         (stpncpy): Define as alias for gnu_stpncpy.
56364         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56365
56366 2003-09-25  Simon Josefsson  <jas@extundo.com>
56367
56368         * lib/xgetdomainname.h: New file.
56369         * lib/xgetdomainname.c: New file.
56370
56371 2003-09-25  Simon Josefsson  <jas@extundo.com>
56372             Bruno Haible  <bruno@clisp.org>
56373
56374         * modules/getdomainname: New file.
56375         * modules/xgetdomainname: New file.
56376         * MODULES.html.sh (func_all_modules): Add getdomainname,
56377         xgetdomainname.
56378
56379 2003-09-25  Simon Josefsson  <jas@extundo.com>
56380             Bruno Haible  <bruno@clisp.org>
56381
56382         * m4/getdomainname.m4: New file.
56383
56384 2003-09-25  Simon Josefsson  <jas@extundo.com>
56385             Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/getdomainname.h: New file.
56388         * lib/getdomainname.c: New file.
56389
56390 2003-09-25  Karl Berry  <karl@gnu.org>
56391
56392         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56393
56394 2003-09-25  Karl Berry  <karl@gnu.org>
56395
56396         * config/install-sh: update from automake.
56397
56398 2003-09-25  Bruno Haible  <bruno@clisp.org>
56399
56400         * modules/version-etc-2: New file, from modules/version-etc with
56401         modifications.
56402         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56403
56404 2003-09-25  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56407         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56408
56409 2003-09-24  Simon Josefsson  <jas@extundo.com>
56410
56411         * modules/xgethostname: Add xgethostname.h.
56412
56413 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56414
56415         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56416         the buffer associated with the argument.  Bug reported by
56417         Simon Josefsson.
56418
56419 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56420
56421         * README: Document assumptions that 'int' is at least 32 bits
56422         wide, that integer arithmetic is 2's complement without overflow,
56423         that there are no holes in integer values, that adding sizes of
56424         two nonoverlapping objects can't overflow, and that all-bits-zero
56425         yields scalar zero.  Fix spelling and capitalization typos.
56426
56427 2003-09-19  Karl Berry  <karl@gnu.org>
56428
56429         * lib/argp.h: update from libc.
56430
56431 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56432
56433         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56434         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56435         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56436
56437 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56438
56439         * gnulib-tool: Use "test -h", not "test -L", for portability
56440         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56441         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56442         (sed_extract_prog): Issue s commands one-by-one, rather than
56443         using \| in one s command.
56444
56445 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56446
56447         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56448         input error, instead of returning NULL the next time we are called
56449         (and therefore losing track of errno).
56450
56451 2003-09-16  Bruno Haible  <bruno@clisp.org>
56452
56453         * gnulib-tool (func_create_testdir): Warn about duplicated
56454         dependencies.
56455
56456 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56457
56458         * modules/argmatch, modules/fatal, modules/obstack,
56459         modules/xalloc, modules/xgethostname: Sort dependencies by
56460         importance, not alphabetically.
56461
56462 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56463
56464         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56465         fails, so that the caller gets the proper errno.
56466
56467         * lib/readutmp.c (read_utmp): Likewise.
56468         Check for fstat error.  Close stream and free storage
56469         when failing.
56470
56471 2003-09-14  Karl Berry  <karl@gnu.org>
56472
56473         * config/srclist.txt (strdup.c): disable for c89 changes.
56474
56475 2003-09-14  Jim Meyering  <jim@meyering.net>
56476
56477         * lib/getloadavg.c: Correct cpp indentation.
56478         * lib/strdup.c: Likewise.
56479         * lib/vasnprintf.c: Likewise.
56480
56481 2003-09-14  Bruno Haible  <bruno@clisp.org>
56482
56483         * modules/fwriteerror: New file.
56484         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56485
56486 2003-09-14  Bruno Haible  <bruno@clisp.org>
56487
56488         * lib/fwriteerror.h: New file.
56489         * lib/fwriteerror.c: New file.
56490
56491 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56492
56493         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56494         modules/xgethostname, modules/xalloc: Depend on exit.
56495
56496 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56497
56498         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56499
56500         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56501         and AC_MINIX, too, so that their extensions are available.
56502
56503         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56504         This macro has been superseded by gl_BACKUPFILE.
56505
56506         More patches to assume C89 or better.
56507
56508         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56509
56510         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56511         unconditionally.
56512         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56513         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56514         Include <string.h>, <stdlib.h> unconditionally.
56515         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56516         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56517         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56518         headers or for string.h.
56519         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56520         or strtoul.
56521
56522         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56523         headers.
56524         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56525         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56526         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56527         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56528         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56529         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56530         memcpy, memset.
56531         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56532         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56533         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56534         strtol.
56535         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56536         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56537         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56538         strtoul.
56539
56540 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56541
56542         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56543         * lib/obstack.c [!defined _LIBC]: Likewise.
56544         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56545         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56546         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56547
56548         More changes to assume C89 or better.
56549
56550         * lib/error.c (error_tail): Assume vprintf.
56551
56552         * lib/argmatch.c (getenv): Remove decl.
56553         * lib/progreloc.c (get_full_program_name): Define via prototype.
56554         * lib/setenv.c (clearenv): Likewise.
56555         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56556         needed.
56557         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56558         (malloc, memcpy): Remove decls.
56559         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56560         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56561         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56562         (memcpy): Remove macro.
56563         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56564         (__P): Remove.  All uses removed.
56565         (PTR): Remove.  All uses changed to void *.
56566         (CHAR_BIT, NULL): Remove.
56567         (spaces, zeros, memset_space, memset_zero)
56568         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56569         Remove.
56570         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56571         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56572         Define with prototype.
56573         Remove now-unnecessary prototype decl.
56574         (extra_args_spec): Assume ANSI C.  All uses changed.
56575         (extra_args_spec_iso): Remove.
56576         (my_strftime, emacs_strftimeu): Define via prototype.
56577         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56578         unconditionally.
56579         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56580         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56581         (strtoul, strtol): Remove decls.
56582         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56583         LONG_MAX): Remove.
56584         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56585         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56586         (LOCALE_PARAM_PROTO): New macro.
56587         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56588         (INTERNAL (strtol), strtol): Define with a prototype.
56589         (PARAMS): Remove.  All uses removed.
56590         * lib/tempname.c: Include <string.h> unconditionally.
56591         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56592         * lib/xgethostname.c (main): Define with a prototype.
56593         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56594         Include <stdlib.h> unconditionally.
56595         (calloc, malloc, realloc, free): Remove decls.
56596         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56597         Include <stdlib.h> unconditionally.  Sort include file names.
56598         (strtod): Remove.
56599         (xstrtod): Define with a prototype.
56600         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56601         (strtol, strtoul): Remove decls.
56602
56603 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56604
56605         More patches to assume C89 or better.
56606         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56607         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56608         string.h, memchr, STDC_HEADERS.
56609
56610 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56611
56612         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56613         Include <stdlib.h>, <string.h> unconditionally.
56614         Remove now-unnecessary cast to char *.
56615         * lib/strnlen.c: Include <string.h> unconditionally.
56616         * lib/yesno.c (yesno): Define with a prototype.
56617
56618 2003-09-11  Bruno Haible  <bruno@clisp.org>
56619
56620         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56621
56622 2003-09-10  Jim Meyering  <jim@meyering.net>
56623
56624         * lib/error.c: Correct indentation of cpp directives.
56625
56626 2003-09-10  Bruno Haible  <bruno@clisp.org>
56627
56628         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56629         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56630         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56631         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56632         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56633         <stdlib.h> and <string.h> checks.
56634         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56635         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56636
56637 2003-09-10  Bruno Haible  <bruno@clisp.org>
56638
56639         * lib/strcspn.c: Include <string.h> unconditionally.
56640         * lib/strpbrk.c: Include <string.h> unconditionally.
56641         * lib/strstr.c: Include <string.h> unconditionally.
56642         * lib/unicodeio.c: Include <string.h> unconditionally.
56643         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56644         * lib/unsetenv.c: Likewise.
56645         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56646         * lib/yesno.c: Include <stdlib.h> unconditionally.
56647         (rpmatch): Add prototype.
56648
56649 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56650
56651         More patches to assume C89 or better.
56652         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56653         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56654         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56655         or for string.h.
56656         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56657         stdlib.h.
56658         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56659         C headers.
56660         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56661         string.h.
56662         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56663         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56664         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56665         or for string.h.
56666         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56667         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56668         C headers.
56669         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56670         memcpy.
56671         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56672         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56673         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56674         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56675         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56676         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56677         string.h, free.
56678         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56679         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56680         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56681         C headers, or for string.h.
56682         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56683         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56684         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56685         headers, memory.h, stdlib.h, string.h, strings.h.
56686         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56687         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56688         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56689         strchr.
56690         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56691         headers, memory.h, string.h.
56692         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56693         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56694         free.
56695         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56696         headers.
56697         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56698         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56699         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56700         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56701         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56702
56703 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56704
56705         More K&R removal.
56706
56707         * lib/acosl.c (main): Use a prototype.
56708         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56709         tanl.c: Likewise.
56710
56711         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56712
56713         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56714         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56715         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56716         with a prototype.
56717         * lib/getopt.c (const): Remove macro.
56718         Include <string.h> unconditionally.
56719         (my_index): Remove; all uses changed to strchr.
56720         (strlen): Remove decl.
56721         (exchange): Remove forward decl; no longer needed.
56722         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56723         Define with prototype.
56724         * lib/getopt1.c (const): Remove macro.
56725         (getopt_long, getopt_long_only, main): Define with prototype.
56726
56727         * lib/getugroups.c: Include <string.h> unconditionally.
56728
56729         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56730         (getusershell, setusershell, endusershell, readname, main):
56731         Define with prototypes.
56732
56733         * lib/group-member.c: Include group-member.h first.
56734         Include <stdlib.h> unconditionally.
56735
56736         * lib/hard-locale.c: Include hard-locale.h first.
56737         Include <stdlib.h>, <string.h> unconditionally.
56738
56739         * lib/hash.c (free, malloc): Remove decls.
56740         Include <stdlib.h> unconditionally.
56741
56742         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56743         (getenv): Do not declare.
56744
56745         * lib/idcache.c: Include <string.h> unconditionally.
56746
56747         * lib/long-options.c: Include long-options.h first, to test interface.
56748         Include <stdlib.h> unconditionally.
56749
56750         * lib/makepath.c: Include makepath.h first, to test interface.
56751         Include <stdlib.h> and <string.h> unconditionally.
56752
56753         * lib/linebuffer.c: Include <stdlib.h>.
56754         (free): Remove decl.
56755
56756         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56757         stddef.h. rpl_malloc returns void *, not char *.
56758         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56759         prototype.
56760
56761         * lib/md5.h: Include <limits.h> unconditionally.
56762         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56763         (__P): Remove; all uses removed.
56764         * lib/md5.c: Include "md5.h" first.
56765         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56766         md5_buffer, md5_process_bytes, md5_process_block):
56767         Define with prototypes.
56768         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56769         * lib/sha.c: Include "sha.h" first.
56770         Include <stdlib.h>, <string.h> unconditionally.
56771
56772         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56773         * lib/memcmp.c (__ptr_t): Likewise.
56774         * lib/memrchr.c (__ptr_t): Likewise.
56775         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56776         Include <string.h> unconditionally.
56777         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56778         * lib/memchr.c: Include <stdlib.h> unconditionally.
56779         * lib/memchr.c (LONG_MAX): Remove.
56780         * lib/memrchr.c (LONG_MAX): Likewise.
56781         * lib/memchr.c (__memchr): Define via a prototype.
56782         * lib/memrchr.c (__memrchr): Likewise.
56783         * lib/memcmp.c (__P): Remove, and remove all uses.
56784         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56785         Remove forward decls; no longer needed.
56786         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56787         Use types required by C89 in prototype.
56788
56789         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56790         * lib/savedir.c: Likewise.
56791         * lib/mkdir.c (free): Remove decl.
56792         * lib/rmdir.c (rmdir): Define with a prototype.
56793         * lib/savedir.c: Include savedir.h first, to test interface.
56794
56795         * lib/mktime.c (STDC_HEADERS): Remove.
56796         Include <stdlib.h>, <string.h> unconditionally.
56797
56798         * lib/modechange.c: Include <stdlib.h> unconditionally.
56799         (malloc): Remove decl.
56800
56801         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56802         (free): Remove decl.
56803
56804         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56805         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56806         (This type really should be intptr_t, but that's a C99ism.)
56807         (_obstack_memcpy): Remove: all uses changed to memcpy.
56808         Include <string.h> unconditionally.
56809         (struct obstack): Assume __STDC__ for types of members
56810         chunkfun, freefun, extra_arg.
56811         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56812         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56813         obstack_begin, obstack_specify_allocation,
56814         obstack_specify_allocation_with_arg, obstack_chunkfun,
56815         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56816         Remove unprototyped decls and the macros that use them.
56817         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56818         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56819         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56820         (defined __STDC__ && __STDC__)]:
56821         Remove nonprototyped code.
56822         Include <stdlib.h> unconditionally.
56823         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56824         _obstack_allocated_p, _obstack_free, obstack_free,
56825         _obstack_memory_used, print_and_abort):
56826         Define using prototypes.
56827         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56828         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56829         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56830         obstack_next_free, obstack_object_size, obstack_room) [0]:
56831         Remove unused, unprototyped code.
56832
56833         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56834
56835         * lib/physmem.c (physmem_total, physmem_available, main): Define
56836         with prototypes.
56837
56838         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56839         (main): Define with a prototype.
56840
56841         * lib/posixver.c (getenv): Remove decl.
56842
56843         * lib/putenv.c (malloc): Returns void *, not char *.
56844         Include <string.h> unconditionally.
56845         (strchr, memcpy, NULL): Do not define.
56846
56847         * lib/readtokens.c: Include readtokens.h first, to test interface.
56848         Include <stdlib.h>, <string.h> unconditionally.
56849         (init_tokenbuffer): Define with a prototype.
56850
56851         * lib/regex.c (PARAMS): Remove.  All uses removed.
56852         All uses of _RE_ARGS removed, too.
56853         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56854         unconditionally.
56855         (bzero): Assume memset exists.
56856         (memcmp, memcpy, NULL): Remove.
56857         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56858         char, or assignments to local vars of type signed char.
56859         (init_syntax_once, PREFIX(extract_number_and_incr),
56860         PREFIX(print_partial_compiled_pattern),
56861         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56862         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56863         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56864         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56865         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56866         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56867         wcs_compile_range, byte_compile_range, truncate_wchar,
56868         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56869         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56870         count_mbs_length, wcs_re_match_2_internal,
56871         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56872         PREFIX(alt_match_null_string_p),
56873         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56874         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56875         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56876         now-unnecessary declaration, if any.
56877         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56878         regcomp, regexec):
56879         Remove now-unnecessary casts among pointer types.
56880         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56881
56882         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56883         (free): Remove decl.
56884
56885         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56886
56887         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56888         (free): Remove decl.
56889
56890         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56891         * lib/xgetcwd.c: Likewise.
56892
56893         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56894         (free): Remove decl.
56895
56896         * lib/strchrnul.c (strchrnul): Define with a prototype.
56897         Fix bug: c_in was not converted to char before searching.
56898
56899         The following changes are not K&R related:
56900
56901         * lib/group-member.h: Include <sys/types.h>, so that this file is
56902         self-contained.
56903         * lib/makepath.h: Likewise.
56904
56905         * lib/getusershell.c (readname, default_index, line_size, readname):
56906         Use size_t, not int, for sizes.
56907         (readname): If the size overflows, report an error instead of
56908         looping forever.
56909
56910 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56911
56912         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56913         libc.
56914
56915 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56916
56917         * README: New section: portability guidelines.
56918
56919 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56920
56921         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56922         C89 spec.
56923
56924 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56925
56926         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56927
56928 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56929
56930         Assume C89 or better; remove K&R cruft.
56931         A few of these changes were first proposed by Derek Robert Price
56932         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56933
56934         * lib/addext.c: Include <string.h> unconditionally.
56935         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56936         Don't declare getenv or malloc.
56937
56938         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56939         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56940         (NULL): Remove.
56941         (find_stack_direction, alloca): Use prototypes.
56942
56943         * lib/atexit.c (atexit): Define using a prototype.
56944
56945         * lib/basename.c, dirname.c, stripslash.c:
56946         Include <string.h> unconditionally.
56947
56948         * lib/bcopy.c: Include <stddef.h>.
56949         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56950
56951         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56952
56953         * lib/error.h (error, error_at_line, error_print_progname)
56954         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56955         * lib/error.c: Include error.h first, to check interface.
56956         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56957         (VA_START): Remove; all uses changeed to va_start.
56958         (exit, strerror): Remove decls.
56959         (error_print_progname): Prototype uncondionally.
56960         Don't include <errno.h>; no longer needed.
56961         (private_strerror): Remove.
56962         (error_tail): Always define.
56963         (error, error_at_line): Assume C89 or better; always use prototypes.
56964         * lib/fatal.c: Include "fatal.h" first, to test interface.
56965         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56966         (VA_START): Remove; all uses changed to va_start.
56967         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56968         this case.
56969         (exit): Remove decl.
56970         (fatal): Prototype unconditionally.  Assume va_start works.
56971         Abort at end, to pacify gcc.
56972
56973         * lib/euidaccess.c (main): Define with a prototype.
56974
56975         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56976
56977         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56978
56979         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56980         prototypes.
56981         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56982         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56983         (getenv): Remove decl.
56984         (fnmatch): Define using a prototype.
56985         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56986         (FCT): Define using a prototype.
56987
56988         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56989
56990         * lib/gethostname.c: Include <stddef.h>.
56991         (gethostname): Define with prototype.  Length is size_t, not int.
56992
56993 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56994
56995         Assume C89 or better; remove K&R cruft.
56996         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56997         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56998         string.h, getenv, malloc.
56999         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57000         headers.
57001         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57002         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57003         do not check for strerror.
57004         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57005         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57006         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57007         do not check for doprnt or vprintf.
57008         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57009         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57010
57011 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57012
57013         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57014         getversion.c should have been removed then, but was accidentally
57015         preserved.
57016
57017         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57018         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57019
57020 2003-09-08  Karl Berry  <karl@gnu.org>
57021
57022         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57023                 config, forget about prep.
57024
57025         * config/depcomp, missing: update from automake.
57026
57027 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57028
57029         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57030         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57031
57032 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57033
57034         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57035         copy_tm_result.  Bug reported by Simon Josefsson in
57036         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57037
57038 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57039
57040         * m4/time_r.m4: New file.
57041         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57042         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57043         is. Check for timegm declaration.
57044         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57045         Do not check for gmtime_r.
57046         Replace mktime if __mktime_internal does not exist and if mktime
57047         hasn't been replaced already.
57048
57049 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57050
57051         * lib/time_r.c, lib/time_r.h: New files.
57052
57053         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57054         __localtime_r.
57055         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57056         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57057
57058         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57059         __gmtime_r.
57060         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57061         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57062         Include <time_r.h>.
57063
57064         * lib/timegm.c: Switch to glibc implementation, with the following
57065         changes:
57066         [defined HAVE_CONFIG_H]: Include <config.h>.
57067         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57068         (__mktime_internal) [!defined _LIBC]: New decl.
57069         (__gmtime_r) [!defined _LIBC]: New macro and function.
57070         (timegm): Use a prototype, since gnulib assumes C89.
57071         Do not bother declaring tmp to be const, as it's not really usefu.
57072         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57073         (timegm): Declare only if HAVE_DECL_TIMEGM.
57074
57075 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57076
57077         * MODULES.html.sh (func_all_modules): Add time_r.
57078         * modules/time_r: New file.
57079         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57080         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57081
57082 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57083
57084         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57085         Bug reported by Lute Kamstra in
57086         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57087
57088         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57089         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57090         course with correspondingly smaller numbers for tomorrow and
57091         yesterday.  From Tadayoshi Funaba.  Originally installed into
57092         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57093         coreutils merge?).
57094
57095 2003-08-31  Simon Josefsson  <jas@extundo.com>
57096
57097         * modules/timegm: New file.
57098         * MODULES.html.sh (func_all_modules): Add timegm.
57099
57100 2003-08-31  Simon Josefsson  <jas@extundo.com>
57101
57102         * m4/timegm.m4: New file.
57103
57104 2003-08-31  Simon Josefsson  <jas@extundo.com>
57105
57106         * lib/timegm.h: New file.
57107         * lib/timegm.c: New file.  Based on
57108         wget-1.8.2/src/http.c:mktime_from_utc.
57109
57110 2003-08-31  Karl Berry  <karl@gnu.org>
57111
57112         * lib/argp.h: update from libc.
57113
57114 2003-08-28  Bruno Haible  <bruno@clisp.org>
57115
57116         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57117         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57118         followed by '#define fnmatch fnmatch_posix' gives an error.
57119
57120 2003-08-28  Bruno Haible  <bruno@clisp.org>
57121
57122         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57123         warning on QNX, which defines O_BINARY to 000000.
57124
57125 2003-08-27  Jim Meyering  <jim@meyering.net>
57126
57127         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57128         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57129         would fail after 32.  Reported by Danny Levinson.  Details here:
57130         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57131
57132 2003-08-24  Bruno Haible  <bruno@clisp.org>
57133
57134         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57135         MSVC7 <stdio.h> is included later.
57136
57137 2003-08-22  Simon Josefsson  <jas@extundo.com>
57138
57139         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57140
57141 2003-08-20  Karl Berry  <karl@gnu.org>
57142
57143         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57144
57145 2003-08-20  Bruno Haible  <bruno@clisp.org>
57146
57147         * modules/progname: New file.
57148         * MODULES.html.sh (func_all_modules): Add progname.
57149
57150 2003-08-20  Bruno Haible  <bruno@clisp.org>
57151
57152         * lib/progname.h: New file, from GNU gettext.
57153         * lib/progname.c: New file, from GNU gettext.
57154         * lib/progreloc.c: New file, from GNU gettext.
57155
57156 2003-08-19  Jim Meyering  <jim@meyering.net>
57157
57158         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57159         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57160
57161 2003-08-19  Bruno Haible  <bruno@clisp.org>
57162
57163         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57164         more.
57165
57166 2003-08-19  Bruno Haible  <bruno@clisp.org>
57167
57168         * lib/xstrdup.c: Assume <string.h> exists.
57169
57170 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57171
57172         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57173         in makefile rules.
57174
57175 2003-08-18  Jim Meyering  <jim@meyering.net>
57176
57177         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57178         * m4/lib-ld.m4: Likewise.
57179
57180 2003-08-18  Jim Meyering  <jim@meyering.net>
57181
57182         * lib/setenv.h: Indent nested cpp directive.
57183         * lib/vasnprintf.c: Remove trailing blanks.
57184
57185 2003-08-17  Simon Josefsson  <jas@extundo.com>
57186
57187         * modules/xstrndup: New file.
57188         * MODULES.html.sh (func_all_modules): Add xstrndup.
57189
57190 2003-08-17  Simon Josefsson  <jas@extundo.com>
57191
57192         * modules/argp: Fix autoconf macro name. Add more dependencies.
57193
57194 2003-08-17  Simon Josefsson  <jas@extundo.com>
57195
57196         * m4/xstrndup.m4: New file.
57197
57198 2003-08-17  Simon Josefsson  <jas@extundo.com>
57199
57200         * m4/argp.m4: New file.
57201
57202 2003-08-17  Simon Josefsson  <jas@extundo.com>
57203             Bruno Haible  <bruno@clisp.org>
57204
57205         * lib/xstrndup.h: New file.
57206         * lib/xstrndup.c: New file.
57207
57208 2003-08-17  Bruno Haible  <bruno@clisp.org>
57209
57210         * modules/strndup (Files, Include): Add lib/strndup.h.
57211
57212 2003-08-17  Bruno Haible  <bruno@clisp.org>
57213
57214         * modules/euidaccess (Files): Add lib/euidaccess.h.
57215
57216 2003-08-17  Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/strndup.h: New file.
57219
57220 2003-08-17  Bruno Haible  <bruno@clisp.org>
57221
57222         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57223         like AC_GNU_SOURCE.
57224         * modules/extensions (configure.ac): Comment out the invocation of
57225         gl_USE_SYSTEM_EXTENSIONS.
57226
57227 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57228
57229         Merges from coreutils, etc.
57230         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57231         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57232         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57233         fixing a typo.
57234         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57235         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57236
57237 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57238
57239         Document merge from coreutils.
57240         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57241         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57242         * modules/utime: Add m4/utimes-null.m4.
57243
57244 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57245
57246         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57247         space, undoing this 2003-08-12 change:
57248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57249
57250 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57251
57252         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57253         strtoul.c from libc, undoing this 2003-08-12 change:
57254         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57255
57256 2003-08-16  Jim Meyering  <jim@meyering.net>
57257
57258         Merges from coreutils.
57259         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57260         prefix.  Adjust cache variables similarly.  Create 500 rather than
57261         just 300 files, to exercise bug on Darwin6.5, too.
57262         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57263         $missing_dir.
57264         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57265         AM_SYS_POSIX_TERMIOS.
57266         Reported by mkc@mathdogs.com.
57267         Also change use of $am_cv_sys_posix_termios
57268         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57269         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57270         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57271         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57272         in /proc/mounts until it finds one with matching device number.  This
57273         is unnecessary when the FILE argument *is* a mount point.  No stat call
57274         is necessary in that case.  So, disable the statvfs-testing code on
57275         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57276         as RedHat bug# 84846.
57277         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57278         to 1MB, so as not to render systems with no stack size limit (e.g.,
57279         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57280         Include <unistd.h>.  On some systems,
57281         it is required for the definition of _SC_PAGESIZE.
57282
57283 2003-08-16  Jim Meyering  <jim@meyering.net>
57284
57285         Merge from coreutils.
57286         * lib/xstrtoimax.c: #else #if -> #elif.
57287         * lib/xstrtoumax.c: Likewise.
57288
57289 2003-08-16  Jim Meyering  <jim@meyering.net>
57290
57291         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57292         * m4/utimes.m4: Removed.
57293         * m4/utimes-null.m4: Renamed from utimes.m4.
57294
57295         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57296         to 1MB, so as not to render systems with no stack size limit (e.g.,
57297         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57298         Include <unistd.h>.  On some systems,
57299         it is required for the definition of _SC_PAGESIZE.
57300
57301 2003-08-16  Jim Meyering  <jim@meyering.net>
57302         and Paul Eggert  <eggert@cs.ucla.edu>
57303
57304         Merges from coreutils, etc.
57305
57306         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57307         using the latest version from cvs.  This avoids problems with #line
57308         directives using a vendor (Sun) compiler.
57309         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57310         Don't set GETGROUPS_LIB here; now it's
57311         done via getgroups.m4's wrapper function.
57312         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57313         rather than just in sh-util/configure.in, so that the
57314         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57315         same.
57316         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57317         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57318         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57319         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57320         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57321         Remove code that is now done by the newly-required macros.
57322         Append $(EXEEXT) to DF_PROG.
57323         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57324         Do not invoke or require the following here,
57325         since prereq.m4 or some gnulib .m4 now does this for us:
57326         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57327         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57328         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57329         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57330         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57331         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57332         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57333         AC_FUNC_OBSTACK.
57334         Do not replace the following functions, as this is now the job
57335         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57336         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57337         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57338         atexit getpass, strdup, getpagesize.
57339         Replace 'raise'.
57340         Do not check for the following functions, as this is now the job
57341         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57342         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57343         setregid.
57344         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57345         Check for sys/sysctl.h.
57346         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57347         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57348         of checking for ssize_t ourselves.
57349
57350         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57351         Require every macro that gnulib/modules/* suggests for us.
57352         (jm_PREREQ_ADDEXT): New macro.
57353         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57354         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57355
57356         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57357         (gl_PHYSMEM): Use it.
57358         Also check for `table' function.
57359         Check for new headers and functions.
57360         Add check for sys/sysmp.h.
57361         With suggestions from Kaveh Ghazi.
57362         Ignore headers that are present but cannot be compiled.  This
57363         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57364         C 5.4.
57365
57366 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57367
57368         Document merge from coreutils.
57369         * modules/userspec: Depend on posixver.
57370         * modules/strftime: Depend on tzset.
57371
57372 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57373
57374         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57375         rather than tab, after '#' in shell-script copyright notices.
57376         Suggested by Bruno Haible.
57377
57378 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57379
57380         * config/srclist-update: Use three spaces, rather than tab, after '#'
57381         in shell-script copyright notices.  Suggested by Bruno Haible.
57382         Remove unnecessary parenthesization in regular expression.
57383
57384 2003-08-15  Jim Meyering  <jim@meyering.net>
57385
57386         Merge from coreutils.
57387         * lib/xgethostname.c: Include <stdlib.h>.
57388         (xghostname): Don't exit for anything other than memory-related
57389         failure; just return NULL.
57390         * lib/userspec.c: Include "posixver.h".
57391         (parse_user_spec): Accept `.' as a separator only
57392         in pre-POSIX-200112 mode.
57393         * lib/strtoimax.c: Use #elif rather than #else #if.
57394         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57395         Remove function, now that we can rely on a working tzset function.
57396         [!_LIBC]: Ensure that the required autoconf test has been run.
57397         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57398         Use underlying_strftime for %r.
57399         * lib/sha.c: Merge in some clean-up and optimization changes from
57400         glibc.
57401         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57402         Ensure that it is a multiple of 64.
57403         Rearrange loop exit tests so as to avoid performing an
57404         additional fread after encountering an error or EOF.
57405         * lib/realloc.c: Update copyright date.
57406
57407 2003-08-15  Jim Meyering  <jim@meyering.net>
57408         and Paul Eggert  <eggert@twinsun.com>
57409
57410         Merge from coreutils.
57411         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57412         member but strut utmpx does not.  Needed for AIX 4.3.3.
57413         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57414
57415 2003-08-15  Jim Meyering  <jim@meyering.net>
57416         and Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         Merges from coreutils, etc.
57419         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57420         Require gl_FUNC_TZSET_CLOBBER.
57421         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57422         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57423         members.
57424
57425 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57426
57427         Help the merge from coreutils.
57428         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57429         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57430         * m4/tzset.m4: Use it too.
57431
57432 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57433
57434         * modules/tzset: New file.
57435
57436 2003-08-14  Jim Meyering  <jim@meyering.net>
57437
57438         Merges from coreutils.
57439         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57440         variable names, rather than @FNMATCH_H@.
57441         * modules/alloca: Likewise for $(ALLOCA_H).
57442
57443         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57444         the three copies of the literal target, `fnmatch.h'.
57445         * modules/alloca (alloca.h): Likewise.
57446
57447 2003-08-14  Jim Meyering  <jim@meyering.net>
57448
57449         Merge from coreutils.
57450         * m4/tzset.m4: New file.
57451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57452         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57453         otherwise, AIX 5.1 systems would end up using the latter.
57454         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57455         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57456         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57457         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57458
57459 2003-08-14  Jim Meyering  <jim@meyering.net>
57460
57461         Merge from coreutils.
57462         * lib/obstack.h: Whitespace changes.
57463         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57464         and xcalloc return values.
57465         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57466         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57467         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57468         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57469         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57470         error from mntctl.
57471         Use mntctl's return value to drive the entry-processing loop, since
57472         we can't rely on the value of the vmt_length member in the last
57473         entry.  On some systems doing so could result in exhausting
57474         virtual memory.  Based in part on a patch from Mike Jetzer.
57475
57476 2003-08-14  Jim Meyering  <jim@meyering.net>
57477         and Paul Eggert  <eggert@twinsun.com>
57478
57479         Merges from coreutils, plus other fixes.
57480         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57481         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57482         for credits and details.  Thanks to Kaveh Ghazi for helping
57483         to keep these files in sync.
57484         (ARRAY_SIZE): Define it.
57485         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57486         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57487         (memcasecmp): Don't assume size_t fits in unsigned int.
57488         Remove casts and duplicate code.
57489         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57490         (memcpy): Remove definition.
57491         Merge in some clean-up and optimization changes from glibc.
57492         [BLOCKSIZE]: Move definition to top of file.
57493         Ensure that it is a multiple of 64.
57494         Rearrange loop exit tests so as to avoid performing an
57495         additional fread after encountering an error or EOF.
57496         * lib/md5.h (md5_uintptr): Define.
57497         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57498         return to the initial working directory.  Preserve errno
57499         for caller.
57500         * lib/idcache.c: Include "xalloc.h".
57501         (xmalloc, xrealloc): Remove decls.
57502         (getuser): Remove casts no longer required in C89.
57503         * lib/human.c: Include stdio.h, for sprintf.
57504         * lib/group-member.c: Include "xalloc.h".
57505         (xmalloc, xrealloc): Remove decls.
57506         (get_group_info): Remove casts no longer required in C89.
57507         * lib/getusershell.c (readname): Remove casts no longer required in
57508         C89.
57509         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57510         * lib/getline.c: Whitespace fix, from coreutils.
57511
57512 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57513
57514         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57515         Check for isascii.
57516
57517         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57518         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57519         Undo previous (whitespace-only) change.
57520
57521 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57522
57523         * lib/exclude.c: Include <ctype.h>
57524         (IN_CTYPE_DOMAIN): New macro.
57525         (is_space): New fn.
57526         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57527         and empty lines.
57528
57529         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57530         Undo previous (whitespace-only) change.
57531
57532 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57533
57534         * config/srclist-update: Change update back to the old behavior,
57535         leaving whitespace alone.  Use one 'sed' command rather than a
57536         pipeline.
57537         (fixlicense): Now a variable, not a function.
57538         (remove_trailing_blanks): Remove.
57539         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57540         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57541         Undo previous (whitespace-only) change.
57542
57543 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57544
57545         Merge from coreutils.
57546         * modules/euidaccess: Add lib_SOURCES, include for new
57547         file euidaccess.h
57548
57549 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57550
57551         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57552         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57553         Normalize leading white space and remove trailing white space.
57554
57555         Merge from coreutils
57556         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57557
57558         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57559         0.12.1.  These files are now being upgraded automatically by
57560         ../config/srclist-update.
57561
57562 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57563
57564         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57565         Normalize leading white space and remove trailing white space.
57566         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57567         notice, as per ../config/srclist-update.
57568
57569         Merge from coreutils.
57570         * lib/euidaccess.h: New file.
57571         * lib/euidaccess.c: Include it.
57572         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57573         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57574         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57575
57576 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57577
57578         * config/srclist-update: Add copyright notice.
57579         (remove_id_lines, remove_trailing_blanks): New constants.
57580         (fixfile): Use them to normalize spacing a bit in copied files.
57581         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57582         Normalize leading white space and remove trailing white space.
57583
57584         * config/texinfo.tex: Sync with texinfo.
57585
57586         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57587         strtoul.c from libc, to merge coreutils whitespace changes.
57588
57589         * config/srclist.txt: Get the following m4 files from gettext:
57590         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57591         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57592         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57593         wint_t.m4.
57594
57595 2003-08-12  Karl Berry  <karl@gnu.org>
57596
57597         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57598         been made.
57599
57600 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57601
57602         * modules/gnu-source, m4/gnu-source.m4:
57603         Remove; we're assuming Autoconf 2.54 or later now.
57604         Suggested by Bruno Haible.
57605         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57606
57607 2003-08-11  Bruno Haible  <bruno@clisp.org>
57608
57609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57610
57611 2003-08-11  Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57614         (vasnprintf): Use it instead of wcslen.
57615
57616 2003-08-11  Bruno Haible  <bruno@clisp.org>
57617
57618         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57619         value to ensure that _Bool promotes to int. Use #define for _Bool when
57620         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57621
57622 2003-08-10  Karl Berry  <karl@gnu.org>
57623
57624         * lib/regex.h: update from libc (whitespace fix).
57625
57626 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57627
57628         Merge some files from coreutils.  These changes were
57629         originally made by Jim Meyering.
57630         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57631         many older Unixes require this.
57632         * lib/alloca.c (alloca): Remove cast to argument of free;
57633         no longer needed in C89.
57634         * lib/alloca_.h, regex.h: Fix white space to match
57635         what GNU indent does.
57636
57637 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57638
57639         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57640         apparently Emacs's Unicode mode got confused before my 2003-08-05
57641         checkin.
57642
57643 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57644
57645         * m4/extensions.m4: New file.
57646         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57647         Require gl_USE_SYSTEM_EXTENSIONS.
57648         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57649         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57650
57651 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57652
57653         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57654         * modules/extensions, modules/gnu-source: New files.
57655         * modules/timespec, modules/unlocked-io: Depend on extensions.
57656
57657 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57658
57659         * modules/restrict: New file.
57660         * MODULES.html.sh (func_all_modules): Add restrict.
57661         * modules/regex: Depend on restrict.
57662
57663 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57664
57665         * m4/restrict.m4: New file.
57666         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57667
57668 2003-08-07  Bruno Haible  <bruno@clisp.org>
57669
57670         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57671         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57672
57673 2003-08-07  Bruno Haible  <bruno@clisp.org>
57674
57675         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57676         makes the module 'getndelim2' compatible with the module 'getline'.
57677
57678 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57679
57680         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57681         byte with "\201" to avoid glitches when editing that source file
57682         with multi-gnome-terminal.
57683
57684 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57685
57686         * lib/bumpalloc.h: Remove.
57687
57688 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57689
57690         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57691         * modules/bumpalloc: Remove.
57692
57693 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57694
57695         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57696         GNU coding style.
57697
57698         Merge from coreutils.
57699         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57700         1. From glibc.
57701         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57702         from Karl Berry, implemented by Jim Meyering.
57703         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57704         from Dmitry V. Levin.
57705         Remove anachronistic cast of xrealloc.
57706         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57707         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57708         type. Otherwise, it wouldn't compile with at least /bin/cc on
57709         ymp-cray-unicos9.0.2.X.
57710         Combine two mostly-identical uses of alloca into one.
57711         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57712
57713 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57714
57715         [From Emacs.]
57716
57717         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57718         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57719         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57720         obsolete NLIST_NAME_UNION.
57721         [__GNU__]: Undef BSD and FSCALE.
57722         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57723
57724 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57725
57726         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57727         an enum type, so that it's guaranteed to promote to int.  See:
57728         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57729
57730 2003-08-03  Karl Berry  <karl@gnu.org>
57731
57732         * config/depcomp: update from automake.
57733
57734 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57735
57736         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57737         (strerror): Don't assume that a printable int fits in 14 bytes.
57738
57739 2003-07-31  Bruno Haible  <bruno@clisp.org>
57740
57741         * modules/getpass-gnu: New file.
57742         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57743
57744 2003-07-31  Bruno Haible  <bruno@clisp.org>
57745
57746         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57747
57748 2003-07-24  Karl Berry  <karl@gnu.org>
57749
57750         * config/missing: update from automake.
57751
57752 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57753             Bruno Haible  <bruno@clisp.org>
57754
57755         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57756         * lib/getline.c (getline, getdelim): Likewise.
57757         Remove _GNU_SOURCE define; now it's defined in config.h through
57758         m4/getline.m4.
57759
57760 2003-07-23  Karl Berry  <karl@gnu.org>
57761
57762         * config/config.sub: update from prep.
57763
57764 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57765
57766         * modules/xalloc (Depends-on): Add exitfail.
57767         * modules/xmemcoll: Likewise.
57768
57769 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57770
57771         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57772         over-parenthesization in macros.
57773
57774         Sync with coreutils.
57775
57776         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57777         required by C99.
57778
57779         Use `exit_failure' for xalloc and xmemcoll instead of their own
57780         private exit-failure variables.
57781         * lib/xalloc.h (xalloc_exit_failure): Remove.
57782         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57783         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57784         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57785         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57786         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57787
57788 2003-07-20  Jim Meyering  <jim@meyering.net>
57789
57790         * modules/closeout (Depends-on): Add exitfail.
57791         Suggestion from Bruno Haible.
57792
57793 2003-07-19  Karl Berry  <karl@gnu.org>
57794
57795         * config/config.sub: update from prep.
57796
57797 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57798
57799         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57800         Remove.
57801         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57802         to test that it can stand by itself.  Include "exitfail.h".
57803         Clients should set exit_failure instead.
57804         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57805
57806 2003-07-18  Bruno Haible  <bruno@clisp.org>
57807
57808         * modules/getndelim2: New file.
57809         * modules/getline: Share files with module getndelim2.
57810         * modules/getnline: Depend on getndelim2 instead of sharing files with
57811         it. Add getnline.c to lib_SOURCES.
57812         * MODULES.html.sh (func_all_modules): Add getndelim2.
57813
57814 2003-07-18  Bruno Haible  <bruno@clisp.org>
57815
57816         * m4/getndelim2.m4: New file.
57817         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57818         invoke gl_PREREQ_GETNDELIM2.
57819         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57820         gl_PREREQ_GETNDELIM2.
57821         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57822         gl_GETNDELIM2.
57823
57824 2003-07-18  Bruno Haible  <bruno@clisp.org>
57825
57826         * lib/getndelim2.h: New file.
57827         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57828         getndelim2.h.
57829         (getndelim2): Make non-static. Change return type to ssize_t.
57830         * lib/getline.h: Change argument names.
57831         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57832         * lib/getnline.c: Include getndelim2.h.
57833
57834 2003-07-18  Andreas Schwab  <schwab@suse.de>
57835
57836         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57837
57838 2003-07-17  Karl Berry  <karl@gnu.org>
57839
57840         * config/config.sub: update from prep.
57841
57842 2003-07-17  Bruno Haible  <bruno@clisp.org>
57843
57844         * modules/getnline: New file.
57845         * modules/getline: Add lib/getndelim2.c to source file list.
57846         * MODULES.html.sh (func_all_modules): Add getnline.
57847
57848 2003-07-17  Bruno Haible  <bruno@clisp.org>
57849
57850         * m4/getnline.m4: New file.
57851
57852 2003-07-17  Bruno Haible  <bruno@clisp.org>
57853
57854         * m4/Makefile.am.in: Remove file.
57855         * m4/Makefile.am: Remove file.
57856         * m4/Makefile.in: Remove file.
57857
57858 2003-07-17  Bruno Haible  <bruno@clisp.org>
57859
57860         * lib/getnline.h: New file.
57861         * lib/getnline.c: New file.
57862         * lib/getndelim2.c: New file, extracted from getline.c.
57863         (getndelim2): Renamed from getdelim2, with added nmax argument.
57864         * lib/getline.c: Include getndelim2.c.
57865         (getdelim2): Moved out to getndelim2.c.
57866         (getline, getdelim): Update.
57867
57868 2003-07-17  Bruno Haible  <bruno@clisp.org>
57869
57870         * lib/Makefile.am: Remove file.
57871         * lib/Makefile.in: Remove file.
57872
57873 2003-07-17  Bruno Haible  <bruno@clisp.org>
57874
57875         * configure.in: Remove file.
57876         * Makefile.in: Remove file.
57877
57878 2003-07-17  Bruno Haible  <bruno@clisp.org>
57879
57880         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57881
57882 2003-07-16  Karl Berry  <karl@gnu.org>
57883
57884         * config/srclist-update: was running fixlicense twice, which caused
57885                 texinfo.tex to be nullified for some reason.  Simplify,
57886                 $gplsrc is no longer needed as far as I can see?
57887
57888 2003-07-16  Jim Meyering  <jim@meyering.net>
57889
57890         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57891
57892 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57893
57894         * config/srclist.txt: Get the following files from gettext-runtime/intl
57895         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57896         ref-del.sin.  From Bruno Haible.
57897         * config/srclist-update (fixfile): Change grep pattern again, since the
57898         previous fix didn't work (there was another trailing $).  Use
57899         '[$]' to escape the $s.
57900
57901 2003-07-15  Karl Berry  <karl@gnu.org>
57902
57903         * lib/vasnprintf.c: update from gettext.
57904
57905 2003-07-15  Karl Berry  <karl@gnu.org>
57906
57907         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57908         gets expanded when surrounded by '$'.
57909
57910 2003-07-15  Jim Meyering  <jim@meyering.net>
57911
57912         * modules/save-cwd: Don't depend on error.  From Derek Price.
57913
57914 2003-07-15  Jim Meyering  <jim@meyering.net>
57915
57916         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57917
57918 2003-07-14  Simon Josefsson  <jas@extundo.com>
57919
57920         * modules/mempcpy: New file.
57921         * MODULES.html.sh (func_all_modules): Add mempcpy.
57922
57923 2003-07-14  Simon Josefsson  <jas@extundo.com>
57924
57925         * m4/mempcpy.m4: New file.
57926
57927 2003-07-14  Simon Josefsson  <jas@extundo.com>
57928
57929         * lib/mempcpy.h: New file.
57930         * lib/mempcpy.c: New file.
57931
57932 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57933
57934         * modules/getdate, modules/posixtm: Depend on mktime.
57935
57936 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57937
57938         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57939         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57940         unicodeio.c, unicodeio.h, unlocked-io.h:
57941         Switch from LGPL to GPL.
57942
57943 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57944
57945         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57946         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57947         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57948         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57949         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57950         updated automatically by ../config/srclist-update.  This changes
57951         their license from LPGL to GPL.
57952
57953 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57954
57955         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57956         assumed to refer to the root of the most recent stable gettext version.
57957         * config/srclistvars.sh: Add defaults for eggert.
57958         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57959         Match "This program" as well as "The program".  This is needed
57960         for gettext.
57961
57962 2003-07-14  Jim Meyering  <jim@meyering.net>
57963
57964         Don't emit diagnostics.  Let callers do that.
57965         * lib/save-cwd.c: Don't include "error.h".
57966         (save_cwd): Don't call error.  Ensure that errno is valid
57967         when returning nonzero.
57968
57969         * lib/save-cwd.h (restore_cwd): Update prototype.
57970         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57971         Simplify.  Don't call error upon failure.  Let callers do that.
57972         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57973         when auditing is enabled.  But don't bother updating the #if.
57974
57975 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57976
57977         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57978         it breaks C++ compilation.
57979         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57980
57981 2003-07-10  Simon Josefsson  <jas@extundo.com>
57982
57983         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57984
57985 2003-07-10  Jim Meyering  <jim@meyering.net>
57986
57987         * m4/clock_time.m4: Remove trailing blank.
57988         * m4/intmax_t.m4: Likewise.
57989
57990 2003-07-10  Jim Meyering  <jim@meyering.net>
57991
57992         * lib/vasnprintf.c: Remove trailing blanks.
57993         Make cpp indentation consistent.
57994
57995 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57996
57997         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57998         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57999         Switch from LGPL to GPL.
58000
58001 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58002
58003         * config/srclist.txt: Sort sublists.  Add
58004         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58005         that differ from gnulib for one reason or another; we'd like this list
58006         to be smaller but for now let's document what we have.
58007
58008 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58009
58010         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58011         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58012         and sweeter "eval x=$x".
58013         * config/srclist.txt: Get lib/argp* from glibc.
58014
58015 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58016
58017         * lib/mktime.c: Fix some boundary cases and remove need for floating
58018         point.
58019
58020         Issue a compile-time diagnostic if time_t is floating point, or if
58021         two's complement arithmetic is not in effect, or if arithmetic
58022         right shift does not propagate the sign.  These assumptions were
58023         all in the original code but they weren't checked.
58024
58025         (TIME_T_MIDPOINT, verify): New macros.
58026         (__isleap): Remove; it has integer overflow problems.
58027         (leapyear): New function, without those problems.
58028         (ydhms_tm_diff): Remove; splitting into two parts.
58029         (ydhms_diff): New function, containing the arithmetic part of
58030         the old ydhms_tm_diff function.  Issue a compile-time
58031         diagnostic if we are not using C99 integer division.
58032         Avoid casts when possible.
58033         (guess_time_tm): New function, containing the checking part of
58034         the old ydhms_tm_diff function.  Return the new value, rather than
58035         the difference between it and the old.  Accept a new argument T
58036         so that *T specifies the old value.  Check for overflow in the result.
58037
58038         (__mktime_internal): Use a time_t offset, not a long int offset.
58039         This undoes the 2003-06-04 change, which is no longer needed now
58040         that we have better overflow checking.
58041         (localtime_offset): Likewise.
58042
58043         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58044         and long are 64-bit but int is only 32-bit.
58045         (ydhms_diff): Use long int to store year1 and yday1.
58046         Issue a compile-time diagnostic if long int is not wide enough.
58047
58048         (__mktime_internal): Use long int to store adjusted year and yday.
58049         Use plain C rather than preprocessor commands, if that doesn't
58050         affect efficiency.
58051         Check for overflow (and try to repair) after each probe
58052         rather than checking only at the very end.  This avoids some bugs
58053         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58054         does not equal GMT offset at maximum time).
58055         Use integer to check for overflow rather than floating point; this
58056         is more portable to non-IEEE hosts, and is a tad faster.
58057         When we detect that we are oscillating between two values,
58058         don't check whether tm_isdst has the requested value, since
58059         we already know the answer.  When tm_isdst has the wrong value,
58060         use a different heuristic to find the right one, based on the
58061         extreme values actually observed in practice in tz2003a,
58062         rather than the (overly optimistic) "previous 3 calendar quarters".
58063
58064         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58065         "T const" to accommodate glibc style.
58066         (check_result): Use less-confusing report format.  "long" -> "long int.
58067         (main): Likewise.
58068         Don't loop if the iteration overflows time_t.
58069         Allow a negative step in the iteration.
58070
58071 2003-07-06  Karl Berry  <karl@gnu.org>
58072
58073         * config/depcomp: update from automake.
58074         * config/config.sub: update from prep.
58075
58076 2003-07-03  Karl Berry  <karl@gnu.org>
58077
58078         * config/config.guess: update from prep.
58079
58080 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58081
58082         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58083         xreadlink.c now includes it unconditionally.
58084
58085 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58086
58087         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58088         having it depend on HAVE_SYS_TYPES_H.
58089
58090 2003-07-01  Bruno Haible  <bruno@clisp.org>
58091
58092         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58093         <sys/types.h> should be sufficient.
58094         Reported by Paul Eggert.
58095
58096 2003-06-26  Karl Berry  <karl@gnu.org>
58097
58098         * config/depcomp: update from automake.
58099
58100 2003-06-26  Bruno Haible  <bruno@clisp.org>
58101
58102         * modules/human: Depend on module stdbool.
58103
58104 2003-06-25  Bruno Haible  <bruno@clisp.org>
58105
58106         * modules/readlink: New file.
58107         * modules/xreadlink: Depend on it.
58108         * MODULES.html.sh (func_all_modules): Add readlink.
58109
58110 2003-06-25  Bruno Haible  <bruno@clisp.org>
58111
58112         * m4/readlink.m4: New file.
58113
58114 2003-06-25  Bruno Haible  <bruno@clisp.org>
58115
58116         * lib/readlink.c: New file.
58117
58118 2003-06-22  Karl Berry  <karl@gnu.org>
58119
58120         * config/srclist.txt: update mkinstalldirs from automake.
58121         * config/mkinstalldirs: update.
58122
58123 2003-06-22  Bruno Haible  <bruno@clisp.org>
58124
58125         Portability to mingw32.
58126         * m4/ssize_t.m4: New file, from GNU gettext.
58127         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58128         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58129
58130 2003-06-22  Bruno Haible  <bruno@clisp.org>
58131
58132         * modules/safe-read: Add m4/ssize_t.m4.
58133         * modules/xreadlink: Add m4/ssize_t.m4.
58134
58135 2003-06-20  Bruno Haible  <bruno@clisp.org>
58136
58137         Assume C89, so PARAMS isn't needed.
58138         * lib/unicodeio.h (PARAMS): Remove.
58139         * lib/unicodeio.c: Don't use PARAMS.
58140
58141 2003-06-18  Karl Berry  <karl@gnu.org>
58142
58143         * config/config.{guess,sub}: update from prep.
58144
58145 2003-06-18  Jim Meyering  <jim@meyering.net>
58146
58147         Merge changes from coreutils.
58148         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58149         Remove explicit declarations of xmalloc and realloc.
58150         Include xalloc.h.
58151         (read_utmp): Remove anachronistic cast of xmalloc.
58152
58153 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58154
58155         Assume C89, so PARAMS isn't needed.
58156         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58157         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58158         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58159         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58160         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58161         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58162         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58163         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58164         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58165         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58166         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58167         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58168         no longer needed. Anyway, config.h should always be included before any
58169         other file.
58170
58171 2003-06-11  Simon Josefsson  <jas@extundo.com>
58172
58173         * modules/sysexits: New file.
58174         * MODULES.html.sh (func_all_modules): Add sysexits.
58175
58176 2003-06-11  Simon Josefsson  <jas@extundo.com>
58177
58178         * lib/sysexit_.h: New file.
58179
58180 2003-06-11  Derek Price  <derek@ximbiot.com>
58181
58182         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58183         necessary.
58184
58185 2003-06-11  Bruno Haible  <bruno@clisp.org>
58186
58187         * m4/sysexits.m4: New file.
58188
58189 2003-06-10  Simon Josefsson  <jas@extundo.com>
58190
58191         * lib/argp.h: New file, from glibc.
58192         * lib/argp-ba.c: New file, from glibc.
58193         * lib/argp-eexst.c: New file, from glibc.
58194         * lib/argp-fmtstream.c: New file, from glibc.
58195         * lib/argp-fmtstream.h: New file, from glibc.
58196         * lib/argp-fs-xinl.c: New file, from glibc.
58197         * lib/argp-help.c: New file, from glibc.
58198         * lib/argp-namefrob.h: New file, from glibc.
58199         * lib/argp-parse.c: New file, from glibc.
58200         * lib/argp-pv.c: New file, from glibc.
58201         * lib/argp-pvh.c: New file, from glibc.
58202         * lib/argp-xinl.c: New file, from glibc.
58203
58204 2003-06-10  Simon Josefsson  <jas@extundo.com>
58205
58206         * modules/strchrnul: New file.
58207
58208 2003-06-10  Simon Josefsson  <jas@extundo.com>
58209
58210         * modules/argp: New file.
58211
58212 2003-06-10  Simon Josefsson  <jas@extundo.com>
58213
58214         * m4/strchrnul.m4: New file.
58215
58216 2003-06-10  Simon Josefsson  <jas@extundo.com>
58217
58218         * lib/strchrnul.h: New file.
58219         * lib/strchrnul.c: New file.
58220
58221 2003-06-10  Bruno Haible  <bruno@clisp.org>
58222
58223         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58224
58225 2003-06-07  Karl Berry  <karl@gnu.org>
58226
58227         * config/config.{guess,sub}: update from prep.
58228
58229 2003-06-07  Jim Meyering  <jim@meyering.net>
58230
58231         * modules/strtod: Use $(...) notation, not @...@ for
58232         AC_REPLACE'd variables.
58233         * modules/localcharset: Likewise.
58234
58235 2003-06-07  Jim Meyering  <jim@meyering.net>
58236
58237         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58238         in place of my name in the copyright comment.
58239         Remove definition and uses of __P.
58240
58241         From coreutils.
58242         * lib/stat.c: Don't declare xmalloc explicitly.
58243         Instead, include "xalloc.h".
58244         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58245         xrealloc, and xcalloc return values.
58246         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58247         Improve comment.
58248         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58249
58250 2003-06-07  Bruno Haible  <bruno@clisp.org>
58251
58252         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58253         avoid AC_CONFIG_LINKS.
58254         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58255         fnmatch.h, to avoid AC_CONFIG_LINKS.
58256         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58257
58258 2003-06-07  Bruno Haible  <bruno@clisp.org>
58259
58260         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58261         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58262         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58263         directory.
58264         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58265         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58266         directory.
58267
58268 2003-06-06  Jim Meyering  <jim@meyering.net>
58269
58270         Merge from coreutils.
58271         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58272         Consolidate declarations and initializations of *_base* locals.
58273
58274         Merge from coreutils.
58275         This avoids a core dump on systems without GNU putenv,
58276         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58277         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58278         (unsetenv): New static function, from GNU libc.
58279         (rpl_putenv): Use it.
58280
58281         * lib/modechange.c: Remove trailing blanks.
58282
58283         Merge from coreutils.
58284         * lib/fsusage.c: Remove declaration of statfs.
58285         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58286
58287         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58288
58289 2003-06-06  Jim Meyering  <jim@meyering.net>
58290
58291         * lib/stdbool_.h: Renamed from stdbool.h.in.
58292
58293 2003-06-06  Jim Meyering  <jim@meyering.net>
58294             Bruno Haible  <bruno@clisp.org>
58295
58296         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58297         Adjust Makefile.am snippet not to redirect directly to target.
58298         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58299
58300 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58301
58302         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58303         mismatch, look in future quarters as well as past.  This fixes a
58304         bug when processing fall-backwards gaps immediately after a long
58305         period of daylight-saving time.
58306
58307         * lib/mktime.c: Assume freestanding C89 or better.
58308         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58309         (__P): Remove; not used.
58310         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58311         (mktime, not_equal_tm, print_tm, check_result,
58312         main): Use prototypes.  Use const * where appropriate.
58313         (main): Fix typo in testing code that uncovered by above changes.
58314         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58315
58316 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58317
58318         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58319         locale.h, localeconv.  This merges changes from coreutils.
58320
58321         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58322         It can be removed after the next Autoconf is released.
58323         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58324         needed.
58325
58326 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58327
58328         * lib/mktime.c: Fix Debian bug 177940
58329         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58330         (localtime_offset): Now long int, not time_t, because we want it
58331         to be guaranteed to be signed.  All uses changed.
58332         (__mktime_internal): If overflow would occur when adding offset,
58333         don't add it.
58334
58335         Merge 'human' changes from coreutils.  Rewrite to support
58336         locale-specific notations like thousands separators.
58337         * lib/human.c: Simplify authorship notice.
58338         Include human.h immediately after config.h.
58339         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58340         <limits.h>: Do not include, since human.h does.
58341         (SIZE_MAX, UINTMAX_MAX): New macros.
58342         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58343         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58344         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58345         (power_letter): Renamed from suffixes.
58346         (generate_suffix_backwards): Remove.
58347         (adjust_value): Now takes int style (because of human.h changes)
58348         and long double value (for greater precision on some platforms).
58349         (group_number): New function.
58350         (human_readable): Use it.  Use integer options, not enum.
58351         Put the options before the sizes in the arg list.
58352         Support all the new options.
58353         The old human_readable function has been removed;
58354         use inttostr.h instead.
58355         (human_readable, default_block_size, humblock):
58356         Use uintmax_t, not int, for block sizes.
58357         (human_readable_inexact, block_size_types): Remove.
58358         (block_size_opts): New constant.
58359         (human_options): Renamed from human_block_size, with new signature
58360         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58361         * lib/human.h: Add copyright and authorship notice.
58362         Include <limits.h> and <stdbool.h> unconditionally.
58363         (PARAMS): Remove.  All uses removed.
58364         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58365         (enum human_inexact_style): Remove tag; now a nameless enum.
58366         (human_floor, human_ceiling, human_round_to_even): Now have
58367         values 2, 0, 1 rather than -1, 1, 0.
58368         (human_group_digits, human_suppress_point_zero, human_autoscale,
58369         human_base_1024, human_SI, human_B): New constants.
58370         (human_readable_inexact, human_block_size): Remove.
58371         (human_readable): Size args are now uintmax_t, not int.
58372         (human_options): New decl.
58373
58374         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58375         unnecessary now that we assume C89 or better.  This change
58376         imported from coreutils.
58377
58378         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58379         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58380         in the 2003-05-30 sync from glibc.
58381
58382         .h files should stand alone, but we shouldn't include <sys/types.h>
58383         if we can get away with just <stddef.h>.
58384
58385         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58386         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58387         rather than <sys/types.h>, as we merely need size_t.
58388         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58389         to get size_t.
58390         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58391         Include <stdio.h>, to get FILE.
58392         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58393         memcasecmp.h has included <stddef.h> and all we need is size_t.
58394         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58395         our interface, instead of including <sys/types.h>
58396
58397 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58398
58399         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58400         now, as glibc mktime is buggy on non-glibc systems.
58401
58402 2003-06-03  Karl Berry  <karl@gnu.org>
58403
58404         * config/config.sub: update from prep.
58405
58406 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58407
58408         [from coreutils]
58409         Fix some minor time-related bugs with POSIX time arguments.
58410         Some valid time stamps were being rejected (notably -1, and
58411         time stamps before 1900 on 64-bit hosts).  And some invalid
58412         time stamps were being accepted, e.g. September 31.
58413
58414         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58415         that we can return (time_t) -1 successfully.
58416         * lib/posixtm.c: Likewise.
58417         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58418         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58419         (t): Remove static var.
58420         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58421         of static var.  All uses changed.
58422         (year): Do not reject years before 1900; they can occur with
58423         64-bit time_t.
58424         (posix_time_parse): Do not check for out-of-range components;
58425         that is now the caller's responsibility, since our checks were
58426         only approximations.
58427         (posixtime): Use mktime to check for out-of-range components,
58428         since it knows them exactly.
58429         If mktime returns (time_t) -1, check whether an error actually occurred
58430         by invoking localtime on -1.
58431         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58432         posixtime failures better.
58433         Improve the test data (in comments only).
58434
58435 2003-06-02  Karl Berry  <karl@gnu.org>
58436
58437         * config/mkinstalldirs (version): new variable.
58438         (--version): new option.
58439         (usage): improve message.
58440
58441 2003-05-30  Karl Berry  <karl@gnu.org>
58442
58443         * lib/mktime.c: update from libc.
58444
58445 2003-05-30  Bruno Haible  <bruno@clisp.org>
58446
58447         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58448         * config/config.rpath: Upgrade to gettext-0.12.1.
58449
58450 2003-05-30  Bruno Haible  <bruno@clisp.org>
58451
58452         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58453         * m4/nls.m4: New file, from gettext-0.12.1.
58454         * m4/po.m4: New file, from gettext-0.12.1.
58455         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58456
58457 2003-05-30  Bruno Haible  <bruno@clisp.org>
58458
58459         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58460         * lib/localcharset.h: Likewise.
58461         * lib/localcharset.c: Likewise.
58462
58463 2003-05-29  Karl Berry  <karl@gnu.org>
58464
58465         * config/config.rpath: update from gettext.
58466
58467 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58468
58469         Assume the headers required for C89 freestanding compilers.
58470         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58471         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58472         * m4/human.m4 (gl_HUMAN): Likewise.
58473         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58474         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58475         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58476         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58477         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58478         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58479
58480 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58481
58482         Assume the headers required for C89 freestanding compilers.
58483         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58484         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58485         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58486         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58487         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58488         define, since <limits.h> is guaranteed to do that.
58489         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58490         * lib/exclude.c: Include <stdbool.h> unconditionally.
58491         * lib/tempname.c: Include <stddef.h> unconditionally.
58492         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58493         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58494         <stddef.h> does that.
58495         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58496         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58497         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58498         needed.
58499         * lib/xstrtol.c: Likewise.
58500         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58501         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58502
58503         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58504         warnings on some platforms.
58505
58506         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58507         arbitrarily.
58508
58509 2003-05-26  Jim Meyering  <jim@meyering.net>
58510
58511         Merge in a change from coreutils:
58512         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58513         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58514         that condition, rather than `-1' which is slightly misleading.
58515         Change the name of the cache variable to have the gl_ prefix.
58516         Prompted by a patch from Richard Dawe for DJGPP.
58517
58518 2003-05-24  Karl Berry  <karl@gnu.org>
58519
58520         * config/config.guess: update from prep.
58521
58522 2003-05-22  Karl Berry  <karl@gnu.org>
58523
58524         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58525
58526 2003-05-20  Karl Berry  <karl@gnu.org>
58527
58528         * config/config.guess: update from prep.
58529
58530 2003-05-18  Karl Berry  <karl@gnu.org>
58531
58532         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58533         might actually be set by the user.
58534
58535         * config/depcomp, install-sh, mdate-sh: update from automake.
58536
58537 2003-05-17  Bruno Haible  <bruno@clisp.org>
58538
58539         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58540         invalid expansion for AC_EGREP_CPP.
58541         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58542         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58543         Suggested by Akim Demaille <akim@epita.fr> in
58544         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58545
58546 2003-05-12  Jim Meyering  <jim@meyering.net>
58547
58548         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58549         the space-padded-by-default conversion specifiers, %e, %k, %l.
58550
58551 2003-05-12  Bruno Haible  <bruno@clisp.org>
58552
58553         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58554         the string is longer than 4 KB.
58555
58556 2003-05-11  Karl Berry  <karl@gnu.org>
58557
58558         * config/config.{guess,sub}: update from prep.
58559
58560 2003-05-09  Bruno Haible  <bruno@clisp.org>
58561
58562         * modules/error: Add m4/strerror_r.m4 to file list.
58563
58564 2003-05-03  Bruno Haible  <bruno@clisp.org>
58565
58566         Upgrade to Unicode-4.0.
58567         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58568         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58569         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58570         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58571         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58572         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58573         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58574         Change width of U+E0100..U+E01EF from 1 to 0.
58575
58576 2003-04-25  Jim Meyering  <jim@meyering.net>
58577
58578         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58579         of type size_t, not int.
58580
58581 2003-04-25  Bruno Haible  <bruno@clisp.org>
58582
58583         * lib/copy-file.c: Include <stddef.h>, for size_t.
58584
58585 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58586
58587         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58588         code which expansion is under static control.  Patch imported from
58589         Akim Demaille's patch to Bison; see
58590         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58591
58592 2003-04-14  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58595
58596 2003-04-11  Jim Meyering  <jim@meyering.net>
58597
58598         Merge changes from Coreutils.
58599
58600         2003-03-22  Jim Meyering  <jim@meyering.net>
58601
58602         * lib/strftime.c (widen): Cast alloca return value to proper type.
58603
58604         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58605
58606         From GNU libc.
58607         * lib/strftime.c (my_strftime): Handle very large width
58608         specifications for numeric values correctly.  Improve checks for
58609         overflow.
58610
58611         2003-01-19  Jim Meyering  <jim@meyering.net>
58612
58613         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58614         definitions.
58615         (nl_get_alt_digit) [! defined my_strftime]: Define.
58616         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58617         _nl_get_alt_digit and _nl_get_walt_digit.
58618
58619         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58620         libc. These changes have no effect outside of _LIBC.
58621
58622 2003-04-10  Bruno Haible  <bruno@clisp.org>
58623
58624         * modules/findprog: New file.
58625         * MODULES.html.sh (func_all_modules): Add it.
58626
58627 2003-04-10  Bruno Haible  <bruno@clisp.org>
58628
58629         * m4/findprog.m4: New file.
58630         * m4/eaccess.m4: New file.
58631
58632 2003-04-10  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/findprog.h: New file, from GNU gettext.
58635         * lib/findprog.c: New file, from GNU gettext.
58636
58637 2003-04-05  Jim Meyering  <jim@meyering.net>
58638
58639         Merge changes from Coreutils.
58640
58641         * lib/exclude.h (PARAMS): Remove definition and uses.
58642         * lib/exclude.c: Remove uses of `PARAMS'.
58643
58644         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58645         Add test-cases for DOS filenames. Declare program_name.
58646         (main): Set up program_name.  Patch by Rich Dawe.
58647
58648         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58649         error from mntctl.
58650         Use mntctl's return value to drive the entry-processing loop, since
58651         we can't rely on the value of the vmt_length member in the last
58652         entry.  On some systems doing so could result in exhausting
58653         virtual memory.  Based in part on a patch from Mike Jetzer.
58654
58655 2003-04-04  Bruno Haible  <bruno@clisp.org>
58656
58657         * modules/linebreak: New file.
58658         * MODULES.html.sh (func_all_modules): Add it.
58659
58660 2003-04-04  Bruno Haible  <bruno@clisp.org>
58661
58662         * m4/linebreak.m4: New file.
58663
58664 2003-04-04  Bruno Haible  <bruno@clisp.org>
58665
58666         * lib/linebreak.h: New file, from GNU gettext.
58667         * lib/linebreak.c: New file, from GNU gettext with slight
58668         modifications.
58669         * lib/lbrkprop.h: New file, from GNU gettext.
58670
58671 2003-04-03  Bruno Haible  <bruno@clisp.org>
58672
58673         * modules/utf8-ucs4: New file.
58674         * modules/utf16-ucs4: New file.
58675         * modules/ucs4-utf8: New file.
58676         * modules/ucs4-utf16: New file.
58677         * MODULES.html.sh (func_all_modules): Add them.
58678
58679 2003-04-03  Bruno Haible  <bruno@clisp.org>
58680
58681         * m4/utf-ucs4.m4: New file.
58682         * m4/ucs4-utf.m4: New file.
58683
58684 2003-04-03  Bruno Haible  <bruno@clisp.org>
58685
58686         * lib/utf8-ucs4.h: New file, from GNU gettext.
58687         * lib/utf16-ucs4.h: New file, from GNU gettext.
58688         * lib/ucs4-utf8.h: New file, from GNU gettext.
58689         * lib/ucs4-utf16.h: New file, from GNU gettext.
58690
58691 2003-04-02  Bruno Haible  <bruno@clisp.org>
58692
58693         * modules/binary-io: New file.
58694         * MODULES.html.sh (func_all_modules): Add it.
58695
58696 2003-04-02  Bruno Haible  <bruno@clisp.org>
58697
58698         * lib/binary-io.h: New file, from GNU gettext.
58699
58700 2003-04-01  Bruno Haible  <bruno@clisp.org>
58701
58702         * modules/pathname: New file.
58703         * MODULES.html.sh (func_all_modules): Add it.
58704
58705 2003-04-01  Bruno Haible  <bruno@clisp.org>
58706
58707         * lib/pathname.h: New file, from GNU gettext.
58708         * lib/concatpath.c: New file, from GNU gettext.
58709
58710 2003-03-30  Bruno Haible  <bruno@clisp.org>
58711
58712         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58713
58714 2003-03-30  Bruno Haible  <bruno@clisp.org>
58715
58716         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58717         function chown() doesn't exist.
58718
58719 2003-03-28  Bruno Haible  <bruno@clisp.org>
58720
58721         * modules/copy-file: New file.
58722         * MODULES.html.sh (func_all_modules): Add it.
58723
58724 2003-03-28  Bruno Haible  <bruno@clisp.org>
58725
58726         * m4/copy-file.m4: New file.
58727
58728 2003-03-28  Bruno Haible  <bruno@clisp.org>
58729
58730         * lib/copy-file.h: New file, from GNU gettext.
58731         * lib/copy-file.c: New file, from GNU gettext.
58732
58733 2003-03-18  Jim Meyering  <jim@meyering.net>
58734
58735         * lib/quote.c (quote_n): Fix typo in comment.
58736
58737 2003-03-18  Bruno Haible  <bruno@clisp.org>
58738
58739         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58740         checking.
58741         * m4/onceonly_2_57.m4: Likewise.
58742
58743 2003-03-17  Bruno Haible  <bruno@clisp.org>
58744
58745         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58746         (m4_quote): Remove macro.
58747         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58748
58749 2003-03-14  Jim Meyering  <jim@meyering.net>
58750
58751         Merge changes from Coreutils.
58752         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58753         to be const, in order to avoid warnings.
58754         (obstack_room): Likewise.
58755         (obstack_empty_p): Likewise.
58756
58757 2003-03-14  Bruno Haible  <bruno@clisp.org>
58758
58759         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58760         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58761
58762 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58763
58764         Merge changes from Bison.
58765         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58766         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58767         when compiling Bison 1.875's `bitset bset = obstack_alloc
58768         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58769         * lib/hash.c: Include <stdbool.h> unconditionally.
58770
58771 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58772
58773         * m4/onceonly.m4 (m4_quote): New macro.
58774         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58775         Quote AC_FOREACH variable-expansions properly.
58776
58777 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58778
58779         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58780
58781 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58782
58783         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58784         Reported by Bruce Becker; see:
58785         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58786
58787 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58788             Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58791         Reported by John Hughes, see
58792         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58793
58794 2003-02-20  Bruno Haible  <bruno@clisp.org>
58795
58796         * MODULES.html.sh (func_all_modules): Add poll.
58797
58798 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58799
58800         * modules/poll: New file.
58801
58802 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58803
58804         * lib/poll_.h: New file.
58805         * lib/poll.c: New file.
58806
58807 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58808
58809         * m4/poll.m4: New file.
58810
58811 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58812
58813         * modules/mathl: New file.
58814
58815 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58816
58817         * lib/mathl.h: New file.
58818         * lib/acosl.c: New file.
58819         * lib/asinl.c: New file.
58820         * lib/atanl.c: New file.
58821         * lib/ceill.c: New file.
58822         * lib/cosl.c: New file.
58823         * lib/expl.c: New file.
58824         * lib/floorl.c: New file.
58825         * lib/frexpl.c: New file.
58826         * lib/ldexpl.c: New file.
58827         * lib/logl.c: New file.
58828         * lib/sincosl.c: New file.
58829         * lib/sinl.c: New file.
58830         * lib/sqrtl.c: New file.
58831         * lib/tanl.c: New file.
58832         * lib/trigl.c: New file.
58833         * lib/trigl.h: New file.
58834
58835 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58836
58837         * m4/mathl.m4: New file.
58838
58839 2003-02-18  Bruno Haible  <bruno@clisp.org>
58840
58841         * MODULES.html.sh (func_all_modules): Add mathl.
58842
58843 2003-02-17  Bruno Haible  <bruno@clisp.org>
58844
58845         * modules/mkdtemp: New module.
58846         * MODULES.html.sh (func_all_modules): Add it.
58847
58848 2003-02-17  Bruno Haible  <bruno@clisp.org>
58849
58850         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58851
58852 2003-02-17  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/mkdtemp.h: New file, from GNU gettext.
58855         * lib/mkdtemp.c: New file, from GNU gettext.
58856
58857 2003-02-02  Jim Meyering  <jim@meyering.net>
58858
58859         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58860         e.g. glibc-2.2.93.
58861
58862 2003-01-31  Bruno Haible  <bruno@clisp.org>
58863
58864         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58865         'rpl_rename'.
58866         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58867         'rpl_strnlen'.
58868         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58869         'rpl_strtod'.
58870         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58871         'rpl_utime'.
58872
58873 2003-01-31  Bruno Haible  <bruno@clisp.org>
58874
58875         * lib/rename.c: #undef rename before defining rpl_rename.
58876         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58877
58878 2003-01-30  Bruno Haible  <bruno@clisp.org>
58879
58880         * modules/vasnprintf, modules/vasprintf: New modules.
58881         * MODULES.html.sh (func_all_modules): Add them.
58882
58883 2003-01-30  Bruno Haible  <bruno@clisp.org>
58884
58885         * m4/signed.m4: New file, from GNU gettext.
58886         * m4/longdouble.m4: New file, from GNU gettext.
58887         * m4/wchar_t.m4: New file, from GNU gettext.
58888         * m4/wint_t.m4: New file, from GNU gettext.
58889         * m4/vasnprintf.m4: New file.
58890         * m4/vasprintf.m4: New file.
58891
58892 2003-01-30  Bruno Haible  <bruno@clisp.org>
58893
58894         * lib/printf-args.h: New file, from GNU gettext.
58895         * lib/printf-args.c: New file, from GNU gettext.
58896         * lib/printf-parse.h: New file, from GNU gettext.
58897         * lib/printf-parse.c: New file, from GNU gettext.
58898         * lib/vasnprintf.h: New file, from GNU gettext.
58899         * lib/vasnprintf.c: New file, from GNU gettext.
58900         * lib/asnprintf.c: New file, from GNU gettext.
58901         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58902         * lib/vasprintf.c: New file, from GNU gettext.
58903         * lib/asprintf.c: New file, from GNU gettext.
58904
58905 2003-01-29  Bruno Haible  <bruno@clisp.org>
58906
58907         * modules/stpncpy: New module.
58908         * MODULES.html.sh (func_all_modules): Add it.
58909
58910 2003-01-29  Bruno Haible  <bruno@clisp.org>
58911
58912         * m4/stpncpy.m4: New file.
58913
58914 2003-01-29  Bruno Haible  <bruno@clisp.org>
58915
58916         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58917         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58918
58919 2003-01-28  Bruno Haible  <bruno@clisp.org>
58920
58921         * modules/c-ctype: New module.
58922         * MODULES.html.sh (func_all_modules): Add it.
58923
58924 2003-01-28  Bruno Haible  <bruno@clisp.org>
58925
58926         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58927         Paul Eggert.
58928         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58929         Paul Eggert.
58930
58931 2003-01-27  Bruno Haible  <bruno@clisp.org>
58932
58933         * modules/xsetenv: New module.
58934         * MODULES.html.sh (func_all_modules): Add it.
58935
58936 2003-01-27  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/xsetenv.h: New file, from GNU gettext.
58939         * lib/xsetenv.c: New file, from GNU gettext.
58940
58941 2003-01-23  Jim Meyering  <jim@meyering.net>
58942
58943         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58944         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58945
58946 2003-01-23  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/minmax: New module.
58949         * MODULES.html.sh (func_all_modules): Add it.
58950
58951 2003-01-23  Bruno Haible  <bruno@clisp.org>
58952
58953         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58954         Eggert.
58955
58956 2003-01-22  Bruno Haible  <bruno@clisp.org>
58957
58958         * modules/exit: New module.
58959         * MODULES.html.sh (func_all_modules): Add it.
58960
58961 2003-01-22  Bruno Haible  <bruno@clisp.org>
58962
58963         * lib/exit.h: New file, from GNU gettext.
58964
58965 2003-01-19  Bruno Haible  <bruno@clisp.org>
58966
58967         * gnulib-tool: Recognize option --extract-maintainer.
58968         (func_get_maintainer): New function.
58969         * modules/*: Add Maintainer entry.
58970
58971 2003-01-16  Jim Meyering  <jim@meyering.net>
58972
58973         * m4/regex.m4: The `regex' struct is both input and output.
58974         Initialize it before each use.  Patch by Tim Waugh.
58975
58976 2003-01-16  Bruno Haible  <bruno@clisp.org>
58977
58978         * MODULES.html.sh: Add a table of contents. Add the module name as
58979         leftmost column. Add hyperlinks.
58980
58981 2003-01-15  Bruno Haible  <bruno@clisp.org>
58982
58983         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58984
58985 2003-01-15  Bruno Haible  <bruno@clisp.org>
58986
58987         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58988         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58989         suffix.
58990
58991 2003-01-15  Bruno Haible  <bruno@clisp.org>
58992
58993         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58994
58995 2003-01-15  Bruno Haible  <bruno@clisp.org>
58996
58997         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58998         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58999
59000 2003-01-14  Jim Meyering  <jim@meyering.net>
59001
59002         * lib/same.c (same_name): Tweak a comment.
59003
59004 2003-01-14  Bruno Haible  <bruno@clisp.org>
59005
59006         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59007         when a string comparison is sufficient.
59008
59009 2003-01-14  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59012         'unsigned int'.
59013
59014 2003-01-14  Bruno Haible  <bruno@clisp.org>
59015
59016         * lib/hash-pjw.c: Add comment about low quality of this function.
59017
59018 2003-01-13  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/stpcpy: Distribute lib/stpcpy.h.
59021         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59022
59023 2003-01-13  Bruno Haible  <bruno@clisp.org>
59024
59025         * modules/*: Add a description.
59026         * modules/strpbrk: Fix Makefile.am snippet.
59027         * modules/strtoimax: Fix dependencies.
59028         * modules/strtoumax: Likewise.
59029
59030 2003-01-13  Bruno Haible  <bruno@clisp.org>
59031
59032         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59033         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59034         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59035
59036 2003-01-13  Bruno Haible  <bruno@clisp.org>
59037
59038         * gnulib-tool (func_create_testdir): Store config/* files in the main
59039         directory.
59040         * config.rpath: Move to ...
59041         * config/config.rpath: ... here.
59042         * modules/gettext: Contains config/config.rpath, not config.rpath.
59043         * modules/iconv: Likewise.
59044
59045 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59046
59047         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59048         to avoid collisions with libcurses and libreadline.
59049
59050         * m4/getstr.m4: Remove.
59051         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59052
59053 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59054
59055         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59056         to avoid collisions with libcurses and libreadline.
59057
59058         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59059         * lib/getstr.h, getstr.c: Remove.
59060         * lib/getline.c: Include "getline.h", to check interface.
59061         Move body of old getstr.c here: this defines MIN_CHUNK and
59062         declares getdelim2, which is renamed from getstr.
59063         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59064
59065         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59066         All uses changed.
59067         * lib/linebuffer.h: Likewise.
59068         (readline): Remove backward-compatibility macro.
59069
59070 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59071
59072         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59073         to avoid collisions with libcurses and libreadline.
59074         * getstr: Remove.
59075         * MODULES.html.sh: Remove getstr.
59076         * modules/getline: Depend on unlocked-io, not getstr.
59077
59078 2003-01-12  Jim Meyering  <jim@meyering.net>
59079
59080         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59081
59082 2003-01-10  Bruno Haible  <bruno@clisp.org>
59083
59084         * modules/alloca: Change Makefile.am requirements. Simplify Include
59085         requirements. Add lib/alloca_.h to file list.
59086
59087 2003-01-10  Bruno Haible  <bruno@clisp.org>
59088
59089         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59090
59091 2003-01-10  Bruno Haible  <bruno@clisp.org>
59092
59093         * lib/alloca_.h: New file.
59094         * lib/getdate.y: Unconditionally include alloca.h.
59095         * lib/makepath.c: Likewise.
59096         * lib/setenv.c: Likewise.
59097         * lib/userspec.c: Likewise.
59098
59099 2003-01-09  Karl Berry  <karl@gnu.org>
59100
59101         * MODULES.html.sh: include `dirname $0` in PATH, to find
59102         gnulib-tool.
59103
59104 2003-01-09  Bruno Haible  <bruno@clisp.org>
59105
59106         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59107         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59108
59109 2003-01-09  Bruno Haible  <bruno@clisp.org>
59110
59111         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59112
59113 2003-01-09  Bruno Haible  <bruno@clisp.org>
59114
59115         * lib/stdbool.h.in: New file.
59116
59117 2003-01-09  Bruno Haible  <bruno@clisp.org>
59118
59119         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59120         * MODULES.html.sh: Likewise.
59121
59122 2003-01-08  Jim Meyering  <jim@meyering.net>
59123
59124         * lib/full-write.c: Undefine and define-away `const' after inclusion
59125         of errno.h, not before.  Suggestion from Bruno Haible.
59126
59127 2003-01-08  Bruno Haible  <bruno@clisp.org>
59128
59129         * modules/full-read: Depend on full-write.
59130
59131 2003-01-08  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/safe-read.c: Include specification header first, to ensure its
59134         selfcontainedness.
59135         * lib/full-write.c: Likewise.
59136
59137 2003-01-07  Jim Meyering  <jim@meyering.net>
59138
59139         * lib/full-write.c: Rework so that it may serve to define full_read,
59140         too.
59141         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59142
59143 2003-01-07  Bruno Haible  <bruno@clisp.org>
59144
59145         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59146         <inttypes.h>.
59147         * lib/xstrtol.h: Likewise.
59148         * lib/xstrtoimax.c: Likewise.
59149         * lib/xstrtoumax.c: Likewise.
59150         * lib/human.h: Likewise.
59151
59152         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59153         on systems that have <inttypes.h> but not <stdint.h>.
59154
59155 2003-01-07  Bruno Haible  <bruno@clisp.org>
59156
59157         * MODULES.html.sh: Add copyright notice.
59158         (missed_files): Omit CVS directory entries.
59159         (func_module): Make it work with sed-3.02.
59160         * MODULES.txt: Remove file.
59161
59162 2003-01-06  Jim Meyering  <jim@meyering.net>
59163
59164         * lib/version-etc.c: Update year in translatable copyright string.
59165
59166 2003-01-03  Karl Berry  <karl@gnu.org>
59167
59168         * config/config.{guess,sub}: update from prep.
59169
59170 2003-01-02  Karl Berry  <karl@gnu.org>
59171
59172         * doc/COPYING.DOC: belatedly updated to 1.2.
59173
59174 2003-01-01  Karl Berry  <karl@gnu.org>
59175
59176         * gnulib-tool (func_verify_module): report module name $module in
59177         error message, not $1.
59178         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59179         be created, only if it doesn't exist.
59180         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59181
59182 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59183
59184         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59185
59186 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59187
59188         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59189         memcmp if strcoll doesn't work.
59190
59191 2002-12-31  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59194         nonempty.
59195
59196 2002-12-31  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/memcoll.c (STRCOLL): New macro.
59199         (memcoll): Use it.
59200
59201 2002-12-31  Bruno Haible  <bruno@clisp.org>
59202
59203         * lib/localcharset.h: New file.
59204         * lib/localcharset.c: Include it.
59205         * lib/unicodeio.c: Likewise.
59206
59207 2002-12-31  Bruno Haible  <bruno@clisp.org>
59208
59209         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59210         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59211
59212 2002-12-31  Bruno Haible  <bruno@clisp.org>
59213
59214         * lib/getline.h: Include <stddef.h>, for size_t.
59215
59216         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59217         * lib/unicodeio.c: Don't include <stddef.h>.
59218
59219 2002-12-31  Bruno Haible  <bruno@clisp.org>
59220
59221         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59222         HAVE_TM_ZONE.
59223
59224 2002-12-24  Karl Berry  <karl@gnu.org>
59225
59226         * config/config.guess: update from prep.
59227
59228 2002-12-24  Bruno Haible  <bruno@clisp.org>
59229
59230         General infrasructure.
59231         * m4/README: Rewritten.
59232         * m4/onceonly.m4: New file.
59233         * m4/onceonly_2_57.m4: New file.
59234
59235         Module atexit.
59236         * m4/atexit.m4: New file.
59237
59238         Module strtod.
59239         * m4/strtod.m4: New file.
59240
59241         Module strtol.
59242         * m4/strtol.m4: New file.
59243
59244         Module strtoul.
59245         * m4/strtoul.m4: New file.
59246
59247         Module memchr.
59248         * m4/memchr.m4: New file.
59249
59250         Module memcmp.
59251         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59252         (jm_FUNC_MEMCMP): Invoke it.
59253
59254         Module memcpy.
59255         * m4/memcpy.m4: New file.
59256
59257         Module memmove.
59258         * m4/memmove.m4: New file.
59259
59260         Module memset.
59261         * m4/memset.m4: New file.
59262
59263         Module strcspn.
59264         * m4/strcspn.m4: New file.
59265
59266         Module strpbrk.
59267         * m4/strpbrk.m4: New file.
59268
59269         Module strstr.
59270         * m4/strstr.m4: New file.
59271
59272         Module strerror.
59273         * m4/strerror.m4: New file.
59274
59275         Module mktime.
59276         * m4/mktime.m4: Renamed from jm-mktime.m4.
59277         (gl_PREREQ_MKTIME): New macro.
59278         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59279
59280         Module malloc.
59281         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59282         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59283         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59284
59285         Module realloc.
59286         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59287         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59288         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59289
59290         Module strftime.
59291         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59292         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59293         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59294         gl_TM_GMTOFF.
59295         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59296
59297         Module xalloc.
59298         * m4/xalloc.m4: New file.
59299
59300         Module alloca.
59301         * m4/alloca.m4: New file.
59302
59303         Module putenv.
59304         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59305         (jm_FUNC_PUTENV): Invoke it.
59306
59307         Module setenv.
59308         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59309         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59310         when invoked twice.
59311         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59312         gt_FUNC_SETENV.
59313
59314         Module memrchr.
59315         * m4/memrchr.m4: New file.
59316
59317         Module stpcpy.
59318         * m4/stpcpy.m4: New file.
59319
59320         Module strcase.
59321         * m4/strcase.m4: New file.
59322
59323         Module strdup.
59324         * m4/strdup.m4: New file.
59325
59326         Module strnlen.
59327         * m4/strnlen.m4: New file.
59328
59329         Module strndup.
59330         * m4/strndup.m4: New file.
59331
59332         Module xstrtod.
59333         * m4/xstrtod.m4: New file.
59334
59335         Module xstrtol.
59336         * m4/xstrtol.m4: New file.
59337
59338         Module getdate.
59339         * m4/getdate.m4: New file.
59340
59341         Module unlocked-io.
59342         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59343         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59344         * m4/jm-glibc-io.m4n: Remove file.
59345
59346         Module long-options.
59347         * m4/long-options.m4: New file.
59348
59349         Module md5.
59350         * m4/md5.m4: New file.
59351
59352         Module sha.
59353         * m4/sha.m4: New file.
59354
59355         Module getstr.
59356         * m4/getstr.m4: New file.
59357
59358         Module getline.
59359         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59360         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59361         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59362         simply getline. Infoke gl_PREREQ_GETLINE.
59363
59364         Module obstack.
59365         * m4/obstack.m4: New file.
59366
59367         Module hash.
59368         * m4/hash.m4: New file.
59369
59370         Module readtokens.
59371         * m4/readtokens.m4: New file.
59372
59373         Module strverscmp.
59374         * m4/strverscmp.m4: New file.
59375
59376         Module stdbool.
59377         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59378         OSF/1.
59379
59380         Module strtoll.
59381         * m4/strtoll.m4: New file.
59382
59383         Module strtoull.
59384         * m4/strtoull.m4: New file.
59385
59386         Module strtoimax.
59387         * m4/strtoimax.m4: New file.
59388
59389         Module strtoumax.
59390         * m4/strtoumax.m4: New file.
59391
59392         Module xstrtoimax.
59393         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59394         jm_AC_PREREQ_XSTRTOIMAX.
59395         Moved the strtol prerequisites to strtol.m4.
59396         Moved the strtoll prerequisites to strtoll.m4.
59397         Moved the strtoimax prerequisites to strtoimax.m4.
59398
59399         Module xstrtoumax.
59400         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59401         jm_AC_PREREQ_XSTRTOUMAX.
59402         Moved the strtoul prerequisites to strtoul.m4.
59403         Moved the strtoull prerequisites to strtoull.m4.
59404         Moved the strtoumax prerequisites to strtoumax.m4.
59405
59406         Module chown.
59407         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59408         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59409
59410         Module dup2.
59411         * m4/dup2.m4: New file.
59412
59413         Module ftruncate.
59414         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59415         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59416
59417         Module getgroups.
59418         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59419         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59420
59421         Module gettimeofday.
59422         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59423         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59424         gl_PREREQ_GETTIMEOFDAY.
59425
59426         Module mkdir.
59427         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59428         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59429
59430         Module mkstemp.
59431         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59432         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59433         jm_AC_TYPE_UINTMAX_T.
59434         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59435
59436         Module stat.
59437         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59438         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59439
59440         Module lstat.
59441         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59442         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59443
59444         Module timespec.
59445         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59446         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59447         * m4/st_mtim.m4: Indentation.
59448
59449         Module nanosleep.
59450         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59451         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59452         gl_PREREQ_NANOSLEEP.
59453
59454         Module regex.
59455         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59456         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59457         (gl_REGEX): New macro.
59458
59459         Module rename.
59460         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59461         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59462
59463         Module rmdir.
59464         * m4/rmdir.m4: New file.
59465
59466         Module utime.
59467         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59468         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59469         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59470
59471         Module dirname.
59472         * m4/dirname.m4: New file.
59473
59474         Module getopt.
59475         * m4/getopt.m4: New file.
59476
59477         Module unistd-safer.
59478         * m4/unistd-safer.m4: New file.
59479
59480         Module fnmatch.
59481         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59482         declaration.
59483         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59484         (gl_FUNC_FNMATCH_POSIX): New macro.
59485         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59486         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59487         simply fnmatch.
59488
59489         Module exclude.
59490         * m4/exclude.m4: New file.
59491
59492         Module human.
59493         * m4/human.m4: New file.
59494
59495         Module acl.
59496         * m4/acl.m4: Nop.
59497
59498         Module backupfile.
59499         * m4/backupfile.m4: New file.
59500         * m4/d-ino.m4: Indentation.
59501
59502         Module fsusage.
59503         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59504         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59505         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59506
59507         Module dirfd.
59508         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59509         requirements.
59510
59511         Module euidaccess.
59512         * m4/euidaccess.m4: New file.
59513
59514         Module file-type.
59515         * m4/file-type.m4: New file.
59516
59517         Module fileblocks.
59518         * m4/fileblocks.m4: New file.
59519
59520         Module filemode.
59521         * m4/filemode.m4: New file.
59522
59523         Module isdir.
59524         * m4/isdir.m4: New file.
59525
59526         Module lchown.
59527         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59528         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59529
59530         Module makepath.
59531         * m4/makepath.m4: New file.
59532
59533         Module modechange.
59534         * m4/modechange.m4: New file.
59535
59536         Module mountlist.
59537         * m4/mountlist.m4: New file.
59538         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59539         Indentation.
59540
59541         Module path-concat.
59542         * m4/path-concat.m4: New file.
59543
59544         Module pathmax.
59545         * m4/pathmax.m4: New file.
59546
59547         Module same.
59548         * m4/same.m4: New file.
59549
59550         Module save-cwd.
59551         * m4/save-cwd.m4: New file.
59552
59553         Module savedir.
59554         * m4/savedir.m4: New file.
59555
59556         Module xgetcwd.
59557         * m4/xgetcwd.m4: New file.
59558         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59559
59560         Module xreadlink.
59561         * m4/xreadlink.m4: New file.
59562
59563         Module safe-read.
59564         * m4/safe-read.m4: New file.
59565
59566         Module safe-write.
59567         * m4/safe-write.m4: New file.
59568
59569         Module closeout.
59570         * m4/closeout.m4: New file.
59571
59572         Module stdio-safer.
59573         * m4/stdio-safer.m4: New file.
59574
59575         Module getpass.
59576         * m4/getpass.m4: New file.
59577
59578         Module getugroups.
59579         * m4/getugroups.m4: New file.
59580
59581         Module group-member.
59582         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59583         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59584
59585         Module idcache.
59586         * m4/idcache.m4: New file.
59587
59588         Module userspec.
59589         * m4/userspec.m4: New file.
59590
59591         Module gettime.
59592         * m4/clock_time.m4: New file.
59593         * m4/gettime.m4: New file.
59594
59595         Module settime.
59596         * m4/settime.m4: New file.
59597
59598         Module posixtm.
59599         * m4/posixtm.m4: New file.
59600
59601         Module gethostname.
59602         * m4/gethostname.m4: New file.
59603
59604         Module canon-host.
59605         * m4/canon-host.m4: New file.
59606
59607         Module gettext.
59608         * m4/codeset.m4: New file, from gettext-0.11.5.
59609         * m4/gettext.m4: New file, from gettext-0.11.5.
59610         * m4/glibc21.m4: New file, from gettext-0.11.5.
59611         * m4/iconv.m4: New file, from gettext-0.11.5.
59612         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59613         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59614         * m4/inttypes.m4: New file, from gettext-0.11.5.
59615         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59616         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59617         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59618         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59619         * m4/lib-link.m4: New file, from gettext-0.11.5.
59620         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59621         * m4/progtest.m4: New file, from gettext-0.11.5.
59622         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59623         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59624         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59625
59626         Module localcharset.
59627         * m4/localcharset.m4: New file.
59628
59629         Module hard-locale.
59630         * m4/hard-locale.m4: New file.
59631
59632         Module mbswidth.
59633         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59634         onceonly macros.
59635         * m4/mbrtowc.m4: Add comment.
59636
59637         Module memcasecmp.
59638         * m4/memcasecmp.m4: New file.
59639
59640         Module memcoll.
59641         * m4/memcoll.m4: New file.
59642
59643         Module unicodeio.
59644         * m4/unicodeio.m4: New file.
59645
59646         Module rpmatch.
59647         * m4/rpmatch.m4: New file.
59648
59649         Module yesno.
59650         * m4/yesno.m4: New file.
59651
59652         Module exitfail.
59653         * m4/exitfail.m4: New file.
59654
59655         Module c-stack.
59656         * m4/c-stack.m4 (gl_C_STACK): New macro.
59657         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59658
59659         Module error.
59660         * m4/error.m4 (gl_ERROR): New macro.
59661         (jm_PREREQ_ERROR): Use onceonly macros.
59662
59663         Module fatal.
59664         * m4/fatal.m4: New file.
59665
59666         Module getloadavg.
59667         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59668         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59669
59670         Module getpagesize.
59671         * m4/getpagesize.m4: New file.
59672
59673         Module getusershell.
59674         * m4/getusershell.m4: New file.
59675
59676         Module physmem.
59677         * m4/physmem.m4: New file.
59678
59679         Module posixver.
59680         * m4/posixver.m4: New file.
59681
59682         Module quotearg.
59683         * m4/quotearg.m4: New file.
59684
59685         Module quote.
59686         * m4/quote.m4: New file.
59687
59688         Module readutmp.
59689         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59690
59691         Module sig2str.
59692         * m4/sig2str.m4: New file.
59693
59694         Other.
59695         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59696         ulonglong.m4.
59697         * m4/intmax_t.m4: New file.
59698         * m4/d-type.m4: Indentation.
59699         * m4/jm-macros.m4: Update.
59700         * m4/prereq.m4 (jm_PREREQ): Update.
59701         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59702         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59703         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59704         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59705         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59706         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59707         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59708         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59709         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59710         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59711         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59712         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59713         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59714         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59715         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59716         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59717         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59718         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59719         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59720
59721 2002-12-24  Bruno Haible  <bruno@clisp.org>
59722
59723         * MODULES.txt: Update according to m4/ changes.
59724
59725         Module gettext.
59726         * config.rpath: New file, from gettext-0.11.5.
59727
59728         * modules/*: New module descriptions.
59729         * gnulib-tool: New file.
59730         * MODULES.html.sh: New file.
59731
59732 2002-12-21  Karl Berry  <karl@gnu.org>
59733
59734         * doc/fdl.texi: update to version 1.2.
59735
59736 2002-12-19  Karl Berry  <karl@gnu.org>
59737
59738         * config/config.guess: update from prep.
59739
59740 2002-12-18  Bruno Haible  <bruno@clisp.org>
59741
59742         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59743         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59744
59745 2002-12-17  Bruno Haible  <bruno@clisp.org>
59746
59747         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59748         stdlib.h, string.h.
59749
59750 2002-12-17  Bruno Haible  <bruno@clisp.org>
59751
59752         * lib/canon-host.c (strdup): Remove unused declaration.
59753
59754         * lib/fsusage.c: Include full_read.h.
59755         (get_fs_usage): Use full_read instead of safe_read.
59756
59757         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59758
59759 2002-12-12  Karl Berry  <karl@gnu.org>
59760
59761         * config/config.guess: update from prep.
59762
59763 2002-12-11  Bruno Haible  <bruno@clisp.org>
59764
59765         * m4/setenv.m4: New file, from gettext-0.11.5.
59766
59767 2002-12-11  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59770         not unsetenv().
59771         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59772         modifications:
59773
59774         2002-12-11  Bruno Haible  <bruno@clisp.org>
59775
59776                 * setenv.c (alloca): Fall back to malloc.
59777                 (freea): New macro.
59778                 (setenv): Use freea() to free memory allocated with alloca().
59779
59780         2002-11-13  Bruno Haible  <bruno@clisp.org>
59781
59782                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59783                 function declarations.
59784                 * unsetenv.c (unsetenv): Likewise.
59785
59786         2002-03-04  Bruno Haible  <bruno@clisp.org>
59787
59788                 Portability to AIX 4.3.3.
59789                 * unsetenv.c: New file, extracted from setenv.c.
59790                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59791
59792         2001-12-20  Bruno Haible  <bruno@clisp.org>
59793
59794                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59795                 use malloc instead. For SunOS 4.
59796
59797         2001-12-11  Bruno Haible  <bruno@clisp.org>
59798
59799                 * setenv.c: Declare alloca.
59800                 (compar_fn_t): New typedef.
59801                 (KNOWN_VALUE, STORE_VALUE): Use it.
59802
59803         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59804         setenv.h.
59805
59806 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59807
59808         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59809         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59810         Choose values that are less likely to collide with system fnmatch
59811         options.
59812         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59813         defined (e.g., a pure POSIX system).
59814         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59815         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59816
59817 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59818
59819         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59820         a pain in practice to deal with generated m4 files.  This change
59821         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59822
59823         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59824         and jm-glibc-io.m4, as they are no longer a special case.
59825         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59826         kludge and the auto-generation stuff.  Check only whether the
59827         functions are declared, not whether they exist, since older hosts
59828         that don't declare the functions can't use the optimization anyway.
59829
59830 2002-12-06  Jim Meyering  <jim@meyering.net>
59831
59832         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59833
59834         Merge in changes from libc's misc/error.c, in preparation
59835         for the merge of gnulib's changes back into libc.
59836
59837         * lib/error.c (_): Define only if not already defined.
59838         Move definition to follow all #include directives.
59839         Include unlocked-io.h only if !_LIBC.
59840         [_LIBC]: Include <libio/libioP.h>.
59841         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59842         (fflush): Tweak definition to use INTUSE.
59843         (putc): Define.
59844
59845 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59846
59847         * lib/alloca.c [defined emacs]: Include "lisp.h".
59848         (xalloc_die) [defined emacs]: New macro.
59849         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59850         [! defined emacs]: Include <xalloc.h>.
59851         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59852         (pointer): Typedef to POINTER_TYPE *.
59853         (malloc): Remove decl; we now always use xmalloc.
59854         (alloca): Use old-style definition, since Emacs needs this.
59855         Check for arithmetic overflow when computing combined size.
59856
59857 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59858
59859         Do not generate unlocked-io.h automatically, since it's easier to
59860         maintain it by hand.
59861
59862         * lib/unlocked-io.h: New file, from GNU diffutils,
59863         but with proper copyright notice and attribution.
59864         * lib/gen-uio: Remove.
59865         * lib/Makefile.am: Add copyright notice.
59866         (libfetish_a_SOURCES): Add unlocked-io.h.
59867         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59868         (DISTCLEANFILES, io_functions): Remove macros.
59869         (EXTRA_DIST): Remove gen_uio.
59870         (unlocked-io.h): Remove rule.
59871
59872 2002-12-04  Jim Meyering  <jim@meyering.net>
59873
59874         Reflect the fact that stat.c and lstat.c are no longer generated.
59875         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59876         (DISTCLEANFILES): Likewise.
59877         (EXTRA_DIST): Likewise.
59878         (all_local): Don't depend on stat.c or lstat.c.
59879         (stat.c, lstat.c): Remove rules.
59880         (EXTRA_DIST): Remove xstat.in.
59881
59882         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59883         * lib/stat.c: New file.  Contents mostly from xstat.in.
59884         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59885         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59886
59887         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59888         too.
59889         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59890
59891 2002-12-03  Jim Meyering  <jim@meyering.net>
59892
59893         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59894         but not semantics, to minimize the differences between these two files.
59895         (safe_read): Change comment to mention SAFE_READ_ERROR.
59896
59897         * lib/safe-read.c (IS_EINTR): Define.
59898         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59899
59900 2002-12-02  Jim Meyering  <jim@meyering.net>
59901
59902         * lib/safe-read.c (EINTR): Define.
59903         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59904         (INT_MAX): Provide fallback.
59905         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59906
59907         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59908
59909 2002-12-02  Bruno Haible  <bruno@clisp.org>
59910
59911         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59912         Define, taken from safe-read.c.
59913         (INT_MAX): Provide fallback.
59914         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59915         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59916
59917         * lib/safe-read.c (EINTR): Remove definition.
59918         (safe_read): Don't use EINTR if it is absent.
59919
59920 2002-12-01  Jim Meyering  <jim@meyering.net>
59921
59922         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59923         zero.
59924         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59925
59926 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59927
59928         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59929         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59930         with `if (! (value < limit)) abort ();', for readability.
59931
59932 2002-11-26  Karl Berry  <karl@gnu.org>
59933
59934         * lib/strdup.c: copy from libc again, with jim's ok.
59935         * lib/.cppi-disable: re-add strdup.c
59936
59937 2002-11-25  Karl Berry  <karl@gnu.org>
59938
59939         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59940         instead of "strtol.c".
59941
59942 2002-11-25  Karl Berry  <karl@gnu.org>
59943
59944         * config/install-sh: update from automake for variable quoting, $0 in
59945         error msgs, etc.
59946
59947         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59948         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59949         entry.
59950
59951 2002-11-25  Jim Meyering  <jim@meyering.net>
59952
59953         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59954
59955 2002-11-24  Karl Berry  <karl@gnu.org>
59956
59957         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59958         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59959
59960 2002-11-24  Jim Meyering  <jim@meyering.net>
59961
59962         Update from coreutils:
59963
59964         * lib/mktime.c: Merge in changes from libc.
59965
59966         Avoid a link-time failure on some Linux systems.
59967         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59968         (otherwise).
59969         (__mon_yday): Declare with the STATIC attribute.
59970         (__mktime_internal): Likewise.
59971         Based on a report from Greg Schafer.
59972
59973 2002-11-23  Jim Meyering  <jim@meyering.net>
59974
59975         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59976         Use `unsigned', not `int', as type of index.
59977
59978         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59979
59980         * lib/fsusage.c: Remove unneeded parentheses around operands of
59981         `defined'.
59982
59983 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59984
59985         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59986         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59987         so that we can be included first.
59988         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59989         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59990         No need to include stddef.h or sys/types.h any more.
59991         Surround local include files with "", not "<>".
59992         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59993         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59994         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59995         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59996         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59997         (ISPRINT): Remove; no longer needed now that we assume C89.
59998
59999         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60000         Preserve errno.
60001
60002         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60003         quotearg_char): Use SIZE_MAX rather than
60004         (size_t) -1 when we are talking about "infinity".
60005
60006         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60007
60008 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60009
60010         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60011         hint that one should use `if (! x) abort ();' rather than `assert
60012         (x);', and anyway it's one less thing to worry about configuring.
60013         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60014         hash_rehash, hash_insert): Use abort rather than assert.
60015
60016 2002-11-22  Bruno Haible  <bruno@clisp.org>
60017
60018         * lib/safe-read.h: Assume C89. Add comments.
60019         (safe_read): Change return type to size_t.
60020         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60021         byte counts > SSIZE_MAX correctly.
60022         * lib/safe-write.h: New file.
60023         * lib/safe-write.c: New file.
60024         * lib/full-read.h: New file.
60025         * lib/full-read.c: New file.
60026         * lib/full-write.h: Assume C89. Add comments.
60027         * lib/full-write.c: Include safe-write.h.
60028         (full_write): Rewritten to use safe_write.
60029         Suggested by Jim Meyering and Paul Eggert.
60030
60031 2002-11-21  Jim Meyering  <jim@meyering.net>
60032
60033         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60034
60035         Merge in changes from the coreutils.
60036
60037         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60038         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60039         <stdint.h>.
60040         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60041         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60042         int.  Work more efficiently if X is the same width as uintmax_t.
60043         Do not compare X to -1, to avoid bogus compiler warning.
60044         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60045         Don't assume that f_frsize and f_bsize are the same type.
60046
60047         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60048         warning on FreeBSD.
60049
60050         * lib/makepath.c (make_path): Restore umask *before* creating the final
60051         component.
60052         (make_path): Minor reformatting.
60053
60054         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60055         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60056         HAVE_MALLOC/HAVE_REALLOC.
60057
60058         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60059         dummy ones.  At least on GNU/Linux systems, `auto' means something
60060         else.
60061         From Michael Stone.
60062
60063 2002-11-21  Bruno Haible  <bruno@clisp.org>
60064
60065         Remove case insensitive option matching.
60066         * lib/argmatch.h (argcasematch): Remove declaration.
60067         (ARGCASEMATCH): Remove macro.
60068         (__xargmatch_internal): Remove case_sensitive argument.
60069         (XARGMATCH): Update.
60070         (XARGCASEMATCH): Remove macro.
60071         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60072         case_sensitive argument.
60073         (argcasematch): Remove function.
60074         (__xargmatch_internal): Remove case_sensitive argument.
60075         (main): Use XARGMATCH instead of XARGCASEMATCH.
60076
60077         * lib/xmalloc.c: Change compile-time error message. Add comment about
60078         required autoconf version.
60079
60080 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60081
60082         Merge argmatch cleanups from Bison.  Assume C89.
60083
60084         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60085         Include stdlib.h, for EXIT_FAILURE.
60086         Always include <string.h>, since we assume C89.
60087         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60088         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60089         Include <stddef.h> instead, since it's all we need for size_t.
60090         (PARAMS): Remove.  All uses removed.
60091         (ARRAY_CARDINALITY): Do not bother to #undef.
60092         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60093         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60094         Remove unnecessary parentheses.
60095         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60096         Insert necessary parentheses.
60097         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60098         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60099
60100 2002-11-19  Bruno Haible  <bruno@clisp.org>
60101
60102         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60103         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60104
60105         * lib/mbswidth.h (PARAMS): Remove macro.
60106         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60107         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60108
60109         * lib/gcd.h (PARAMS): Remove macro.
60110         (gcd): Use ANSI C function declarations.
60111         * lib/gcd.c (gcd): Likewise.
60112
60113 2002-11-15  Bruno Haible  <bruno@clisp.org>
60114
60115         * lib/strcspn.c: Include <stddef.h>.
60116         (strcspn): Use ANSI C function declaration. Change return type to
60117         size_t. Use NULL.
60118         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60119         (strpbrk): Use NULL.
60120         * lib/strpbrk.h (PARAMS): Remove macro.
60121         (strpbrk): Use ANSI C function declaration.
60122         * lib/strstr.c: Don't include <sys/types.h>.
60123         * lib/strstr.h (PARAMS): Remove macro.
60124         (strstr): Use ANSI C function declarations.
60125
60126 2002-11-14  Karl Berry  <karl@gnu.org>
60127
60128         * config/mkinstalldirs: `do' on separate line, instead of
60129         `for var; do'.
60130
60131 2002-11-06  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60134         * lib/gcd.c (gcd): Likewise.
60135
60136 2002-11-05  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/gcd.h: New file, from gettext-0.11.5.
60139         * lib/gcd.c: New file, from gettext-0.11.5.
60140
60141 2002-11-05  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60144         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60145         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60146         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60147
60148         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60149         <libintl.h>.
60150         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60151         <libintl.h>.
60152
60153         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60154         * lib/human.c: Include gettext.h instead of <libintl.h>.
60155         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60156         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60157         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60158         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60159         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60160         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60161         (textdomain): Remove definition.
60162         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60163
60164         * lib/long-options.c: Remove include of <libintl.h> and definition of
60165         _.
60166         * lib/same.c: Remove include of <libintl.h> and definition of _.
60167
60168 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60169
60170         * lib/config.charset: A few additions for Solaris.
60171
60172 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60173
60174         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60175         * lib/localcharset.c (locale_charset): Declare as extern "C".
60176
60177 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60178
60179         * lib/config.charset: msdos in uk_UA uses CP1125.
60180
60181 2002-11-04  Bruno Haible  <bruno@clisp.org>
60182
60183         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60184         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60185         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60186         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60187         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60188
60189 2002-11-04  Bruno Haible  <bruno@clisp.org>
60190
60191         * lib/localcharset.c (locale_charset): Don't return an empty string.
60192
60193 2002-11-04  Bruno Haible  <bruno@clisp.org>
60194
60195         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60196         aliases.
60197
60198 2002-11-04  Bruno Haible  <bruno@clisp.org>
60199
60200         * lib/config.charset: Update for newest glibc. Add canonical names
60201         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60202
60203 2002-11-04  Bruno Haible  <bruno@clisp.org>
60204
60205         * lib/config.charset: Add support for NetBSD.
60206
60207 2002-11-04  Bruno Haible  <bruno@clisp.org>
60208
60209         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60210
60211 2002-11-01  Bruno Haible  <bruno@clisp.org>
60212
60213         * configure.in: Add AC_CONFIG_AUX_DIR call.
60214         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60215         test/Makefile.
60216         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60217
60218 2002-09-28  Karl Berry  <karl@gnu.org>
60219
60220         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60221         installed automake until the next release, since changes have been
60222         made.
60223
60224 2002-09-25  Karl Berry  <karl@gnu.org>
60225
60226         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60227         * lib/getopt*: copy from libc/posix.
60228         * lib/gettext.h: copy from gettext.
60229         * lib/.cppi-disable: add strdup.c, gettext.h.
60230
60231 2002-09-25  Karl Berry  <karl@gnu.org>
60232
60233         * config/srclist.txt: enable gettext.h check.
60234         * config/config.{guess,sub}: update from prep.
60235         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60236                 from automake 1.6.3.
60237         See srclist*.
60238
60239 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60240
60241         * regex.c (PATFETCH): Remove the translating fetch.
60242         (PATFETCH_RAW): Rename to PATFETCH.
60243         (set_image_of_range): New fun.
60244         (SET_RANGE_TABLE_WORK_AREA): Use it.
60245         (regex_compile): Don't translate the pattern chars so eagerly.
60246         Only do it when inserting an `exactn' bytecode or when handling
60247         a char-range.
60248         (mutually_exclusive_p): Avoid empty statement.
60249
60250 2002-07-06  Jim Meyering  <meyering@lucent.com>
60251
60252         * m4/README: Don't mention Makefile.am.in.
60253         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60254
60255 2002-07-01  Jim Meyering  <meyering@lucent.com>
60256
60257         * lib/c-stack.c: Include sys/time.h.
60258         From Volker Borchert.
60259
60260 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60261
60262         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60263
60264 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60265
60266         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60267         New macro.  Use it uniformly instead of
60268         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60269         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60270         reported by Vin Shelton.
60271
60272 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60273
60274         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60275         Do not assume SA_SIGINFO behavior.
60276         Bug reported by Jim Meyering on NetBSD 1.5.2.
60277
60278 2002-06-22  Jim Meyering  <meyering@lucent.com>
60279
60280         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60281         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60282
60283         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60284         now that configure.ac uses AC_GNU_SOURCE.
60285         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60286         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60287
60288         Update to latest tools.  Suggestions from Paul Eggert.
60289         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60290         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60291         * m4/fnmatch.m4: Likewise.
60292         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60293         to AC_HEADER_STDBOOL
60294
60295 2002-06-22  Jim Meyering  <meyering@lucent.com>
60296
60297         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60298         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60299
60300 2002-06-22  Jim Meyering  <meyering@lucent.com>
60301
60302         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60303
60304         * lib/exitfail.c, exitfail.h: Likewise.
60305         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60306
60307         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60308         of fnmatch.h.
60309         (EXTRA_DIST): Add fnmatch_loop.c.
60310         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60311
60312         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60313         * lib/fnmatch.c: Update from diffutils-2.8.2.
60314         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60315         * lib/fnmatch.h: Remove file.
60316
60317 2002-06-21  Jim Meyering  <meyering@lucent.com>
60318
60319         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60320         * m4/mbrtowc.m4: Likewise.
60321
60322         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60323         * m4/mbswidth.m4: Reflect name change:
60324         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60325         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60326
60327         * m4/lib-link.m4: Update from gettext-0.11.2.
60328         * m4/gettext.m4: Likewise.
60329
60330         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60331         From Alfred M. Szmidt.
60332
60333 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60334
60335         * lib/file-type.h: Report an error if neither S_ISREG nor
60336         S_IFREG is defined, instead of using a test specific to glibc
60337         2.2.  This should be safe, since POSIX requires S_ISREG and
60338         Unix Version 7 had S_IFREG.  We don't need to check for
60339         <sys/types.h> since we don't use any symbols that it defines.
60340
60341 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60342
60343         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60344         $@-t, so that each temporary file name is unique and valid in the first
60345         8 characters, for operation under DOS.
60346
60347 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60348
60349         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60350
60351 2002-06-15  Jim Meyering  <meyering@lucent.com>
60352
60353         Work even with DJGPP 2.03, which lacks support for symlinks.
60354         From Richard Dawe.
60355         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60356         is defined.
60357         * lib/lchown.c (S_ISLNK): Likewise.
60358
60359 2002-06-15  Jim Meyering  <meyering@lucent.com>
60360
60361         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60362         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60363         have been included before this file.
60364
60365 2002-06-14  Jim Meyering  <meyering@lucent.com>
60366
60367         * lib/file-type.h: Use the version from diffutils-2.8.2.
60368         * lib/file-type.c: Likewise.
60369
60370 2002-06-07  Jim Meyering  <meyering@lucent.com>
60371
60372         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60373         They're needed at least for NetBSD 1.5.2.
60374         ($statxfs_includes): Include those same headers.
60375         ($statxfs_includes): Include sys/vfs.h if available.
60376         ($statxfs_includes): Likewise for sys/statvfs.h.
60377         Check for the following members in both structs statfs and statvfs:
60378         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60379
60380 2002-06-01  Jim Meyering  <meyering@lucent.com>
60381
60382         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60383         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60384
60385 2002-05-28  Jim Meyering  <meyering@lucent.com>
60386
60387         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60388         Reported by Volker Borchert.
60389
60390 2002-05-27  Jim Meyering  <meyering@lucent.com>
60391
60392         Fix a problem seen only on nonconforming systems whereby ls.c's
60393         use of localtime, and then of gettimeofday would cause trouble:
60394         the localtime call used to initialize rpl_gettimeofday's save
60395         mechanism would clobber ls's current local time information so
60396         that in any long listing the first file would always be listed
60397         with date 1970-01-01.  Analysis by Volker Borchert.
60398
60399         * lib/gettimeofday.c (localtime): Undefine.
60400         (rpl_localtime): New function.
60401
60402 2002-05-27  Jim Meyering  <meyering@lucent.com>
60403
60404         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60405         localtime.
60406
60407         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60408         use the replacement function; it wouldn't resolve at link time.
60409         Reported by Volker Borchert.
60410
60411 2002-05-22  Jim Meyering  <meyering@lucent.com>
60412
60413         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60414         file-type.h.
60415         * lib/file-type.h: New file.
60416         * lib/file-type.c (file_type): New file/function.  Extracted from
60417         diffutils.
60418
60419 2002-04-30  Jim Meyering  <meyering@lucent.com>
60420
60421         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60422
60423 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60424
60425         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60426
60427 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60428
60429         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60430         Do not check for alloca.h (no longer used) or stdbool.h (was never
60431         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60432
60433 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60434
60435         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60436
60437 2002-04-29  Jim Meyering  <meyering@lucent.com>
60438
60439         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60440         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60441         Use AC_FUNC_STRNLEN here instead.
60442
60443         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60444         With autoconf-2.53a, it's part of AC_PROG_CC.
60445
60446 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60447
60448         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60449         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60450
60451 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60452
60453         * lib/sig2str.h, lib/sig2str.c: New files.
60454         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60455
60456 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60457
60458         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60459         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60460         of 127, since 64 is the largest conceivable number for ancient
60461         nonstandard hosts.
60462         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60463
60464 2002-04-28  Jim Meyering  <meyering@lucent.com>
60465
60466         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60467
60468 2002-04-24  Jim Meyering  <meyering@lucent.com>
60469
60470         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60471         (jm_PREREQ): Use it.
60472
60473         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60474         mach/mach.h fcntl.h.
60475         Check for this function: setlocale.
60476
60477 2002-04-24  Jim Meyering  <meyering@lucent.com>
60478
60479         * lib/gettext.h: New file, from Gettext.
60480         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60481         (libfetish_a_SOURCES): Add gettext.h.
60482
60483 2002-04-16  Jim Meyering  <meyering@lucent.com>
60484
60485         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60486         ut_pid, ut_id, ut_exit.
60487
60488 2002-04-16  Jim Meyering  <meyering@lucent.com>
60489
60490         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60491         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60492         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60493
60494 2002-04-12  Jim Meyering  <meyering@lucent.com>
60495
60496         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60497         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60498         existence of the getmntinfo function.  Needed for Darwin 5.3.
60499
60500         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60501         This is necessary at least on Darwin 5.3.
60502
60503         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60504         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60505         strnlen.o in the library, and that makes some versions of ranlib
60506         object.
60507
60508 2002-04-12  Jim Meyering  <meyering@lucent.com>
60509
60510         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60511
60512 2002-04-09  Jim Meyering  <meyering@lucent.com>
60513
60514         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60515         to be more precise.  Rather than saying we're checking whether the
60516         function `works', say what we're testing.
60517         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60518         Reported by Bruno Haible.
60519
60520 2002-03-10  Jim Meyering  <meyering@lucent.com>
60521
60522         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60523         Suggestion from Santiago Vila.
60524
60525 2002-03-08  Jim Meyering  <meyering@lucent.com>
60526
60527         * lib/rename.c: Mention that this wrapper is needed also on
60528         mips-dec-ultrix4.4 systems.
60529
60530 2002-03-02  Jim Meyering  <meyering@lucent.com>
60531
60532         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60533         not HAVE_CLOCK_SETTIME.
60534
60535 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60536
60537         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60538         Check for clock_settime.
60539
60540 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60541
60542         * lib/nanosleep.h: Rename to....
60543         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60544
60545         * lib/gettime.c: New file.
60546         * lib/settime.c: New file.
60547         * lib/stime.c: Remove.
60548
60549         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60550         timespec.h.  Remove nanosleep.h.
60551
60552 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60553
60554         * m4/acl.m4: New file.
60555         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60556         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60557
60558 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60559
60560         * lib/acl.c, lib/acl.h: New files.
60561         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60562
60563 2002-02-24  Jim Meyering  <meyering@lucent.com>
60564
60565         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60566         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60567         cause trouble.  Reported by Nelson Beebe.
60568
60569 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60570
60571         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60572         compilers that don't know that xalloc_die never returns.
60573
60574 2002-02-20  Jim Meyering  <meyering@lucent.com>
60575
60576         * lib/getdate.c: Regenerate using bison-1.33.
60577
60578 2002-02-17  Jim Meyering  <meyering@lucent.com>
60579
60580         * config/config.guess (main): Don't use `head -1'; it's no longer
60581         portable. Use `sed 1q' instead.
60582
60583 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60584
60585         * m4/codeset.m4: Upgrade to gettext-0.11.
60586         * m4/gettext.m4: Upgrade to gettext-0.11.
60587         * m4/glibc21.m4: Upgrade to gettext-0.11.
60588         * m4/iconv.m4: Upgrade to gettext-0.11.
60589         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60590         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60591         * m4/lib-ld.m4: New file, from gettext-0.11.
60592         * m4/lib-link.m4: New file, from gettext-0.11.
60593         * m4/lib-prefix.m4: New file, from gettext-0.11.
60594         * m4/progtest.m4: Upgrade to gettext-0.11.
60595
60596 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60597
60598         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60599         (jm_PREREQ): Use it.
60600
60601 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60602
60603         * lib/posixver.c, lib/posixver.h: New files.
60604         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60605
60606 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60607             Bruno Haible  <bruno@clisp.org>
60608
60609         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60610         (fwrite_success_callback): New declaration.
60611         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60612         print_unicode_char. Call failure callback instead of error.
60613         (fwrite_success_callback): New function.
60614         (exit_failure_callback): New function.
60615         (fallback_failure_callback): New function.
60616         (print_unicode_char): Call unicode_to_mb.
60617
60618 2002-01-26  Jim Meyering  <meyering@lucent.com>
60619
60620         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60621         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60622
60623 2002-01-26  Jim Meyering  <meyering@lucent.com>
60624
60625         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60626
60627 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60628
60629         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60630
60631 2002-01-22  Jim Meyering  <meyering@lucent.com>
60632
60633         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60634         Otherwise, some versions of automake would omit the rule that makes
60635         Makefile from Makefile.in.
60636
60637 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60638
60639         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60640         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60641         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60642         (memcoll): Set errno to zero if there is no error.
60643
60644         * lib/quotearg.c (quotearg_buffer_restyled):
60645         Fix bug with quoting buffers containing NUL when backslashing escapes.
60646         This bug was exposed by the other changes in this patch.
60647         (quotearg_n_options): New arg ARGSIZE.
60648         All callers changed.
60649         (quoting_options_from_style): New function.
60650         (quotearg_n_style): Use it.
60651         (quotearg_n_style_mem): New function.
60652
60653         * lib/quotearg.h (quotearg_n_style_mem): New function.
60654
60655 2002-01-19  Jim Meyering  <meyering@lucent.com>
60656
60657         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60658         Remove useless quotes: DF_PROG="df".
60659         * m4/strnlen.m4: New file.
60660
60661 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60662
60663         * lib/backupfile.c (ISDIGIT): Comment fix.
60664         * lib/getdate.y (ISDIGIT): Likewise.
60665         * lib/posixtm.c (ISDIGIT, year): Likewise.
60666         * lib/strverscmp.c (ISDIGIT): Likewise.
60667         * lib/userspec.c (ISDIGIT): Likewise.
60668
60669 2002-01-16  Jim Meyering  <meyering@lucent.com>
60670
60671         * lib/getdate.y: Add three semicolons, each just before a closing
60672         brace. Bison (as of version 1.31) no longer papers over that mistake.
60673
60674 2002-01-05  Jim Meyering  <meyering@lucent.com>
60675
60676         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60677
60678 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60679
60680         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60681         not silently exit merely because the output buffer happens to
60682         have nothing pending.
60683
60684 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60685
60686         See the big note in ../ChangeLog.
60687         * lib/human.c (suffixes): Prefer K to k for 1024.
60688         (generate_suffix_backwards): New function.
60689         (human_readable_inexact): Use it.
60690         * lib/xstrtol.c (__xstrtol): If there is no number but there
60691         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60692         Accept 'K' as well as 'k'.
60693
60694 2001-12-15  Jim Meyering  <meyering@lucent.com>
60695
60696         * lib/regex.h (__restrict_arr): Update from libc.
60697
60698         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60699         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60700         (STREQ): Define.
60701
60702 2001-12-14  Jim Meyering  <meyering@lucent.com>
60703
60704         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60705         Suggestion from Bruno Haible.
60706
60707 2001-12-10  Jim Meyering  <meyering@lucent.com>
60708
60709         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60710         xrealloc, Instead, include "xalloc.h".
60711         (initbuffer): Don't cast xmalloc return value to char*.
60712         (readline): Reword comment.
60713         Don't cast xrealloc return value to char*
60714         Return NULL, not 0.
60715
60716 2001-12-09  Jim Meyering  <meyering@lucent.com>
60717
60718         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60719         about `signed and unsigned type in conditional expression'.
60720         * lib/posixtm.c (posix_time_parse): Likewise.
60721
60722         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60723
60724         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60725         to avoid a pedantic warning.
60726
60727         * lib/getstr.c: Don't include assert.h.
60728         (getstr): Remove warning-evoking assertions.
60729         Return -1 if offset parameter is out of bounds.
60730         Change the type of a local from int to size_t.
60731
60732         * lib/strftime.c (my_strftime_localtime_r): Include this function
60733         definition in the `#if ! HAVE_TM_GMTOFF' block.
60734
60735         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60736         Include xalloc.h instead.
60737
60738 2001-12-02  Jim Meyering  <meyering@lucent.com>
60739
60740         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60741         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60742         included.
60743
60744         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60745         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60746
60747 2001-11-30  Akim Demaille  <akim@epita.fr>
60748
60749         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60750         before being defined.
60751
60752 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60753
60754         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60755         First arg is int, not unsigned.
60756         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60757         (SIZE_MAX, UINT_MAX): New macros.
60758         (quotearg_n_options): Abort if N is negative.
60759         Avoid overflow check on hosts where size_t is 64 bits and int
60760         is 32 bits, as overflow is impossible there.
60761         Fix off-by-one typo that caused unnecessary reallocation.
60762
60763 2001-11-27  Jim Meyering  <meyering@lucent.com>
60764
60765         * lib/tempname.c: Merge with version from libc.
60766         * lib/regex.c: Likewise.
60767
60768         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60769         systems for which STDC_HEADERS is 0, it was not included, resulting in
60770         a warning about an integer-to-pointer conversion problem with getenv.
60771         Reported by Volker Borchert.
60772
60773 2001-11-26  Jim Meyering  <meyering@lucent.com>
60774
60775         * lib/gtod.h: Remove file.
60776         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60777         * lib/gettimeofday.c: Don't include gtod.h.
60778         (GTOD_init): Remove function.
60779         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60780         Suggestion from Volker Borchert.
60781
60782 2001-11-23  Jim Meyering  <meyering@lucent.com>
60783
60784         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60785         it.
60786         * lib/hash.c (struct hash_table): Define it here instead.
60787
60788 2001-11-22  Jim Meyering  <meyering@lucent.com>
60789
60790         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60791
60792 2001-11-20  Jim Meyering  <meyering@lucent.com>
60793
60794         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60795         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60796
60797 2001-11-19  Jim Meyering  <meyering@lucent.com>
60798
60799         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60800         directory.  Use "conftestXXXXXX" as the template.
60801         Suggestion from Paul Eggert.
60802
60803         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60804         immediately, so the test doesn't mistakenly hit the max-open-files
60805         limit.
60806
60807 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60808
60809         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60810         (TEMPORARIES): New macro.
60811         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60812         removes an artificial limitation (e.g. HP-UX 10.20, where
60813         TMP_MAX is 17576).
60814
60815 2001-11-18  Jim Meyering  <meyering@lucent.com>
60816
60817         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60818
60819 2001-11-18  Jim Meyering  <meyering@lucent.com>
60820
60821         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60822         on SunOS 4.
60823
60824         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60825         files will be created before anything else.
60826
60827 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60828
60829         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60830         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60831
60832 2001-11-17  Jim Meyering  <meyering@lucent.com>
60833
60834         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60835         Prompted by a report from Bob Proulx.
60836
60837         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60838         Instead, require UTILS_FUNC_MKSTEMP.
60839
60840 2001-11-17  Jim Meyering  <meyering@lucent.com>
60841
60842         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60843         Now, that's done as part of AC_FUNC_STRTOD.
60844
60845 2001-11-17  Jim Meyering  <meyering@lucent.com>
60846
60847         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60848         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60849         rather than group writable.  Patch by Juan F. Codagnone.
60850
60851         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60852         xrealloc, Instead, include "xalloc.h".
60853
60854         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60855         Remove explicit declarations of xmalloc, xrealloc,
60856         and xstrdup.  Instead, include "xalloc.h".
60857
60858         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60859         unlocked-io.h.
60860         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60861         Likewise.
60862         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60863
60864         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60865         Reported by Padraig Brady.
60866
60867         * lib/mkstemp.c: #undef mkstemp.
60868         Include config.h.
60869         (rpl_mkstemp): Rename from mkstemp.
60870         Protoize.
60871
60872 2001-11-16  Jim Meyering  <meyering@lucent.com>
60873
60874         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60875         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60876         determine the amount of total physical memory, use pstat_getstatic.
60877         HPUX-11 doesn't define _SC_PHYS_PAGES.
60878         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60879         If sysconf couldn't be used to determine the amount of available
60880         physical memory, use both pstat_getstatic and pstat_getdynamic.
60881         Based on a patch from Bob Proulx.
60882
60883 2001-11-10  Jim Meyering  <meyering@lucent.com>
60884
60885         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60886         (jm_PREREQ): Use it.
60887
60888 2001-11-09  Jim Meyering  <meyering@lucent.com>
60889
60890         * m4/jm-macros.m4: Require autoconf-2.52f.
60891         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60892         Use these AC_-prefixed names, not the AM_-prefixed ones.
60893
60894         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60895
60896 2001-11-05  Jim Meyering  <meyering@lucent.com>
60897
60898         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60899
60900 2001-11-04  Jim Meyering  <meyering@lucent.com>
60901
60902         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60903         $DEFS.
60904
60905 2001-11-03  Jim Meyering  <meyering@lucent.com>
60906
60907         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60908         of AC_DEFUN.
60909
60910         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60911         know the name of the variable in the macro definition.
60912
60913 2001-11-03  Jim Meyering  <meyering@lucent.com>
60914
60915         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60916         in argmatch_to_argument call.
60917
60918         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60919         argument.
60920
60921         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60922         e.g., a fault due to an attempt to free a NULL pointer.
60923
60924 2001-11-01  Jim Meyering  <meyering@lucent.com>
60925
60926         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60927         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60928
60929 2001-11-01  Jim Meyering  <meyering@lucent.com>
60930
60931         * lib/dirfd.c, lib/dirfd.h: New files.
60932         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60933
60934         * lib/hash.c (hash_print) [TESTING]: Clean up.
60935
60936 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60937
60938         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60939         to avoid a warning if -Wall.
60940
60941 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60942
60943         * README: New file
60944         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60945         (per RMS's instructions, this is now the canonical source)
60946         * lgpl/, gpl/: New directories.
60947
60948 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60949
60950         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60951
60952 2001-10-21  Jim Meyering  <meyering@lucent.com>
60953
60954         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60955         this code would end up calling gettext even in packages built
60956         with --disable-nls.
60957         * lib/getopt.c (_): Likewise.
60958         * lib/regex.c (_): Likewise.
60959
60960 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60961
60962         * m4/error.m4 (jm_PREREQ_ERROR):
60963         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60964         AC_FUNC_STRERROR_R does that.
60965         Check for strerror declaration.
60966
60967         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60968         are supposed to have them these days.
60969         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60970         Merge changes from latest Autoconf CVS.
60971         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60972         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60973         POSIX decided to standardize on the int flavor of strerror_r.
60974
60975 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60976
60977         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60978         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60979         Use strerror_r that is only a macro, even if it is not a function.
60980         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60981         (private_strerror): Use prototypes, not old-style function definition.
60982         (print_errno_message): New function.
60983         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60984         char*-flavored one.
60985         (error_tail, error, error_at_line): Use it.
60986
60987 2001-10-11  Jim Meyering  <meyering@lucent.com>
60988
60989         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60990         and quote_n (1, ... to avoid clobbering a buffer.
60991
60992 2001-10-05  Jim Meyering  <meyering@lucent.com>
60993
60994         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60995         hash-pjw.h.
60996         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60997         * lib/hash-pjw.h: New file.
60998
60999 2001-09-30  Jim Meyering  <meyering@lucent.com>
61000
61001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61002         `struct fsstat' has the `f_fstypename' member.
61003         Use that to define FS_TYPE, which is now used to make
61004         the getfsstat link test tighter.
61005
61006 2001-09-30  Jim Meyering  <meyering@lucent.com>
61007
61008         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61009         Include <sys/ucred.h>, for Apple Darwin.
61010         Include sys/mount.h and sys/fs_types.h only if available.
61011         (FS_TYPE): Define.
61012         (read_filesystem_list): Use FS_TYPE.
61013
61014 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61015
61016         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61017         a boolean context.
61018
61019 2001-09-29  Jim Meyering  <meyering@lucent.com>
61020
61021         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61022         [one-argument getmntent function]): Include stdio.h before mntent.h.
61023         SunOS 4.1.x needs it for the declaration of `FILE'.
61024         Patch by Volker Borchert.
61025
61026         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61027         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61028         sys/fs_types.h, and make the link-test for getfsstat guard #include
61029         directives with appropriate #if HAVE_*_H tests so that we can
61030         detect getfsstat on Apple Darwin1.3.7 systems.
61031         Reported by Nelson Beebe.
61032         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61033
61034 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61035
61036         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61037         #defines strtoimax.  Also treat the other strto* functions
61038         like strtoimax.
61039
61040         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61041         Check for strtoul and strtoumax,
61042         as those declarations are made even in the signed case.
61043         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61044         Likewise, for strtol and strtoimax.
61045
61046 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61047
61048         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61049         #defines strtoimax.  Also treat the other strto* functions
61050         like strtoimax.
61051
61052         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61053         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61054         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61055
61056 2001-09-26  Jim Meyering  <meyering@lucent.com>
61057
61058         Most macros in unlocked-io.h had the wrong number of arguments.
61059         * lib/gen-uio: New script.
61060         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61061         * lib/unlocked-io.hin: Remove file.
61062         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61063         rather than trying to embed it here.
61064         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61065         Reported by Padraig Brady.
61066
61067 2001-09-25  Volker Borchert  <bt@teknon.de>
61068
61069         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61070         `result'.
61071
61072 2001-09-24  Jim Meyering  <meyering@lucent.com>
61073
61074         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61075
61076 2001-09-23  Jim Meyering  <meyering@lucent.com>
61077
61078         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61079         instead of the mere test for existence of mntent.h.  The latter
61080         would get a false-positive on AIX 3.4 systems.
61081         In the outer getmntent if-block, don't die if neither of the getmntent
61082         tests succeeds.  Instead, just fall through and continue with the
61083         remaining tests.
61084
61085 2001-09-23  Jim Meyering  <meyering@lucent.com>
61086
61087         * lib/mountlist.c: Remove useless parentheses in #if directives.
61088         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61089         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61090
61091 2001-09-22  Jim Meyering  <meyering@lucent.com>
61092
61093         * m4/gettext.m4: New file.  From gettext.
61094         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61095         * m4/progtest.m4: Likewise
61096         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61097         * m4/glibc21.m4: Likewise.
61098
61099         * m4/libintl.m4: Remove.  No longer used.
61100
61101 2001-09-22  Jim Meyering  <meyering@lucent.com>
61102
61103         * lib/localcharset.c: Update from latest gettext.
61104         * lib/config.charset: Likewise.
61105
61106 2001-09-20  Jim Meyering  <meyering@lucent.com>
61107
61108         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61109         strtoimax.
61110         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61111         strtoumax.
61112
61113 2001-09-20  Jim Meyering  <meyering@lucent.com>
61114
61115         * lib/xstrtol.c (strtoimax): Guard declaration with
61116         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61117         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61118         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61119         (strtoumax): Likewise, for completeness (it wasn't necessary).
61120
61121 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61122
61123         * lib/strtoimax.c (HAVE_LONG_LONG):
61124         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61125         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61126         to work around bug in IBM C compiler.
61127
61128 2001-09-17  Jim Meyering  <meyering@lucent.com>
61129
61130         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61131         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61132         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61133         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61134         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61135         whenever the right hand side need not be expanded by the shell.
61136
61137 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61138
61139         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61140         library.  It's not correct, as some older glibcs are buggy.
61141         fnmatch wasn't fixed until glibc 2.2.
61142
61143         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61144         special shell magic here.
61145
61146 2001-09-16  Jim Meyering  <meyering@lucent.com>
61147
61148         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61149         * m4/jm-macros.m4: Require it.
61150
61151 2001-09-16  Jim Meyering  <meyering@lucent.com>
61152
61153         * lib/mkdir.c: New file.
61154
61155 2001-09-15  Jim Meyering  <meyering@lucent.com>
61156
61157         * m4/jm-macros.m4: Check for help2man.
61158
61159 2001-09-11  Jim Meyering  <meyering@lucent.com>
61160
61161         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61162         The body, by Paul Eggert, was moved here from configure.in.
61163         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61164
61165 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61166
61167         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61168         (jm_PREREQ): Use it.
61169
61170 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61171
61172         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61173         Use ssize_t, not int, to store result of readlink.
61174         Check for ssize_t overflow as well as size_t overflow,
61175         as POSIX says the result of readlink is implementation-defined
61176         when ssize_t overflows.
61177         Remove unnecessary cast to char*.
61178         Use free+malloc instead of realloc, as the storage doesn't need
61179         to be preserved and it's clearer and can be more efficient that way.
61180         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61181         * lib/xreadlink.h (xreadlink): Update prototype.
61182
61183 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61184
61185         * lib/xgetcwd.c: Revert some of the previous change; intead,
61186         fix the HAVE_GETCWD_NULL code to behave more like the
61187         !HAVE_GETCWD_NULL code used to.
61188
61189         Include "xalloc.h".
61190         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61191         invoke xalloc_die.
61192
61193 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61194
61195         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61196         sys/param.h, as pathmax.h includes them.
61197
61198 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61199
61200         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61201         (jm_PREREQ_XGETCWD): New macro.
61202
61203         * m4/getcwd.m4: New file.
61204
61205 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61206
61207         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61208         like the HAVE_GETCWD_NULL code.
61209         Include pathmax.h if not HAVE_GETCWD.
61210         Do not include xalloc.h.
61211         (INITIAL_BUFFER_SIZE): New symbol.
61212         Do not use xmalloc / xrealloc, since the caller is responsible for
61213         handling errors.  Preserve errno around `free' during failure.
61214         Do not overrun buffer when using getwd.
61215
61216 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61217
61218         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61219         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61220         getcwd (NULL, 0).
61221
61222 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61223
61224         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61225         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61226         spotted by Jim Meyering.
61227
61228 2001-09-03  Jim Meyering  <meyering@lucent.com>
61229
61230         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61231         failure.
61232
61233 2001-09-02  Jim Meyering  <meyering@lucent.com>
61234
61235         * lib/error.c: Update from GNU libc.
61236
61237 2001-09-01  Jim Meyering  <meyering@lucent.com>
61238
61239         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61240         Used by df.
61241
61242 2001-09-01  Jim Meyering  <meyering@lucent.com>
61243
61244         * lib/xreadlink.c: New file.
61245         * lib/xreadlink.h: New file.
61246         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61247         xreadlink.h.
61248
61249         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61250         doesn't conflict with sparc Solaris 7's definition in
61251         /usr/include/sys/int_types.h.
61252
61253         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61254         files.
61255         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61256         and strncasecmp as r-values.  Unixware didn't have declarations.
61257
61258 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61259
61260         * lib/xstrtol.h: Add copyright notice.
61261         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61262         LONGINT_INVALID_SUFFIX_CHAR.
61263
61264 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61265
61266         * lib/xstrtol.c (strtoimax): New decl.
61267
61268 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61269
61270         * lib/xgetcwd.c: Don't include pathmax.h.
61271         Include stdlib.h and unistd.h if available.
61272         Include xalloc.h.
61273         (xmalloc, xstrdup, free): Remove decls.
61274         (xgetcwd): Don't assume sizes fit in unsigned.
61275         Check for overflow when computing sizes.
61276         Simplify reallocation code.
61277
61278 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61279
61280         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61281         a directory's st_size can have an arbitrary value, so the old
61282         usage could waste an arbitrary amount of memory.  All uses
61283         changed.
61284         * lib/savedir.h: Update prototype.
61285
61286 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61287
61288         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61289
61290         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61291         old strtoimax.c.
61292
61293         Also, make the following further changes to make this file's
61294         configuration more similar to that of strtol.c:
61295         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61296         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61297         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61298         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61299         changed to signed values.
61300
61301         And make the following changes as well:
61302         Fix copyright notice, as 1999 was missing.
61303         (verify): New macro.
61304         (strtoimax): Check sizes at compile-time, not run-time.
61305         Prefer strtol to strtoll if both work.
61306         (main): Remove; it was not that useful and was a pain to maintain.
61307
61308         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61309
61310 2001-08-31  Jim Meyering  <meyering@lucent.com>
61311
61312         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61313         Use an initial, malloc'd, buffer of length 128 rather than
61314         a statically allocated one of length 1024.
61315
61316 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61317
61318         Simplify code, partly by assuming autoconf 2.52 semantics.
61319
61320         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61321
61322         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61323         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61324         All uses removed.
61325         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61326         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61327         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61328         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61329         jm_AC_HEADER_INTTYPES_H.
61330         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61331
61332         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61333
61334         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61335         Quote first arg of AC_DEFUN.
61336         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61337         since they are needed to parse the include file even if we need
61338         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61339         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61340         but with opposite signedness.
61341
61342 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61343
61344         Merge 'exclude' changes from tar 1.13.22.
61345         This fixes one or two unlikely storage allocation overflow bugs,
61346         but doesn't change user-visible behavior otherwise.
61347
61348 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61349
61350         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61351         (jm_PREREQ_EXCLUDE): New macro.
61352
61353 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61354
61355         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61356         tm to be declared.
61357
61358 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61359
61360         * lib/hash.c: Remove '2001' from copyright notice.
61361
61362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61363
61364         * lib/full-write.h: New file.
61365         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61366         * lib/full-write.c: Correct credits, as cccp.c no longer
61367         exists and anyway it was so heavily changed from the old cccp
61368         code as to be unrecognizable.  Include full-write.h.
61369         (full_write) Return size_t, with short writes meaning failure.
61370         All callers changed.  This fixes a bug with large buffers
61371         on 64-bit hosts.
61372         * lib/utime.c: Include full-write.h.
61373
61374 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61375
61376         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61377         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61378         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61379         Include if available.
61380         (<xalloc.h>): Include
61381         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61382         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61383         collide with FNM macros.
61384         (struct patopts): New struct.
61385         (struct exclude): Use it, as exclude patterns now come with options.
61386         (new_exclude): Support above changes.
61387         (new_exclude, add_exclude_file):
61388         Initial size must now be a power of two to simplify overflow checking.
61389         (free_exclude, fnmatch_no_wildcards): New function.
61390         (excluded_filename): No longer requires options arg, as the options
61391         are determined by add_exclude.  Now returns bool, not int.
61392         (excluded_filename, add_exclude):
61393         Add support for the fancy new exclusion options.
61394         (add_exclude, add_exclude_file): Now takes int options arg.
61395         Check for arithmetic overflow when computing sizes.
61396         (add_exclude_file): xrealloc might modify errno, so don't
61397         realloc until after errno might be used.
61398
61399         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61400         New macros.
61401         (free_exclude): New decl.
61402         (add_exclude, add_exclude_file): Now takes int options arg.
61403         (excluded_filename): No longer requires options arg, as the options
61404         are determined by add_exclude.  Now returns bool, not int.
61405
61406 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61407
61408         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61409
61410 2001-08-27  Jim Meyering  <meyering@lucent.com>
61411
61412         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61413
61414         * lib/version-etc.c (N_): Remove definition.
61415         Revert most of last change.
61416         Instead, simply don't mark the `Copyright...' string for translation.
61417         Based on advice from Paul Eggert.
61418
61419         * lib/strtoxmax.c: Tweak comment.
61420
61421 2001-08-26  Jim Meyering  <meyering@lucent.com>
61422
61423         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61424
61425         * m4/xstrtoimax.m4: New file.
61426         * m4/xstrtoumax.m4: Add comments explaining why we
61427         AC_REPLACE_FUNCS(strtol).
61428
61429 2001-08-26  Jim Meyering  <meyering@lucent.com>
61430
61431         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61432         of copyright with `%s' so translators don't get an untranslated
61433         message in 2002.
61434         (COPYRIGHT_YEAR): Define.
61435         (version_etc): Use fprintf rather than fputs.
61436         Suggestion from Ulrich Drepper.
61437
61438         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61439
61440         * lib/strtoll.c: New file, from GNU libc.
61441         * lib/xstrtoimax.c: New file.
61442
61443         * lib/xstrtol.h: Add xstrtoimax.
61444         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61445         * lib/strtoimax.c: New file.  Likewise, but first define
61446         STRTOUXMAX_SIGNED.
61447
61448         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61449         ...
61450         * lib/strtoxmax.c: ... then renamed to this.
61451
61452 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61453
61454         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61455         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61456         (jm_AC_TYPE_INTMAX_T): New macro.
61457         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61458
61459         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61460
61461         * m4/longlong.m4: Renamed from ulonglong.m4.
61462         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61463         * m4/uintmax_t.m4: Removed.
61464
61465 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61466
61467         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61468         Port to Solaris 8, where 'sed' requires a space after the 'r'
61469         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61470         Redirect output to $tmp just once.
61471
61472 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61473
61474         * lib/addext.c (<errno.h>): Include.
61475         (errno): Declare if not defined.
61476         (addext): Work correctly when pathconf returns -1 and leaves
61477         errno alone because there is no limit.  Also, work even if
61478         pathconf returns a value greater than SIZE_MAX.
61479
61480 2001-08-12  Jim Meyering  <meyering@lucent.com>
61481
61482         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61483         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61484         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61485         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61486         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61487         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61488         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61489         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61490         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61491         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61492         utime.m4, utimes.m4, xstrtoumax.m4:
61493         Quote the first argument in each use of AC_DEFUN.
61494
61495 2001-08-12  Jim Meyering  <meyering@lucent.com>
61496
61497         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61498         Simply `return getcwd (NULL, 0);'.
61499         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61500         Use 1300 as initial value for length, not PATH_MAX.
61501
61502         * lib/pathmax.h: Clean up cpp syntax.
61503
61504 2001-08-12  Jim Meyering  <meyering@lucent.com>
61505
61506         * lib/gettimeofday.c: New file.
61507         * lib/gtod.h: New file.
61508         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61509
61510 2001-08-05  Jim Meyering  <meyering@lucent.com>
61511
61512         * m4/jm-macros.m4: Require autoconf-2.52.
61513
61514 2001-08-04  Jim Meyering  <meyering@lucent.com>
61515
61516         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61517         stmt, to get in sync with glibc.
61518
61519 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61520
61521         The following changes are from gettext 0.10.39 as maintained by
61522         Bruno Haible.
61523
61524         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61525         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61526         with inverted sense.  All uses changed.
61527
61528         * lib/mbswidth.c: Don't include <limits.h>.
61529         Include <stdlib.h> and <string.h> unconditionally.
61530         (iswcntrl, mbsinit, ISCNTRL): New macros.
61531         (mbsnwidth): Use K&R style function declarations.
61532         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61533         can optimize it when MB_CUR_MAX == 1.
61534         The width of control characters is zero, not 1.
61535
61536 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61537
61538         The following changes are from gettext 0.10.39 as maintained by
61539         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61540
61541         * m4/codeset.m4: Upgrade to serial AM1.
61542         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61543         all uses changed.  Quote first arg of AC_DEFUN.
61544         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61545
61546         * m4/iconv.m4: Upgrade to serial AM2.
61547         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61548         Add --with-libconv-prefix.
61549         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61550         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61551         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61552         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61553         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61554
61555         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61556         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61557         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61558         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61559         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61560         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61561         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61562         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61563         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61564
61565         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61566         string.h any more.
61567
61568         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61569         not the default value.
61570
61571         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61572         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61573         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61574         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61575         Also check for iswcntrl, used for wcwidth fallback.
61576         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61577         to Autoconf 2.13.
61578
61579 2001-08-03  Jim Meyering  <meyering@lucent.com>
61580
61581         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61582         as it was in the original.  Reported by Paul Eggert.
61583
61584 2001-07-16  Jim Meyering  <meyering@lucent.com>
61585
61586         * m4/gettimeofday.m4: New file.
61587         Prompted by a report from Bernhard Baehr.
61588
61589 2001-07-15  Jim Meyering  <meyering@lucent.com>
61590
61591         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61592         stuff. Now it's in ../Makefile.cfg.
61593
61594 2001-07-15  Jim Meyering  <meyering@lucent.com>
61595
61596         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61597         (BUILT_SOURCES): Add unlocked-io.h.
61598         (io_functions): Define.
61599         (unlocked-io.h): New rule.
61600         (DISTCLEANFILES): Add unlocked-io.h.
61601         (all-local): Depend on unlocked-io.h, to ensure it is created.
61602
61603         * lib/unlocked-io.hin: New file
61604
61605         * lib/regex.c: Update from glibc.
61606
61607 2001-07-05  Jim Meyering  <meyering@lucent.com>
61608
61609         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61610         recommendation.
61611         (libfetish_a_SOURCES): Put all .h files here instead.
61612         Remove a thus-exposed (better checks in automake) duplicate and
61613         two unnecessary .h files.
61614
61615 2001-07-04  Jim Meyering  <meyering@lucent.com>
61616
61617         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61618         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61619         distcheck failure.
61620
61621 2001-07-02  Jim Meyering  <meyering@lucent.com>
61622
61623         The following changes were prompted by suggestions from Bruno Haible.
61624
61625         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61626         is now generated.
61627         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61628         definition of EXTRA_DIST.
61629         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61630         ensure that the generated file is created/updated whenever the list
61631         of $(unlocked_functions) is changed.
61632         (jm-glibc-io.m4): New rule.
61633         (unlocked-io.h): New rule -- currently unused.
61634
61635 2001-06-24  Jim Meyering  <meyering@lucent.com>
61636
61637         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61638         unmatched right bracket, rather than kludging it with an extra,
61639         falsely-matching quote in a comment.  Patch by Akim Demaille.
61640
61641 2001-06-11  Jim Meyering  <meyering@lucent.com>
61642
61643         * lib/regex.c: Update from GNU libc.
61644
61645 2001-05-27  Jim Meyering  <meyering@lucent.com>
61646
61647         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61648         Check for ut_type in struct utmp.
61649
61650 2001-05-27  Jim Meyering  <meyering@lucent.com>
61651
61652         * lib/readutmp.h (UT_TYPE): Define.
61653
61654 2001-05-24  Jim Meyering  <meyering@lucent.com>
61655
61656         * lib/argmatch.c: Include "quote.h".
61657         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61658         quote function.  Reported by Göran Uddeborg.
61659
61660 2001-05-22  Jim Meyering  <meyering@lucent.com>
61661
61662         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61663         now that we use the package-supplied version unconditionally.
61664         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61665
61666 2001-05-21  Jim Meyering  <meyering@lucent.com>
61667
61668         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61669         shell syntax errors.
61670
61671 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61672
61673         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61674
61675 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61676
61677         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61678         Don't bother to check library strftime, since
61679         we'll be using our own my_strftime function anyway.
61680         Define my_strftime instead of strftime.
61681
61682 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61683
61684         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61685         which is not yet declared.
61686
61687 2001-05-15  Jim Meyering  <meyering@lucent.com>
61688
61689         * m4/regex.m4: Use proper quoting so brackets appear in the test
61690         program.
61691         Reported by, and with help from, Bruno Haible.
61692
61693 2001-05-13  Jim Meyering  <meyering@lucent.com>
61694
61695         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61696         undefined.
61697
61698 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61699
61700         dirname code cleanup.  base_name now behaves more compatibly
61701         with POSIX basename when given file names that have trailing
61702         slashes, and similarly for dir_name.  Add new primitives
61703         base_len and dir_len.  Put the directory-name-related decls
61704         into dirname.h.
61705
61706         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61707         * lib/backupfile.c (base_name): Likewise.
61708         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61709         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61710         * lib/makepath.c (strip_trailing_slashes): Likewise.
61711         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61712         ISSLASH): Likewise.
61713         * lib/rename.c (strip_trailing_slashes): Likewise.
61714         * lib/same.c (base_name): Likewise.
61715         * lib/stripslash.c (ISSLASH): Likewise.
61716
61717         * lib/addext.c: Include <dirname.h> after size_t is defined.
61718         * lib/backupfile.c: Likewise.
61719
61720         * lib/addext.c (addext): Use base_len to trim redundant
61721         trailing slashes instead of doing it ourselves.
61722         But do not trim the last slash if it is not redundant.
61723
61724         * lib/backupfile.c (find_backup_file_name,
61725         max_backup_version): Use base_len instead of rolling it ourselves.
61726         Handle the case of "" and (on DOS) "C:" correctly.
61727
61728         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61729         needed. Include <string.h>, <dirname.h>.
61730         (base_name): Allow file names ending in slashes, other than names
61731         that are all slashes.  In this case, return the basename followed
61732         by the slashes.  This is more general, and can be used in places
61733         where the original base_name purposely had an assertion failure.
61734         (base_len): New function.
61735
61736         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61737         Do not include <assert.h>; no longer needed.
61738         Include xalloc.h.
61739         (memrchr): Remove decl.
61740         (dir_name_r): Remove.
61741         (dir_len): Renamed from dirlen.  All callers changed.
61742         Rewrite in terms of base_name, for simplicity and consistency.
61743         (dir_name): Never return NULL.  All callers changed.
61744         Do not include <stdlib.h> in test program; no longer needed.
61745         return 0; is fine for test program.
61746
61747         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61748         New macros.
61749         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61750
61751         * lib/path-concat.c (path_concat): Use base_len to compute
61752         base length, not strlen; this means we cannot rely on memcpy
61753         to null-terminate.
61754
61755         * lib/same.c (STREQ): Remove.
61756         (same_name): Handle the case where the basename ends in trailing '/'.
61757
61758         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61759         a slash was stripped.  Do not strip the last slash after a
61760         file system prefix.
61761
61762 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61763
61764         * lib/Makefile.am (libfetish_a_SOURCES):
61765         Add strftime.c, since we now compile it on all hosts.
61766
61767         * lib/strftime.c (my_strftime):
61768         Define to nstrftime if emacs, but only if my_strftime is not defined.
61769         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61770         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61771         Add one more extra argument: a nanoseconds value.
61772         All uses changed.
61773         (ns): New macro.
61774         (my_strftime function): Add %N format.
61775         (emacs_strftimeu): Renamed from emacs_strftime,
61776         with extra ut argument.
61777
61778 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61779
61780         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61781
61782 2001-04-21  Jim Meyering  <meyering@lucent.com>
61783
61784         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61785         doesn't interfere.
61786
61787 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61788
61789         * m4/ftruncate.m4: Check for chsize.
61790         Link with ftruncate.o unconditionally if ftruncate is missing.
61791         This was required when cross-compiling to i586-mingw32msvc.
61792
61793 2001-04-08  Jim Meyering  <meyering@lucent.com>
61794
61795         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61796         recomputed; that's necessary when the offset spans a DST transition.
61797         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61798
61799 2001-04-02  Jim Meyering  <meyering@lucent.com>
61800
61801         * lib/regex.h, regex.c: Update from GNU libc.
61802
61803 2001-03-24  Jim Meyering  <meyering@lucent.com>
61804
61805         * m4/jm-macros.m4: Require autoconf-2.49d.
61806
61807 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61808
61809         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61810
61811 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61812
61813         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61814
61815 2001-03-17  Jim Meyering  <meyering@lucent.com>
61816
61817         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61818         now that the version in autoconf is equivalent.
61819         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61820
61821         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61822         Suggestion from Akim Demaille.
61823
61824         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61825         (jm_PREREQ_TEMPNAME): New function.
61826
61827 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61828
61829         * lib/tempname.c (uint64_t): Define to uintmax_t if
61830         not defined, and if UINT64_MAX is not defined.
61831         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61832         Reported by John David Anglin.
61833
61834 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61835
61836         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61837         resolve alias if codeset is empty.
61838         * lib/config.charset (BeOS): Use wildcard syntax.
61839
61840 2001-03-13  Jim Meyering  <meyering@lucent.com>
61841
61842         * lib/path-concat.c (path_concat)
61843         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61844         concatenating e.g., `C:' and `foo'.
61845         From Bruno Haible.
61846
61847 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61848
61849         * lib/localcharset.c (locale_charset): Don't use
61850         setlocale(LC_CTYPE,NULL). Don't return NULL.
61851         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61852
61853 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61854
61855         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61856         support for DOS/DJGPP.
61857
61858 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61859
61860         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61861         lacks mkstemp.  Compile our own tempname.c if we compile our own
61862         mkstemp.c, as mkstemp relies on tempname.
61863
61864 2001-03-01  Jim Meyering  <meyering@lucent.com>
61865
61866         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61867         AH_VERBATIM really does output its argument verbatim.
61868
61869 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61870
61871         * lib/Makefile.am (libfetish_a_SOURCES):
61872         Add dup-safer.c, fopen-safer.c.
61873         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61874
61875         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61876         * lib/unistd-safer.h: New files.
61877
61878 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61879
61880         The mkstemp replacement is taken from glibc 2.2.2, with some
61881         portability fixes for use outside glibc, as follows:
61882
61883         * lib/tempname.c (struct_stat64): New macro.
61884         (direxists, __gen_tempname): Use it.
61885         This avoids a portability problem with Solaris 8.
61886
61887         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61888         (<stddef.h>, <stdint.h>, <string.h>):
61889         Include only if STDC_HEADERS || _LIBC.
61890         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61891         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61892         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61893         (__set_errno): Define this macro if <errno.h> doesn't.
61894         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61895         Define these macros if <stdio.h> doesn't.
61896         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61897         Define these macros if <sys/stat.h>
61898         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61899         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61900         __xstat64): Define if not _LIBC.
61901         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61902         (__gen_tempname): Invoke gettimeofday only if
61903         HAVE_GETTIMEOFDAY || _LIBC;
61904         otherwise, fall back on plain "time".
61905         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61906
61907         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61908
61909         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61910
61911 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61912
61913         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61914
61915 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61916
61917         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61918         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61919         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61920         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61921
61922 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61923
61924         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61925         Remove workaround macros for hosts that have mbrtowc but not
61926         mbstate_t, as we now insist on proper declarations for both
61927         before using mbrtowc.
61928
61929 2001-02-17  Jim Meyering  <meyering@lucent.com>
61930
61931         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61932         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61933         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61934         UnixWare 7.1.1.
61935
61936         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61937         rather than AC_CACHE_VAL.
61938
61939 2001-02-17  Jim Meyering  <meyering@lucent.com>
61940
61941         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61942         around included file name.
61943
61944         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61945
61946         * lib/strftime.c: Update from GNU libc (the only changes were to
61947         comments).
61948
61949 2001-02-17  Jim Meyering  <meyering@lucent.com>
61950
61951         * lib/regex.c: Update from libc.
61952
61953 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61954
61955         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61956         clash.
61957
61958 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61959
61960         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61961         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61962         Reported by Mark Hounschell via Paul Eggert.
61963
61964 2001-02-07  Jim Meyering  <meyering@lucent.com>
61965
61966         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61967
61968 2001-02-05  Jim Meyering  <meyering@lucent.com>
61969
61970         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61971         it includes the patch required for `large file' support with at least
61972         HP-UX's 10.20 /bin/cc.
61973
61974 2001-02-03  Jim Meyering  <meyering@lucent.com>
61975
61976         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61977         AS_IF, now that it works once again (mysteriously).
61978         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61979
61980 2001-01-30  Jim Meyering  <meyering@lucent.com>
61981
61982         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61983         * m4/chown.m4: Rename conftestchown to conftest.chown.
61984         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61985         s/conftestdir2/conftest.d2/.
61986         * m4/utimes.m4: s/conftestdata/conftest.data/
61987         Inspired by Pavel Roskin's change in autoconf.
61988
61989 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61990
61991         * lib/config.charset: Update for FreeBSD 4.2.
61992
61993 2001-01-27  Jim Meyering  <meyering@lucent.com>
61994
61995         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61996         a use of AS_IF.
61997         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61998
61999 2001-01-26  Jim Meyering  <meyering@lucent.com>
62000
62001         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62002         quotearg.c includes it.
62003
62004 2001-01-26  Jim Meyering  <meyering@lucent.com>
62005
62006         * lib/quotearg.c: Include stddef.h.
62007         * lib/quote.c: Include stddef.h.
62008         Reported by Axel Kittenberger.
62009
62010         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62011         line in double quotes so that it evokes a better diagnostic.
62012         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62013         Reported by Axel Kittenberger.
62014
62015 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62016
62017         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62018         as if it was a `charset'.
62019
62020 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62021
62022         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62023         has const.
62024
62025 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62026
62027         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62028         to avoid a warning.  Add back 'const' to inptr.
62029
62030 2001-01-20  Jim Meyering  <meyering@lucent.com>
62031
62032         Be sure that headers are checked before used in code compiled
62033         for the type checks.
62034         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62035         In place of that, invoke jm_CHECK_ALL_TYPES.
62036         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62037         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62038         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62039         The check for ssize_t was mistakenly run before the test for unistd.h.
62040
62041         The configure-time check for stdbool.h was missing.
62042         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62043         (jm_PREREQ_HASH): New function.
62044
62045 2001-01-17  Jim Meyering  <meyering@lucent.com>
62046
62047         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62048         for autoconf-2.49c.
62049         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62050
62051 2001-01-16  Jim Meyering  <meyering@lucent.com>
62052
62053         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62054         From Bruno Haible.
62055
62056 2001-01-14  Jim Meyering  <meyering@lucent.com>
62057
62058         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62059         foo and bar.  Create conftestdir/ in the script, not in the C code.
62060         Remove directories in the script, not in the C code.
62061         Remove conftestdir{,2} before trying to create the directory.
62062         Make the entire configure script fail if the mkdir fails.
62063
62064 2001-01-14  Jim Meyering  <meyering@lucent.com>
62065
62066         * lib/rename.c: New file.  From Volker Borchert.
62067         Include stdlib.h, string.h or strings.h, and xalloc.h.
62068         Use strip_trailing_slashes rather than open-coding it.
62069
62070 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62071
62072         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62073
62074 2001-01-03  Jim Meyering  <meyering@lucent.com>
62075
62076         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62077         of local `inptr' to avoid warning with some system declarations of
62078         iconv.
62079
62080 2001-01-02  Volker Borchert  <bt@teknon.de>
62081
62082         * m4/rename.m4: New file.
62083         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62084
62085 2001-01-01  Jim Meyering  <meyering@lucent.com>
62086
62087         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62088         even on systems with utmpx.h.  It's necessary for the declaration of
62089         utmp's ut_user member.  Reported by Andreas Jaeger.
62090
62091         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62092         available. They are required for the declarations of getgrgid and
62093         getpwuid resp.
62094         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62095         Reported by Andreas Jaeger.
62096
62097 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62098
62099         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62100         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62101         so `make install' also works in VPATH builds.
62102
62103 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62104
62105         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62106         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62107         can be used in subdirectories.
62108
62109 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62110
62111         * lib/modechange.c: Do not assume that mode_t uses the
62112         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62113         the other-execute bit of FOO even if S_IXOTH != 1.
62114
62115         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62116         WOTH, XOTH, ALLM): New macros.
62117         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62118          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62119         Use them.
62120         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62121         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62122         (mode_compile):
62123         No need to use uintmax_t; unsigned long is long enough.
62124         Don't bother to get suffix since we don't use it.
62125
62126 2000-12-26  Jim Meyering  <meyering@lucent.com>
62127
62128         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62129         better with autoheader.
62130
62131 2000-12-24  Jim Meyering  <meyering@lucent.com>
62132
62133         * lib/hash.c (is_prime): Return explicit boolean values.
62134         (hash_get_first): Return NULL to appease Irix5.6's 89.
62135         Reported by Nelson Beebe.
62136
62137 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62138
62139         * lib/localcharset.c (locale_charset): Add support for Win32.
62140
62141 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62142
62143         * lib/physmem.h, lib/physmem.c: New files.
62144
62145         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62146         (noinst_HEADERS): Add physmem.h.
62147
62148         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62149         't' for compatibility with Solaris 8 sort.
62150
62151 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62152
62153         * lib/config.charset: Add support for BeOS.
62154
62155 2000-12-17  Jim Meyering  <meyering@lucent.com>
62156
62157         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62158         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62159
62160 2000-12-16  Jim Meyering  <meyering@lucent.com>
62161
62162         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62163         N and M) would have treated it like `chown N:N FILE'.
62164
62165         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62166
62167 2000-12-16  Jim Meyering  <meyering@lucent.com>
62168
62169         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62170         SHELLS_FILE to a file name that's useful on djgpp systems.
62171         Include stdlib.h.
62172         (ADDITIONAL_DEFAULT_SHELLS): Define.
62173         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62174         Based mostly on a patch from Prashant TR.
62175
62176 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62177
62178         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62179         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62180         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62181
62182 2000-12-08  Andreas Schwab  <schwab@suse.de>
62183
62184         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62185         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62186
62187 2000-12-07  Jim Meyering  <meyering@lucent.com>
62188
62189         * lib/stripslash.c (ISSLASH): Define.
62190         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62191         `/'.
62192         From Prashant TR.
62193
62194         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62195         (dir_name_r): Declare this function as static.
62196         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62197         manifest itself on a name containing a mix of slashes and
62198         backslashes.
62199         Make this function work with names starting with a DOS-style
62200         drive letter and colon prefix.
62201         (dir_name): Append `.' if necessary.
62202         Based mostly on patches from Prashant TR and Eli Zaretskii.
62203
62204         * lib/dirname.h (dir_name_r): Remove prototype.
62205
62206 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62207
62208         * m4/off_t-format.m4: Remove this file.
62209         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62210
62211 2000-12-06  Jim Meyering  <meyering@lucent.com>
62212
62213         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62214         replacement strtoull, we may well need the replacement strtoul, too.
62215         Check for declarations of strtoul and strtoull.
62216         Check for strtol.  Mainly as a cue to cause automake to include
62217         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62218         Check for limits.h -- strtol.c needs it.
62219
62220 2000-12-05  Jim Meyering  <meyering@lucent.com>
62221
62222         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62223
62224 2000-12-04  Jim Meyering  <meyering@lucent.com>
62225
62226         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62227         Also include memory.h, stdlib.h, unistd.h if appropriate.
62228         Reported by Andreas Jaeger (conflicting declaration of malloc).
62229
62230 2000-12-02  Jim Meyering  <meyering@lucent.com>
62231
62232         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62233         * m4/jm-macros.m4 (jm_MACROS): require it.
62234
62235 2000-12-02  Jim Meyering  <meyering@lucent.com>
62236
62237         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62238
62239 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62240
62241         * lib/memrchr.c: Include <config.h> before any system include file.
62242
62243 2000-11-30  Jim Meyering  <meyering@lucent.com>
62244
62245         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62246
62247 2000-11-30  Jim Meyering  <meyering@lucent.com>
62248
62249         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62250
62251 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62252
62253         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62254
62255 2000-11-26  Jim Meyering  <meyering@lucent.com>
62256
62257         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62258
62259 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62260
62261         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62262         size of (size_t) -1; it's not portable.
62263
62264 2000-11-17  Jim Meyering  <meyering@lucent.com>
62265
62266         * lib/strstr.c: Update from GNU libc.
62267
62268 2000-11-17  Akim Demaille  <akim@epita.fr>
62269
62270         * lib/obstack.h: Formatting changes.
62271         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62272         prevent type checking.
62273         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62274         cast the value to (void *): assigning a `foo *' to a `void *'
62275         variable is valid.
62276         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62277
62278 2000-11-16  Jim Meyering  <meyering@lucent.com>
62279
62280         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62281
62282 2000-11-11  Jim Meyering  <meyering@lucent.com>
62283
62284         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62285
62286 2000-11-10  Jim Meyering  <meyering@lucent.com>
62287
62288         * lib/obstack.h: Update from GNU libc.
62289         * lib/obstack.c: Likewise.
62290
62291 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62292
62293         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62294
62295 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62296
62297         * lib/getusershell.c (setusershell): Use rewind rather than
62298         fseek/fseeko, to avoid configuration hassles with fseeko.
62299         Don't bother opening SHELLS_FILE if shellstream is NULL;
62300         it's not necessary.
62301
62302 2000-11-05  Jim Meyering  <meyering@lucent.com>
62303
62304         * lib/makepath.h (make_dir): Declare.
62305         * lib/makepath.c (make_dir): Remove `static' attribute.
62306         Tweak a comment.
62307
62308 2000-11-04  Jim Meyering  <meyering@lucent.com>
62309
62310         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62311
62312 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62313
62314         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62315         last one in a bucket, advance to the next bucket.
62316
62317 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62318
62319         * lib/fnmatch.c: Do not comment out all the code if we are using
62320         the GNU C library, because in some cases we are replacing buggy
62321         code in the GNU C library itself.
62322
62323 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62324
62325         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62326         (regex_compile): Catch bogus \(\1\).
62327
62328 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62329
62330         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62331         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62332         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62333
62334 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62335
62336         * lib/error.h, getline.h, modechange.h:
62337         Remove "2000" from Copyright line, as the file hasn't been
62338         changed this year other than in the copyright notice.
62339
62340         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62341         was changed this year.
62342
62343 2000-10-29  Jim Meyering  <meyering@lucent.com>
62344
62345         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62346         renaming.
62347         * m4/ls-mntd-fs.m4: Likewise
62348
62349 2000-10-29  Jim Meyering  <meyering@lucent.com>
62350
62351         * lib/xstat.in: Fix grammar in comment.
62352
62353 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62354
62355         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62356         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62357         doesn't define __restrict_arr.
62358
62359 2000-10-28  Jim Meyering  <meyering@lucent.com>
62360
62361         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62362         (jm_PREREQ_MEMCHR): New function.
62363
62364 2000-10-28  Jim Meyering  <meyering@lucent.com>
62365
62366         * lib/memchr.c: Update from libc.
62367         Adjust for portability:
62368         [HAVE_STDLIB_H]: Include stdlib.h.
62369         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62370         Undef __memchr, too.
62371         [!weak_alias]: Define __memchr to memchr.
62372
62373         * lib/regex.c: Update from libc.
62374         * lib/regex.h: Likewise.
62375         * lib/getopt1.c: Likewise.
62376         * lib/memcmp.c: Likewise.
62377
62378         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62379         Avoid using fseek, when possible -- it's broken by design.
62380         Patch by Ulrich Drepper.
62381
62382 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62383
62384         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62385         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62386         Giving in to popular pressure to shut up the compiler with casts.
62387
62388 2000-10-26  Jim Meyering  <meyering@lucent.com>
62389
62390         * lib/strftime.c: Update from libc.
62391
62392 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62393
62394         * regex.c: More `unsigned char' -> `re_char' changes.
62395         Also change several `int' into `re_wchar_t'.
62396         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62397         (PUSH_FAILURE_POINTER): Don't cast any more.
62398         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62399         We want GCC to complain, since this piece of code makes
62400         re_match non-reentrant, which *should* be fixed.
62401         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62402         (EXTEND_BUFFER): Use RETALLOC.
62403         (SET_LIST_BIT): Don't cast.
62404         (re_wchar_t): New type.
62405         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62406         that those two functions will always properly return.
62407         (IMMEDIATE_QUIT_CHECK): Cast to void.
62408         (analyse_first): Use recursion rather than an explicit stack.
62409         (re_compile_fastmap): Can't fail anymore.
62410         (re_search_2): Don't check re_compile_fastmap for failure.
62411         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62412         Now also sets the new value (passed in a new argument).
62413         (re_match_2_internal): Use it.
62414         Also, use a new var `reg' of type size_t when looping through regs
62415         rather than reuse the inappropriate `mcnt'.
62416
62417 2000-10-25  Jim Meyering  <meyering@lucent.com>
62418
62419         * lib/obstack.c: Update from libc.
62420
62421 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62422
62423         * regex.c (regex_compile): Change the way of handling a range from
62424         a char less than 256 to a char not less than 256.
62425
62426 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62427
62428         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62429         NT-Emacs only.
62430         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62431         so that re_search functions only quit when callers expect them to.
62432
62433 2000-10-23  Jim Meyering  <meyering@lucent.com>
62434
62435         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62436         wrong.  That set_locale call must not have any side effects.
62437         From Paul Eggert.
62438
62439 2000-10-22  Jim Meyering  <meyering@lucent.com>
62440
62441         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62442         [CYCLIC]: Remove now-unused definition.
62443
62444         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62445         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62446         Suggestion from Ulrich Drepper.
62447
62448 2000-10-21  Jim Meyering  <meyering@lucent.com>
62449
62450         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62451         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62452         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62453
62454 2000-10-21  Jim Meyering  <meyering@lucent.com>
62455
62456         * lib/dirname.c (memrchr): Declare if necessary.
62457         (dir_name): Remove the restriction that there be no
62458         trailing slashes.  Now, this code skips past them, effectively
62459         ignoring them.
62460         [TEST_DIRNAME] (main): New unit tests.
62461
62462         * lib/memrchr.c: New file from GNU libc.
62463         Undef __memrchr, too.
62464         [!weak_alias]: Define __memrchr to memrchr.
62465         Guard weak_alias use with `#ifdef weak_alias'.
62466
62467 2000-10-21  Jim Meyering  <meyering@lucent.com>
62468
62469         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62470         (dir_name): Use dir_name_r.
62471         * lib/dirname.h (dir_name_r): Declare it.
62472
62473 2000-10-17  Jim Meyering  <meyering@lucent.com>
62474
62475         * lib/quote.h (PARAMS): Define and use.
62476         Reported by Akim Demaille.
62477
62478         * lib/getopt.c: Update from libc.
62479
62480 2000-10-16  Jim Meyering  <meyering@lucent.com>
62481
62482         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62483         setlocale.
62484         From Jan Fedak.
62485
62486 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62487
62488         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62489
62490 2000-09-25  Jim Meyering  <meyering@lucent.com>
62491
62492         * lib/md5.h (rol): Define (from GnuPG).
62493
62494         * lib/sha.c: Give credit (GnuPG) where due.
62495         (M): Use rol rather than open-coding it.
62496         Add a FIXME comment.
62497
62498 2000-09-21  Jim Meyering  <meyering@lucent.com>
62499
62500         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62501         Reported by Michael Stone.
62502
62503 2000-09-20  Jim Meyering  <meyering@lucent.com>
62504
62505         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62506         (noinst_HEADERS): Add sha.h.
62507         Based on code from Scott G. Miller and from GnuPG.
62508
62509 2000-09-18  Jim Meyering  <meyering@lucent.com>
62510
62511         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62512         LIBS. Otherwise, everyone ends up linking with -lelf for some
62513         configurations.
62514         Reported by Mike Stone.
62515
62516 2000-09-15  Jim Meyering  <meyering@lucent.com>
62517
62518         * lib/regex.c: Update from libc.
62519
62520 2000-09-10  Jim Meyering  <meyering@lucent.com>
62521
62522         * lib/getopt.c (_getopt_internal): Update from glibc.
62523
62524 2000-09-09  Jim Meyering  <meyering@lucent.com>
62525
62526         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62527         think it should be used as a general replacement for isascii.
62528         * lib/fnmatch.c: Likewise.
62529         * lib/mbswidth.c: Likewise
62530         * lib/regex.c: Likewise.
62531
62532         Don't use atoi.
62533         * lib/userspec.c: Include sys/param.h and limits.h.
62534         Include xstrtol.h.
62535         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62536         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62537         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62538         UID, GID.  Check range.
62539
62540 2000-09-06  Jim Meyering  <meyering@lucent.com>
62541
62542         * lib/getopt.c (_getopt_internal): Update from glibc.
62543
62544 2000-08-30  Jim Meyering  <meyering@lucent.com>
62545
62546         * lib/strftime.c: Merge in changes from GNU libc.
62547
62548 2000-08-26  Jim Meyering  <meyering@lucent.com>
62549
62550         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62551         * m4/fpending.m4: New file.
62552
62553 2000-08-26  Jim Meyering  <meyering@lucent.com>
62554
62555         * lib/closeout.c: Include "__fpending.h".
62556         (close_stdout_status): Return right away if there's nothing to flush.
62557
62558         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62559         * lib/__fpending.c: New file.
62560         * lib/__fpending.h: New file.
62561
62562 2000-08-20  Jim Meyering  <meyering@lucent.com>
62563
62564         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62565         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62566         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62567
62568 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62569
62570         Improve fileutils installation on systems where running
62571         programs (like install) can't be unlinked.
62572         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62573         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62574
62575 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62576
62577         Standardize on "memory exhausted" instead of "Memory exhausted"
62578         or "virtual memory exhausted".
62579         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62580         "virtual memory exhausted".
62581         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62582         our own message.
62583         * lib/userspec.c (parse_user_spec): Likewise.
62584         * lib/bumpalloc.h: comment fix
62585         * lib/same.c, userspec.c: Include xalloc.h.
62586
62587         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62588         not char *const and pointing to a constant array.
62589         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62590         (xrealloc): Comment fix.
62591
62592         * lib/userspec.c (parse_user_spec):
62593         Don't translate a message until just before returning,
62594         to avoid unnecessary translation.
62595
62596 2000-08-07  Jim Meyering  <meyering@lucent.com>
62597
62598         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62599         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62600         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62601         getgroups.c, gethostname.c, getopt.h, group-member.c,
62602         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62603         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62604         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62605         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62606         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62607         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62608         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62609         yesno.c: Back out Copyright date changes for each file with no change
62610         this year.  This eases coordination with other programs using the same
62611         source code modules.  From Paul Eggert.
62612
62613 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62614
62615         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62616         not char, for compatibility with glibc 2.1.3 strftime.c.
62617
62618 2000-08-03  Greg McGary  <greg@mcgary.org>
62619
62620         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62621         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62622         (EXTEND_BUFFER): Use them.
62623
62624 2000-08-01  Jim Meyering  <meyering@lucent.com>
62625
62626         * lib/dirname.c (ISSLASH): Define.
62627         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62628         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62629         both `\' and `/' may be use as path separators.
62630         Based on a patch from Prashant TR.
62631
62632 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62633
62634         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62635         slot vector a constant, since it might get modified.
62636
62637 2000-07-31  Jim Meyering  <meyering@lucent.com>
62638
62639         * lib/xmalloc.c: Use `virtual memory exhausted', not
62640         `Memory exhausted'.
62641         * lib/obstack.c (print_and_abort): Likewise.
62642
62643 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62644
62645         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62646         buffer, so that the caller can always quote one small
62647         component of a "memory exhausted" message in slot 0.
62648         From a suggestion by Jim Meyering.
62649
62650 2000-07-30  Jim Meyering  <meyering@lucent.com>
62651
62652         * lib/makepath.c (make_path): Quote the other instance, too.
62653
62654         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62655         (STATIC_BUF_SIZE): Define.
62656         (quotearg_n_options): Use only statically allocated storage when
62657         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62658         than STATIC_BUF_SIZE.
62659
62660 2000-07-29  Jim Meyering  <meyering@lucent.com>
62661
62662         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62663         * lib/dirname.c (dir_name): Likewise.
62664
62665         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62666         `/'.
62667
62668         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62669         (dir_name): Assert that there are no trailing slashes.
62670
62671 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62672
62673         * lib/mbswidth.h (mbswidth): Add a flags argument.
62674         (mbswidth): New declaration.
62675         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62676         * lib/mbswidth.c (mbswidth): Add a flags argument.
62677         (mbsnwidth): New function.
62678
62679 2000-07-24  Jim Meyering  <meyering@lucent.com>
62680
62681         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62682
62683 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62684
62685         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62686
62687 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62688
62689         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62690         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62691         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62692         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62693         invoke multibyte primitives.
62694
62695 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62696
62697         * lib/quotearg.c:
62698         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62699         so that mbstate_t is always defined.
62700
62701         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62702         be 1 in at least one GCC installation, and this configuration
62703         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62704         performance on hosts that have mbrtowc but have only unibyte
62705         locales, but I assume these hosts are rare.
62706
62707 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62708
62709         * lib/mbswidth.c (_XOPEN_SOURCE):
62710         Don't define; this causes problems on Solaris 7.
62711         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62712
62713 2000-07-23  Jim Meyering  <meyering@lucent.com>
62714
62715         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62716         too: getgrgid, getpwuid, getuid.
62717
62718 2000-07-23  Jim Meyering  <meyering@lucent.com>
62719
62720         * lib/basename.c (base_name): Add an assertion.
62721
62722 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62723
62724         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62725         shadow its mbsinit function.
62726
62727 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62728
62729         * lib/mbswidth.h: New file.
62730         * lib/mbswidth.c: New file.
62731         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62732         (noinst_HEADERS): Add mbswidth.h.
62733
62734 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62735
62736         * lib/config.charset: Add support for FreeBSD. Improve support for
62737         HP-UX and IRIX 6.
62738
62739 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62740
62741         * m4/mbswidth.m4: New file.
62742         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62743
62744 2000-07-15  Jim Meyering  <meyering@lucent.com>
62745
62746         * lib/makepath.c: Include quote.h.
62747         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62748         corresponding argument in a `quote (...)' call.
62749         Give better diagnostics.
62750
62751         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62752         (noinst_HEADERS): Add quote.h.
62753
62754         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62755         from tar's src/misc.c.
62756         * lib/quote.h: New file.  Prototypes for same.
62757
62758 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62759
62760         From a suggestion by Bruno Haible.
62761         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62762         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62763         to decide whether to define the BeOS workaround macro;
62764         this adjusts to the change to AC_MBSTATE_T.
62765
62766 2000-07-14  Jim Meyering  <meyering@lucent.com>
62767
62768         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62769         jm_AC_TYPE_UINTMAX_T.
62770
62771 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62772
62773         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62774
62775         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62776         quotearg_buffer_restyled): Add support for
62777         clocale_quoting_style.  Undo previous change to
62778         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62779         and "{RIGHT QUOTATION MARK}" msgids.
62780
62781 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62782
62783         From a suggestion by Bruno Haible.
62784         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62785         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62786         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62787         and mbstate_t, to a single-part test that simply defines mbstate_t.
62788         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62789         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62790
62791 2000-07-10  Jim Meyering  <meyering@lucent.com>
62792
62793         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62794
62795         * m4/gnu-source.m4: Output to confdefs.h directly.
62796         Suggestion from Akim Demaille.
62797
62798 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62799
62800         The old behavior of quoting `like this' doesn't look good with
62801         newer, ISO-style fonts.  See:
62802         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62803
62804         Instead, quote "like this" by default.  Let the translator
62805         tailor the locale-specific quoting behavior by providing
62806         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62807
62808         * lib/quotearg.c (N_): New macro.
62809         (gettext_default): New function.
62810         (quotearg_buffer_restyled): Use
62811         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62812         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62813
62814 2000-07-09  Jim Meyering  <meyering@lucent.com>
62815
62816         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62817         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62818
62819         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62820         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62821
62822 2000-07-09  Jim Meyering  <meyering@lucent.com>
62823
62824         * lib/Most files: Update copyright dates to include 2000.
62825
62826 2000-07-08  Jim Meyering  <meyering@lucent.com>
62827
62828         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62829         if not defined.
62830         (xgethostname): Remove now-unnecessary #ifdef.
62831         Move declaration of `err' into loop where it's used.
62832
62833 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62834         and Bruno Haible  <haible@clisp.cons.org>
62835
62836         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62837         only if the test for an object-type mbstate_t fails.  This
62838         prevents us from mistakenly reporting that mbstate_t is a
62839         system object type after we "#define mbstate_t int" to work
62840         around its lack.
62841
62842 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62843         and Bruno Haible  <haible@clisp.cons.org>
62844
62845         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62846
62847 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62848
62849         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62850         to strerror_r.
62851         Include <ctype.h> for use of isalpha.
62852
62853 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62854
62855         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62856         by allocating a larger buffer. Test the gethostname return value for
62857         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62858         returns an error and ENAMETOOLONG isn't defined.
62859
62860 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62861
62862         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62863         dimension.
62864
62865 2000-07-04  Jim Meyering  <meyering@lucent.com>
62866
62867         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62868         of the deprecated AC_CHECKING.
62869
62870 2000-07-04  Jim Meyering  <meyering@lucent.com>
62871
62872         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62873         Reported by Bruno Haible.
62874
62875 2000-07-04  Jim Meyering  <meyering@lucent.com>
62876
62877         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62878         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62879         lacks mbrtowc.
62880
62881 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62882
62883         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62884         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62885
62886 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62887         and Bruno Haible  <haible@clisp.cons.org>
62888
62889         * lib/quotearg.c (mbrtowc):
62890         Assign to *pwc, and return 1 only if result is nonzero.
62891         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62892
62893 2000-07-03  Jim Meyering  <meyering@lucent.com>
62894
62895         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62896
62897 2000-07-03  Jim Meyering  <meyering@lucent.com>
62898
62899         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62900         This is necessary to get a definition of e.g., UTMP_FILE on
62901         HP-UX 10.20.
62902         From Bob Proulx.
62903
62904 2000-07-02  Jim Meyering  <meyering@lucent.com>
62905
62906         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62907
62908         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62909         AC_LIBOBJ(function_name).
62910         * m4/chown.m4: Likewise.
62911         * m4/fnmatch.m4: Likewise.
62912         * m4/ftruncate.m4: Likewise.
62913         * m4/getgroups.m4: Likewise.
62914         * m4/getline.m4: Likewise.
62915         * m4/group-member.m4: Likewise.
62916         * m4/jm-macros.m4: Likewise.
62917         * m4/lstat.m4: Likewise.
62918         * m4/malloc.m4: Likewise.
62919         * m4/memcmp.m4: Likewise.
62920         * m4/nanosleep.m4: Likewise.
62921         * m4/putenv.m4: Likewise.
62922         * m4/realloc.m4: Likewise.
62923         * m4/regex.m4: Likewise.
62924         * m4/stat.m4: Likewise.
62925         * m4/strftime.m4: Likewise.
62926
62927 2000-07-02  Jim Meyering  <meyering@lucent.com>
62928
62929         * lib/quotearg.c (mbstate_t): Don't define here.
62930
62931 2000-07-02  Jim Meyering  <meyering@lucent.com>
62932
62933         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62934
62935 2000-07-01  Jim Meyering  <meyering@lucent.com>
62936
62937         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62938
62939 2000-07-01  Jim Meyering  <meyering@lucent.com>
62940
62941         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62942         problem.
62943
62944 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62945
62946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62947         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62948
62949 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62950
62951         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62952         per change in ../m4/ls-mntd-fs.m4.
62953         (read_filesystem_list): Ignore symbolic links.
62954
62955 2000-06-29  Jim Meyering  <meyering@lucent.com>
62956
62957         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62958         for declaration of strcmp.
62959
62960         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62961
62962         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62963         Avoid warning by casting result to `char *' to remove `const'.
62964
62965 2000-06-28  Jim Meyering  <meyering@lucent.com>
62966
62967         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62968         included by quotearg.c, for which we perform this test.  From
62969         Bruno Haible.
62970
62971 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62972
62973         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62974         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62975         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62976
62977 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62978
62979         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62980
62981 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62982
62983         savedir now sets errno on failure and invokes xmalloc to get memory.
62984         Fix a couple of other minor bugs while we're at it.
62985
62986         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62987         (NAMLEN): Remove macro.
62988         (malloc, realloc): Remove decls.
62989         (stpcpy): Likewise.
62990         ("xalloc.h"): Include.
62991         (NAME_SIZE_DEFAULT): New macro.
62992         (savedir): Use xmalloc / xrealloc to allocate memory.
62993         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62994         Skip "" directory entries.
62995         Use strlen to calculate directory entry length, since the old method
62996         is rarely used these days and isn't worth supporting.
62997         Don't use a pointer after freeing it.
62998         Check for integer overflow when calculating allocation size.
62999         Use memcpy to copy entries, instead of stpcpy.
63000         Set errno properly when returning NULL.
63001         Check for readdir error.
63002
63003 2000-06-26  Jim Meyering  <meyering@lucent.com>
63004
63005         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63006
63007 2000-06-25  Jim Meyering  <meyering@lucent.com>
63008
63009         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63010         Linux header bug when _XOPEN_SOURCE is defined to 500.
63011
63012 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63013
63014         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63015         deficiency.
63016
63017 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63018
63019         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63020         Include xalloc.h.
63021         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63022
63023 2000-06-24  Jim Meyering  <meyering@lucent.com>
63024
63025         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63026         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63027         for which strerror does return char*, but which lacks a conveniently
63028         accessible declaration of the function.  If the compile-test says
63029         strerror_r doesn't work, then resort to a `run'-test that works on
63030         BeOS and segfaults on DEC Unix.
63031
63032 2000-06-24  Jim Meyering  <meyering@lucent.com>
63033
63034         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63035
63036 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63037
63038         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63039         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63040
63041 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63042
63043         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63044         (mbrtowc, mbstate_t): Define substitutes if
63045         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63046         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63047         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63048
63049 2000-06-23  Jim Meyering  <meyering@lucent.com>
63050
63051         * m4/afs.m4: Add missing AC_MSG_RESULT.
63052         Reported by Bruno Haible.
63053
63054         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63055         Suggestion from Bruno Haible.
63056
63057 2000-06-23  Jim Meyering  <meyering@lucent.com>
63058
63059         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63060
63061 2000-06-21  Jim Meyering  <meyering@lucent.com>
63062
63063         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63064
63065 2000-06-21  Jim Meyering  <meyering@lucent.com>
63066
63067         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63068         (noinst_HEADERS): Add getstr.h.
63069
63070         * lib/getline.c (getstr): Move into a separate file.
63071         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63072         the following changes: new parameter, delim2; both delim[12]
63073         parameters have type `int', not `char'.  The latter would lose
63074         with 8-bit delimiters.
63075         * lib/getstr.h: New file.
63076
63077 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63078
63079         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63080         than 1024, return a memory chunk of least possible size, instead
63081         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63082         Use free/xmalloc instead of xrealloc to avoid copying for very long
63083         paths.
63084
63085 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63086
63087         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63088         the empty string.
63089
63090 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63091
63092         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63093         address, not strdup.  Include <stdlib.h> and don't declare free().
63094
63095 2000-06-19  Jim Meyering  <meyering@lucent.com>
63096
63097         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63098
63099 2000-06-18  Jim Meyering  <meyering@lucent.com>
63100
63101         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63102
63103         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63104         `checking whether...' message to be consistent with that of the
63105         lstat test.
63106
63107 2000-06-18  Jim Meyering  <meyering@lucent.com>
63108
63109         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63110         Besides, these days every porting target provides a mkdir function.
63111
63112         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63113         needed. (this snippet comes from src/system.h).
63114
63115 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63116
63117         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63118
63119 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63120
63121         * lib/human.c (adjust_value): New function.
63122         (human_readable_inexact): Apply rounding style even when
63123         printing approximate values.
63124
63125 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63126
63127         * lib/human.c (human_readable_inexact): Allow an input block
63128         size that is not a multiple of the output block size, and vice versa.
63129         Reported by Piergiorgio Sartor.
63130
63131 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63132
63133         * lib/getdate.y (get_date): Apply relative times after time
63134         zone indicator, not before.  Reported by Todd A. Jacobs.
63135
63136 2000-06-13  Jim Meyering  <meyering@lucent.com>
63137
63138         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63139
63140         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63141
63142 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63143
63144         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63145
63146 2000-06-12  Jim Meyering  <meyering@lucent.com>
63147
63148         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63149         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63150         optional argument.
63151         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63152         the optional argument, `lib'.
63153
63154 2000-06-08  Jim Meyering  <meyering@lucent.com>
63155
63156         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63157
63158 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63159
63160         Rewrite largefile configuration so that we don't need to run
63161         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63162         AC_CANONICAL_HOST in configure.in -- jmm]
63163
63164         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63165         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63166         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63167         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63168         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63169         All uses changed.
63170         Instead of inspecting the output of getconf, try to compile the
63171         test program without and with the macro definition.
63172         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63173         for getconf.  Instead, check for the needed flags by compiling
63174         test programs.
63175
63176 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63177
63178         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63179
63180 2000-06-04  Jim Meyering  <meyering@lucent.com>
63181
63182         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63183         SunOS 4.1.4 for which gid_t is an unsigned type.
63184
63185 2000-06-03  Jim Meyering  <meyering@lucent.com>
63186
63187         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63188         now that autoconf requires that.
63189
63190         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63191         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63192         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63193
63194 2000-06-03  Jim Meyering  <meyering@lucent.com>
63195
63196         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63197
63198 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63199
63200         * m4/glibc21.m4: New file.
63201         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63202
63203 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63204
63205         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63206         newer, don't install charset.alias.
63207         * lib/config.charset: Change the Linux/glibc rules so they become empty
63208         on glibc-2.1 or newer.
63209
63210 2000-06-02  Jim Meyering  <meyering@lucent.com>
63211
63212         * lib/mountlist.c: Back out last change.  Instead, do this...
63213         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63214         me_dummy member using the same `ignore'-testing code.
63215         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63216         fs_type strings.
63217         From Mark D. Roth.
63218
63219 2000-05-29  Jim Meyering  <meyering@lucent.com>
63220
63221         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63222         mounts with the `ignore' attribute.  Based on a patch from
63223         Mark D. Roth.
63224
63225 2000-05-28  Jim Meyering  <meyering@lucent.com>
63226
63227         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63228         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63229         * m4/stat.m4: Likewise.
63230         * m4/lstat.m4: Likewise.
63231         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63232
63233         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63234         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63235
63236 2000-05-26  Jim Meyering  <meyering@lucent.com>
63237
63238         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63239
63240 2000-05-24  Jim Meyering  <meyering@lucent.com>
63241
63242         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63243         autoconf requires that.
63244         * m4/lib-check.m4: Likewise.
63245         * m4/jm-macros.m4: Likewise.
63246         * m4/strftime.m4: Likewise.
63247
63248         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63249         AC_CHECK_DECLS, now that autoconf requires that.
63250
63251 2000-05-22  Jim Meyering  <meyering@lucent.com>
63252
63253         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63254         * m4/lstat.m4: Likewise.
63255
63256 2000-05-22  Jim Meyering  <meyering@lucent.com>
63257
63258         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63259
63260 2000-05-20  Jim Meyering  <meyering@lucent.com>
63261
63262         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63263         (jm_PREREQ): Use it.
63264
63265 2000-05-18  Jim Meyering  <meyering@lucent.com>
63266
63267         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63268         back, too, since it may have been modified by allocate_entry.
63269         (hash_delete): Rewrite to use neither the assignment operator
63270         nor the comma operator in an if-expression.
63271
63272 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63273
63274         * lib/closeout.c:
63275         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63276         Remove; no longer needed.
63277         "quotearg.h": Add include.
63278         (file_name): Do not bother to explicitly initialize to NULL; it's less
63279         efficient on some hosts.
63280         (close_stdout_status): Remove test as to whether stdout was already
63281         closed; it breaks for the case "echo x | sort >&-".
63282         Quote file name colons.
63283         Do not assume that _("write error") lacks format strings.
63284
63285 2000-05-15  Jim Meyering  <meyering@lucent.com>
63286
63287         * lib/version-etc.c (version_etc_copyright): Update the copyright
63288         string used in all --version output.
63289
63290 2000-05-14  Jim Meyering  <meyering@lucent.com>
63291
63292         * lib/closeout.c (close_stdout_set_file_name): New function.
63293         (close_stdout_status): Use new file-scoped global.
63294         Return right away if fstat says the stdout file descriptor is invalid.
63295         * lib/closeout.h (close_stdout_set_file_name): Declare.
63296
63297 2000-05-10  Jim Meyering  <meyering@lucent.com>
63298
63299         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63300         (close_stdout_set_status): New function.
63301         * lib/closeout.h (close_stdout_set_status): Declare.
63302
63303 2000-05-09  Jim Meyering  <meyering@lucent.com>
63304
63305         * m4/gettext.m4: Rename this...
63306         * m4/libintl.m4: ...to this.
63307
63308 2000-05-08  Jim Meyering  <meyering@lucent.com>
63309
63310         * lib/long-options.c: Don't include closeout.h.
63311         (parse_long_options): Don't call close_stdout for --version.
63312
63313 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63314
63315         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63316         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63317         2.1.3 bug.  This avoids a clash when files like regex.c define
63318         _GNU_SOURCE.
63319
63320 2000-05-06  Jim Meyering  <meyering@lucent.com>
63321
63322         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63323         (AC_REPLACE_FUNCS): Add strnlen.
63324
63325         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63326         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63327
63328         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63329         AC_SEARCH_LIBS call for nanosleep.
63330         (LIB_NANOSLEEP): Set and AC_SUBST.
63331
63332 2000-05-06  Jim Meyering  <meyering@lucent.com>
63333
63334         * lib/strnlen.c: Undefine __strnlen and strnlen.
63335         [!weak_alias]: Define __strnlen to strnlen.
63336
63337         * lib/atexit.c: New file, from libiberty.
63338
63339 2000-05-06  Jim Meyering  <meyering@lucent.com>
63340
63341         * lib/closeout.c (close_stdout_status): Also check for errors on the
63342         stderr stream.
63343
63344 2000-05-05  Jim Meyering  <meyering@lucent.com>
63345
63346         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63347         AC_SEARCH_LIBS call for clock_gettime.
63348         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63349
63350         * m4/search-libs.m4: Update from autoconf.
63351
63352         su doesn't work on Solaris 2.6.
63353         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63354         <shadow.h>.  Reported by Dragos Harabor.
63355
63356 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63357
63358         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63359         memcpy instead of xmalloc, xrealloc, path_concat.
63360         (locale_charset): Treat empty environment variables as absent.
63361         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63362
63363 2000-05-04  Jim Meyering  <meyering@lucent.com>
63364
63365         * lib/getopt.c: Update from glibc.
63366         * lib/obstack.c: Likewise.
63367         * lib/obstack.h: Likewise.
63368         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63369         file
63370
63371         * lib/regex.h: Likewise.
63372         * lib/strndup.c: Likewise.
63373         * lib/strnlen.c: New file, from glibc.
63374
63375 2000-05-03  Jim Meyering  <meyering@lucent.com>
63376
63377         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63378
63379 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63380
63381         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63382         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63383         compile-time test, rather than inspecting host and OS, to
63384         decide whether to define _LARGEFILE_SOURCE.
63385
63386 2000-05-01  Jim Meyering  <meyering@lucent.com>
63387
63388         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63389
63390         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63391         Based on a patch from Bruno Haible.
63392
63393 2000-05-01  Jim Meyering  <meyering@lucent.com>
63394
63395         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63396
63397 2000-04-29  Jim Meyering  <meyering@lucent.com>
63398
63399         * lib/path-concat.c: Declare strdup only if it's not defined.
63400         * lib/canon-host.c: Likewise.
63401
63402 2000-04-28  Jim Meyering  <meyering@lucent.com>
63403
63404         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63405         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63406         is included first, then limits.h is included by locale.h by libintl.h.
63407         From John David Anglin.
63408
63409 2000-04-25  Jim Meyering  <meyering@lucent.com>
63410
63411         * lib/makepath.c (S_IRWXUGO): Define.
63412         (make_path): Always perform explicit chmod if MODE specifies any
63413         of the `special' permission bits.  Prompted by a bug report against
63414         install from Mate Wierdl and Joost van Baal.
63415
63416 2000-04-18  Jim Meyering  <meyering@lucent.com>
63417
63418         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63419         (jm_PREREQ): Use it.
63420
63421 2000-04-18  Jim Meyering  <meyering@lucent.com>
63422
63423         * lib/README: New file.
63424
63425         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63426         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63427
63428 2000-04-17  Jim Meyering  <meyering@lucent.com>
63429
63430         Get it right :-)
63431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63432         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63433         Suggestion from Akim Demaille.
63434
63435 2000-04-17  Jim Meyering  <meyering@lucent.com>
63436
63437         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63438         the definition of it to rpl_strftime also defined-away the system's
63439         declaration.
63440
63441 2000-04-15  Jim Meyering  <meyering@lucent.com>
63442
63443         Use `C' to denote so-called `contiguous' files, the same way
63444         that tar does.
63445         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63446         (ftypelet): Use S_ISCTG.
63447         From Michael Deutschmann.
63448
63449 2000-04-14  Jim Meyering  <meyering@lucent.com>
63450
63451         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63452         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63453         clobbered.
63454
63455 2000-04-14  Jim Meyering  <meyering@lucent.com>
63456
63457         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63458
63459 2000-04-13  Jim Meyering  <meyering@lucent.com>
63460
63461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63462         AH_VERBATIM to insert required #ifndef into config.h.in.
63463         Suggestion from Akim Demaille.
63464
63465 2000-04-12  Jim Meyering  <meyering@lucent.com>
63466
63467         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63468         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63469         Christian Krackowizer.
63470
63471         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63472         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63473         (AC_SYS_LARGEFILE): Require.
63474         (AM_C_PROTOTYPES): Require.
63475
63476 2000-04-08  Jim Meyering  <meyering@lucent.com>
63477
63478         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63479         names don't conflict.  Reported by Eli Zaretskii.
63480
63481 2000-04-07  Jim Meyering  <meyering@lucent.com>
63482
63483         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63484         sys/types.h, to work around system header problems on AIX 3.2.5.
63485         From Bruno Haible.
63486
63487 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63488
63489         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63490         bug.  Deal with the different error behavior of Irix iconv.
63491
63492 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63493
63494         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63495         IRIX if the installer said otherwise.
63496
63497 2000-04-05  Jim Meyering  <meyering@lucent.com>
63498
63499         Portability tweaks required for ultrix4.3.
63500         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63501         (jm_CHECK_DECLS): Add getutent to the list of functions.
63502         (_jm_DECL_HEADERS): Add utmpx.h.
63503         From John David Anglin.
63504
63505         * m4/strftime.m4: Back out the 2000-04-02 change.
63506         Instead of that change, simply undefine putenv in the test program.
63507
63508 2000-04-05  Jim Meyering  <meyering@lucent.com>
63509
63510         Portability tweaks required for ultrix4.3.
63511         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63512         getutent.
63513         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63514         * lib/canon-host.c: Declare strdup.
63515         * lib/path-concat.c: Likewise.
63516         From John David Anglin.
63517
63518 2000-04-04  Jim Meyering  <meyering@lucent.com>
63519
63520         Be more DOS 8.3-friendly.
63521         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63522         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63523         * lib/Makefile.am: Reflect renaming.
63524         Reported by Eli Zaretskii.
63525
63526         Use a temporary file name that won't clash with `charset.alias'
63527         in the DOS 8.3 name space.
63528         * lib/Makefile.am (charset_tmp): Define.
63529         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63530         (uninstall-local): Likewise.
63531         Reported by Eli Zaretskii.
63532
63533 2000-04-03  Jim Meyering  <meyering@lucent.com>
63534
63535         * m4/gettext.m4: Fix typo in comment.
63536
63537         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63538         textutils/configure.in).  Suggestion from Paul Eggert.
63539         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63540
63541 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63542
63543         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63544         variable in the shell rather than using putenv, which isn't
63545         portable.  This avoids the configure-time inter-test dependency
63546         on the potentially-renamed putenv function.
63547
63548 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63549
63550         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63551         before checking struct stat.st_blksize, so that
63552         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63553
63554 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63555
63556         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63557         since strftime.c uses HAVE_STRFTIME to decide whether to use
63558         the underlying strftime.
63559
63560 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63561
63562         * lib/time/strftime.c (my_strftime): Make sure we call the system
63563         strftime, not ourselves, when invoking the underlying strftime.
63564
63565 2000-03-24  Jim Meyering  <meyering@lucent.com>
63566
63567         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63568         (charset_alias): Define.
63569         (install-exec-local): Factor out common code.
63570         (uninstall-local): Split lines longer than 80.
63571         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63572         (SUFFIXES): Define.
63573         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63574         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63575
63576 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63577
63578         * lib/config.charset: Output a line containing "Packages using this
63579         file".
63580         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63581         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63582         ref-del.sed): New rules.
63583
63584 2000-03-17  Jim Meyering  <meyering@lucent.com>
63585
63586         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63587         Otherwise, include <strings.h>
63588
63589 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63590
63591         * lib/unicodeio.c (utf8_wctomb): New function.
63592         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63593         format instead of in UCS-4 with platform dependent endianness.
63594
63595 2000-03-10  Jim Meyering  <meyering@lucent.com>
63596
63597         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63598         From Marco Franzen.
63599
63600 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63601
63602         * lib/savedir.c (savedir): Work even if directory size is
63603         negative; this can happen with some screwy NFS configurations.
63604
63605 2000-03-06  Jim Meyering  <meyering@lucent.com>
63606
63607         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63608         if it's NULL (because we ran out of memory).  From Bruno Haible.
63609
63610 2000-03-05  Jim Meyering  <meyering@lucent.com>
63611
63612         * lib/localcharset.c ("path-concat.h"): Include.
63613         (get_charset_aliases): Use path_concat instead of ANSI string
63614         concatenation.
63615
63616         * lib/unicodeio.h (PARAMS): Define.
63617         Use it to guard prototype.
63618
63619 2000-03-04  Jim Meyering  <meyering@lucent.com>
63620
63621         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63622         for lib/localcharset.c.
63623
63624 2000-03-04  Jim Meyering  <meyering@lucent.com>
63625
63626         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63627         installing into it.
63628         (uninstall-local): Uncomment this rule so `make distcheck' works
63629         once again.
63630
63631         * lib/unicodeio.c (<errno.h>): Include it.
63632         (errno): Declare if not defined.
63633
63634         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63635
63636         * lib/config.charset: New version, incorporating remarks from a linux
63637         i18n mailing list.  From Bruno Haible.
63638
63639 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63640
63641         * m4/codeset.m4: New file.
63642         * m4/iconv.m4: New file.
63643         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63644
63645 2000-03-03  Jim Meyering  <meyering@lucent.com>
63646
63647         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63648
63649 2000-03-02  Jim Meyering  <meyering@lucent.com>
63650
63651         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63652         the messages come out on separate lines.
63653
63654         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63655         rather than jm_CHECK_DECLARATIONS.
63656         * m4/decl.m4: Remove now-unused file.
63657
63658         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63659         geteuid.
63660
63661 2000-03-02  Jim Meyering  <meyering@lucent.com>
63662
63663         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63664
63665 2000-03-01  Jim Meyering  <meyering@lucent.com>
63666
63667         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63668         * lib/unicodeio.c: Likewise.
63669
63670 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63671
63672         * lib/config.charset: New file.
63673         * lib/localcharset.c: New file.
63674         * lib/unicodeio.h, lib/unicodeio.c: New files.
63675         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63676         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63677         (noinst_HEADERS): Add unicodeio.h.
63678         (all-local, install-exec-local, charset.alias): New targets.
63679
63680 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63681
63682         * lib/quotearg.c (ALERT_CHAR): New macro.
63683         (quotearg_buffer_restyled): Use it.
63684
63685 2000-02-27  Jim Meyering  <meyering@lucent.com>
63686
63687         * m4/check-decl.m4: Add getenv to the list.
63688
63689 2000-02-27  Jim Meyering  <meyering@lucent.com>
63690
63691         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63692         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63693
63694         * lib/backupfile.c: Guard inclusion of stdlib.h with
63695         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63696         Declare malloc if needed.
63697
63698         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63699         `#ifndef HAVE_DECL..'
63700         now that autoconf always defines the HAVE_DECL_ symbols.
63701         * lib/human.c: Likewise.
63702         * lib/same.c: Likewise.
63703         * lib/strtoumax.c: Likewise.
63704
63705         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63706         declaration check was not run.
63707         * lib/hash.c: Likewise.
63708         * lib/human.c: Likewise.
63709         * lib/same.c: Likewise.
63710         * lib/strtoumax.c: Likewise.
63711
63712         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63713         `.', then first look up the entire `.'-containing string as a login
63714         name.
63715
63716 2000-02-23  Jim Meyering  <meyering@lucent.com>
63717
63718         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63719         in place of my hack.
63720
63721 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63722
63723         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63724         (textint): New typedef.
63725         (parser_control): Member year changed from int to textint.
63726         All uses changed.
63727         (YYSTYPE): Removed; replaced by %union with int and textint members.
63728         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63729         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63730         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63731         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63732         (date, number, to_year): Use width of number in digits, not its value,
63733         to determine whether it's a 2-digit year, or a 2-digit time.
63734         (yylex): Store number of digits of numeric tokens.
63735         Reported by John Kendall.
63736
63737         (parser_control): Changed from struct parser_control to typedef (for
63738         consistency).  All uses changed.
63739
63740         (tID): Removed; not used.
63741         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63742
63743 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63744
63745         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63746         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63747
63748 2000-02-12  Jim Meyering  <meyering@lucent.com>
63749
63750         * lib/userspec.c (ISDIGIT): Define it.
63751         (isdigit): Remove definition.
63752         (is_number): Use ISDIGIT, not isdigit.
63753         <libintl.h>: Include.
63754         (_ and N_): Define.
63755         (parse_user_spec): Mark translatable strings.
63756
63757 2000-02-10  Jim Meyering  <meyering@lucent.com>
63758
63759         With these changes, nanosleep.[ch] are finally enough like the other
63760         lib/* replacement files to compile on a few more losing systems.
63761
63762         * lib/nanosleep.h: Don't include config.h.
63763         Remove prototype from declaration of nanosleep.
63764         (PARAMS): Remove now-unneeded definition.
63765         * lib/nanosleep.c: #undef nanosleep.
63766         (rpl_nanosleep): Rename from nanosleep.
63767
63768 2000-02-10  Jim Meyering  <meyering@lucent.com>
63769
63770         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63771         gnu_nanosleep to rpl_nanosleep.
63772
63773 2000-02-09  Jim Meyering  <meyering@lucent.com>
63774
63775         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63776         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63777
63778 2000-02-08  Akim Demaille  <akim@epita.fr>
63779
63780         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63781         `[' and `]' and remove uses of `changequote'.
63782         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63783         (AC_SYS_LARGEFILE): Likewise.
63784         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63785         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63786         of changequote.
63787         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63788         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63789         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63790         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63791
63792 2000-02-05  Jim Meyering  <meyering@lucent.com>
63793
63794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63795         Remove explicit use of AC_HEADER_TIME.  It is required by
63796         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63797         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63798         in autoconf whereby the expansion of the latter ended up preceding
63799         the expansion of its prerequisite, AC_HEADER_TIME.
63800         Reported by Volker Borchert.
63801
63802 2000-02-03  Jim Meyering  <meyering@lucent.com>
63803
63804         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63805
63806 2000-02-03  Jim Meyering  <meyering@lucent.com>
63807
63808         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63809         rather than with `#if HAVE_UTMPNAME'.
63810
63811 2000-02-02  Jim Meyering  <meyering@lucent.com>
63812
63813         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63814         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63815         Reported by Eli Zaretskii.
63816
63817 2000-02-01  Jim Meyering  <meyering@lucent.com>
63818
63819         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63820
63821 2000-01-31  Jim Meyering  <meyering@lucent.com>
63822
63823         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63824         functions.  Add the time.h and sys/time.h headers along with the
63825         AC_REQUIRE'ment of AC_HEADER_TIME.
63826
63827 2000-01-31  Jim Meyering  <meyering@lucent.com>
63828
63829         * lib/nanosleep.h (nanosleep): Guard declaration with
63830         `#if ! HAVE_DECL_NANOSLEEP'.
63831         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63832         the declaration in that vendor's sys/timers.h.
63833         Reported by Christian Krackowizer.
63834
63835         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63836         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63837         (ISPRINT): Likewise.
63838         Reported by Tom Tromey.
63839
63840 2000-01-30  Jim Meyering  <meyering@lucent.com>
63841
63842         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63843
63844         * m4/prereq.m4 (utmp_includes): Define.
63845         Check for ut_user and ut_name members in both struct utmpx
63846         and struct utmp.
63847
63848 2000-01-30  Jim Meyering  <meyering@lucent.com>
63849
63850         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63851         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63852         header files where only utmpx.ut_user is declared.
63853
63854         * lib/readutmp.h (UT_USER): Define.
63855
63856 2000-01-29  Jim Meyering  <meyering@lucent.com>
63857
63858         * m4/lib-check.m4: New file containing library-related checks from
63859         fileutils and sh-utils (textutils had none).
63860
63861 2000-01-28  Jim Meyering  <meyering@lucent.com>
63862
63863         * m4/perl.m4: Change format of warning message to look more like that
63864         from the missing script.  Suggestion from François Pinard.
63865
63866 2000-01-25  Jim Meyering  <meyering@lucent.com>
63867
63868         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63869         well as time.h in the compile check.
63870         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63871         Fix typo in cross-compiling case: s/yes/no/.
63872
63873 2000-01-23  Jim Meyering  <meyering@lucent.com>
63874
63875         * m4/jm-macros.m4: Move df-related tests here from
63876         fileutils/configure.in
63877
63878         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63879         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63880
63881         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63882         s/space/ac_fsusage_space/.
63883         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63884
63885         * m4/ftruncate.m4: New file (derived from part of
63886         fileutils/configure.in).
63887         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63888         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63889
63890         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63891         AC_SUBST these here, rather than just in sh-util/configure.in, so
63892         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63893         all the same.
63894         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63895         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63896         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63897         (AC_SUBST(POW_LIBM)): Likewise.
63898         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63899
63900 2000-01-23  Jim Meyering  <meyering@lucent.com>
63901
63902         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63903         obstack.c.
63904
63905 2000-01-22  Jim Meyering  <meyering@lucent.com>
63906
63907         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63908
63909         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63910
63911         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63912         configure.in
63913         (AC_CHECK_HEADERS): Likewise for sh-utils.
63914         (AC_CHECK_HEADERS): Likewise for textutils.
63915         Merge the three lists of headers.
63916
63917         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63918         from fileutils' configure.in.
63919
63920         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63921         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63922         check-decl.m4.
63923
63924         * m4/check-decl.m4: Use #if rather than #ifdef.
63925         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63926         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63927         (_jm_DECL_HEADERS): Define new function.
63928         (jm_CHECK_DECLARATIONS): Require it.
63929
63930 2000-01-22  Jim Meyering  <meyering@lucent.com>
63931
63932         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63933         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63934         Required for some AIX systems.  Reported by Christian Krackowizer.
63935         [TESTING] (main): New function.
63936
63937         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63938         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63939         letters.
63940
63941         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63942         iswprint.
63943
63944         * lib/strverscmp.c (ISDIGIT): Define.
63945         (strverscmp): Use ISDIGIT, not isdigit.
63946
63947 2000-01-19  Jim Meyering  <meyering@lucent.com>
63948
63949         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63950         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63951         defines `struct timespec' in <sys/time.h>
63952
63953         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63954         Thanks to Akim for explaining.
63955
63956 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63957
63958         * lib/nanosleep.c (nanosleep):
63959         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63960         POSIX.1 doesn't require SA_INTERRUPT and some systems
63961         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63962         it's been part of POSIX.1 since day 1 (in 1988).
63963
63964 2000-01-17  Jim Meyering  <meyering@lucent.com>
63965
63966         * lib/interlock: Remove unused file.  Reported by François Pinard.
63967
63968 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63969
63970         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63971         alert, backslash, formfeed, and vertical tab unnecessarily in
63972         shell quoting style.
63973
63974 2000-01-16  Jim Meyering  <meyering@lucent.com>
63975
63976         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63977         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63978         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63979         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63980
63981 2000-01-16  Jim Meyering  <meyering@lucent.com>
63982
63983         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63984         because the latter didn't work.
63985
63986 2000-01-15  Jim Meyering  <meyering@lucent.com>
63987
63988         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63989         (AC_REPLACE_FUNCS): Add memcpy and memset.
63990         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63991         Add strpbrk.
63992         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63993
63994 2000-01-12  Jim Meyering  <meyering@lucent.com>
63995
63996         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63997         (jm_PREREQ): Use it.
63998         (jm_PREREQ_READUTMP): New macro.
63999         (jm_PREREQ): Use it.
64000
64001 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64002
64003         Quote multibyte characters correctly.
64004         * m4/c-bs-a.m4: New file.
64005         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64006         (jm_PREREQ): Use it.
64007
64008 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64009
64010         * m4/uintmax_t.m4: Port to autoconf 2.13.
64011
64012 2000-01-08  Jim Meyering  <meyering@ascend.com>
64013
64014         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64015         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64016
64017 2000-01-04  Jim Meyering  <meyering@ascend.com>
64018
64019         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64020         jm_STRUCT_DIRENT_D_TYPE.
64021         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64022         jm_STRUCT_DIRENT_D_INO.
64023         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64024         jm_STRUCT_UTIMBUF.
64025         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64026         renamings.
64027         * m4/utime.m4: Likewise.
64028
64029         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64030         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64031
64032 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64033
64034         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64035         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64036
64037 2000-01-02  Jim Meyering  <meyering@ascend.com>
64038
64039         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64040         remember if this is necessary.
64041
64042 1999-12-26  Jim Meyering  <meyering@ascend.com>
64043
64044         * m4/jm-macros.m4: Use it here.
64045         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64046
64047 1999-12-23  Jim Meyering  <meyering@ascend.com>
64048
64049         * m4/jm-macros.m4: Check for clock_gettime (moved from
64050         fileutils/configure.in)
64051         Check for gettimeofday.
64052
64053 1999-12-20  Jim Meyering  <meyering@ascend.com>
64054
64055         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64056         autoconf-2.14a-1999-12-20.
64057
64058 1999-12-19  Jim Meyering  <meyering@ascend.com>
64059
64060         * m4/lstat-slash.m4: New file.
64061         * m4/jm-macros.m4: Use the new macro:
64062         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64063
64064 1999-12-07  Jim Meyering  <meyering@ascend.com>
64065
64066         * m4/perl.m4: Require that File::Compare be available, too.
64067         Too many systems seem to lack it.
64068
64069         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64070         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64071
64072 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64073
64074         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64075         problem with the QNX 4.25 shell, which doesn't propagate exit
64076         status of failed commands inside shell assignments.
64077
64078 1999-11-17  Jim Meyering  <meyering@ascend.com>
64079
64080         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64081
64082 1999-11-07  Jim Meyering  <meyering@ascend.com>
64083
64084         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64085
64086 1999-11-06  Jim Meyering  <meyering@ascend.com>
64087
64088         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64089         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64090
64091 1999-11-05  Jim Meyering  <meyering@ascend.com>
64092
64093         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64094         configure.in of textutils, fileutils, and sh-utils into this one
64095         (shared between those packages) file.
64096         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64097         AC_STRUCT_ST_BLKSIZE.
64098
64099 1999-11-03  Jim Meyering  <meyering@ascend.com>
64100
64101         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64102         of AC_CHECK_TYPE checks includes unistd.h.
64103         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64104         Suggestion from Akim Demaille.
64105
64106 1999-10-30  Jim Meyering  <meyering@ascend.com>
64107
64108         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64109         m4-quoted string.
64110         * m4/ls-mntd-fs.m4: Likewise.
64111         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64112         * m4/jm-winsz1.m4: Likewise.
64113
64114         * m4/const.m4: Remove file, since the fix made it into the experimental
64115         version of autoconf.
64116         * m4/mktime.m4: Likewise.
64117
64118         * m4/check-type.m4: Remove file, now that the latest version of
64119         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64120
64121         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64122         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64123         AC_CHECK_TYPE.
64124
64125 1999-10-04  Jim Meyering  <meyering@ascend.com>
64126
64127         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64128
64129 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64130
64131         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64132         2.95.1 bug with HP-UX 10.20.
64133
64134 1999-09-17  Jim Meyering  <meyering@ascend.com>
64135
64136         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64137         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64138         due to missing strdup (against sh-utils-2.0).
64139
64140 1999-08-29  Jim Meyering  <meyering@ascend.com>
64141
64142         * m4/jm-macros.m4: Require jm_BISON.
64143         * m4/bison.m4: New file.
64144
64145 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64146
64147         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64148         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64149
64150 1999-08-05  Jim Meyering  <meyering@ascend.com>
64151
64152         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64153         to avoid conflicts with `conftest' on 8+3 filesystems.
64154         Suggestion from Eli Zaretskii.
64155
64156 1999-08-04  Jim Meyering  <meyering@ascend.com>
64157
64158         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64159         fileutils and sh-utils (textutils's getline test was inadequate).
64160         (AM_FUNC_GETLINE): Run this test.
64161         (AC_CHECK_FUNCS): Check for getdelim.
64162         Reported by Bob Proulx.
64163
64164 1999-08-02  Jim Meyering  <meyering@ascend.com>
64165
64166         * m4/jm-macros.m4: Add a comment.
64167
64168 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64169
64170         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64171         <inttypes.h> defines strtoumax as a macro (and not as a
64172         function).
64173
64174 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64175
64176         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64177         that we can shift, multiply and divide unsigned long long
64178         values; Ultrix cc can't do it.
64179
64180 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64181
64182         * m4/mktime.m4: New file, which is a preview of what should appear
64183         in the next public autoconf release.
64184
64185 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64186
64187         * m4/lfs.m4: Remove this file.
64188         * m4/largefile.m4: New file.  It contains the old contents of
64189         lfs.m4, except that all names with prefix AC_LFS have been
64190         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64191         compatible with future autoconf versions.  Also, some minor m4
64192         quoting problems have been fixed.
64193
64194 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64195
64196         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64197         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64198         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64199         and simplify the shell code.
64200
64201 1999-08-01  Jim Meyering  <meyering@ascend.com>
64202
64203         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64204         m4.
64205
64206 1999-07-20  Jim Meyering  <meyering@ascend.com>
64207
64208         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64209
64210 1999-07-15  Jim Meyering  <meyering@ascend.com>
64211
64212         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64213
64214 1999-05-22  Jim Meyering  <meyering@ascend.com>
64215
64216         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64217
64218 1999-05-20  Jim Meyering  <meyering@ascend.com>
64219
64220         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64221         Add a colon after each `then' in case $4 is empty.
64222
64223 1999-05-16  Jim Meyering  <meyering@ascend.com>
64224
64225         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64226
64227 1999-05-10  Jim Meyering  <meyering@ascend.com>
64228
64229         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64230
64231         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64232         AC_FUNC_MKTIME.
64233
64234 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64235
64236         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64237
64238 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64239
64240         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64241         not CPPFLAGS, so that linking works correctly in IRIX.
64242
64243 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64244
64245         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64246
64247 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64248
64249         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64250         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64251         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64252         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64253         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64254
64255         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64256
64257 1999-04-20  Jim Meyering  <meyering@ascend.com>
64258
64259         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64260         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64261         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64262
64263 1999-04-18  Jim Meyering  <meyering@ascend.com>
64264
64265         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64266         * m4/jm-macros.m4: Use it.
64267
64268 1999-04-06  Jim Meyering  <meyering@ascend.com>
64269
64270         * m4/strftime.m4: Remove test for %f.
64271
64272 1999-03-29  Jim Meyering  <meyering@ascend.com>
64273
64274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64275         superset of the AC_TYPE_* checks in the textutils, fileutils,
64276         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64277         AC_TYPE_PID_T.
64278
64279 1999-03-28  Jim Meyering  <meyering@ascend.com>
64280
64281         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64282         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64283         replaced e.g., in the *.sh files of the sh-utils.
64284
64285 1999-03-20  Jim Meyering  <meyering@ascend.com>
64286
64287         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64288         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64289         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64290
64291 1999-03-19  Jim Meyering  <meyering@ascend.com>
64292
64293         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64294
64295 1999-03-12  Jim Meyering  <meyering@ascend.com>
64296
64297         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64298
64299 1999-03-07  Jim Meyering  <meyering@ascend.com>
64300
64301         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64302         declared.
64303
64304 1999-02-17  Jim Meyering  <meyering@ascend.com>
64305
64306         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64307         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64308
64309 1999-02-07  Jim Meyering  <meyering@ascend.com>
64310
64311         * m4/group-member.m4: New file -- extracted from sh-utils'
64312         configure.in.
64313
64314         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64315         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64316
64317 1999-02-06  Jim Meyering  <meyering@ascend.com>
64318
64319         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64320         * m4/fnmatch.m4: Likewise.
64321         * m4/getgroups.m4: Likewise.
64322         * m4/lstat.m4: Likewise.
64323         * m4/malloc.m4: Likewise.
64324         * m4/putenv.m4: Likewise.
64325         * m4/realloc.m4: Likewise.
64326         * m4/regex.m4: Likewise.
64327         * m4/stat.m4: Likewise.
64328         * m4/strftime.m4: Likewise.
64329         Suggestion from Alain Magloire.
64330
64331         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64332         * m4/fnmatch.m4: Likewise.
64333         * m4/getgroups.m4: Likewise.
64334         * m4/getline.m4: Likewise.
64335         * m4/lstat.m4: Likewise.
64336         * m4/malloc.m4: Likewise.
64337         * m4/memcmp.m4: Likewise.
64338         * m4/putenv.m4: Likewise.
64339         * m4/realloc.m4: Likewise.
64340         * m4/regex.m4: Likewise.
64341         * m4/stat.m4: Likewise.
64342         * m4/strftime.m4: Likewise.
64343         Suggestion from Alain Magloire.
64344
64345         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64346         an argument.
64347
64348         * m4/regex.m4: Add a run-time Test for proper operation of
64349         re_compile_pattern.
64350
64351 1999-01-31  Jim Meyering  <meyering@ascend.com>
64352
64353         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64354
64355 1999-01-30  Jim Meyering  <meyering@ascend.com>
64356
64357         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64358
64359         * m4/jm-mktime.m4: Make this a wrapper around the official
64360         AM_FUNC_MKTIME rather than my private copy, now that the official one
64361         is up to date.
64362         * m4/mktime.m4: Remove file.
64363
64364         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64365         * m4/uptime.m4: Likewise.
64366         * m4/uintmax_t.m4: Likewise.
64367
64368 1999-01-28  Jim Meyering  <meyering@ascend.com>
64369
64370         * m4/jm-macros.m4: Use jm_AFS.
64371         * m4/afs.m4: New file (from fileutils' configure.in).
64372
64373         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64374         * m4/chown.m4: Likewise.
64375         * m4/d-ino.m4: Likewise.
64376         * m4/d-type.m4: Likewise.
64377         * m4/fnmatch.m4: Likewise.
64378         * m4/getgroups.m4: Likewise.
64379         * m4/gettext.m4: Likewise.
64380         * m4/jm-mktime.m4: Likewise.
64381         * m4/jm-winsz2.m4: Likewise.
64382         * m4/lcmessage.m4: Likewise.
64383         * m4/ls-mntd-fs.m4: Likewise.
64384         * m4/malloc.m4: Likewise.
64385         * m4/memcmp.m4: Likewise.
64386         * m4/putenv.m4: Likewise.
64387         * m4/realloc.m4: Likewise.
64388         * m4/st_mtim.m4: Likewise.
64389         * m4/strftime.m4: Likewise.
64390
64391 1999-01-16  Jim Meyering  <meyering@ascend.com>
64392
64393         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64394         (ARGMATCH_DIE_DECL): Define.
64395
64396 1999-01-12  Jim Meyering  <meyering@ascend.com>
64397
64398         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64399         Reported by Lars Hecking.
64400
64401 1999-01-10  Jim Meyering  <meyering@ascend.com>
64402
64403         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64404         gross kludge.
64405         * m4/inttypes_h.m4: Likewise.
64406         * m4/lstat.m4: Likewise.
64407         * m4/malloc.m4: Likewise.
64408         * m4/readdir.m4: Likewise.
64409         * m4/realloc.m4: Likewise.
64410         * m4/st_dm_mode.m4: Likewise.
64411         * m4/stat.m4: Likewise.
64412         * m4/utimbuf.m4: Likewise.
64413         * m4/utimes.m4: Likewise.
64414
64415         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64416         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64417         comments in config.h.in are meaningful.
64418
64419         * m4/jm-macros.m4: Require autoconf-2.13 here.
64420
64421         * m4/regex.m4: By default, don't use the included regex.c on systems
64422         with glibc 2.  Suggestion from Uli Drepper.
64423
64424 1999-01-02  Jim Meyering  <meyering@ascend.com>
64425
64426         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64427
64428 1998-12-18  Jim Meyering  <meyering@ascend.com>
64429
64430         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64431         Based on a suggestion from Lars Hecking.
64432
64433 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64434
64435         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64436
64437 1998-11-16  Jim Meyering  <meyering@ascend.com>
64438
64439         * m4/lfs.m4: Double-quote the `uname...` expression.
64440
64441 1998-11-14  Jim Meyering  <meyering@ascend.com>
64442
64443         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64444         * m4/stat.m4: Likewise.
64445
64446 1998-11-03  Jim Meyering  <meyering@ascend.com>
64447
64448         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64449         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64450
64451 1998-10-18  Jim Meyering  <meyering@ascend.com>
64452
64453         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64454
64455 1998-10-17  Jim Meyering  <meyering@ascend.com>
64456
64457         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64458         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64459         calls for those previously hard-coded headers.  Instead, take a new
64460         parameter.
64461         (jm_CHECK_DECLARATIONS): Reflect interface change.
64462         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64463         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64464
64465         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64466
64467 1998-10-14  Jim Meyering  <meyering@ascend.com>
64468
64469         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64470         instead of "TZ=America/Vancouver".  From Paul Eggert.
64471
64472 1998-10-11  Jim Meyering  <meyering@ascend.com>
64473
64474         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64475         This adds a test for a recently added compatibility fix for mktime.c.
64476         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64477
64478 1998-09-27  Jim Meyering  <meyering@ascend.com>
64479
64480         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64481
64482         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64483         ../configure.in, including a change from Gordon Matzigkeit to allow
64484         cross-compiling for the Hurd.
64485
64486         * m4/glibc.m4: New file/macro to test for the GNU C Library
64487         versions 1 and 2.  From Gordon Matzigkeit.
64488         Indent.
64489
64490 1998-09-21  Jim Meyering  <meyering@ascend.com>
64491
64492         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64493
64494 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64495
64496         Port nanosecond-resolution times to UnixWare 2.1.2 and
64497         pedantic Solaris 2.6.
64498
64499         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64500         AC_STRUCT_ST_MTIM.
64501         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64502         Generate name of ns member, instead of just 1 or undef.
64503         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64504
64505 1998-08-15  Jim Meyering  <meyering@ascend.com>
64506
64507         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64508         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64509         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64510         instead of jm_TYPE_SSIZE_T.
64511
64512 1998-08-12  Jim Meyering  <meyering@ascend.com>
64513
64514         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64515
64516 1998-08-02  Jim Meyering  <meyering@ascend.com>
64517
64518         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64519         in acconfig.h manually.
64520
64521 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64522
64523         * m4/st_mtim.m4: New file.
64524
64525 1998-07-28  Jim Meyering  <meyering@ascend.com>
64526
64527         * m4/utimes.m4: Undef stat.
64528
64529 1998-07-25  Jim Meyering  <meyering@ascend.com>
64530
64531         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64532         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64533
64534 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64535
64536         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64537         uid and gid actually remain unchanged.
64538
64539 1998-07-07  Jim Meyering  <meyering@ascend.com>
64540
64541         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64542
64543 1998-07-04  Jim Meyering  <meyering@ascend.com>
64544
64545         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64546         to prove that this macro can be used in packages without regex.c.
64547
64548 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64549
64550         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64551         is to be used.
64552
64553 1998-07-03  Jim Meyering  <meyering@ascend.com>
64554
64555         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64556
64557         * m4/gettext.m4: New file -- from gettext-0.10.35.
64558         * m4/lcmessage.m4: Likewise.
64559         * m4/progtest.m4: Likewise.
64560
64561         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64562         * m4/jm-macros.m4: Require the new macro.
64563
64564 1998-06-29  Jim Meyering  <meyering@ascend.com>
64565
64566         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64567         for the definition of NGROUPS (used in a system header included
64568         by sys/mount.h).
64569
64570 1998-06-28  Jim Meyering  <meyering@ascend.com>
64571
64572         * m4/ls-mntd-fs.m4: New file.
64573         * m4/fstypename.m4: New file.
64574
64575         * m4/jm-macros.m4: Require the new macro.
64576         * m4/jm-glibc-io.m4: New file.
64577
64578 1998-05-19  Jim Meyering  <meyering@ascend.com>
64579
64580         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64581         * m4/lchown.m4: New file.
64582
64583         * m4/Makefile.am.in: New file.
64584         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64585
64586 1998-05-14  Jim Meyering  <meyering@ascend.com>
64587
64588         * m4/Makefile.am (EXTRA_DIST): Add them.
64589         * m4/jm-macros.m4: New file.
64590         * m4/utimbuf.m4: New file.
64591
64592 1998-05-12  Jim Meyering  <meyering@ascend.com>
64593
64594         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64595
64596 1998-05-11  Jim Meyering  <meyering@ascend.com>
64597
64598         * m4/isc-posix.m4: New file.
64599
64600 1998-05-10  Jim Meyering  <meyering@ascend.com>
64601
64602         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64603
64604 1998-05-09  Jim Meyering  <meyering@ascend.com>
64605
64606         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64607         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64608         with automake.
64609
64610         * m4/ssize_t.m4: New file.
64611         * m4/mktime.m4: Remove file -- the new automake has this now.
64612
64613 1998-04-26  Jim Meyering  <meyering@ascend.com>
64614
64615         * m4/assert.m4: New file.
64616         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64617
64618 1998-04-05  Jim Meyering  <meyering@ascend.com>
64619
64620         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64621         (jm_PREREQ): Use it here.
64622
64623 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64624
64625         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64626         in acconfig.h.
64627
64628 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64629
64630         * m4/prereq.m4: New file.
64631         * m4/error.m4: New file.
64632         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64633
64634 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64635
64636         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64637         cache-check for the same variable -- that defeated the purpose of
64638         the test; the test program was never run.  This was a problem only
64639         on systems with losing getline functions -- HP-UX 10.20 is one.
64640         Reported by Bjorn Helgaas.
64641
64642 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64643
64644         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64645
64646 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64647
64648         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64649
64650         * m4/const.m4: New file.  Use an initializer in this declaration
64651         typedef int charset[2]; const charset x;
64652         Reported by Bob Glickstein.
64653
64654 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64655
64656         * m4/chown.m4: Fix reversed types on -1 args to chown.
64657         From Kaveh Ghazi.
64658
64659 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64660
64661         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64662         Add lseek and memchr.
64663
64664         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64665         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64666         have a 20-character limit on names.
64667
64668 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64669
64670         * m4/inttypes_h.m4: New file.
64671         * m4/uintmax_t.m4: New file.
64672         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64673
64674
64675         -----
64676
64677         Local Variables:
64678         coding: utf-8
64679         End:
64680
64681         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64682
64683         Copying and distribution of this file, with or without
64684         modification, are permitted provided the copyright notice
64685         and this notice are preserved.