9458ed72bf8f58e3d09422ba1a3cb7ef61c6e1a2
[gnulib.git] / ChangeLog
1 2010-03-28  Bruno Haible  <bruno@clisp.org>
2
3         Split C++ tests into separate tests modules.
4         * modules/dirent-c++-tests: New file, extracted from
5         modules/dirent-tests.
6         * modules/dirent-tests: Depend on it.
7         * modules/fcntl-h-c++-tests: New file, extracted from
8         modules/fcntl-h-tests.
9         * modules/fcntl-h-tests: Depend on it.
10         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
11         * modules/glob-tests: Depend on it.
12         * modules/iconv-h-c++-tests: New file, extracted from
13         modules/iconv-h-tests.
14         * modules/iconv-h-tests: Depend on it.
15         * modules/langinfo-c++-tests: New file, extracted from
16         modules/langinfo-tests.
17         * modules/langinfo-tests: Depend on it.
18         * modules/locale-c++-tests: New file, extracted from
19         modules/locale-tests.
20         * modules/locale-tests: Depend on it.
21         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22         * modules/math-tests: Depend on it.
23         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24         * modules/pty-tests: Depend on it.
25         * modules/search-c++-tests: New file, extracted from
26         modules/search-tests.
27         * modules/search-tests: Depend on it.
28         * modules/signal-c++-tests: New file, extracted from
29         modules/signal-tests.
30         * modules/signal-tests: Depend on it.
31         * modules/spawn-c++-tests: New file, extracted from
32         modules/spawn-tests.
33         * modules/spawn-tests: Depend on it.
34         * modules/stdio-c++-tests: New file, extracted from
35         modules/stdio-tests.
36         * modules/stdio-tests: Depend on it.
37         * modules/stdlib-c++-tests: New file, extracted from
38         modules/stdlib-tests.
39         * modules/stdlib-tests: Depend on it.
40         * modules/string-c++-tests: New file, extracted from
41         modules/string-tests.
42         * modules/string-tests: Depend on it.
43         * modules/sys_ioctl-c++-tests: New file, extracted from
44         modules/sys_ioctl-tests.
45         * modules/sys_ioctl-tests: Depend on it.
46         * modules/sys_select-c++-tests: New file, extracted from
47         modules/sys_select-tests.
48         * modules/sys_select-tests: Depend on it.
49         * modules/sys_socket-c++-tests: New file, extracted from
50         modules/sys_socket-tests.
51         * modules/sys_socket-tests: Depend on it.
52         * modules/sys_stat-c++-tests: New file, extracted from
53         modules/sys_stat-tests.
54         * modules/sys_stat-tests: Depend on it.
55         * modules/sys_time-c++-tests: New file, extracted from
56         modules/sys_time-tests.
57         * modules/sys_time-tests: Depend on it.
58         * modules/time-c++-tests: New file, extracted from modules/time-tests.
59         * modules/time-tests: Depend on it.
60         * modules/unistd-c++-tests: New file, extracted from
61         modules/unistd-tests.
62         * modules/unistd-tests: Depend on it.
63         * modules/wchar-c++-tests: New file, extracted from
64         modules/wchar-tests.
65         * modules/wchar-tests: Depend on it.
66         * modules/wctype-c++-tests: New file, extracted from
67         modules/wctype-tests.
68         * modules/wctype-tests: Depend on it.
69         Reported by Simon Josefsson.
70
71 2010-03-28  Bruno Haible  <bruno@clisp.org>
72
73         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
74         * gnulib-tool (func_exists_module): New function, extracted from
75         func_verify_module.
76         (func_verify_module): Use it.
77         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
78         'foo' only if 'foo' exists.
79         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
80         module.
81
82 2010-03-28  Bruno Haible  <bruno@clisp.org>
83
84         gnulib-tool: Add support for special categories of tests.
85         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
86         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
87         (func_usage): Document them.
88         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
89         inc_unportable_tests, inc_all_tests): New variables.
90         (func_acceptable): Consider these variables.
91         (func_modules_transitive_closure): Make it work when the 'Status' field
92         consists of multiple words.
93         (func_import): Store and restore the values of inc_cxx_tests,
94         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
95         inc_all_tests in gnulib-comp.m4.
96         (func_create_testdir): Set inc_all_tests to true.
97         * doc/gnulib.texi (Extra tests modules): New section.
98         Suggested by Jim Meyering.
99
100 2010-03-28  Bruno Haible  <bruno@clisp.org>
101
102         ansi-c++-opt: Allow turning off the C++ build by default.
103         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
104         gl_CXX_CHOICE_DEFAULT_NO is defined.
105         Requested by Eric Blake.
106
107 2010-03-28  Bruno Haible  <bruno@clisp.org>
108
109         unistd: Avoid #define replacements in C++ mode.
110         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
111         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
112         setsockopt, shutdown, select): In C++, attach a warning to the function
113         if possible, rather than #defining the symbol to a dysfunctional alias.
114         Reported by John W. Eaton <jwe@gnu.org>.
115
116 2010-03-28  Bruno Haible  <bruno@clisp.org>
117
118         Fix link errors on mingw.
119         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
120         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
121         $(LIBSOCKET).
122         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
123         $(LIBSOCKET).
124
125 2010-03-28  Bruno Haible  <bruno@clisp.org>
126             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
127
128         lib-ignore: Determine different options for different compilers.
129         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
130         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
131         Add comments.
132         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
133         * NEWS: Mention the change.
134
135 2010-03-27  Bruno Haible  <bruno@clisp.org>
136
137         Remove unused GNULIB_XYZ macro definitions.
138         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
139         * modules/fseek (configure.ac): Likewise.
140         * modules/ioctl (configure.ac): Likewise.
141         * modules/open (configure.ac): Likewise.
142         * modules/stdlib-safer (configure.ac): Likewise.
143
144 2010-03-27  Bruno Haible  <bruno@clisp.org>
145
146         Add a remark about certain modules.
147         * modules/malloc (Comment): New section.
148         * modules/realloc (Comment): Likewise.
149         * modules/sigpipe (Comment): Likewise.
150
151 2010-03-27  Bruno Haible  <bruno@clisp.org>
152
153         Resolve conflict between the two kinds of module indicators.
154         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
155         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
156         * modules/canonicalize (configure.ac): Invoke
157         gl_MODULE_INDICATOR_FOR_TESTS.
158         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
159         GNULIB_XYZ.
160         * tests/test-dirent-c++.cc: Likewise.
161         * tests/test-dirent-safer.c: Likewise.
162         * tests/test-dup2.c: Likewise.
163         * tests/test-fchdir.c: Likewise.
164         * tests/test-fcntl-h-c++.cc: Likewise.
165         * tests/test-getopt.c: Likewise.
166         * tests/test-getopt.h: Likewise.
167         * tests/test-langinfo-c++.cc: Likewise.
168         * tests/test-locale-c++.cc: Likewise.
169         * tests/test-math-c++.cc: Likewise.
170         * tests/test-pty-c++.cc: Likewise.
171         * tests/test-search-c++.cc: Likewise.
172         * tests/test-signal-c++.cc: Likewise.
173         * tests/test-spawn-c++.cc: Likewise.
174         * tests/test-stdio-c++.cc: Likewise.
175         * tests/test-stdlib-c++.cc: Likewise.
176         * tests/test-string-c++.cc: Likewise.
177         * tests/test-sys_ioctl-c++.cc: Likewise.
178         * tests/test-sys_select-c++.cc: Likewise.
179         * tests/test-sys_socket-c++.cc: Likewise.
180         * tests/test-sys_stat-c++.cc: Likewise.
181         * tests/test-sys_time-c++.cc: Likewise.
182         * tests/test-time-c++.cc: Likewise.
183         * tests/test-unistd-c++.cc: Likewise.
184         * tests/test-wchar-c++.cc: Likewise.
185         * tests/uninorm/test-u8-nfc.c: Likewise.
186         * tests/uninorm/test-u8-nfd.c: Likewise.
187         * tests/uninorm/test-u8-nfkc.c: Likewise.
188         * tests/uninorm/test-u8-nfkd.c: Likewise.
189         * tests/uninorm/test-u16-nfc.c: Likewise.
190         * tests/uninorm/test-u16-nfd.c: Likewise.
191         * tests/uninorm/test-u16-nfkc.c: Likewise.
192         * tests/uninorm/test-u16-nfkd.c: Likewise.
193         * tests/uninorm/test-u32-nfc.c: Likewise.
194         * tests/uninorm/test-u32-nfc-big.c: Likewise.
195         * tests/uninorm/test-u32-nfd.c: Likewise.
196         * tests/uninorm/test-u32-nfd-big.c: Likewise.
197         * tests/uninorm/test-u32-nfkc.c: Likewise.
198         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
199         * tests/uninorm/test-u32-nfkd.c: Likewise.
200         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
201         * tests/uninorm/test-u32-normalize-big.c: Likewise.
202
203 2010-03-27  Bruno Haible  <bruno@clisp.org>
204
205         Distinguish two kinds of module indicators.
206         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
207         gl_MODULE_INDICATOR.
208         (gl_MODULE_INDICATOR): New macro.
209         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
210         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
211         * m4/fcntl_h.m4 (gl_FCNTL_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/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
216         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
217         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
218         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
219         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
220         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
221         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
222         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
223         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
224         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
225         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
226         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
227         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
228         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
229         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
230         * modules/cloexec (configure.ac): Likewise.
231         * modules/getopt-gnu (configure.ac): Likewise.
232         * modules/uninorm/u8-normalize (configure.ac): Likewise.
233         * modules/uninorm/u16-normalize (configure.ac): Likewise.
234         * modules/uninorm/u32-normalize (configure.ac): Likewise.
235         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
236
237 2010-03-27  Bruno Haible  <bruno@clisp.org>
238
239         New module description field 'Comment'.
240         * gnulib-tool: New option --extract-comment.
241         (func_usage): Document it.
242         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
243         (func_get_comment): New function.
244         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
245
246 2010-03-27  Bruno Haible  <bruno@clisp.org>
247
248         Addendum to 2010-02-07 commit.
249         * gnulib-tool (func_usage): Document --extract-applicability option.
250
251 2010-03-27  Bruno Haible  <bruno@clisp.org>
252
253         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
254         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
255         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
256         rather than link errors.
257
258 2010-03-27  Bruno Haible  <bruno@clisp.org>
259
260         Avoid side effects from tests-related modules on the compilation of lib.
261         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
262         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
263         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
264         parameter. Emit into AM_CPPFLAGS a definition of the designated C
265         macro.
266         (func_import): Define a witness macro. Assign it a value that depends
267         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
268         tests-related modules.
269         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
270         Reported by Jim Meyering.
271
272 2010-03-27  Bruno Haible  <bruno@clisp.org>
273
274         Factorize common .m4 code.
275         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
276         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
277         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
278         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
279         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
280         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
281         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
282         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
283         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
284         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
285         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
286         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
287         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
288         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
289         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
290         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
291         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
292         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
293         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
294         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
295         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
296         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
297         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
298         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
299         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
300         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
301         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
302         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
303         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
304         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
305         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
306         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
307
308 2010-03-27  Bruno Haible  <bruno@clisp.org>
309
310         Fix a compilation error on Cygwin with g++ >= 4.3.
311         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
312         if it is undefined or if we alias it to chmod.
313         (lstat): Don't warn about the use of this function if it is undefined
314         or if we alias it to stat.
315         Reported by Simon Josefsson.
316
317 2010-03-27  Bruno Haible  <bruno@clisp.org>
318
319         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
320         * modules/getlogin (configure.ac): Update.
321
322         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
323         * modules/getlogin_r (configure.ac): Update.
324
325         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
327         * modules/inet_ntop (configure.ac): Update.
328
329         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
330         * modules/inet_pton (configure.ac): Update.
331
332         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
333         * modules/mbslen (configure.ac): Update.
334
335         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
336         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
337         * modules/forkpty (configure.ac): Update.
338         * modules/openpty (configure.ac): Update.
339
340 2010-03-26  Simon Josefsson  <simon@josefsson.org>
341
342         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
343         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
344
345 2010-03-25  Eric Blake  <eblake@redhat.com>
346
347         maint: use pragma consistently across replacement headers
348         * lib/ctype.in.h (system_header): Hoist for consistent placement.
349         * lib/dirent.in.h (system_header): Likewise.
350         * lib/errno.in.h (system_header): Likewise.
351         * lib/float.in.h (system_header): Likewise.
352         * lib/getopt.in.h (system_header): Likewise.
353         * lib/iconv.in.h (system_header): Likewise.
354         * lib/inttypes.in.h (system_header): Likewise.
355         * lib/langinfo.in.h (system_header): Likewise.
356         * lib/locale.in.h (system_header): Likewise.
357         * lib/math.in.h (system_header): Likewise.
358         * lib/netdb.in.h (system_header): Likewise.
359         * lib/netinet_in.in.h (system_header): Likewise.
360         * lib/pty.in.h (system_header): Likewise.
361         * lib/sched.in.h (system_header): Likewise.
362         * lib/se-selinux.in.h (system_header): Likewise.
363         * lib/search.in.h (system_header): Likewise.
364         * lib/spawn.in.h (system_header): Likewise.
365         * lib/stdarg.in.h (system_header): Likewise.
366         * lib/stdint.in.h (system_header): Likewise.
367         * lib/string.in.h (system_header): Likewise.
368         * lib/strings.in.h (system_header): Likewise.
369         * lib/sys_file.in.h (system_header): Likewise.
370         * lib/sys_ioctl.in.h (system_header): Likewise.
371         * lib/sys_socket.in.h (system_header): Likewise.
372         * lib/sys_times.in.h (system_header): Likewise.
373         * lib/sys_utsname.in.h (system_header): Likewise.
374         * lib/sys_wait.in.h (system_header): Likewise.
375         * lib/sysexits.in.h (system_header): Likewise.
376         * lib/unistd.in.h (system_header): Likewise.
377         * lib/wctype.in.h (system_header): Likewise.
378
379         arpa/inet: fix mingw compilation warning
380         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
381         Reported by Matthew Bolte.
382
383 2010-03-25  Bruno Haible  <bruno@clisp.org>
384
385         Avoid collision between gnulib wrapper and libintl wrapper.
386         * lib/printf.c (printf): Don't define if a printf wrapper is already
387         defined in intl/printf.c.
388         Reported by Michel Boaventura <michel@michelboaventura.com>.
389
390 2010-03-25  Bruno Haible  <bruno@clisp.org>
391
392         Use ANSI C.
393         * lib/readutmp.h (getutent): Provide ANSI C prototype.
394
395 2010-03-25  Bruno Haible  <bruno@clisp.org>
396
397         Minor formatting changes.
398         * lib/acosl.c: Insert space before function argument list.
399         * lib/argz.c: Likewise.
400         * lib/asinl.c: Likewise.
401         * lib/expl.c: Likewise.
402         * lib/gen-uni-tables.c: Likewise.
403         * lib/gettext.h: Likewise.
404         * lib/glthread/lock.h: Likewise.
405         * lib/tanl.c: Likewise.
406         * lib/uniname/uniname.c: Likewise.
407         * tests/test-idpriv-drop.c: Likewise.
408         * tests/test-idpriv-droptemp.c: Likewise.
409         * tests/test-lock.c: Likewise.
410         * tests/test-tls.c: Likewise.
411         * lib/argp-help.c: Insert space before function-like macro argument
412         list.
413         * lib/memcmp.c: Likewise.
414         * tests/test-base64.c: Likewise.
415         * lib/localename.c: Insert space before sizeof's argument list.
416         * lib/safe-alloc.h: Likewise.
417         * lib/file-set.h: Insert space before macro argument list.
418         * tests/test-argp.c: Likewise.
419         * lib/argp-namefrob.h: Insert space before function parameter list.
420         * lib/getaddrinfo.c: Likewise.
421         * lib/netdb.in.h: Likewise.
422         * lib/parse-duration.h: Likewise.
423         * lib/parse-duration.c: Likewise.
424         * lib/poll.c: Likewise.
425         * lib/select.c: Likewise.
426         * lib/trim.h: Likewise.
427         * tests/test-usleep.c: Likewise.
428         * lib/ldexpl.c: Insert space before function parameter list and before
429         function argument list.
430         * lib/logl.c: Likewise.
431         * lib/sqrtl.c: Likewise.
432         * lib/trim.c: Likewise.
433         * lib/cosl.c: Use GNU style indentation. Insert space before function
434         argument list.
435         * lib/sinl.c: Likewise.
436         * lib/tsearch.c: Insert space after 'for'.
437         Reported by Jim Meyering.
438
439 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
440
441         * maint.mk (sc_Wundef_boolean): Check for the presence of the
442         config header before grepping, as it's not present before
443         autoreconf/configure are run.  Reported by Simon Josefsson.
444
445 2010-03-23  Bruno Haible  <bruno@clisp.org>
446
447         pt_chown: Make it work with automake < 1.11.
448         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
449         Reported by Simon Josefsson.
450
451 2010-03-23  Bruno Haible  <bruno@clisp.org>
452
453         pt_chown: Don't depend on GPLed modules.
454         * lib/pt_chown.c: Don't include idpriv.h.
455         (main): Don't drop privileges.
456         * modules/pt_chown (Depends-on): Remove idpriv-drop.
457         Reported by Simon Josefsson.
458
459 2010-03-24  Simon Josefsson  <simon@josefsson.org>
460
461         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
462         suggestions from karl@freefriends.org (Karl Berry).
463
464 2010-03-22  Eric Blake  <eblake@redhat.com>
465
466         gethostname: further tweaks
467         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
468         are overriding gethostname.
469         Suggested by Bruno Haible.
470
471 2010-03-21  Bruno Haible  <bruno@clisp.org>
472
473         Fix comments.
474         * lib/forkpty.c (rpl_forkpty): Fix comment.
475         * lib/openpty.c (rpl_openpty): Likewise.
476         Reported by Eric Blake.
477
478 2010-03-22  Eric Blake  <eblake@redhat.com>
479
480         gethostname: fix build on mingw
481         * lib/unistd.in.h (includes): Work around fact that mingw
482         <winsock2.h> re-includes <unistd.h>, by avoiding any
483         redeclarations if we are being included by <winsock2.h>.
484         Reported by Matthias Bolte.
485
486 2010-03-21  Bruno Haible  <bruno@clisp.org>
487
488         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
489         * lib/forkpty.c (forkpty): New replacement function, from glibc with
490         modifications.
491         * lib/pty.in.h (forkpty): Update declaration. Add comments.
492         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
493         provide the replacement.
494         * modules/forkpty (Depends-on): Add openpty, login_tty.
495         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
496         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
497         * doc/glibc-functions/forkpty.texi: More supported platforms.
498         * config/srclist.txt: Add forkpty.c (commented).
499
500 2010-03-21  Bruno Haible  <bruno@clisp.org>
501
502         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
503         (Makefile.am): Verify that PTY_LIB is defined.
504
505         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
506
507 2010-03-21  Bruno Haible  <bruno@clisp.org>
508
509         Tests for module 'login_tty'.
510         * modules/login_tty-tests: New file.
511         * tests/test-login_tty.c: New file.
512
513         New module 'login_tty'.
514         * lib/login_tty.c: New file.
515         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
516         * modules/login_tty: New file.
517         * doc/glibc-functions/login_tty.texi: Mention the new module.
518
519 2010-03-21  Bruno Haible  <bruno@clisp.org>
520
521         login_tty: Documentation.
522         * doc/glibc-functions/login_tty.texi: New file.
523         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
524
525 2010-03-21  Bruno Haible  <bruno@clisp.org>
526
527         pty: Consistent macro naming.
528         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
529         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
530         * modules/pty (configure.ac): Update.
531
532 2010-03-21  Bruno Haible  <bruno@clisp.org>
533
534         Tests for openpty: Make stricter.
535         * tests/test-openpty.c (main): Add test of canonical processing and
536         erase.
537         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
538
539         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
540         * lib/openpty.c (openpty): New replacement function.
541         * lib/pty.in.h: Include <termios.h>.
542         (openpty): Update declaration. Add comments.
543         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
544         is not declared, arrange to provide the replacement. Check for _getpty
545         and posix_openpt.
546         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
547         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
548         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
549         * modules/pty-tests (test_pty_c___LDADD): New variable.
550         * doc/glibc-functions/openpty.texi: More supported platforms.
551
552 2010-03-21  Bruno Haible  <bruno@clisp.org>
553
554         setenv: Tweaks.
555         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
556         the test program.
557         * doc/posix-functions/setenv.texi: Update platforms list.
558
559 2010-03-21  Bruno Haible  <bruno@clisp.org>
560
561         New module 'unlockpt'.
562         * lib/unlockpt.c: New file, from glibc with modifications.
563         * m4/unlockpt.m4: New file.
564         * modules/unlockpt: New file.
565         * lib/stdlib.in.h (unlockpt): New declaration.
566         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
567         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
568         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
569         HAVE_UNLOCKPT.
570         * doc/posix-functions/unlockpt.texi: Mention the new module.
571         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
572         * config/srclist.txt: Add unlockpt.c (commented).
573
574 2010-03-21  Jim Meyering  <meyering@redhat.com>
575
576         maint.mk: prohibit inclusion of "intprops.h" without use
577         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
578
579 2010-03-21  Bruno Haible  <bruno@clisp.org>
580
581         New module 'grantpt'.
582         * lib/grantpt.c: New file, from glibc with modifications.
583         * m4/grantpt.m4: New file.
584         * modules/grantpt: New file.
585         * lib/stdlib.in.h (grantpt): New declaration.
586         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
587         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
588         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
589         HAVE_GRANTPT.
590         * doc/posix-functions/grantpt.texi: Mention the new module.
591         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
592         * config/srclist.txt: Add grantpt.c (commented).
593
594 2010-03-21  Bruno Haible  <bruno@clisp.org>
595
596         New module 'pt_chown'.
597         * lib/pt_chown.c: New file, from glibc with modifications.
598         * lib/pty-private.h: New file, from glibc with modifications.
599         * modules/pt_chown: New file.
600         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
601
602 2010-03-21  Bruno Haible  <bruno@clisp.org>
603
604         Tests for module 'ptsname'.
605         * modules/ptsname-tests: New file.
606         * tests/test-ptsname.c: New file.
607
608         New module 'ptsname'.
609         * lib/ptsname.c: New file, from glibc with modifications.
610         * m4/ptsname.m4: New file.
611         * modules/ptsname: New file.
612         * lib/stdlib.in.h (ptsname): New declaration.
613         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
614         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
615         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
616         HAVE_PTSNAME.
617         * doc/posix-functions/ptsname.texi: Mention the new module.
618         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
619         * config/srclist.txt: Add ptsname.c (commented).
620
621 2010-03-21  Bruno Haible  <bruno@clisp.org>
622
623         Tests for module 'ttyname_r'.
624         * modules/ttyname_r-tests: New file.
625         * tests/test-ttyname_r.c: New file.
626
627         New module 'ttyname_r'.
628         * lib/ttyname_r.c: New file.
629         * m4/ttyname_r.m4: New file.
630         * modules/ttyname_r: New file.
631         * lib/unistd.in.h (ttyname_r): New declaration.
632         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
633         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
634         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
635         HAVE_TTYNAME_R.
636         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
637         * doc/posix-functions/ttyname_r.texi: Mention the new module.
638
639 2010-03-20  Bruno Haible  <bruno@clisp.org>
640
641         signal: Undefine macro definitions in C++ mode.
642         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
643         sigfillset): Undefine macro definitions from the system header in C++
644         mode.
645         Reported by John W. Eaton <jwe@gnu.org>.
646
647 2010-03-20  Bruno Haible  <bruno@clisp.org>
648
649         Ensure no #include statements inside extern "C" { ... }.
650         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
651         contain #include statements.
652         * lib/time.in.h: Likewise.
653
654 2010-03-20  Bruno Haible  <bruno@clisp.org>
655
656         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
657         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
658         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
659         Reported by John W. Eaton <jwe@gnu.org>.
660
661 2010-03-20  Bruno Haible  <bruno@clisp.org>
662
663         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
664         Reported by Jim Meyering.
665
666 2010-03-20  Bruno Haible  <bruno@clisp.org>
667
668         pipe: Set errno upon failure.
669         * lib/pipe.h: Specify that when -1 is returned, errno is set.
670         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
671         errno value in error message.
672
673 2010-03-20  Bruno Haible  <bruno@clisp.org>
674             Jim Meyering  <meyering@redhat.com>
675
676         lchown: Avoid "unused variable" warning.
677         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
678
679 2010-03-20  Bruno Haible  <bruno@clisp.org>
680
681         Work around unlink() bug on MacOS X 10.5.6.
682         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
683         attempting to unlink a parent directory.
684         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
685         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
686         activate for the replacement function.
687         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
688
689 2010-03-20  Bruno Haible  <bruno@clisp.org>
690
691         Fix link errors on Solaris 8.
692         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
693         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
694
695 2010-03-19  Jim Meyering  <meyering@redhat.com>
696
697         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
698         The _LIBC implementation of build_range_exp correctly honors the
699         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
700         However, the non-_LIBC implementation would ignore that syntax-bit
701         flag and return REG_ERANGE unconditionally.
702         This change makes it honor that flag.
703         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
704         Make two pointer parameters "const".
705         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
706         (parse_bracket_exp): Update caller.
707
708         regex.m4: correct the reversed range endpoint ([b-a]) test
709         * m4/regex.m4: When requiring that [b-a] evoke failure,
710         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
711         test pass once again for x86-based systems.
712
713 2010-03-19  Bruno Haible  <bruno@clisp.org>
714
715         scandir: Fix link error on Solaris 8.
716         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
717         macros.
718
719 2010-03-19  Bruno Haible  <bruno@clisp.org>
720
721         getusershell: Fix documentation.
722         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
723         module.
724         * doc/glibc-functions/setusershell.texi: Likewise.
725
726         getusershell: Provide declaration, missing on Solaris 9.
727         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
728         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
729         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
730         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
732         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
733         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
734         HAVE_GETUSERSHELL.
735         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
736
737 2010-03-19  Bruno Haible  <bruno@clisp.org>
738
739         wctype: Provide iswblank function.
740         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
741         exists and is fine.
742         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
743         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
744         * tests/test-wctype.c (main): Re-enable the iswblank tests.
745         * doc/posix-functions/iswblank.texi: Update.
746
747 2010-03-19  Bruno Haible  <bruno@clisp.org>
748
749         Tests of module 'pty' in C++ mode.
750         * modules/pty-tests: New file.
751         * tests/test-pty-c++.cc: New file.
752         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
753
754 2010-03-19  Eric Blake  <eblake@redhat.com>
755
756         logb: fix documentation
757         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
758         1.5 declaration bug.
759
760         forkpty, openpty: prefer glibc's const-safe prototype
761         * lib/forkpty.c (rpl_forkpty): New file.
762         * lib/openpty.c (rpl_openpty): Likewise.
763         * modules/forkpty (Files): Distribute it.
764         * modules/openpty (Files): Likewise.
765         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
766         check...
767         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
768         replacement for for non-const BSD signature.
769         * modules/pty (Makefile.am): Substitute witnesses.
770         * lib/pty.in.h (forkpty, openpty): Declare replacements.
771         * tests/test-forkpty.c: Update signature check.
772         * tests/test-openpty.c: Likewise.
773         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
774         * doc/glibc-functions/openpty.texi (openpty): Likewise.
775
776         forkpty, openpty: split functions into new modules
777         * modules/pty (Makefile.am): Substitute new witnesses.
778         (Libraries): Move library detection...
779         * modules/forkpty: ...into new module.
780         * modules/openpty: Another new module.
781         * modules/pty-tests: Rename and split...
782         * modules/forkpty-tests: ...to this...
783         * modules/openpty-tests: ...and this.
784         * tests/test-pty.c: Rename and split...
785         * tests/test-forkpty.c: ...to this...
786         * tests/test-openpty.c: ...and this.
787         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
788         (gl_PTY): Split library searching...
789         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
790         (gl_FORKPTY, gl_OPENPTY): New macros.
791         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
792         * NEWS: Mention the split.
793         * MODULES.html.sh (Misc): Document the modules.
794         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
795         * doc/glibc-functions/openpty.texi (openpty): Likewise.
796
797         pty: improve replacement header
798         * lib/pty.in.h: New file.
799         * modules/pty (Files): Ship it.
800         (Makefile.am): Always build replacement.
801         * m4/pty.m4: Rename...
802         * m4/pty_h.m4: ...to this.
803         (gl_PTY): Modernize setting of witness macros; update check of
804         forkpty to take proper advantage of cache.
805         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
806
807         getopt: avoid compiler warning
808         * lib/getopt.c (attribute_hidden): Remove unused macro.
809
810 2010-03-18  Bruno Haible  <bruno@clisp.org>
811
812         Fix link errors on Solaris 8.
813         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
814         * modules/search-tests (test_search_c___LDADD): Likewise.
815         * modules/signal-tests (test_signal_c___LDADD): Likewise.
816         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
817         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
818         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
819         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
820         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
821         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
822
823 2010-03-18  Bruno Haible  <bruno@clisp.org>
824
825         Fix bug introduced on 2010-03-14.
826         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
827         (gl_SPAWN_H): Require it.
828         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
829         Reported by Simon Josefsson.
830
831 2010-03-18  Bruno Haible  <bruno@clisp.org>
832
833         Fix typo introduced on 2009-12-31.
834         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
835         posix_spawn_file_actions_adddup2.
836
837 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
838         and Eric Blake  <eblake@redhat.com>
839
840         test-vc-list-files-git: make more robust
841         * tests/test-vc-list-files-git.sh: Unset problematic environment
842         variables.  Chain commands together.
843
844 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
845
846         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
847         `AC_CHECK_DECL' invocation.
848
849 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
850
851         * lib/inttostr.c (inttostr): Make sure the invocation of verify
852         appears before executable statements. Suggested by Petr Sumbera
853         <Petr.Sumbera@Sun.COM>.
854
855 2010-03-14  Bruno Haible  <bruno@clisp.org>
856
857         * tests/test-flock.c (test_exclusive): Comment out a test that causes
858         portability problems. Instead use a simpler test.
859         (main): Check that invalid arguments are rejected only on Linux.
860
861 2010-03-14  Bruno Haible  <bruno@clisp.org>
862
863         Fix bug introduced on 2009-12-31.
864         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
865         gl_PREREQ_SYS_H_WINSOCK2 always.
866         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
867         SYS_SOCKET_H variable.
868         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
869         Update comments.
870         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
871         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
872         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
873         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
874         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
875
876 2010-03-14  Bruno Haible  <bruno@clisp.org>
877
878         Fix values returned by sinl, cosl.
879         * lib/trigl.h: Add specification comments.
880         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
881         that combines the values from the precomputed table with the values of
882         the Chebyshev polynomials.
883
884 2010-03-14  Bruno Haible  <bruno@clisp.org>
885
886         Fix compilation error when modules 'posix_spawn[p]' are not used.
887         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
888         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
889
890 2010-03-14  Bruno Haible  <bruno@clisp.org>
891
892         Fix compilation error on mingw when module 'time_r' is not used.
893         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
894         is 1.
895         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
896         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
897         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
898         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
899
900 2010-03-14  Bruno Haible  <bruno@clisp.org>
901
902         Fix compilation error with Sun C.
903         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
904         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
905         instead of GCC specific ULONG_LONG_MAX.
906         * lib/xstrtoll.c: Likewise.
907         * lib/xstrtoull.c: Likewise.
908
909 2010-03-13  Bruno Haible  <bruno@clisp.org>
910
911         Allow the user to disable C++ code and tests.
912         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
913         (gl_PROG_ANSI_CXX): Require it.
914
915 2010-03-13  Bruno Haible  <bruno@clisp.org>
916
917         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
918         cases.
919
920 2010-03-13  Bruno Haible  <bruno@clisp.org>
921
922         Test that gnulib does not break the standard C++ headers.
923         * tests/test-locale-c++2.cc: New file.
924         * modules/locale-tests (Files): Add it.
925         (Makefile.am): Compile it for test-locale-c++.
926         * tests/test-math-c++2.cc: New file.
927         * modules/math-tests (Files): Add it.
928         (Makefile.am): Compile it for test-math-c++.
929         * tests/test-signal-c++2.cc: New file.
930         * modules/signal-tests (Files): Add it.
931         (Makefile.am): Compile it for test-signal-c++.
932         * tests/test-stdio-c++2.cc: New file.
933         * modules/stdio-tests (Files): Add it.
934         (Makefile.am): Compile it for test-stdio-c++.
935         * tests/test-stdlib-c++2.cc: New file.
936         * modules/stdlib-tests (Files): Add it.
937         (Makefile.am): Compile it for test-stdlib-c++.
938         * tests/test-string-c++2.cc: New file.
939         * modules/string-tests (Files): Add it.
940         (Makefile.am): Compile it for test-string-c++.
941         * tests/test-time-c++2.cc: New file.
942         * modules/time-tests (Files): Add it.
943         (Makefile.am): Compile it for test-time-c++.
944         Reported by John W. Eaton <jwe@gnu.org>.
945
946 2010-03-13  Bruno Haible  <bruno@clisp.org>
947
948         * gnulib-tool (func_usage): Clarify which options are available for
949         --create-testdir and --create-megatestdir.
950
951 2010-03-13  Bruno Haible  <bruno@clisp.org>
952
953         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
954         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
955         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
956         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
957         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
958         when appropriate.
959         Reported by Jim Meyering.
960
961 2010-03-12  Simon Josefsson  <simon@josefsson.org>
962
963         * gnulib-tool (func_import): Explain origin of code.
964
965 2010-03-12  Bruno Haible  <bruno@clisp.org>
966
967         Fix problem with automake's definition of CXXLINK.
968         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
969         Reported by Simon Josefsson and Ludovic Courtès.
970
971 2010-03-12  Bruno Haible  <bruno@clisp.org>
972
973         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
974         stable releases.
975
976 2010-03-11  Bruno Haible  <bruno@clisp.org>
977
978         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
979         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
980         whether the system provides one variant or multiple variants of the
981         function.
982         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
983         C++ compilers.
984         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
985         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
986         Reported by Jim Meyering.
987
988 2010-03-09  Simon Josefsson  <simon@josefsson.org>
989
990         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
991
992 2010-03-08  Bruno Haible  <bruno@clisp.org>
993
994         gnulib-tool: Add support for --libtool in --create-testdir.
995         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
996         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
997
998 2010-03-08  Eric Blake  <eblake@redhat.com>
999
1000         gnulib-tool.texi: mention possibility of git submodule
1001         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1002         submodules.
1003         * doc/.gitignore: Ignore another generated file.
1004
1005 2010-03-08  Karl Berry  <karl@gnu.org>
1006
1007         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1008         of committing gnulib files while skipping others.
1009
1010 2010-03-07  Bruno Haible  <bruno@clisp.org>
1011
1012         Tests of module 'wctype' in C++ mode.
1013         * tests/test-wctype-c++.cc: New file.
1014         * modules/wctype-tests (Files): Add it and tests/signature.h.
1015         (Depends-on): Add ansi-c++-opt.
1016         (Makefile.am): Arrange to compile and run test-wctype-c++.
1017
1018         Tests of module 'wchar' in C++ mode.
1019         * tests/test-wchar-c++.cc: New file.
1020         * modules/wchar-tests (Files): Add it and tests/signature.h.
1021         (Depends-on): Add ansi-c++-opt.
1022         (Makefile.am): Arrange to compile and run test-wchar-c++.
1023         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1024         gl_MODULE_INDICATOR.
1025
1026         Tests of module 'unistd' in C++ mode.
1027         * tests/test-unistd-c++.cc: New file.
1028         * modules/unistd-tests (Files): Add it and tests/signature.h.
1029         (Depends-on): Add ansi-c++-opt.
1030         (Makefile.am): Arrange to compile and run test-unistd-c++.
1031         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1032         gl_MODULE_INDICATOR.
1033
1034         Tests of module 'time' in C++ mode.
1035         * tests/test-time-c++.cc: New file.
1036         * modules/time-tests (Files): Add it and tests/signature.h.
1037         (Depends-on): Add ansi-c++-opt.
1038         (Makefile.am): Arrange to compile and run test-time-c++.
1039         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1040
1041         Tests of module 'sys_time' in C++ mode.
1042         * tests/test-sys_time-c++.cc: New file.
1043         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1044         (Depends-on): Add ansi-c++-opt.
1045         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1046         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1047         gl_MODULE_INDICATOR.
1048
1049         Tests of module 'sys_stat' in C++ mode.
1050         * tests/test-sys_stat-c++.cc: New file.
1051         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1052         (Depends-on): Add ansi-c++-opt.
1053         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1054         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1055         gl_MODULE_INDICATOR.
1056
1057         Tests of module 'sys_socket' in C++ mode.
1058         * tests/test-sys_socket-c++.cc: New file.
1059         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1060         (Depends-on): Add ansi-c++-opt.
1061         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1062         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1063         gl_MODULE_INDICATOR.
1064
1065         Tests of module 'sys_select' in C++ mode.
1066         * tests/test-sys_select-c++.cc: New file.
1067         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1068         (Depends-on): Add ansi-c++-opt.
1069         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1070         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1071         gl_MODULE_INDICATOR.
1072
1073         Tests of module 'sys_ioctl' in C++ mode.
1074         * tests/test-sys_ioctl-c++.cc: New file.
1075         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1076         (Depends-on): Add ansi-c++-opt.
1077         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1078         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1079         gl_MODULE_INDICATOR.
1080
1081         Tests of module 'string' in C++ mode.
1082         * tests/test-string-c++.cc: New file.
1083         * modules/string-tests (Files): Add it and tests/signature.h.
1084         (Depends-on): Add ansi-c++-opt.
1085         (Makefile.am): Arrange to compile and run test-string-c++.
1086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1087         gl_MODULE_INDICATOR.
1088
1089         Tests of module 'stdlib' in C++ mode.
1090         * tests/test-stdlib-c++.cc: New file.
1091         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1092         (Depends-on): Add ansi-c++-opt.
1093         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1094         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1095         gl_MODULE_INDICATOR.
1096
1097         Tests of module 'stdio' in C++ mode.
1098         * tests/test-stdio-c++.cc: New file.
1099         * modules/stdio-tests (Files): Add it and tests/signature.h.
1100         (Depends-on): Add ansi-c++-opt.
1101         (Makefile.am): Arrange to compile and run test-stdio-c++.
1102         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1103         gl_MODULE_INDICATOR.
1104
1105         Tests of module 'spawn' in C++ mode.
1106         * tests/test-spawn-c++.cc: New file.
1107         * modules/spawn-tests (Files): Add it and tests/signature.h.
1108         (Depends-on): Add ansi-c++-opt.
1109         (Makefile.am): Arrange to compile and run test-spawn-c++.
1110         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1111         gl_MODULE_INDICATOR.
1112
1113         Tests of module 'signal' in C++ mode.
1114         * tests/test-signal-c++.cc: New file.
1115         * modules/signal-tests (Files): Add it and tests/signature.h.
1116         (Depends-on): Add ansi-c++-opt.
1117         (Makefile.am): Arrange to compile and run test-signal-c++.
1118         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1119         gl_MODULE_INDICATOR.
1120
1121         Tests of module 'search' in C++ mode.
1122         * tests/test-search-c++.cc: New file.
1123         * modules/search-tests (Files): Add it and tests/signature.h.
1124         (Depends-on): Add ansi-c++-opt.
1125         (Makefile.am): Arrange to compile and run test-search-c++.
1126         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1127         gl_MODULE_INDICATOR.
1128
1129         Tests of module 'math' in C++ mode.
1130         * tests/test-math-c++.cc: New file.
1131         * modules/math-tests (Files): Add it and tests/signature.h.
1132         (Depends-on): Add ansi-c++-opt.
1133         (Makefile.am): Arrange to compile and run test-math-c++.
1134         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1135
1136         Tests of module 'locale' in C++ mode.
1137         * tests/test-locale-c++.cc: New file.
1138         * modules/locale-tests (Files): Add it and tests/signature.h.
1139         (Depends-on): Add ansi-c++-opt.
1140         (Makefile.am): Arrange to compile and run test-locale-c++.
1141         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1142         gl_MODULE_INDICATOR.
1143
1144         Tests of module 'langinfo' in C++ mode.
1145         * tests/test-langinfo-c++.cc: New file.
1146         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1147         (Depends-on): Add ansi-c++-opt.
1148         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1149         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1150         gl_MODULE_INDICATOR.
1151
1152         Tests of module 'iconv-h' in C++ mode.
1153         * tests/test-iconv-h-c++.cc: New file.
1154         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1155         (Depends-on): Add ansi-c++-opt.
1156         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1157
1158         Tests of module 'glob' in C++ mode.
1159         * tests/test-glob-c++.cc: New file.
1160         * modules/glob-tests (Files): Add it.
1161         (Depends-on): Add ansi-c++-opt.
1162         (Makefile.am): Arrange to compile and run test-glob-c++.
1163
1164         Tests of module 'fcntl-h' in C++ mode.
1165         * tests/test-fcntl-h-c++.cc: New file.
1166         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1167         (Depends-on): Add ansi-c++-opt.
1168         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1169         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1170         gl_MODULE_INDICATOR.
1171
1172         Tests of module 'dirent' in C++ mode.
1173         * tests/test-dirent-c++.cc: New file.
1174         * modules/dirent-tests (Files): Add it and tests/signature.h.
1175         (Depends-on): Add ansi-c++-opt.
1176         (Makefile.am): Arrange to compile and run test-dirent-c++.
1177         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1178         gl_MODULE_INDICATOR.
1179
1180         New module 'ansi-c++-opt'.
1181         * modules/ansi-c++-opt: New file.
1182         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1183
1184         Document C++ namespace mode.
1185         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1186
1187         wctype: Avoid #define replacements in C++ mode.
1188         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1189         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1190         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1191         In C++, define a namespaced alias symbol.
1192         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1193         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1194         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1195         rule.
1196
1197         wchar: Avoid #define replacements in C++ mode.
1198         * lib/wchar.in.h: Include c++defs.h.
1199         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1200         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1201         symbol.
1202         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1203         * modules/wchar (Depends-on): Add c++defs.
1204         (Makefile.am): Update wchar.h rule.
1205
1206         unistd: Avoid #define replacements in C++ mode.
1207         * lib/unistd.in.h: Include c++defs.h.
1208         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1209         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1210         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1211         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1212         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1213         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1214         symbol.
1215         (environ): Update.
1216         * modules/unistd (Depends-on): Add c++defs.
1217         (Makefile.am): Update unistd.h rule.
1218
1219         time: Avoid #define replacements in C++ mode.
1220         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1221         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1222         define a namespaced alias symbol.
1223         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1224         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1225         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1226         * modules/time (Depends-on): Add c++defs, warn-on-use.
1227         (Makefile.am): Update time.h rule.
1228         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1229         * modules/nanosleep (configure.ac): Likewise.
1230         * modules/strptime (configure.ac): Likewise.
1231         * modules/timegm (configure.ac): Likewise.
1232
1233         sys_time: Avoid #define replacements in C++ mode.
1234         * lib/sys_time.in.h: Include c++defs.h.
1235         (gettimeofday): In C++, define a namespaced alias symbol.
1236         * modules/sys_time (Depends-on): Add c++defs.
1237         (Makefile.am): Update sys/time.h rule.
1238
1239         sys_stat: Avoid #define replacements in C++ mode.
1240         * lib/sys_stat.in.h: Include c++defs.h.
1241         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1242         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1243         namespaced alias symbol.
1244         In C++, define a namespaced alias symbol.
1245         * modules/sys_stat (Depends-on): Add c++defs.
1246         (Makefile.am): Update sys/stat.h rule.
1247
1248         sys_socket: Avoid #define replacements in C++ mode.
1249         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1250         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1251         definitions also when the system has a <sys/socket.h>.
1252         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1253         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1254         In C++, define a namespaced alias symbol.
1255         * modules/sys_socket (Depends-on): Add c++defs.
1256         (Makefile.am): Update sys/socket.h rule.
1257
1258         sys_select: Avoid #define replacements in C++ mode.
1259         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1260         definitions also when the system has a <sys/select.h>.
1261         (select): In C++, define a namespaced alias symbol.
1262         * modules/sys_select (Depends-on): Add c++defs.
1263         (Makefile.am): Update sys/select.h rule.
1264
1265         sys_ioctl: Avoid #define replacements in C++ mode.
1266         * lib/sys_ioctl.in.h: Include c++defs.h.
1267         (ioctl): In C++, define a namespaced alias symbol.
1268         * modules/sys_ioctl (Depends-on): Add c++defs.
1269         (Makefile.am): Update sys/ioctl.h rule.
1270
1271         string: Avoid #define replacements in C++ mode.
1272         * lib/string.in.h: Include c++defs.h.
1273         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1274         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1275         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1276         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1277         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1278         * modules/string (Depends-on): Add c++defs.
1279         (Makefile.am): Update string.h rule.
1280
1281         stdlib: Avoid #define replacements in C++ mode.
1282         * lib/stdlib.in.h: Include c++defs.h.
1283         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1284         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1285         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1286         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1287         symbol.
1288         * modules/stdlib (Depends-on): Add c++defs.
1289         (Makefile.am): Update stdlib.h rule.
1290
1291         stdio: Avoid #define replacements in C++ mode.
1292         * lib/stdio.in.h: Include c++defs.h.
1293         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1294         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1295         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1296         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1297         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1298         namespaced alias symbol.
1299         * modules/stdio (Depends-on): Add c++defs.
1300         (Makefile.am): Update stdio.h rule.
1301
1302         spawn: Avoid #define replacements in C++ mode.
1303         * lib/spawn.in.h: Include c++defs.h.
1304         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1305         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1306         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1307         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1308         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1309         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1310         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1311         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1312         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1313         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1314         In C++, define a namespaced alias symbol.
1315         * modules/spawn (Depends-on): Add c++defs.
1316         (Makefile.am): Update spawn.h rule.
1317
1318         signal: Avoid #define replacements in C++ mode.
1319         * lib/signal.in.h: Include c++defs.h.
1320         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1321         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1322         namespaced alias symbol.
1323         * modules/signal (Depends-on): Add c++defs.
1324         (Makefile.am): Update signal.h rule.
1325
1326         search: Avoid #define replacements in C++ mode.
1327         * lib/search.in.h: Include c++defs.h.
1328         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1329         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1330         symbol.
1331         * modules/search (Depends-on): Add c++defs.
1332         (Makefile.am): Update search.h rule.
1333
1334         math: Avoid #define replacements in C++ mode.
1335         * lib/math.in.h: Include c++defs.h.
1336         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1337         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1338         trunc, truncl): In C++, define a namespaced alias symbol.
1339         * modules/math (Depends-on): Add c++defs.
1340         (Makefile.am): Update math.h rule.
1341
1342         locale: Avoid #define replacements in C++ mode.
1343         * lib/locale.in.h: Include c++defs.h.
1344         (duplocale): In C++, define a namespaced alias symbol.
1345         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1346         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1347         * modules/locale (Depends-on): Add c++defs.
1348         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1349
1350         langinfo: Avoid #define replacements in C++ mode.
1351         * lib/langinfo.in.h: Include c++defs.h.
1352         (nl_langinfo): In C++, define a namespaced alias symbol.
1353         * modules/langinfo (Depends-on): Add c++defs.
1354         (Makefile.am): Update langinfo.h rule.
1355
1356         iconv-h: Avoid #define replacements in C++ mode.
1357         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1358         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1359         symbol.
1360         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1361         whenever iconv is present.
1362         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1363         (Makefile.am): Update iconv.h rule.
1364
1365         glob: Avoid #define replacements in C++ mode.
1366         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1367         (_gl_glob_errfunc_fn): New type.
1368         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1369         symbol.
1370         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1371         (Makefile.am): Update glob.h rule.
1372
1373         fcntl-h: Avoid #define replacements in C++ mode.
1374         * lib/fcntl.in.h: Include c++defs.h.
1375         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1376         * modules/fcntl-h (Depends-on): Add c++defs.
1377         (Makefile.am): Update fcntl.h rule.
1378
1379         dirent: Avoid #define replacements in C++ mode.
1380         * lib/dirent.in.h: Include c++defs.h.
1381         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1382         namespaced alias symbol.
1383         (dirfd): Update declaration.
1384         * modules/dirent (Depends-on): Add c++defs.
1385         (Makefile.am): Update dirent.h rule.
1386
1387         ctype: Make it usable in C++ code.
1388         * lib/ctype.in.h: Include c++defs.h.
1389         (isblank): Declare as extern "C".
1390         * modules/ctype (Depends-on): Add c++defs.
1391         (Makefile.am): Update ctype.h rule.
1392
1393         New module 'c++defs'.
1394         * modules/c++defs: New file.
1395         * build-aux/c++defs.h: New file.
1396         Reported by John W. Eaton <jwe@gnu.org>.
1397
1398 2010-03-07  Bruno Haible  <bruno@clisp.org>
1399
1400         logb: Provide missing declaration for Cygwin.
1401         * lib/math.in.h (logb): New declaration.
1402         * m4/logb.m4: New file.
1403         * modules/logb (Files): Add m4/logb.m4.
1404         (Depends-on): Add math.
1405         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1406         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1408         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1409         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1410
1411 2010-03-07  Bruno Haible  <bruno@clisp.org>
1412
1413         Fix test-cond link error.
1414         * tests/test-cond.c: Include <stdio.h>.
1415
1416 2010-03-07  Bruno Haible  <bruno@clisp.org>
1417
1418         Fix test-dirent-safer link error.
1419         * modules/dirent-safer-tests (Makefile.am): Define
1420         test_dirent_safer_LDADD.
1421
1422 2010-03-07  Bruno Haible  <bruno@clisp.org>
1423
1424         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1425         among default module list.
1426
1427 2010-03-07  Bruno Haible  <bruno@clisp.org>
1428
1429         Fix link error on platforms with GNU libiconv.
1430         * modules/unistr/u8-strcoll-tests (Makefile): Define
1431         test_u8_strcoll_LDADD.
1432         * modules/unistr/u16-strcoll-tests (Makefile): Define
1433         test_u16_strcoll_LDADD.
1434         * modules/unistr/u32-strcoll-tests (Makefile): Define
1435         test_u32_strcoll_LDADD.
1436
1437 2010-03-07  Bruno Haible  <bruno@clisp.org>
1438
1439         Use POSIX declarations for socket functions.
1440         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1441         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1442         rpl_sendto): Change declaration to match POSIX.
1443         * lib/connect.c (rpl_connect): Likewise.
1444         * lib/accept.c (rpl_accept): Likewise.
1445         * lib/bind.c (rpl_bind): Likewise.
1446         * lib/getpeername.c (rpl_getpeername): Likewise.
1447         * lib/getsockname.c (rpl_getsockname): Likewise.
1448         * lib/recv.c (rpl_recv): Likewise.
1449         * lib/send.c (rpl_send): Likewise.
1450         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1451         * lib/sendto.c (rpl_sendto): Likewise.
1452
1453 2010-03-06  Bruno Haible  <bruno@clisp.org>
1454
1455         Clarify access, euidaccess, faccessat.
1456         * doc/posix-functions/faccessat.texi: Mention security problem under
1457         "Other problems", not "Portability problems".
1458         * doc/posix-functions/access.texi: Likewise. Mention a related security
1459         problem.
1460         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1461         * lib/euidaccess.c: Add comments about platforms.
1462         * lib/unistd.in.h (access, euidaccess): Add warnings.
1463
1464 2010-03-07  Bruno Haible  <bruno@clisp.org>
1465
1466         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1467         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1468         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1469         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1470         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1471         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1472         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1473         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1474         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1475         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1476         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1477         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1478         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1479         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1480         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1481         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1482         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1483         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1484         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1485         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1486         Likewise.
1487         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1488         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1489         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1490         Likewise.
1491         * tests/test-spawn.c (main): Make it work when
1492         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1493
1494 2010-03-07  Bruno Haible  <bruno@clisp.org>
1495
1496         Fix incorrect Makefile.am generation in German locale.
1497         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1498         Execute sed command with character range in C locale.
1499
1500 2010-03-06  Bruno Haible  <bruno@clisp.org>
1501
1502         Tests for module 'iconv-h'.
1503         * modules/iconv-h-tests: New file.
1504         * tests/test-iconv-h.c: New file.
1505
1506         New module 'iconv-h'.
1507         * modules/iconv-h: New file.
1508         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1509         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1510         (configure.ac): Remove gl_ICONV_H.
1511         (Makefile.am): Remove rule for iconv.h.
1512
1513 2010-03-06  Bruno Haible  <bruno@clisp.org>
1514
1515         More consistent naming of *.m4 files.
1516         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1517         * modules/wctype (Files): Update.
1518
1519         More consistent naming of *.m4 files.
1520         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1521         * modules/wchar (Files): Update.
1522
1523 2010-03-06  Jim Meyering  <meyering@redhat.com>
1524
1525         euidaccess: relax license to LGPLv2+
1526         * modules/euidaccess (License): Relax to LGPLv2+.
1527
1528 2010-03-06  Bruno Haible  <bruno@clisp.org>
1529
1530         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1531         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1532         (Makefile.am): Augment lib_SOURCES instead.
1533
1534 2010-03-04  Jim Meyering  <meyering@redhat.com>
1535
1536         utime: remove obsolete module
1537         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1538         unnecessary for years, and has been marked as obsolete for 10 months.
1539         * modules/utime: Remove file.
1540         * lib/utime.c: Remove file.
1541         * m4/utime.m4: Remove file.
1542         * m4/utimes-null.m4: Remove file.
1543         * doc/posix-functions/utime.texi (utime): Remove reference to
1544         the module.  Move the sole "fixed by gnulib" item into the
1545         "problems not fixed by Gnulib" list.
1546         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1547
1548 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1549
1550         * modules/exit (License): Relax license to LGPLv2+.
1551         (Status): Mark as obsolete.
1552         * NEWS: Mention deprecated 'exit' module.
1553         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1554         of now obsolete 'exit'.
1555
1556 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1557
1558         fts-lgpl: remove unused module
1559         * modules/fts-lgpl: Remove.
1560         * MODULES.html.sh (func_all_modules): Adjust.
1561         * check-module (find_included_lib_files): Adjust.
1562         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1563
1564 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1565
1566         copy-acl: enhance Solaris ACL error handling
1567         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1568         * lib/set-mode-acl.c (qset_acl): Likewise.
1569
1570 2010-03-02  Bruno Haible  <bruno@clisp.org>
1571
1572         spawn: Don't override the system defined values on FreeBSD 8.
1573         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1574         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1575         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1576         if HAVE_POSIX_SPAWN is 1.
1577         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1578
1579 2010-03-01  Bruno Haible  <bruno@clisp.org>
1580
1581         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1582         regarding Automake.
1583
1584 2010-02-25  Bruno Haible  <bruno@clisp.org>
1585
1586         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1587         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1588         setting, not afterwards.
1589         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1590
1591 2010-02-24  Eric Blake  <eblake@redhat.com>
1592
1593         bootstrap, git-version-gen: use timestamp
1594         * build-aux/git-version-gen (scriptversion): Force UTC.
1595         * build-aux/bootstrap (scriptversion): New variable.
1596
1597         bootstrap: allow older git
1598         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1599         older than 1.6.4.  Requested by the libvirt project.
1600
1601 2010-02-23  Eric Blake  <eblake@redhat.com>
1602
1603         warn-on-use: work with old autoconf
1604         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1605         AS_VAR semantics of autoconf 2.60.
1606         Reported by Bruno Haible.
1607
1608         bootstrap: improve some comments
1609         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1610         clarification comments.
1611
1612         gettimeofday: provide correct function
1613         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1614         when replacement is declared, otherwise provide gettimeofday.
1615         Reported by Michael Goffioul.
1616
1617 2010-02-23  Jim Meyering  <meyering@redhat.com>
1618
1619         lib-ignore: relax license to "unlimited", not LGPLv2+
1620         * modules/lib-ignore (License): Relax to "unlimited".
1621
1622 2010-02-23  Jim Meyering  <meyering@redhat.com>
1623
1624         lib-ignore: relax license to LGPLv2+
1625         * modules/lib-ignore (License): Relax to LGPLv2+.
1626
1627 2010-02-22  Eric Blake  <eblake@redhat.com>
1628
1629         lseek: avoid bash 3.2 broken pipe bug
1630         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1631         warning from bash 3.2.
1632         Reported by Ben Pfaff, with analysis from Bruno Haible.
1633
1634         bootstrap: support non-FSF copyright holder
1635         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1636         bootstrap.conf override of COPYRIGHT_HOLDER.
1637         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1638
1639         bootstrap: interoperate with gettext 0.14.1
1640         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1641
1642         bootstrap: allow for alternate submodule location
1643         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1644         hardcoding submodule location.
1645         (gnulib_mk): Allow direct use of Makefile.am.
1646
1647         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1648         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1649         rather than reconfiguring where the submodule points.
1650
1651         gettimeofday: restore support for platforms that lack function
1652         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1653         replacement if function is missing.
1654         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1655         * modules/sys_time (Makefile.am): Substitute it.
1656         * lib/sys_time.in.h (gettimeofday): Check it.
1657         Reported by Michael Goffioul.
1658
1659 2010-02-21  Bruno Haible  <bruno@clisp.org>
1660
1661         * lib/stdio.in.h (obstack_printf): Fix typo.
1662
1663 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1664
1665         vc-list-files: use bzr ls's -R option
1666         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1667         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1668
1669 2010-02-21  Jim Meyering  <meyering@redhat.com>
1670
1671         init.sh: fix EXEEXT shims to work also for names like test-prog
1672         * tests/init.sh: Re-exec a better shell, when needed.
1673         If the current shell lacks support for posix $(...), an init.sh-using
1674         test will now try to find a shell that supports that.  If EXEEXT is
1675         nonempty, we also require support for hyphen-in-alias-name and shell
1676         substitutions like ${var#glob}.  Failure to find such a shell results
1677         in a skipped test.
1678
1679 2010-02-21  Bruno Haible  <bruno@clisp.org>
1680
1681         Really work around around "broken pipe" error message from bash 3.2.
1682         * gnulib-tool (func_reset_sigpipe): Remove function.
1683         (echo): In bash 3.2, define to a function that uses printf.
1684         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1685
1686 2010-02-20  Bruno Haible  <bruno@clisp.org>
1687
1688         Restore support for automake 1.9.6 with autoconf 2.61.
1689         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1690         Reported by James Youngman <jay@gnu.org>.
1691
1692 2010-02-20  Bruno Haible  <bruno@clisp.org>
1693
1694         Improve *printf warning condition.
1695         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1696         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1697         and the function is overridden due to SIGPIPE emulation.
1698
1699 2010-02-20  Bruno Haible  <bruno@clisp.org>
1700
1701         * lib/stdio.in.h: Tweak comments.
1702
1703 2010-02-19  Bruno Haible  <bruno@clisp.org>
1704
1705         Make it easier to find modules. New gnulib-tool option '--find'.
1706         * gnulib-tool: New option --find.
1707         (func_usage): Document it.
1708         (func_sanitize_modulelist): New function, extracted from
1709         func_all_modules.
1710         (func_all_modules): Invoke it.
1711         * doc/gnulib-tool.texi (Which modules?): New node.
1712
1713 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1714
1715         * lib/sys_select.in.h: Provide select replacement even if
1716         sys/select.h exists on a system, for Interix.
1717
1718 2010-02-18  Jim Meyering  <meyering@redhat.com>
1719
1720         init.sh: don't use $(...) just yet
1721         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1722         to accommodate e.g., Solaris' /bin/sh.
1723
1724 2010-02-17  Bruno Haible  <bruno@clisp.org>
1725
1726         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1727         Reported by Ludovic Courtès <ludo@gnu.org>.
1728
1729 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1730
1731         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1732         linking with -lintl.
1733
1734 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1735
1736         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1737         if not provided by the system's netdb.h.  Reported by
1738         ludo@gnu.org (Ludovic Courtès).
1739
1740 2010-02-15  Jim Meyering  <meyering@redhat.com>
1741
1742         init.sh: improve portability and efficiency
1743         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1744         "dummy" in a for loop.
1745         Use '!', not '^' to select the complement of a character set used
1746         in a "case" statement.
1747         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1748         Suggestions from Eric Blake.
1749
1750         init.sh: automatically accommodate programs with the .exe suffix
1751         Automatically arrange for an invocation of "prog" to execute the
1752         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1753         may use the simpler "prog", yet still work when built on a system
1754         that requires specifying the added suffix.
1755         Do this by constructing a function named "prog" that invokes
1756         "prog.exe" for each .exe file in selected directories.
1757         * tests/init.sh (find_exe_basenames_): New function.
1758         (create_exe_shim_functions_): New function.
1759         (path_prepend_): Use it.
1760
1761         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1762         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1763         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1764
1765 2010-02-14  Jim Meyering  <meyering@redhat.com>
1766
1767         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1768         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1769         (sc_prohibit_hash_pjw_without_use): New rule.
1770
1771         maint.mk: allow the default upload destination dir to be overridden
1772         * top/maint.mk (upload_dest_dir_): Define with a default that
1773         preserves the status quo.
1774         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1775         Reported by Peter Simons.
1776
1777         maint.mk: prohibit inclusion of "hash.h" without_use
1778         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1779
1780 2010-02-10  Jim Meyering  <meyering@redhat.com>
1781
1782         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1783         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1784
1785 2010-02-09  Eric Blake  <ebb9@byu.net>
1786         and Bruno Haible  <bruno@clisp.org>
1787
1788         obstack-printf-posix: ensure declaration
1789         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1790         extracted from gl_FUNC_OBSTACK_PRINTF.
1791         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1792         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1793         Likewise.
1794         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1795         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1796         0.
1797
1798 2010-02-08  Bruno Haible  <bruno@clisp.org>
1799
1800         gnulib-tool: Fix typo in 2010-02-07 commit.
1801         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1802         Reported by Eric Blake.
1803
1804 2010-02-07  Bruno Haible  <bruno@clisp.org>
1805
1806         gnulib-tool: Fix up caching patches.
1807         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1808         option --no-cache. Use associative arrays when supported by the shell.
1809         (sed_comments): New variable.
1810         (modcache): Renamed from do_cache.
1811         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1812         abbreviate unnecessarily.
1813         (have_associative): New variable.
1814         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1815         way also for ksh and zsh.
1816         (func_init_sed_convert_to_cache_statements): New function, extracted
1817         from func_cache_lookup_module. Add support for associative arrays.
1818         Don't set the c_MODULE_cached variable here. Ignore all lines before
1819         the first field header. Remove only the final newline, not all trailing
1820         newlines. Support empty fields correctly. Limit the use of 'eval' to
1821         assignments.
1822         (func_get_description, func_get_status, func_get_notice,
1823         func_get_applicability, func_get_filelist, func_get_dependencies,
1824         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1825         func_get_automake_snippet, func_get_include_directive,
1826         func_get_link_directive, func_get_license, func_get_maintainer):
1827         Update documentation. List the unoptimized code first. Add support for
1828         associative arrays. Limit the use of 'eval' to assignments.
1829         (func_get_applicability): Undo stylistic pessimisations.
1830         (func_get_automake_snippet, func_get_include_directive): Reduce code
1831         duplication.
1832         (func_modules_transitive_closure, func_modules_add_dummy,
1833         func_modules_notice, func_modules_to_filelist, func_add_file,
1834         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1835         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1836         func_create_testdir, func_create_megatestdir): Update documentation.
1837
1838 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1839
1840         * gnulib-tool (func_cache_lookup_module): Store the module name
1841         belonging to the cache variable; error out if two different
1842         module names map to the same cache variable name.
1843
1844 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1845
1846         gnulib-tool: Make caching optional.
1847         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1848         Update matching short versions of --no-changelog.
1849         (func_usage): Update.
1850         (sed_extract_cache_prog): Renamed from ...
1851         (sed_extract_prog): ... this; revert to old extraction script.
1852         (func_get_description, func_get_status)
1853         (func_get_notice, func_get_applicability, func_get_filelist)
1854         (func_get_dependencies, func_get_autoconf_early_snippet)
1855         (func_get_autoconf_snippet, func_get_automake_snippet)
1856         (func_get_include_directive, func_get_link_directive)
1857         (func_get_license, func_get_maintainer): If $do_cache is false,
1858         use old, non-caching extraction scripts.
1859         Suggestion by Bruno Haible.
1860
1861 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1862
1863         gnulib-tool: cache module metainformation.
1864         * gnulib-tool (sed_extract_prog): Match newline before each
1865         header, and rewrite header to a shell variable suffix.
1866         (func_cache_var, func_cache_lookup_module): New functions,
1867         to turn a module name into a cache variable prefix, and to
1868         look up and cache module metainformation.
1869         (func_get_description, func_get_status)
1870         (func_get_notice, func_get_applicability, func_get_filelist)
1871         (func_get_dependencies, func_get_autoconf_early_snippet)
1872         (func_get_autoconf_snippet, func_get_automake_snippet)
1873         (func_get_include_directive, func_get_link_directive)
1874         (func_get_license, func_get_maintainer): Use
1875         func_cache_lookup_module.
1876
1877 2010-02-07  Bruno Haible  <bruno@clisp.org>
1878
1879         fnctl: Fix missing dependency.
1880         * modules/fcntl (Depends-on): Add getdtablesize.
1881         Reported by John W. Eaton <jwe@gnu.org>.
1882
1883 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1884
1885         Argp: fix recognition of short alias options.
1886
1887         * lib/argp-parse.c (convert_options): Fix improper use of
1888         `|' between character values.
1889         * tests/test-argp.c (group1_option): New alias option
1890         --read (-r).
1891         (group1_parser): Special handling for 'r'.
1892         (test15): New test case.
1893         (test_fun): Add test15.
1894         * tests/test-argp-2.sh: Update expected --help and --usage
1895         outputs.
1896
1897 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1898
1899         * tests/test-argp.c: Fix indentation.
1900
1901 2010-02-04  Eric Blake  <ebb9@byu.net>
1902
1903         gettimeofday: expose type of second argument
1904         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1905         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1906         * tests/test-gettimeofday.c: Use it to silence warning.
1907         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1908         the issue.
1909
1910 2010-02-03  Jim Meyering  <meyering@redhat.com>
1911
1912         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1913         * lib/regcomp.c (TYPE_SIGNED): Define.
1914         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1915
1916         regcomp.c: avoid a new -Wshadow warning
1917         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1918
1919 2010-02-01  Jim Meyering  <meyering@redhat.com>
1920
1921         removing useless parentheses in cpp #define directives
1922         For motivation, see commit c0221df4, "define STREQ(a,b)
1923         consistently, removing useless parentheses"
1924         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1925         * lib/mountlist.c (MNT_IGNORE): Likewise.
1926         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1927
1928 2010-02-01  Eric Blake  <ebb9@byu.net>
1929
1930         sys_time: use link-warning
1931         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1932         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1933         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1934         * modules/sys_time (Depends-on): Add warn-on-use.
1935         (Makefile.am): Always build replacement.
1936         (configure.ac): Update substitutions.
1937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1938         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1939         bother with SYS_TIME_H.
1940         * modules/gettimeofday (configure.ac): Declare indicator.
1941         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1942         in use.
1943
1944         closein-tests: silence compiler warning
1945         * tests/test-closein.c (main): Ignore fread result.
1946         * modules/closein-tests (Depends-on): Add ignore-value.
1947
1948         tests: silence warning about system return
1949         * tests/test-areadlink-with-size.c (main): Ignore system result.
1950         * tests/test-areadlink.c (main): Likewise.
1951         * tests/test-areadlinkat-with-size.c (main): Likewise.
1952         * tests/test-areadlinkat.c (main): Likewise.
1953         * tests/test-canonicalize-lgpl.c (main): Likewise.
1954         * tests/test-canonicalize.c (main): Likewise.
1955         * tests/test-chown.c (main): Likewise.
1956         * tests/test-fchownat.c (main): Likewise.
1957         * tests/test-fdutimensat.c (main): Likewise.
1958         * tests/test-fstatat.c (main): Likewise.
1959         * tests/test-futimens.c (main): Likewise.
1960         * tests/test-lchown.c (main): Likewise.
1961         * tests/test-link.c (main): Likewise.
1962         * tests/test-linkat.c (main): Likewise.
1963         * tests/test-lstat.c (main): Likewise.
1964         * tests/test-mkdir.c (main): Likewise.
1965         * tests/test-mkdirat.c (main): Likewise.
1966         * tests/test-mkfifo.c (main): Likewise.
1967         * tests/test-mkfifoat.c (main): Likewise.
1968         * tests/test-mknod.c (main): Likewise.
1969         * tests/test-readlink.c (main): Likewise.
1970         * tests/test-remove.c (main): Likewise.
1971         * tests/test-rename.c (main): Likewise.
1972         * tests/test-renameat.c (main): Likewise.
1973         * tests/test-rmdir.c (main): Likewise.
1974         * tests/test-symlink.c (main): Likewise.
1975         * tests/test-symlinkat.c (main): Likewise.
1976         * tests/test-unlink.c (main): Likewise.
1977         * tests/test-unlinkat.c (main): Likewise.
1978         * tests/test-utimens.c (main): Likewise.
1979         * tests/test-utimensat.c (main): Likewise.
1980         * modules/areadlink-tests (Depends-on): Add ignore-value.
1981         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1982         * modules/areadlinkat-tests (Depends-on): Likewise.
1983         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1984         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1985         * modules/canonicalize-tests (Depends-on): Likewise.
1986         * modules/chown-tests (Depends-on): Likewise.
1987         * modules/fdutimensat-tests (Depends-on): Likewise.
1988         * modules/futimens-tests (Depends-on): Likewise.
1989         * modules/lchown-tests (Depends-on): Likewise.
1990         * modules/link-tests (Depends-on): Likewise.
1991         * modules/linkat-tests (Depends-on): Likewise.
1992         * modules/lstat-tests (Depends-on): Likewise.
1993         * modules/mkdir-tests (Depends-on): Likewise.
1994         * modules/mkfifo-tests (Depends-on): Likewise.
1995         * modules/mkfifoat-tests (Depends-on): Likewise.
1996         * modules/mknod-tests (Depends-on): Likewise.
1997         * modules/openat-tests (Depends-on): Likewise.
1998         * modules/readlink-tests (Depends-on): Likewise.
1999         * modules/remove-tests (Depends-on): Likewise.
2000         * modules/rename-tests (Depends-on): Likewise.
2001         * modules/renameat-tests (Depends-on): Likewise.
2002         * modules/rmdir-tests (Depends-on): Likewise.
2003         * modules/symlink-tests (Depends-on): Likewise.
2004         * modules/symlinkat-tests (Depends-on): Likewise.
2005         * modules/unlink-tests (Depends-on): Likewise.
2006         * modules/utimens-tests (Depends-on): Likewise.
2007         * modules/utimensat-tests (Depends-on): Likewise.
2008
2009 2010-01-31  Bruno Haible  <bruno@clisp.org>
2010
2011         Perform the same test for many <math.h> functions.
2012         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2013         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2014         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2015         of gl_MATHFUNC.
2016         * modules/acos (configure.ac): Likewise.
2017         * modules/asin (configure.ac): Likewise.
2018         * modules/atan (configure.ac): Likewise.
2019         * modules/atan2 (configure.ac): Likewise.
2020         * modules/cbrt (configure.ac): Likewise.
2021         * modules/copysign (configure.ac): Likewise.
2022         * modules/cos (configure.ac): Likewise.
2023         * modules/cosh (configure.ac): Likewise.
2024         * modules/erf (configure.ac): Likewise.
2025         * modules/erfc (configure.ac): Likewise.
2026         * modules/exp (configure.ac): Likewise.
2027         * modules/fmod (configure.ac): Likewise.
2028         * modules/hypot (configure.ac): Likewise.
2029         * modules/j0 (configure.ac): Likewise.
2030         * modules/j1 (configure.ac): Likewise.
2031         * modules/jn (configure.ac): Likewise.
2032         * modules/lgamma (configure.ac): Likewise.
2033         * modules/log (configure.ac): Likewise.
2034         * modules/log10 (configure.ac): Likewise.
2035         * modules/log1p (configure.ac): Likewise.
2036         * modules/pow (configure.ac): Likewise.
2037         * modules/remainder (configure.ac): Likewise.
2038         * modules/sin (configure.ac): Likewise.
2039         * modules/sinh (configure.ac): Likewise.
2040         * modules/tan (configure.ac): Likewise.
2041         * modules/tanh (configure.ac): Likewise.
2042         * modules/y0 (configure.ac): Likewise.
2043         * modules/y1 (configure.ac): Likewise.
2044         * modules/yn (configure.ac): Likewise.
2045         Suggested by Paolo Bonzini.
2046
2047 2010-01-31  Bruno Haible  <bruno@clisp.org>
2048
2049         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2050
2051 2010-01-31  Bruno Haible  <bruno@clisp.org>
2052
2053         Work around getdelim() bug on FreeBSD 8.0.
2054         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2055         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2056         not work.
2057         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2058         is 1.
2059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2060         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2061         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2062         a non-zero size.
2063         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2064
2065 2010-01-31  Bruno Haible  <bruno@clisp.org>
2066
2067         Work around getline() bug on FreeBSD 8.0.
2068         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2069         and a non-zero size.
2070         * tests/test-getline.c (main): Likewise.
2071         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2072         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2073
2074 2010-01-28  Eric Blake  <ebb9@byu.net>
2075
2076         regex: fix build failure
2077         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2078         platforms.
2079
2080 2010-01-28  Jim Meyering  <meyering@redhat.com>
2081
2082         regex: do not ignore memory allocation failure
2083         * lib/regex_internal.c (create_cd_newstate): Detect
2084         re_node_set_init_copy failure.   Extracted from glibc commit
2085         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2086
2087         regex: sync more white-space changes from libc
2088         * lib/regex_internal.c: White-space only changes.
2089         * lib/regexec.c: Likewise.
2090
2091         regex: add many uses of __attribute_warn_unused_result__
2092         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2093         * lib/regexec.c: Likewise.
2094         Extracted from a messy glibc commit.
2095
2096         regcomp.c: spelling and merge-artifact from glibc
2097         * lib/regcomp.c: Merge remainder of glibc's
2098         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2099
2100         regcomp.c: sync white-space changes from glibc
2101         * lib/regcomp.c: Merge to accommodate white space
2102         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2103
2104         regcomp.c: do not ignore internal return values
2105         * lib/regcomp.c: Do not ignore internal return values.
2106         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2107         but without its white-space changes and spelling fixes.
2108
2109         regex_internal.h: define __attribute_warn_unused_result__
2110         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2111
2112         maint: add a syntax-check rule to check for vulnerable Makefile.in
2113         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2114
2115 2010-01-27  Jim Meyering  <meyering@redhat.com>
2116
2117         ncftpput-ftp: clean up spaces
2118         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2119         Remove trailing blanks.
2120
2121 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2122
2123         * build-aux/git-version-gen: Fix copyright statement.
2124         * build-aux/gnupload: Likewise.
2125         * tests/test-arcfour.c: Likewise.
2126         * tests/test-arctwo.c: Likewise.
2127         * tests/test-count-one-bits.c: Likewise.
2128         * tests/test-crc.c: Likewise.
2129         * tests/test-des.c: Likewise.
2130         * tests/test-gc-arcfour.c: Likewise.
2131         * tests/test-gc-arctwo.c: Likewise.
2132         * tests/test-gc-des.c: Likewise.
2133         * tests/test-gc-hmac-md5.c: Likewise.
2134         * tests/test-gc-hmac-sha1.c: Likewise.
2135         * tests/test-gc-md2.c: Likewise.
2136         * tests/test-gc-md4.c: Likewise.
2137         * tests/test-gc-md5.c: Likewise.
2138         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2139         * tests/test-gc-rijndael.c: Likewise.
2140         * tests/test-gc-sha1.c: Likewise.
2141         * tests/test-gc.c: Likewise.
2142         * tests/test-gethostname.c: Likewise.
2143         * tests/test-gettimeofday.c: Likewise.
2144         * tests/test-hash.c: Likewise.
2145         * tests/test-hmac-md5.c: Likewise.
2146         * tests/test-hmac-sha1.c: Likewise.
2147         * tests/test-md2.c: Likewise.
2148         * tests/test-md4.c: Likewise.
2149         * tests/test-md5.c: Likewise.
2150         * tests/test-memchr.c: Likewise.
2151         * tests/test-memchr2.c: Likewise.
2152         * tests/test-memcmp.c: Likewise.
2153         * tests/test-memmem.c: Likewise.
2154         * tests/test-memrchr.c: Likewise.
2155         * tests/test-rawmemchr.c: Likewise.
2156         * tests/test-read-file.c: Likewise.
2157         * tests/test-rijndael.c: Likewise.
2158         * tests/test-sockets.c: Likewise.
2159         * tests/test-strchrnul.c: Likewise.
2160         * tests/test-strstr.c: Likewise.
2161         * tests/test-strtod.c: Likewise.
2162         * build-aux/ncftpput-ftp: Likewise.
2163
2164 2010-01-26  Eric Blake  <ebb9@byu.net>
2165
2166         ignore-value: update recommended header name
2167         * modules/ignore-value (Include): Only use <> for headers that
2168         exist in glibc.
2169
2170 2010-01-26  Jim Meyering  <meyering@redhat.com>
2171
2172         test-userspec.c: avoid compiler warnings
2173         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2174         and "initialization discards qualifiers..." warnings.
2175         Put the first "uid" in its own scope, and make char* members "const".
2176
2177 2010-01-25  Bruno Haible  <bruno@clisp.org>
2178
2179         gnulib-tool: Make warning diagnostics consistent.
2180         * gnulib-tool (func_warning): New function.
2181         Use it everywhere where gnulib-tool produces output to stderr and it is
2182         not a fatal error.
2183
2184 2010-01-25  Bruno Haible  <bruno@clisp.org>
2185
2186         Fix test dependencies.
2187         * modules/xstrtol-tests (Depends-on): Add inttypes.
2188         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2189
2190 2010-01-25 Pádraig Brady <P@draigBrady.com>
2191
2192         syntax-check: detect incorrect boolean macro values in config.h
2193         * modules/maintainer-makefile (configure.ac): Parameterize the location
2194         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2195         The logic is from Eric Blake and the location indicated by Jim Meyering.
2196         Note the more natural CONFIG_HEADER name is prohibited by automake
2197         for backwards compatibility reasons.
2198         * top/maint.mk (sc_Wundef_boolean): New rule.
2199
2200 2010-01-25  Jim Meyering  <meyering@redhat.com>
2201
2202         bootstrap: detect MacOS 10.6's shasum, too
2203         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2204         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2205
2206 2010-01-23  Jim Meyering  <meyering@redhat.com>
2207
2208         xstrtoll: new module
2209         * modules/xstrtoll: New file.
2210         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2211         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2212         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2213         ./configure fails if you use this module and lack "long long".
2214         * modules/xstrtoll-tests: New module.
2215         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2216         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2217         new init.sh-based test framework.
2218
2219 2010-01-24  Bruno Haible  <bruno@clisp.org>
2220
2221         Tests for module 'yn'.
2222         * modules/yn-tests: New file.
2223         * tests/test-yn.c: New file.
2224
2225         Tests for module 'y1'.
2226         * modules/y1-tests: New file.
2227         * tests/test-y1.c: New file.
2228
2229         Tests for module 'y0'.
2230         * modules/y0-tests: New file.
2231         * tests/test-y0.c: New file.
2232
2233         Tests for module 'tanh'.
2234         * modules/tanh-tests: New file.
2235         * tests/test-tanh.c: New file.
2236
2237         Tests for module 'tan'.
2238         * modules/tan-tests: New file.
2239         * tests/test-tan.c: New file.
2240
2241         Tests for module 'sqrt'.
2242         * modules/sqrt-tests: New file.
2243         * tests/test-sqrt.c: New file.
2244
2245         Tests for module 'sinh'.
2246         * modules/sinh-tests: New file.
2247         * tests/test-sinh.c: New file.
2248
2249         Tests for module 'sin'.
2250         * modules/sin-tests: New file.
2251         * tests/test-sin.c: New file.
2252
2253         Tests for module 'rint'.
2254         * modules/rint-tests: New file.
2255         * tests/test-rint.c: New file.
2256
2257         Tests for module 'remainder'.
2258         * modules/remainder-tests: New file.
2259         * tests/test-remainder.c: New file.
2260
2261         Tests for module 'pow'.
2262         * modules/pow-tests: New file.
2263         * tests/test-pow.c: New file.
2264
2265         Tests for module 'nextafter'.
2266         * modules/nextafter-tests: New file.
2267         * tests/test-nextafter.c: New file.
2268
2269         Tests for module 'modf'.
2270         * modules/modf-tests: New file.
2271         * tests/test-modf.c: New file.
2272
2273         Tests for module 'logb'.
2274         * modules/logb-tests: New file.
2275         * tests/test-logb.c: New file.
2276
2277         Tests for module 'log1p'.
2278         * modules/log1p-tests: New file.
2279         * tests/test-log1p.c: New file.
2280
2281         Tests for module 'log10'.
2282         * modules/log10-tests: New file.
2283         * tests/test-log10.c: New file.
2284
2285         Tests for module 'log'.
2286         * modules/log-tests: New file.
2287         * tests/test-log.c: New file.
2288
2289         Tests for module 'lgamma'.
2290         * modules/lgamma-tests: New file.
2291         * tests/test-lgamma.c: New file.
2292
2293         Tests for module 'ldexp'.
2294         * modules/ldexp-tests: New file.
2295         * tests/test-ldexp.c: New file.
2296
2297         Tests for module 'jn'.
2298         * modules/jn-tests: New file.
2299         * tests/test-jn.c: New file.
2300
2301         Tests for module 'j1'.
2302         * modules/j1-tests: New file.
2303         * tests/test-j1.c: New file.
2304
2305         Tests for module 'j0'.
2306         * modules/j0-tests: New file.
2307         * tests/test-j0.c: New file.
2308
2309         Tests for module 'hypot'.
2310         * modules/hypot-tests: New file.
2311         * tests/test-hypot.c: New file.
2312
2313         Tests for module 'fmod'.
2314         * modules/fmod-tests: New file.
2315         * tests/test-fmod.c: New file.
2316
2317         Tests for module 'fabs'.
2318         * modules/fabs-tests: New file.
2319         * tests/test-fabs.c: New file.
2320
2321         Tests for module 'exp'.
2322         * modules/exp-tests: New file.
2323         * tests/test-exp.c: New file.
2324
2325         Tests for module 'erfc'.
2326         * modules/erfc-tests: New file.
2327         * tests/test-erfc.c: New file.
2328
2329         Tests for module 'erf'.
2330         * modules/erf-tests: New file.
2331         * tests/test-erf.c: New file.
2332
2333         Tests for module 'cosh'.
2334         * modules/cosh-tests: New file.
2335         * tests/test-cosh.c: New file.
2336
2337         Tests for module 'cos'.
2338         * modules/cos-tests: New file.
2339         * tests/test-cos.c: New file.
2340
2341         Tests for module 'copysign'.
2342         * modules/copysign-tests: New file.
2343         * tests/test-copysign.c: New file.
2344
2345         Tests for module 'cbrt'.
2346         * modules/cbrt-tests: New file.
2347         * tests/test-cbrt.c: New file.
2348
2349         Tests for module 'atan2'.
2350         * modules/atan2-tests: New file.
2351         * tests/test-atan2.c: New file.
2352
2353         Tests for module 'atan'.
2354         * modules/atan-tests: New file.
2355         * tests/test-atan.c: New file.
2356
2357         Tests for module 'asin'.
2358         * modules/asin-tests: New file.
2359         * tests/test-asin.c: New file.
2360
2361         Tests for module 'acos'.
2362         * modules/acos-tests: New file.
2363         * tests/test-acos.c: New file.
2364
2365 2010-01-24  Bruno Haible  <bruno@clisp.org>
2366
2367         Fix tests for common <math.h> functions.
2368         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2369         code snippet that references the function pointer, rather than merely
2370         calling the function. Substitute the FUNC_LIBM variable.
2371         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2372         * modules/acos (configure.ac): Likewise.
2373         * modules/asin (configure.ac): Likewise.
2374         * modules/atan (configure.ac): Likewise.
2375         * modules/atan2 (configure.ac): Likewise.
2376         * modules/cbrt (configure.ac): Likewise.
2377         * modules/copysign (configure.ac): Likewise.
2378         * modules/cos (configure.ac): Likewise.
2379         * modules/cosh (configure.ac): Likewise.
2380         * modules/erf (configure.ac): Likewise.
2381         * modules/erfc (configure.ac): Likewise.
2382         * modules/exp (configure.ac): Likewise.
2383         * modules/fabs (configure.ac): Likewise.
2384         * modules/fmod (configure.ac): Likewise.
2385         * modules/hypot (configure.ac): Likewise.
2386         * modules/j0 (configure.ac): Likewise.
2387         * modules/j1 (configure.ac): Likewise.
2388         * modules/jn (configure.ac): Likewise.
2389         * modules/ldexp (configure.ac): Likewise.
2390         * modules/lgamma (configure.ac): Likewise.
2391         * modules/log (configure.ac): Likewise.
2392         * modules/log10 (configure.ac): Likewise.
2393         * modules/log1p (configure.ac): Likewise.
2394         * modules/logb (configure.ac): Likewise.
2395         * modules/modf (configure.ac): Likewise.
2396         * modules/nextafter (configure.ac): Likewise.
2397         * modules/pow (configure.ac): Likewise.
2398         * modules/remainder (configure.ac): Likewise.
2399         * modules/rint (configure.ac): Likewise.
2400         * modules/sin (configure.ac): Likewise.
2401         * modules/sinh (configure.ac): Likewise.
2402         * modules/tan (configure.ac): Likewise.
2403         * modules/tanh (configure.ac): Likewise.
2404         * modules/y0 (configure.ac): Likewise.
2405         * modules/y1 (configure.ac): Likewise.
2406         * modules/yn (configure.ac): Likewise.
2407
2408 2010-01-24  Bruno Haible  <bruno@clisp.org>
2409
2410         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2411         * tests/test-acosl.c (x): New variable.
2412         (main): Store argument in x and fetch it from x.
2413         * tests/test-asinl.c (x): New variable.
2414         (main): Store argument in x and fetch it from x.
2415         * tests/test-atanl.c (x): New variable.
2416         (main): Store argument in x and fetch it from x.
2417         * tests/test-cosl.c (x): New variable.
2418         (main): Store argument in x and fetch it from x.
2419         * tests/test-expl.c (x): New variable.
2420         (main): Store argument in x and fetch it from x.
2421         * tests/test-logl.c (x): New variable.
2422         (main): Store argument in x and fetch it from x.
2423         * tests/test-sinl.c (x): New variable.
2424         (main): Store argument in x and fetch it from x.
2425         * tests/test-sqrtl.c (x): New variable.
2426         (main): Store argument in x and fetch it from x.
2427         * tests/test-tanl.c (x): New variable.
2428         (main): Store argument in x and fetch it from x.
2429
2430 2010-01-24  Bruno Haible  <bruno@clisp.org>
2431
2432         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2433         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2434         assignments to the initial TESTS_ENVIRONMENT.
2435         * doc/gnulib.texi (Unit test modules): Document it.
2436         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2437         TESTS_ENVIRONMENT.
2438         * modules/btowc-tests (Makefile.am): Likewise.
2439         * modules/c-stack-tests (Makefile.am): Likewise.
2440         * modules/c-strcase-tests (Makefile.am): Likewise.
2441         * modules/copy-file-tests (Makefile.am): Likewise.
2442         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2443         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2444         * modules/mbrtowc-tests (Makefile.am): Likewise.
2445         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2446         * modules/mbscasestr-tests (Makefile.am): Likewise.
2447         * modules/mbschr-tests (Makefile.am): Likewise.
2448         * modules/mbscspn-tests (Makefile.am): Likewise.
2449         * modules/mbsinit-tests (Makefile.am): Likewise.
2450         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2451         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2452         * modules/mbspbrk-tests (Makefile.am): Likewise.
2453         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2454         * modules/mbsrchr-tests (Makefile.am): Likewise.
2455         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2456         * modules/mbsspn-tests (Makefile.am): Likewise.
2457         * modules/mbsstr-tests (Makefile.am): Likewise.
2458         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2459         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2460         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2461         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2462         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2463         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2464         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2465         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2466         * modules/wcrtomb-tests (Makefile.am): Likewise.
2467         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2468         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2469         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2470         assignments from TESTS_ENVIRONMENT.
2471         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2472         augmentation.
2473         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2474         * modules/atexit-tests (Makefile.am): Likewise.
2475         * modules/binary-io-tests (Makefile.am): Likewise.
2476         * modules/closein-tests (Makefile.am): Likewise.
2477         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2478         * modules/exclude-tests (Makefile.am): Likewise.
2479         * modules/fflush-tests (Makefile.am): Likewise.
2480         * modules/fpending-tests (Makefile.am): Likewise.
2481         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2482         * modules/freadahead-tests (Makefile.am): Likewise.
2483         * modules/freadptr-tests (Makefile.am): Likewise.
2484         * modules/freadseek-tests (Makefile.am): Likewise.
2485         * modules/fseek-tests (Makefile.am): Likewise.
2486         * modules/fseeko-tests (Makefile.am): Likewise.
2487         * modules/ftell-tests (Makefile.am): Likewise.
2488         * modules/ftello-tests (Makefile.am): Likewise.
2489         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2490         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2491         * modules/lseek-tests (Makefile.am): Likewise.
2492         * modules/parse-duration-tests (Makefile.am): Likewise.
2493         * modules/perror-tests (Makefile.am): Likewise.
2494         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2495         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2496         * modules/pipe-tests (Makefile.am): Likewise.
2497         * modules/pread-tests (Makefile.am): Likewise.
2498         * modules/printf-posix-tests (Makefile.am): Likewise.
2499         * modules/select-tests (Makefile.am): Likewise.
2500         * modules/sigpipe-tests (Makefile.am): Likewise.
2501         * modules/tsearch-tests (Makefile.am): Likewise.
2502         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2503         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2504         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2505         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2506         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2507         * modules/version-etc-tests (Makefile.am): Likewise.
2508         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2509         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2510         * modules/xalloc-die-tests (Makefile.am): Likewise.
2511         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2512         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2513         * modules/xstrtol-tests (Makefile.am): Likewise.
2514         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2515         * modules/yesno-tests (Makefile.am): Likewise.
2516         Suggested by Jim Meyering.
2517
2518 2010-01-24  Bruno Haible  <bruno@clisp.org>
2519
2520         More documentation.
2521         * doc/gnulib.texi (Writing modules): New chapter.
2522         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2523         the new chapter.
2524
2525 2010-01-24  Jim Meyering  <meyering@redhat.com>
2526
2527         maint.mk: do not prepend "./" after filtering
2528         * top/maint.mk (_prepend_srcdir_prefix): New variable
2529         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2530         "./" when $(srcdir) is ".".
2531
2532         define STREQ(a,b) consistently, removing useless parentheses
2533         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2534         since the only risk is that "a" or "b" contains an unparenthesized
2535         comma, but if either did that, STREQ would have 3 or more arguments.
2536         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2537         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2538         * lib/hash-triple.c (STREQ): Likewise.
2539         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2540         * lib/getugroups.c (STREQ): Likewise.
2541
2542 2010-01-23  Jim Meyering  <meyering@redhat.com>
2543
2544         maint.mk: fix syntax-check in a non-srcdir build directory
2545         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2546         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2547
2548 2010-01-22  Jim Meyering  <meyering@redhat.com>
2549
2550         userspec: add unit tests
2551         * tests/test-userspec.c: New file.
2552         * modules/userspec-tests: Likewise.
2553
2554 2010-01-21  Jim Meyering  <meyering@redhat.com>
2555
2556         maint.mk: handle source file names containing "." robustly
2557         * top/maint.mk (_dot_escaped_srcdir): Define.
2558         (VC_LIST): Use it in LHS of sed substitution.
2559
2560 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2561
2562         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2563         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2564         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2565         from a non-srcdir build.
2566
2567 2010-01-20  Eric Blake  <ebb9@byu.net>
2568
2569         warn-on-use: use instead of link-warning
2570         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2571         * modules/unistd (Depends-on, Makefile.am): Likewise.
2572         * modules/arpa_inet (Depends-on): Replace link-warning with
2573         warn-on-use.
2574         (Makefile.am): Update rules accordingly.
2575         * modules/ctype (Depends-on, Makefile.am): Likewise.
2576         * modules/dirent (Depends-on, Makefile.am): Likewise.
2577         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2578         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2579         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2580         * modules/locale (Depends-on, Makefile.am): Likewise.
2581         * modules/math (Depends-on, Makefile.am): Likewise.
2582         * modules/search (Depends-on, Makefile.am): Likewise.
2583         * modules/signal (Depends-on, Makefile.am): Likewise.
2584         * modules/spawn (Depends-on, Makefile.am): Likewise.
2585         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2586         * modules/string (Depends-on, Makefile.am): Likewise.
2587         * modules/strings (Depends-on, Makefile.am): Likewise.
2588         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2589         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2590         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2591         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2592         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2593         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2594         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2595         * modules/wchar (Depends-on, Makefile.am): Likewise.
2596         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2597         should be poisoned.
2598         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2599         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2600         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2601         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2602         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2603         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2604         * m4/math_h.m4 (gl_MATH_H): Likewise.
2605         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2606         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2607         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2608         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2609         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2610         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2611         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2612         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2613         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2614         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2615         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2617         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2618         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2619         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2620         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2621         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2622         GL_LINK_WARNING.
2623         * lib/ctype.in.h: Likewise.
2624         * lib/dirent.in.h: Likewise.
2625         * lib/fcntl.in.h: Likewise.
2626         * lib/inttypes.in.h: Likewise.
2627         * lib/langinfo.in.h: Likewise.
2628         * lib/locale.in.h: Likewise.
2629         * lib/math.in.h: Likewise.
2630         * lib/search.in.h: Likewise.
2631         * lib/signal.in.h: Likewise.
2632         * lib/spawn.in.h: Likewise.
2633         * lib/stdio.in.h: Likewise.
2634         * lib/stdlib.in.h: Likewise.
2635         * lib/string.in.h: Likewise.
2636         * lib/strings.in.h: Likewise.
2637         * lib/sys_file.in.h: Likewise.
2638         * lib/sys_ioctl.in.h: Likewise.
2639         * lib/sys_select.in.h: Likewise.
2640         * lib/sys_socket.in.h: Likewise.
2641         * lib/sys_stat.in.h: Likewise.
2642         * lib/sys_times.in.h: Likewise.
2643         * lib/sys_utsname.in.h: Likewise.
2644         * lib/unistd.in.h: Likewise.
2645         * lib/wchar.in.h: Likewise.
2646
2647 2010-01-20  Bruno Haible  <bruno@clisp.org>
2648
2649         Avoid duplicate -lm.
2650         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2651         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2654         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2655         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2656         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2657         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2658         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2659         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2660         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2661         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2662         Reported by Paolo Bonzini.
2663
2664 2010-01-19  Bruno Haible  <bruno@clisp.org>
2665
2666         langinfo, nl_langinfo: Relicense under LGPLv2+.
2667         * modules/langinfo (License): Change to LGPLv2+.
2668         * modules/nl_langinfo (License): Likewise.
2669         Patch by David Lutterkort <lutter@redhat.com>.
2670
2671 2010-01-19  Bruno Haible  <bruno@clisp.org>
2672
2673         Avoid compilation error with cc on OSF/1 5.1.
2674         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2675         statement, not before.
2676         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2677
2678 2010-01-18  Bruno Haible  <bruno@clisp.org>
2679
2680         Avoid a link error due to the __printf__ symbol.
2681         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2682         and 2.6.x.
2683         (__format__, __printf__): Remove definitions.
2684         * lib/argp-fmtstream.h: Likewise.
2685         * lib/argp.h: Likewise.
2686         * lib/error.h: Likewise.
2687         * lib/vasnprintf.h: Likewise.
2688         * lib/xprintf.h: Likewise.
2689         * lib/xvasprintf.h: Likewise.
2690         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2691
2692 2010-01-18  Bruno Haible  <bruno@clisp.org>
2693
2694         Tests for module 'tanl'.
2695         * modules/tanl-tests: New file.
2696         * tests/test-tanl.c: New file.
2697
2698         Tests for module 'sqrtl'.
2699         * modules/sqrtl-tests: New file.
2700         * tests/test-sqrtl.c: New file.
2701
2702         Tests for module 'sinl'.
2703         * modules/sinl-tests: New file.
2704         * tests/test-sinl.c: New file.
2705
2706         Tests for module 'logl'.
2707         * modules/logl-tests: New file.
2708         * tests/test-logl.c: New file.
2709
2710         Tests for module 'expl'.
2711         * modules/expl-tests: New file.
2712         * tests/test-expl.c: New file.
2713
2714         Tests for module 'cosl'.
2715         * modules/cosl-tests: New file.
2716         * tests/test-cosl.c: New file.
2717
2718         Tests for module 'atanl'.
2719         * modules/atanl-tests: New file.
2720         * tests/test-atanl.c: New file.
2721
2722         Tests for module 'asinl'.
2723         * modules/asinl-tests: New file.
2724         * tests/test-asinl.c: New file.
2725
2726         Tests for module 'acosl'.
2727         * modules/acosl-tests: New file.
2728         * tests/test-acosl.c: New file.
2729
2730         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2731         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2732         tanl): Use the standard gnulib idiom.
2733         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2734         * lib/sinl.c: Likewise.
2735         * lib/tanl.c: Don't include trigl.c.
2736         (kernel_tanl): Make static.
2737         * lib/sincosl.c: Include trigl.h first.
2738         * lib/trigl.c: Likewise.
2739         * m4/acosl.m4: New file.
2740         * m4/asinl.m4: New file.
2741         * m4/atanl.m4: New file.
2742         * m4/cosl.m4: New file.
2743         * m4/expl.m4: New file.
2744         * m4/logl.m4: New file.
2745         * m4/sinl.m4: New file.
2746         * m4/sqrtl.m4: New file.
2747         * m4/tanl.m4: New file.
2748         * m4/mathl.m4: Remove file.
2749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2750         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2751         Don't initialize GNULIB_MATHL.
2752         * modules/acosl: New file.
2753         * modules/asinl: New file.
2754         * modules/atanl: New file.
2755         * modules/cosl: New file.
2756         * modules/expl: New file.
2757         * modules/logl: New file.
2758         * modules/sinl: New file.
2759         * modules/sqrtl: New file.
2760         * modules/tanl: New file.
2761         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2762         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2763         substitute GNULIB_MATHL.
2764         * modules/mathl: Rewritten.
2765         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2766         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2767         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2768         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2769         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2770         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2771         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2772         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2773         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2774
2775 2010-01-18  Bruno Haible  <bruno@clisp.org>
2776
2777         sqrt: Make gl_FUNC_SQRT requirable.
2778         * m4/sqrt.m4: New file.
2779         * modules/sqrt (Files): Add it.
2780         (configure.ac): Invoke gl_FUNC_SQRT.
2781
2782 2010-01-18  Bruno Haible  <bruno@clisp.org>
2783
2784         New modules for common <math.h> functions.
2785         * m4/mathfunc.m4: New file.
2786         * modules/acos: New file.
2787         * modules/asin: New file.
2788         * modules/atan: New file.
2789         * modules/atan2: New file.
2790         * modules/cbrt: New file.
2791         * modules/copysign: New file.
2792         * modules/cos: New file.
2793         * modules/cosh: New file.
2794         * modules/erf: New file.
2795         * modules/erfc: New file.
2796         * modules/exp: New file.
2797         * modules/fabs: New file.
2798         * modules/fmod: New file.
2799         * modules/hypot: New file.
2800         * modules/j0: New file.
2801         * modules/j1: New file.
2802         * modules/jn: New file.
2803         * modules/ldexp: New file.
2804         * modules/lgamma: New file.
2805         * modules/log: New file.
2806         * modules/log10: New file.
2807         * modules/log1p: New file.
2808         * modules/logb: New file.
2809         * modules/modf: New file.
2810         * modules/nextafter: New file.
2811         * modules/pow: New file.
2812         * modules/remainder: New file.
2813         * modules/rint: New file.
2814         * modules/sin: New file.
2815         * modules/sinh: New file.
2816         * modules/sqrt: New file.
2817         * modules/tan: New file.
2818         * modules/tanh: New file.
2819         * modules/y0: New file.
2820         * modules/y1: New file.
2821         * modules/yn: New file.
2822         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2823         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2824         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2825         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2826         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2827         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2828         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2829         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2830         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2831         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2832         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2833         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2834         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2835         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2836         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2837         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2838         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2839         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2840         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2841         * doc/posix-functions/log.texi: Mention the 'log' module.
2842         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2843         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2844         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2845         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2846         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2847         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2848         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2849         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2850         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2851         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2852         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2853         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2854         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2855         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2856         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2857         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2858
2859 2010-01-18  Jim Meyering  <meyering@redhat.com>
2860
2861         ignore-value: relax license to LGPLv2+
2862         * modules/ignore-value (License): Relax to LGPLv2+.
2863
2864         getdate: don't leak when TZ contains two or more '"'s
2865         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2866         double quote in TZ after the first one.
2867
2868         readtokens: do not leak internal token_lengths buffer
2869         * lib/readtokens.c (readtokens): Free the local, lengths,
2870         when the supplied "token_lengths" parameter is NULL.
2871
2872 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2873
2874         Fix a couple of missing LIBTHREAD link failures on AIX.
2875         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2876         $(LIBTHREAD).
2877         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2878
2879         Link test-poll against INET_PTON_LIB.
2880         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2881         for inet_pton on Solaris 10.
2882
2883 2010-01-17  Bruno Haible  <bruno@clisp.org>
2884
2885         unistdio/*-sprintf: Fix typo in module description.
2886         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2887         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2888         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2889         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2890         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2891         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2892         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2893         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2894
2895 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2896
2897         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2898         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2899         variables in shell case patterns, for AIX and HP-UX ksh.
2900
2901         Split large sed scripts, for HP-UX sed.
2902         * modules/stdio: Split sed scripts around 50 sed commands,
2903         to avoid HP-UX limit of 99 commands, in the near future.
2904         * modules/string: Likewise.
2905         * modules/unistd: Likewise.
2906
2907         gnulib-tool: avoid writing in the current directory.
2908         * gnulib-tool (func_emit_lib_Makefile_am)
2909         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2910         not in the current directory, so concurrent gnulib-tool
2911         instances do not interfere.
2912
2913 2010-01-16  Jim Meyering  <meyering@redhat.com>
2914
2915         doc: update users.txt
2916         * users.txt: Add grep.
2917         (diffutils, gzip): Update URLs.
2918
2919 2010-01-12  Bruno Haible  <bruno@clisp.org>
2920
2921         posix_spawn: Avoid test failure on Cygwin.
2922         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2923         characters.
2924         Reported by Simon Josefsson.
2925
2926 2010-01-12  Bruno Haible  <bruno@clisp.org>
2927
2928         * tests/test-cond.c (main): When skipping the test, show the reason.
2929
2930 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2931
2932         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2933
2934 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2935
2936         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2937         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2938
2939 2010-01-12  Eric Blake  <ebb9@byu.net>
2940
2941         build: guarantee AS_VAR_IF
2942         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2943         (gl_AS_VAR_IF): Move...
2944         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2945         Reported by Simon Josefsson.
2946
2947 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2948
2949         * lib/stdio.in.h: Fix typo.
2950
2951 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2952
2953         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2954         libgpg-error.
2955
2956 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2957
2958         * tests/test-xalloc-die.sh: Use $EXEEXT.
2959
2960 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2961             Bruno Haible  <bruno@clisp.org>
2962
2963         getlogin, getlogin_r: Avoid test failure.
2964         * tests/test-getlogin.c: Include <stdio.h>.
2965         (main): Skip the test when the function fails because stdin is not a
2966         tty.
2967         * tests/test-getlogin_r.c: Include <stdio.h>.
2968         (main): Skip the test when the function fails because stdin is not a
2969         tty.
2970
2971 2010-01-11  Eric Blake  <ebb9@byu.net>
2972
2973         tests: avoid more large file warnings
2974         * tests/test-fflush.c: Avoid warning about ftell use.
2975         * tests/test-fseek.c: Avoid warning about fseek use.
2976
2977 2010-01-10  Bruno Haible  <bruno@clisp.org>
2978
2979         nproc: Work better on Linux when /proc and /sys are not mounted.
2980         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2981         as lower bound when, on glibc/Linux systems,
2982         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2983         Suggested by Pádraig Brady <P@draigbrady.com>.
2984         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2985
2986         nproc: Refactor.
2987         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2988         extracted from num_processors.
2989         (num_processors): Call it.
2990
2991 2010-01-11  Jim Meyering  <meyering@redhat.com>
2992
2993         utimecmp: avoid new warning from upcoming gcc-4.5.0
2994         * lib/utimecmp.c (BILLION): Define using #define rather than an
2995         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2996
2997 2010-01-11  Eric Blake  <ebb9@byu.net>
2998
2999         math: add portability warnings for classification macros
3000         * modules/math (Depends-on): Add warn-on-use.
3001         (Makefile.am): Provide new substitutions.
3002         * m4/math_h.m4 (gl_MATH_H): Require inline.
3003         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3004         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3005         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3006         implement warnings.
3007
3008         unistd: warn on use of environ without module
3009         * modules/unistd (Depends-on): Add warn-on-use.
3010         (Makefile.am): Provide new substitutions.
3011         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3012         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3013
3014         stdio: warn on suspicious uses
3015         * modules/stdio (Depends-on): Add warn-on-use.
3016         (Makefile.am): Provide new substitutions.
3017         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3018         fseeko.
3019         * lib/stdio.in.h (gets): Always warn on use.
3020         (fseek, ftell): Adjust when warnings are issued, and honor
3021         _GL_NO_LARGE_FILES as a way to silence the warning.
3022         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3023         any warning about large file offsets.
3024         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3025         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3026         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3027         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3028         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3029         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3030         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3031         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3032
3033         warn-on-use: new module
3034         * modules/warn-on-use: New file.
3035         * build-aux/warn-on-use.h: Likewise.
3036         * m4/warn-on-use.m4: Likewise.
3037         * MODULES.html.sh (Support for building): Mention it.
3038
3039 2010-01-10  Bruno Haible  <bruno@clisp.org>
3040
3041         Tests for module 'unistr/u32-strdup'.
3042         * modules/unistr/u32-strdup-tests: New file.
3043         * tests/unistr/test-u32-strdup.c: New file.
3044
3045         Tests for module 'unistr/u16-strdup'.
3046         * modules/unistr/u16-strdup-tests: New file.
3047         * tests/unistr/test-u16-strdup.c: New file.
3048
3049         Tests for module 'unistr/u8-strdup'.
3050         * modules/unistr/u8-strdup-tests: New file.
3051         * tests/unistr/test-u8-strdup.c: New file.
3052         * tests/unistr/test-strdup.h: New file.
3053
3054         Tests for module 'unistr/u32-strncmp'.
3055         * modules/unistr/u32-strncmp-tests: New file.
3056         * tests/unistr/test-u32-strncmp.c: New file.
3057
3058         Tests for module 'unistr/u16-strncmp'.
3059         * modules/unistr/u16-strncmp-tests: New file.
3060         * tests/unistr/test-u16-strncmp.c: New file.
3061
3062         Tests for module 'unistr/u8-strncmp'.
3063         * modules/unistr/u8-strncmp-tests: New file.
3064         * tests/unistr/test-u8-strncmp.c: New file.
3065         * tests/unistr/test-strncmp.h: New file.
3066
3067         Tests for module 'unistr/u32-strcoll'.
3068         * modules/unistr/u32-strcoll-tests: New file.
3069         * tests/unistr/test-u32-strcoll.c: New file.
3070
3071         Tests for module 'unistr/u16-strcoll'.
3072         * modules/unistr/u16-strcoll-tests: New file.
3073         * tests/unistr/test-u16-strcoll.c: New file.
3074
3075         Tests for module 'unistr/u8-strcoll'.
3076         * modules/unistr/u8-strcoll-tests: New file.
3077         * tests/unistr/test-u8-strcoll.c: New file.
3078
3079         Tests for module 'unistr/u32-strcmp'.
3080         * modules/unistr/u32-strcmp-tests: New file.
3081         * tests/unistr/test-u32-strcmp.c: New file.
3082         * tests/unistr/test-u32-strcmp.h: New file.
3083
3084         Tests for module 'unistr/u16-strcmp'.
3085         * modules/unistr/u16-strcmp-tests: New file.
3086         * tests/unistr/test-u16-strcmp.c: New file.
3087         * tests/unistr/test-u16-strcmp.h: New file.
3088
3089         Tests for module 'unistr/u8-strcmp'.
3090         * modules/unistr/u8-strcmp-tests: New file.
3091         * tests/unistr/test-u8-strcmp.c: New file.
3092         * tests/unistr/test-u8-strcmp.h: New file.
3093         * tests/unistr/test-strcmp.h: New file.
3094
3095         Tests for module 'unistr/u32-strncat'.
3096         * modules/unistr/u32-strncat-tests: New file.
3097         * tests/unistr/test-u32-strncat.c: New file.
3098
3099         Tests for module 'unistr/u16-strncat'.
3100         * modules/unistr/u16-strncat-tests: New file.
3101         * tests/unistr/test-u16-strncat.c: New file.
3102
3103         Tests for module 'unistr/u8-strncat'.
3104         * modules/unistr/u8-strncat-tests: New file.
3105         * tests/unistr/test-u8-strncat.c: New file.
3106         * tests/unistr/test-strncat.h: New file.
3107
3108         Tests for module 'unistr/u32-strcat'.
3109         * modules/unistr/u32-strcat-tests: New file.
3110         * tests/unistr/test-u32-strcat.c: New file.
3111
3112         Tests for module 'unistr/u16-strcat'.
3113         * modules/unistr/u16-strcat-tests: New file.
3114         * tests/unistr/test-u16-strcat.c: New file.
3115
3116         Tests for module 'unistr/u8-strcat'.
3117         * modules/unistr/u8-strcat-tests: New file.
3118         * tests/unistr/test-u8-strcat.c: New file.
3119         * tests/unistr/test-strcat.h: New file.
3120
3121         Tests for module 'unistr/u32-stpncpy'.
3122         * modules/unistr/u32-stpncpy-tests: New file.
3123         * tests/unistr/test-u32-stpncpy.c: New file.
3124
3125         Tests for module 'unistr/u16-stpncpy'.
3126         * modules/unistr/u16-stpncpy-tests: New file.
3127         * tests/unistr/test-u16-stpncpy.c: New file.
3128
3129         Tests for module 'unistr/u8-stpncpy'.
3130         * modules/unistr/u8-stpncpy-tests: New file.
3131         * tests/unistr/test-u8-stpncpy.c: New file.
3132         * tests/unistr/test-stpncpy.h: New file.
3133
3134         Tests for module 'unistr/u32-strncpy'.
3135         * modules/unistr/u32-strncpy-tests: New file.
3136         * tests/unistr/test-u32-strncpy.c: New file.
3137
3138         Tests for module 'unistr/u16-strncpy'.
3139         * modules/unistr/u16-strncpy-tests: New file.
3140         * tests/unistr/test-u16-strncpy.c: New file.
3141
3142         Tests for module 'unistr/u8-strncpy'.
3143         * modules/unistr/u8-strncpy-tests: New file.
3144         * tests/unistr/test-u8-strncpy.c: New file.
3145         * tests/unistr/test-strncpy.h: New file.
3146
3147         Tests for module 'unistr/u32-stpcpy'.
3148         * modules/unistr/u32-stpcpy-tests: New file.
3149         * tests/unistr/test-u32-stpcpy.c: New file.
3150
3151         Tests for module 'unistr/u16-stpcpy'.
3152         * modules/unistr/u16-stpcpy-tests: New file.
3153         * tests/unistr/test-u16-stpcpy.c: New file.
3154
3155         Tests for module 'unistr/u8-stpcpy'.
3156         * modules/unistr/u8-stpcpy-tests: New file.
3157         * tests/unistr/test-u8-stpcpy.c: New file.
3158         * tests/unistr/test-stpcpy.h: New file.
3159
3160         Tests for module 'unistr/u32-strcpy'.
3161         * modules/unistr/u32-strcpy-tests: New file.
3162         * tests/unistr/test-u32-strcpy.c: New file.
3163
3164         Tests for module 'unistr/u16-strcpy'.
3165         * modules/unistr/u16-strcpy-tests: New file.
3166         * tests/unistr/test-u16-strcpy.c: New file.
3167
3168         Tests for module 'unistr/u8-strcpy'.
3169         * modules/unistr/u8-strcpy-tests: New file.
3170         * tests/unistr/test-u8-strcpy.c: New file.
3171         * tests/unistr/test-strcpy.h: New file.
3172
3173         Tests for module 'unistr/u32-strnlen'.
3174         * modules/unistr/u32-strnlen-tests: New file.
3175         * tests/unistr/test-u32-strnlen.c: New file.
3176
3177         Tests for module 'unistr/u16-strnlen'.
3178         * modules/unistr/u16-strnlen-tests: New file.
3179         * tests/unistr/test-u16-strnlen.c: New file.
3180
3181         Tests for module 'unistr/u8-strnlen'.
3182         * modules/unistr/u8-strnlen-tests: New file.
3183         * tests/unistr/test-u8-strnlen.c: New file.
3184         * tests/unistr/test-strnlen.h: New file.
3185
3186         Tests for module 'unistr/u32-strlen'.
3187         * modules/unistr/u32-strlen-tests: New file.
3188         * tests/unistr/test-u32-strlen.c: New file.
3189
3190         Tests for module 'unistr/u16-strlen'.
3191         * modules/unistr/u16-strlen-tests: New file.
3192         * tests/unistr/test-u16-strlen.c: New file.
3193
3194         Tests for module 'unistr/u8-strlen'.
3195         * modules/unistr/u8-strlen-tests: New file.
3196         * tests/unistr/test-u8-strlen.c: New file.
3197
3198         Tests for module 'unistr/u32-prev'.
3199         * modules/unistr/u32-prev-tests: New file.
3200         * tests/unistr/test-u32-prev.c: New file.
3201
3202         Tests for module 'unistr/u16-prev'.
3203         * modules/unistr/u16-prev-tests: New file.
3204         * tests/unistr/test-u16-prev.c: New file.
3205
3206         Tests for module 'unistr/u8-prev'.
3207         * modules/unistr/u8-prev-tests: New file.
3208         * tests/unistr/test-u8-prev.c: New file.
3209
3210         Tests for module 'unistr/u32-next'.
3211         * modules/unistr/u32-next-tests: New file.
3212         * tests/unistr/test-u32-next.c: New file.
3213
3214         Tests for module 'unistr/u16-next'.
3215         * modules/unistr/u16-next-tests: New file.
3216         * tests/unistr/test-u16-next.c: New file.
3217
3218         Tests for module 'unistr/u8-next'.
3219         * modules/unistr/u8-next-tests: New file.
3220         * tests/unistr/test-u8-next.c: New file.
3221
3222         Tests for module 'unistr/u32-strmbtouc'.
3223         * modules/unistr/u32-strmbtouc-tests: New file.
3224         * tests/unistr/test-u32-strmbtouc.c: New file.
3225
3226         Tests for module 'unistr/u16-strmbtouc'.
3227         * modules/unistr/u16-strmbtouc-tests: New file.
3228         * tests/unistr/test-u16-strmbtouc.c: New file.
3229
3230         Tests for module 'unistr/u8-strmbtouc'.
3231         * modules/unistr/u8-strmbtouc-tests: New file.
3232         * tests/unistr/test-u8-strmbtouc.c: New file.
3233
3234         Tests for module 'unistr/u32-strmblen'.
3235         * modules/unistr/u32-strmblen-tests: New file.
3236         * tests/unistr/test-u32-strmblen.c: New file.
3237
3238         Tests for module 'unistr/u16-strmblen'.
3239         * modules/unistr/u16-strmblen-tests: New file.
3240         * tests/unistr/test-u16-strmblen.c: New file.
3241
3242         Tests for module 'unistr/u8-strmblen'.
3243         * modules/unistr/u8-strmblen-tests: New file.
3244         * tests/unistr/test-u8-strmblen.c: New file.
3245
3246         Tests for module 'unistr/u32-cpy-alloc'.
3247         * modules/unistr/u32-cpy-alloc-tests: New file.
3248         * tests/unistr/test-u32-cpy-alloc.c: New file.
3249
3250         Tests for module 'unistr/u16-cpy-alloc'.
3251         * modules/unistr/u16-cpy-alloc-tests: New file.
3252         * tests/unistr/test-u16-cpy-alloc.c: New file.
3253
3254         Tests for module 'unistr/u8-cpy-alloc'.
3255         * modules/unistr/u8-cpy-alloc-tests: New file.
3256         * tests/unistr/test-u8-cpy-alloc.c: New file.
3257         * tests/unistr/test-cpy-alloc.h: New file.
3258
3259         Tests for module 'unistr/u32-mbsnlen'.
3260         * modules/unistr/u32-mbsnlen-tests: New file.
3261         * tests/unistr/test-u32-mbsnlen.c: New file.
3262
3263         Tests for module 'unistr/u16-mbsnlen'.
3264         * modules/unistr/u16-mbsnlen-tests: New file.
3265         * tests/unistr/test-u16-mbsnlen.c: New file.
3266
3267         Tests for module 'unistr/u8-mbsnlen'.
3268         * modules/unistr/u8-mbsnlen-tests: New file.
3269         * tests/unistr/test-u8-mbsnlen.c: New file.
3270
3271         Tests for module 'unistr/u32-chr'.
3272         * modules/unistr/u32-chr-tests: New file.
3273         * tests/unistr/test-u32-chr.c: New file.
3274
3275         Tests for module 'unistr/u16-chr'.
3276         * modules/unistr/u16-chr-tests: New file.
3277         * tests/unistr/test-u16-chr.c: New file.
3278
3279         Tests for module 'unistr/u8-chr'.
3280         * modules/unistr/u8-chr-tests: New file.
3281         * tests/unistr/test-u8-chr.c: New file.
3282         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3283
3284         Tests for module 'unistr/u32-cmp2'.
3285         * modules/unistr/u32-cmp2-tests: New file.
3286         * tests/unistr/test-u32-cmp2.c: New file.
3287
3288         Tests for module 'unistr/u16-cmp2'.
3289         * modules/unistr/u16-cmp2-tests: New file.
3290         * tests/unistr/test-u16-cmp2.c: New file.
3291
3292         Tests for module 'unistr/u8-cmp2'.
3293         * modules/unistr/u8-cmp2-tests: New file.
3294         * tests/unistr/test-u8-cmp2.c: New file.
3295         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3296
3297         Tests for module 'unistr/u32-cmp'.
3298         * modules/unistr/u32-cmp-tests: New file.
3299         * tests/unistr/test-u32-cmp.c: New file.
3300
3301         Tests for module 'unistr/u16-cmp'.
3302         * modules/unistr/u16-cmp-tests: New file.
3303         * tests/unistr/test-u16-cmp.c: New file.
3304
3305         Tests for module 'unistr/u8-cmp'.
3306         * modules/unistr/u8-cmp-tests: New file.
3307         * tests/unistr/test-u8-cmp.c: New file.
3308         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3309
3310         Tests for module 'unistr/u32-set'.
3311         * modules/unistr/u32-set-tests: New file.
3312         * tests/unistr/test-u32-set.c: New file.
3313
3314         Tests for module 'unistr/u16-set'.
3315         * modules/unistr/u16-set-tests: New file.
3316         * tests/unistr/test-u16-set.c: New file.
3317
3318         Tests for module 'unistr/u8-set'.
3319         * modules/unistr/u8-set-tests: New file.
3320         * tests/unistr/test-u8-set.c: New file.
3321         * tests/unistr/test-set.h: New file.
3322
3323         Tests for module 'unistr/u32-move'.
3324         * modules/unistr/u32-move-tests: New file.
3325         * tests/unistr/test-u32-move.c: New file.
3326
3327         Tests for module 'unistr/u16-move'.
3328         * modules/unistr/u16-move-tests: New file.
3329         * tests/unistr/test-u16-move.c: New file.
3330
3331         Tests for module 'unistr/u8-move'.
3332         * modules/unistr/u8-move-tests: New file.
3333         * tests/unistr/test-u8-move.c: New file.
3334         * tests/unistr/test-move.h: New file.
3335
3336         Tests for module 'unistr/u32-cpy'.
3337         * modules/unistr/u32-cpy-tests: New file.
3338         * tests/unistr/test-u32-cpy.c: New file.
3339
3340         Tests for module 'unistr/u16-cpy'.
3341         * modules/unistr/u16-cpy-tests: New file.
3342         * tests/unistr/test-u16-cpy.c: New file.
3343
3344         Tests for module 'unistr/u8-cpy'.
3345         * modules/unistr/u8-cpy-tests: New file.
3346         * tests/unistr/test-u8-cpy.c: New file.
3347         * tests/unistr/test-cpy.h: New file.
3348
3349 2010-01-09  Bruno Haible  <bruno@clisp.org>
3350
3351         Tests for module 'unistr/u32-uctomb'.
3352         * modules/unistr/u32-uctomb-tests: New file.
3353         * tests/unistr/test-u32-uctomb.c: New file.
3354
3355         Tests for module 'unistr/u16-uctomb'.
3356         * modules/unistr/u16-uctomb-tests: New file.
3357         * tests/unistr/test-u16-uctomb.c: New file.
3358
3359         Tests for module 'unistr/u8-uctomb'.
3360         * modules/unistr/u8-uctomb-tests: New file.
3361         * tests/unistr/test-u8-uctomb.c: New file.
3362
3363         Tests for module 'unistr/u32-mbtoucr'.
3364         * modules/unistr/u32-mbtoucr-tests: New file.
3365         * tests/unistr/test-u32-mbtoucr.c: New file.
3366
3367         Tests for module 'unistr/u16-mbtoucr'.
3368         * modules/unistr/u16-mbtoucr-tests: New file.
3369         * tests/unistr/test-u16-mbtoucr.c: New file.
3370
3371         Tests for module 'unistr/u8-mbtoucr'.
3372         * modules/unistr/u8-mbtoucr-tests: New file.
3373         * tests/unistr/test-u8-mbtoucr.c: New file.
3374
3375         Tests for module 'unistr/u32-mbtouc'.
3376         * modules/unistr/u32-mbtouc-tests: New file.
3377         * tests/unistr/test-u32-mbtouc.c: New file.
3378
3379         Tests for module 'unistr/u16-mbtouc'.
3380         * modules/unistr/u16-mbtouc-tests: New file.
3381         * tests/unistr/test-u16-mbtouc.c: New file.
3382
3383         Tests for module 'unistr/u8-mbtouc'.
3384         * modules/unistr/u8-mbtouc-tests: New file.
3385         * tests/unistr/test-u8-mbtouc.c: New file.
3386
3387         Tests for module 'unistr/u32-mbtouc-unsafe'.
3388         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3389         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3390         * tests/unistr/test-u32-mbtouc.h: New file.
3391
3392         Tests for module 'unistr/u16-mbtouc-unsafe'.
3393         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3394         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3395         * tests/unistr/test-u16-mbtouc.h: New file.
3396
3397         Tests for module 'unistr/u8-mbtouc-unsafe'.
3398         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3399         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3400         * tests/unistr/test-u8-mbtouc.h: New file.
3401
3402         Tests for module 'unistr/u32-mblen'.
3403         * modules/unistr/u32-mblen-tests: New file.
3404         * tests/unistr/test-u32-mblen.c: New file.
3405
3406         Tests for module 'unistr/u16-mblen'.
3407         * modules/unistr/u16-mblen-tests: New file.
3408         * tests/unistr/test-u16-mblen.c: New file.
3409
3410         Tests for module 'unistr/u8-mblen'.
3411         * modules/unistr/u8-mblen-tests: New file.
3412         * tests/unistr/test-u8-mblen.c: New file.
3413
3414         Tests for module 'unistr/u32-to-u16'.
3415         * modules/unistr/u32-to-u16-tests: New file.
3416         * tests/unistr/test-u32-to-u16.c: New file.
3417
3418         Tests for module 'unistr/u32-to-u8'.
3419         * modules/unistr/u32-to-u8-tests: New file.
3420         * tests/unistr/test-u32-to-u8.c: New file.
3421
3422         Tests for module 'unistr/u16-to-u32'.
3423         * modules/unistr/u16-to-u32-tests: New file.
3424         * tests/unistr/test-u16-to-u32.c: New file.
3425
3426         Tests for module 'unistr/u16-to-u8'.
3427         * modules/unistr/u16-to-u8-tests: New file.
3428         * tests/unistr/test-u16-to-u8.c: New file.
3429
3430         Tests for module 'unistr/u8-to-u32'.
3431         * modules/unistr/u8-to-u32-tests: New file.
3432         * tests/unistr/test-u8-to-u32.c: New file.
3433
3434         Tests for module 'unistr/u8-to-u16'.
3435         * modules/unistr/u8-to-u16-tests: New file.
3436         * tests/unistr/test-u8-to-u16.c: New file.
3437
3438         Tests for module 'unistr/u32-check'.
3439         * modules/unistr/u32-check-tests: New file.
3440         * tests/unistr/test-u32-check.c: New file.
3441
3442         Tests for module 'unistr/u16-check'.
3443         * modules/unistr/u16-check-tests: New file.
3444         * tests/unistr/test-u16-check.c: New file.
3445
3446         Tests for module 'unistr/u8-check'.
3447         * modules/unistr/u8-check-tests: New file.
3448         * tests/unistr/test-u8-check.c: New file.
3449
3450         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3451         (category_equals): New function.
3452         (main): Add more tests.
3453         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3454
3455         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3456
3457 2010-01-10  Bruno Haible  <bruno@clisp.org>
3458
3459         unistr/u*-strcoll: Try harder to distinguish different strings.
3460         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3461         compare s1 and s2 to see if they are different.
3462
3463 2010-01-10  Bruno Haible  <bruno@clisp.org>
3464
3465         unistr/u*-stpncpy: Fix the return value.
3466         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3467         description of the return value consistent with stpncpy in glibc.
3468         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3469         written non-NUL unit.
3470
3471 2010-01-10  Bruno Haible  <bruno@clisp.org>
3472
3473         unistr/u*-next: Add missing dependencies.
3474         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3475         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3476         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3477
3478 2010-01-10  Bruno Haible  <bruno@clisp.org>
3479
3480         unistr/u8-mbsnlen: Fix return value for incomplete character.
3481         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3482         u8_mblen.
3483         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3484         Remove unistr/u8-mblen.
3485         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3486         u16_mblen.
3487         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3488         Remove unistr/u16-mblen.
3489
3490 2010-01-10  Bruno Haible  <bruno@clisp.org>
3491
3492         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3493         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3494         Reported by Brian Gough <bjg@gnu.org> and
3495         Chris Clayton <chris2553@googlemail.com> via
3496         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3497
3498 2010-01-09  Bruno Haible  <bruno@clisp.org>
3499
3500         unistr/u16-to-u32: Reject invalid input.
3501         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3502         u16_mbtouc.
3503         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3504         Remove unistr/u16-mbtouc.
3505
3506         unistr/u16-to-u8: Reject invalid input.
3507         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3508         u16_mbtouc.
3509         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3510         Remove unistr/u16-mbtouc.
3511
3512         unistr/u8-to-u32: Reject invalid input.
3513         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3514         u8_mbtouc.
3515         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3516         Remove unistr/u8-mbtouc.
3517
3518         unistr/u8-to-u16: Reject invalid input.
3519         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3520         u8_mbtouc.
3521         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3522         Remove unistr/u8-mbtouc.
3523
3524 2010-01-09  Bruno Haible  <bruno@clisp.org>
3525
3526         Tests for module 'getlogin'.
3527         * modules/getlogin-tests: New file.
3528         * tests/test-getlogin.c: New file.
3529
3530         New module 'getlogin'.
3531         * lib/unistd.in.h (getlogin): New declaration.
3532         * lib/getlogin.c: New file.
3533         * m4/getlogin.m4: New file.
3534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3535         HAVE_GETLOGIN.
3536         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3537         HAVE_GETLOGIN.
3538         * modules/getlogin: New file.
3539         * doc/posix-functions/getlogin.texi: Mention the new module.
3540         Reported by John W. Eaton <jwe@gnu.org>.
3541
3542 2010-01-09  Bruno Haible  <bruno@clisp.org>
3543
3544         getlogin_r: Support for native Windows.
3545         * lib/getlogin_r.c: Include <windows.h>
3546         (getlogin_r): Implement for native Windows.
3547         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3548         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3549         via John W. Eaton <jwe@gnu.org>.
3550
3551 2010-01-09  Bruno Haible  <bruno@clisp.org>
3552
3553         getlogin_r: Small fixes.
3554         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3555         succeeds.
3556         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3557         before testing whether getlogin_r is declared. No need to set
3558         HAVE_DECL_GETLOGIN_R to 1.
3559         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3560
3561 2010-01-09  Bruno Haible  <bruno@clisp.org>
3562
3563         * lib/unistd.in.h (getlogin_r): Add comment.
3564
3565 2010-01-09  Bruno Haible  <bruno@clisp.org>
3566
3567         Tests for module 'getlogin_r'.
3568         * modules/getlogin_r-tests: New file.
3569         * tests/test-getlogin_r.c: New file.
3570
3571 2010-01-09  Jim Meyering  <meyering@redhat.com>
3572
3573         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3574         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3575         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3576
3577 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3578
3579         * lib/dup2.c (rpl_dup2): Improve comment.
3580
3581 2010-01-08  Eric Blake  <ebb9@byu.net>
3582
3583         maint.mk: allow packages to add makefile @@ exceptions
3584         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3585         (sc_makefile_check): Rename...
3586         (sc_makefile_at_at_check): ...to this, and use hook.
3587
3588         dup2: work around mingw bug
3589         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3590         Reported by Simon Josefsson.
3591
3592 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3593
3594         glob: Fix C++ compilation.
3595         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3596         C++.
3597
3598 2010-01-07  Bruno Haible  <bruno@clisp.org>
3599
3600         Fix indentation of wctype.in.h, broken since 2007-01-06.
3601         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3602
3603 2010-01-07  Bruno Haible  <bruno@clisp.org>
3604
3605         mbslen: Avoid collision with system function.
3606         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3607         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3608         * m4/mbslen.m4: New file.
3609         * modules/mbslen (Files): Add it.
3610         (configure.ac): Invoke gl_MBSLEN.
3611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3612         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3613         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3614         via Ian Beckwith <ianb@erislabs.net>.
3615
3616 2010-01-07  Bruno Haible  <bruno@clisp.org>
3617
3618         dirent: Document the last fix.
3619         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3620
3621 2010-01-07  Bruno Haible  <bruno@clisp.org>
3622
3623         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3624         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3625         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3626         va_list are defined.
3627         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3628         Reported by Eric Blake.
3629
3630 2010-01-07  Bruno Haible  <bruno@clisp.org>
3631
3632         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3633         * modules/xlist (Depends-on): Add 'list',
3634         * modules/xoset (Depends-on): Add 'oset'.
3635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3636
3637 2010-01-07  Bruno Haible  <bruno@clisp.org>
3638
3639         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3640         * doc/posix-functions/strncasecmp.texi: Likewise.
3641
3642 2010-01-07  Bruno Haible  <bruno@clisp.org>
3643
3644         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3645
3646 2010-01-07  John W. Eaton  <jwe@octave.org>
3647
3648         wctype: allow C++ use
3649         * lib/wctype.in.h: Add extern "C" block for C++.
3650
3651 2010-01-06  Eric Blake  <ebb9@byu.net>
3652
3653         maint.mk: detect incorrect GFDL usage
3654         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3655
3656 2010-01-06  Jim Meyering  <meyering@redhat.com>
3657         and Eric Blake  <ebb9@byu.net>
3658
3659         maint.mk: ignore multi-line copyright in NEWS
3660         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3661
3662 2010-01-06  Eric Blake  <ebb9@byu.net>
3663
3664         select: add missing dependency
3665         * modules/select-tests (Depends-on): Move sockets dependency...
3666         * modules/select (Depends-on): ...here.
3667         Reported by Ian Beckwith.
3668
3669         doc: regenerate INSTALL
3670         * doc/INSTALL: Reflect recent autoconf update.
3671         * doc/INSTALL.ISO: Likewise.
3672         * doc/INSTALL.UTF-8: Likewise.
3673
3674         pread: fix compilation on glibc
3675         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3676         Reported by Ralf Wildenhues.
3677
3678         dirent: fix test failure
3679         * lib/dirent.in.h (includes): Guarantee ino_t.
3680         Reported by Ralf Wildenhues.
3681
3682 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3683
3684         linkat, renameat: avoid bad free
3685         * lib/at-func2.c (at_func2): Fix typo.
3686         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3687
3688 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3689
3690         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3691         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3692         to avoid failure of symlink test later.
3693
3694 2010-01-06  Eric Blake  <ebb9@byu.net>
3695
3696         stdio, unistd: guarantee ssize_t
3697         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3698         2008 are exposed when needed.
3699         * lib/stdio.in.h (includes): Likewise.
3700         Reported by Ralf Wildenhues.
3701
3702 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3703
3704         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3705         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3706         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3707
3708 2010-01-06  Jim Meyering  <meyering@redhat.com>
3709
3710         readtokens: this module *does* require xalloc.h
3711         It uses only functions that were omitted by the old syntax-check rule.
3712         * lib/readtokens.c: Include "xalloc.h" once again.
3713         * modules/readtokens (Depends-on): Add xalloc.
3714         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3715
3716 2010-01-05  Eric Blake  <ebb9@byu.net>
3717
3718         maint: support 'make announcement' from a VPATH build
3719         * top/maint.mk (announcement): Look for correct NEWS file.
3720
3721 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3722
3723         utimens (fdutimens): ignore a negative FD, per contract
3724         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3725         when we have a valid file descriptor.  Otherwise, using a brand
3726         new glibc (with just-patched futimens that now fails with EBADF)
3727         would cause this function to fail with ENOSYS.
3728         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3729         See also http://bugzilla.redhat.com/552320.
3730
3731 2010-01-05  Eric Blake  <ebb9@byu.net>
3732
3733         strcase: document what it provides
3734         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3735         gnulib module.
3736         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3737         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3738
3739 2010-01-05  Jim Meyering  <meyering@redhat.com>
3740
3741         maint: remove useless inclusions of "xalloc.h"
3742         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3743         * lib/readtokens.c: Likewise.
3744         * lib/same.c: Likewise.
3745         * modules/getloadavg (Depends-on): Remove xalloc.
3746         * modules/readtokens: Likewise.
3747         * modules/same: Likewise.
3748
3749         maint.mk: include 4 more function names in alloca.h-checking regexp
3750         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3751         regexp.  Before, we would give a false-positive (saying alloca.h
3752         is included unnecessarily) when the only uses involved omitted symbols.
3753
3754         xalloc.h: use consistent formatting
3755         * lib/xalloc.h: Move declarations to start in the first column.
3756
3757 2010-01-05  Eric Blake  <ebb9@byu.net>
3758
3759         mkdir: avoid xalloc
3760         * lib/mkdir.c (includes): Drop unused header.
3761         Reported by John W. Eaton.
3762
3763 2010-01-04  Jim Meyering  <meyering@redhat.com>
3764
3765         nl_langinfo: avoid configure-time syntax error
3766         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3767         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3768         the empty string.  Don't let that provoke a shell syntax error.
3769
3770         regcomp, regexec, fnmatch: avoid array bounds read error
3771         * lib/regcomp.c (build_equiv_class): From glibc:
3772         Use only the low 24 bits of a findidx return value as an index
3773         into the weights array.  Patch by Ulrich Drepper:
3774         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3775         * lib/regexec.c (check_node_accept_bytes): Likewise.
3776         * lib/fnmatch_loop.c (FCT): Likewise.
3777
3778         regcomp: skip collseq lookup when there are no rules
3779         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3780         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3781
3782         regcomp: recognize ill-formed { } expressions
3783         * lib/regcomp.c (parse_dup_op): From glibc:
3784         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3785
3786         regcomp: fix typo in comment
3787         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3788         s/satisfy/satisfies/.
3789
3790         regcomp: sync from glibc: remove dead store
3791         * lib/regcomp.c (duplicate_node_closure): Remove useless
3792         search_duplicated_node call and dead store.
3793
3794         regcomp: sync from glibc; always use nl_langinfo
3795         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3796         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3797         * modules/regex (Depends-on): Add nl_langinfo.
3798
3799 2010-01-04  Eric Blake  <ebb9@byu.net>
3800
3801         fdopendir: fix configure test
3802         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3803
3804 2010-01-01  Bruno Haible  <bruno@clisp.org>
3805
3806         wchar: Remove unused configure check.
3807         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3808
3809 2010-01-01  Eric Blake  <ebb9@byu.net>
3810
3811         headers: make check of system header explicit
3812         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3813         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3814         ourselves.
3815         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3816         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3818         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3819         internals.
3820         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3821         missing.
3822         Suggested by Bruno Haible.
3823
3824 2010-01-01  Jim Meyering  <meyering@redhat.com>
3825
3826         ChangeLog: tweak to eliminate unnecessary copyright line
3827         * ChangeLog: Remove a copyright line that was mistakenly updated
3828         by today's update-copyright run.  Reported by Eric Blake.
3829
3830         test-update-copyright: don't let envvar setting cause test failure
3831         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3832
3833 2010-01-01  Bruno Haible  <bruno@clisp.org>
3834
3835         localename: Avoid gcc warning.
3836         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3837         function if it is not used.
3838
3839 2010-01-01  Jim Meyering  <meyering@redhat.com>
3840
3841         update nearly all FSF copyright year lists to include 2010
3842         Use the same procedure as for 2009, outlined in
3843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3844
3845         version-etc: set COPYRIGHT_YEAR to 2010
3846         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3847
3848 2009-12-31  Eric Blake  <ebb9@byu.net>
3849
3850         doc: correct availability of cygwin 1.5.x getopt
3851         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3852         variables.
3853         * doc/posix-functions/opterr.texi (opterr): Likewise.
3854         * doc/posix-functions/optind.texi (optind): Likewise.
3855         * doc/posix-functions/optopt.texi (optopt): Likewise.
3856         * doc/posix-functions/tzname.texi (tzname): Likewise.
3857
3858         openat: update maintainer
3859         * modules/openat (Maintainer): Add myself.
3860
3861         utimens: avoid shadowing warning
3862         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3863         buffers into one, to avoid shadowing, as well as avoiding a
3864         redundant stat.
3865         Reported by Jim Meyering.
3866
3867         test-dup2: avoid compiler warning
3868         * tests/test-dup2.c (is_inheritable): Only define if used.
3869
3870 2010-01-01  Bruno Haible  <bruno@clisp.org>
3871
3872         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3873         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3874         defined, use wctomb instead of wcrtomb.
3875
3876 2010-01-01  Bruno Haible  <bruno@clisp.org>
3877
3878         iconv: Reject native Solaris iconv.
3879         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3880         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3881
3882 2009-12-31  Bruno Haible  <bruno@clisp.org>
3883
3884         * tests/test-signal.c (main): Remove test of 'SIG'.
3885
3886 2009-12-31  Bruno Haible  <bruno@clisp.org>
3887
3888         spawn: Fix incomplete fix.
3889         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3890         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3891         warnings for GNULIB_POSIXCHECK again.
3892         Reported by Eric Blake.
3893
3894 2009-12-31  Bruno Haible  <bruno@clisp.org>
3895
3896         Avoid namespace pollution on glibc systems.
3897         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3898         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3899         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3900         glibc systems.
3901
3902 2009-12-31  Bruno Haible  <bruno@clisp.org>
3903
3904         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3905         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3906         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3907         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3908         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3909         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3910         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3911
3912 2009-12-31  Bruno Haible  <bruno@clisp.org>
3913
3914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3915         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3916         afterwards.
3917
3918 2009-12-31  Bruno Haible  <bruno@clisp.org>
3919
3920         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3921         SYS_UTSNAME_H.
3922
3923 2009-12-31  Bruno Haible  <bruno@clisp.org>
3924
3925         spawn: Fix misapplied patch.
3926         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3927         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3928         warnings for GNULIB_POSIXCHECK.
3929
3930 2009-12-31  Bruno Haible  <bruno@clisp.org>
3931
3932         times: Update after sys_times changed.
3933         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3934         * modules/times (Files): Add it.
3935         (configure.ac): Invoke gl_FUNC_TIMES.
3936
3937 2009-12-31  Bruno Haible  <bruno@clisp.org>
3938
3939         Use AC_C_INLINE where necessary.
3940         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3941         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3942         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3943         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3944         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3945         * m4/mbiter.m4 (gl_MBITER): Likewise.
3946         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3947         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3948         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3949         * modules/u64 (configure.ac): Likewise.
3950
3951 2009-12-31  Bruno Haible  <bruno@clisp.org>
3952
3953         Use AC_C_INLINE instead of module 'inline' where possible.
3954         * modules/inline (Description): Clarify purpose.
3955         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3956         * modules/count-one-bits (Depends-on): Remove inline.
3957         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3958         * modules/openat (Depends-on): Remove inline.
3959         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3960         instead of depending on module 'inline'.
3961         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3962         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3963         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3964         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3965         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3966         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3967         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3968         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3969         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3970         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3971         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3972         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3973         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3974         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3975         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3976         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3977         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3978         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3979         Likewise.
3980         * modules/unictype/property-ascii-hex-digit (Depends-on,
3981         configure.ac): Likewise.
3982         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3983         configure.ac): Likewise.
3984         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3985         configure.ac): Likewise.
3986         * modules/unictype/property-bidi-block-separator (Depends-on,
3987         configure.ac): Likewise.
3988         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3989         configure.ac): Likewise.
3990         * modules/unictype/property-bidi-common-separator (Depends-on,
3991         configure.ac): Likewise.
3992         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3993         Likewise.
3994         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3995         configure.ac): Likewise.
3996         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3997         configure.ac): Likewise.
3998         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3999         configure.ac): Likewise.
4000         * modules/unictype/property-bidi-european-digit (Depends-on,
4001         configure.ac): Likewise.
4002         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4003         configure.ac): Likewise.
4004         * modules/unictype/property-bidi-left-to-right (Depends-on,
4005         configure.ac): Likewise.
4006         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4007         configure.ac): Likewise.
4008         * modules/unictype/property-bidi-other-neutral (Depends-on,
4009         configure.ac): Likewise.
4010         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4011         Likewise.
4012         * modules/unictype/property-bidi-segment-separator (Depends-on,
4013         configure.ac): Likewise.
4014         * modules/unictype/property-bidi-whitespace (Depends-on,
4015         configure.ac): Likewise.
4016         * modules/unictype/property-combining (Depends-on, configure.ac):
4017         Likewise.
4018         * modules/unictype/property-composite (Depends-on, configure.ac):
4019         Likewise.
4020         * modules/unictype/property-currency-symbol (Depends-on,
4021         configure.ac): Likewise.
4022         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4023         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4024         Likewise.
4025         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4026         configure.ac): Likewise.
4027         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4028         Likewise.
4029         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4030         Likewise.
4031         * modules/unictype/property-extender (Depends-on, configure.ac):
4032         Likewise.
4033         * modules/unictype/property-format-control (Depends-on, configure.ac):
4034         Likewise.
4035         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4036         Likewise.
4037         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4038         Likewise.
4039         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4040         Likewise.
4041         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4042         Likewise.
4043         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4044         Likewise.
4045         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4046         Likewise.
4047         * modules/unictype/property-id-start (Depends-on, configure.ac):
4048         Likewise.
4049         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4050         Likewise.
4051         * modules/unictype/property-ids-binary-operator (Depends-on,
4052         configure.ac): Likewise.
4053         * modules/unictype/property-ids-trinary-operator (Depends-on,
4054         configure.ac): Likewise.
4055         * modules/unictype/property-ignorable-control (Depends-on,
4056         configure.ac): Likewise.
4057         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4058         Likewise.
4059         * modules/unictype/property-join-control (Depends-on, configure.ac):
4060         Likewise.
4061         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4062         Likewise.
4063         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4064         Likewise.
4065         * modules/unictype/property-logical-order-exception (Depends-on,
4066         configure.ac): Likewise.
4067         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4068         Likewise.
4069         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4070         * modules/unictype/property-non-break (Depends-on, configure.ac):
4071         Likewise.
4072         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4073         Likewise.
4074         * modules/unictype/property-numeric (Depends-on, configure.ac):
4075         Likewise.
4076         * modules/unictype/property-other-alphabetic (Depends-on,
4077         configure.ac): Likewise.
4078         * modules/unictype/property-other-default-ignorable-code-point
4079         (Depends-on, configure.ac): Likewise.
4080         * modules/unictype/property-other-grapheme-extend (Depends-on,
4081         configure.ac): Likewise.
4082         * modules/unictype/property-other-id-continue (Depends-on,
4083         configure.ac): Likewise.
4084         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4085         Likewise.
4086         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4087         Likewise.
4088         * modules/unictype/property-other-math (Depends-on, configure.ac):
4089         Likewise.
4090         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4091         Likewise.
4092         * modules/unictype/property-paired-punctuation (Depends-on,
4093         configure.ac): Likewise.
4094         * modules/unictype/property-paragraph-separator (Depends-on,
4095         configure.ac): Likewise.
4096         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4097         Likewise.
4098         * modules/unictype/property-pattern-white-space (Depends-on,
4099         configure.ac): Likewise.
4100         * modules/unictype/property-private-use (Depends-on, configure.ac):
4101         Likewise.
4102         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4103         Likewise.
4104         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4105         Likewise.
4106         * modules/unictype/property-radical (Depends-on, configure.ac):
4107         Likewise.
4108         * modules/unictype/property-sentence-terminal (Depends-on,
4109         configure.ac): Likewise.
4110         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4111         Likewise.
4112         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4113         * modules/unictype/property-terminal-punctuation (Depends-on,
4114         configure.ac): Likewise.
4115         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4116         Likewise.
4117         * modules/unictype/property-unassigned-code-value (Depends-on,
4118         configure.ac): Likewise.
4119         * modules/unictype/property-unified-ideograph (Depends-on,
4120         configure.ac): Likewise.
4121         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4122         Likewise.
4123         * modules/unictype/property-variation-selector (Depends-on,
4124         configure.ac): Likewise.
4125         * modules/unictype/property-white-space (Depends-on, configure.ac):
4126         Likewise.
4127         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4128         Likewise.
4129         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4130         Likewise.
4131         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4132         Likewise.
4133         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4134         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4135         Likewise.
4136
4137 2009-12-31  Bruno Haible  <bruno@clisp.org>
4138
4139         Remove unnecessary AC_C_INLINE invocation.
4140         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4141         since 2009-08-21.
4142
4143 2009-12-31  Jim Meyering  <meyering@redhat.com>
4144
4145         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4146         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4147         With this change, we can all remove the gpg_key_ID = ... definition
4148         from our respective cfg.mk files.
4149
4150         maint.mk: create announcement template in ~/, not in /tmp
4151         * top/maint.mk (emit_upload_commands): Adjust.
4152         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4153         Remove temporary file, .ci-msg.
4154
4155 2009-12-31  Eric Blake  <ebb9@byu.net>
4156
4157         link-warning: always build headers with link warnings
4158         * modules/arpa_inet (Makefile.am): Always build replacement
4159         header.
4160         * modules/ctype (Makefile.am): Likewise.
4161         * modules/dirent (Makefile.am): Likewise.
4162         * modules/inttypes (Makefile.am): Likewise.
4163         * modules/langinfo (Makefile.am): Likewise.
4164         * modules/locale (Makefile.am): Likewise.
4165         * modules/spawn (Makefile.am): Likewise.
4166         * modules/sys_file (Makefile.am): Likewise.
4167         * modules/sys_ioctl (Makefile.am): Likewise.
4168         * modules/sys_select (Makefile.am): Likewise.
4169         * modules/sys_socket (Makefile.am): Likewise.
4170         * modules/sys_times (Makefile.am): Likewise.
4171         * modules/sys_utsname (Makefile.am): Likewise.
4172         * modules/sys_wait (Makefile.am): Likewise.
4173         * modules/wchar (Makefile.am): Likewise.
4174         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4175         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4176         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4177         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4178         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4179         Likewise.
4180         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4181         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4182         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4183         Likewise.
4184         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4185         Likewise.
4186         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4187         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4188         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4190         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4191         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4192         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4193         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4194         (gl_WCHAR_H_DEFAULTS): Likewise.
4195
4196 2009-12-31  Eric Blake  <ebb9@byu.net>
4197
4198         signal, spawn: use link warnings
4199         * lib/signal.in.h (sigset_t): Make unconditional.
4200         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4201         (sigpending, sigprocmask, sigaction): Add link warnings.
4202         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4203         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4204         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4205         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4206         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4207         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4208         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4209         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4210         (posix_spawn_file_actions_destroy)
4211         (posix_spawn_file_actions_addopen)
4212         (posix_spawn_file_actions_addclose)
4213         (posix_spawn_file_actions_adddup2): Likewise.
4214         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4215         * tests/test-signal.c (main): Enhance test.
4216
4217         spawn: improve wrapper support
4218         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4219         (gl_SPAWN_H_DEFAULTS): New defaults.
4220         * modules/spawn (Makefile.am): Substitute them.
4221         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4222         Only declare if missing or broken.
4223
4224         sys_times, sys_utsname: use include_next
4225         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4226         header.
4227         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4228         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4229         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4230         * modules/sys_times (Depends-on): Add include_next.
4231         (Makefile.am): Substitute additional values.
4232         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4233         * lib/sys_times.in.h (includes): Include native header, if
4234         available.
4235         * lib/sys_utsname.in.h (includes): Likewise.
4236         * tests/test-sys_times.c (main): Enhance test.
4237
4238         fdutimensat: revert prior patch
4239         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4240         utimens.h.
4241         Reported by Bruno Haible.
4242
4243 2009-12-30  Eric Blake  <ebb9@byu.net>
4244
4245         sys_wait: drop link-warning dependency
4246         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4247         link-warning efforts.
4248         * lib/sys_wait.in.h: Likewise.
4249
4250         fdutimensat: remove bogus dependency
4251         * modules/fdutimensat (Depends-on): Drop inline.
4252
4253         unistd: fix typo
4254         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4255
4256 2009-12-30  Bruno Haible  <bruno@clisp.org>
4257
4258         Fix compilation error with Solaris cc.
4259         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4260         * lib/unicase/u16-is-invariant.c: Likewise.
4261         * lib/unicase/u32-is-invariant.c: Likewise.
4262         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4263
4264 2009-12-30  Bruno Haible  <bruno@clisp.org>
4265
4266         Fix test crash.
4267         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4268         locales.
4269         Reported by Simon Josefsson <simon@josefsson.org>.
4270
4271 2009-12-30  Bruno Haible  <bruno@clisp.org>
4272
4273         Fix compilation error on most platforms.
4274         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4275         Reported by Simon Josefsson <simon@josefsson.org>
4276         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4277
4278 2009-12-30  Eric Blake  <ebb9@byu.net>
4279
4280         futimens, utimensat: work around ntfs-3g bug
4281         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4282         a ctime bug is present, and expand workaround to cover ntfs-3g.
4283         * lib/utimens.c (fdutimens, lutimens): Likewise.
4284         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4285         (validate_timespec): Adjust return value.
4286         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4287         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4288         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4289
4290 2009-12-29  Eric Blake  <ebb9@byu.net>
4291
4292         link-warning: make usage consistent
4293         * modules/ctype (Depends-on): Add link-warning.
4294         (Makefile.am): Update rules accordingly.
4295         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4296         * modules/locale (Depends-on, Makefile.am): Likewise.
4297         * modules/sys_file (Makefile.am): Likewise.
4298         * modules/getopt-posix (Makefile.am): Delete unused link warning
4299         efforts.
4300         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4301         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4302         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4303         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4304
4305         stdio: remove unused variables
4306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4307         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4308         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4309
4310         tests: test more substitute headers
4311         * modules/ctype-tests: New file.
4312         * modules/dirent-tests: Likewise.
4313         * modules/spawn-tests: Likewise.
4314         * modules/sys_file-tests: Likewise.
4315         * modules/sys_ioctl-tests: Likewise.
4316         * modules/sys_wait-tests: Likewise.
4317         * tests/test-ctype.c: Likewise.
4318         * tests/test-dirent.c: Likewise.
4319         * tests/test-spawn.c: Likewise.
4320         * tests/test-sys_file.c: Likewise.
4321         * tests/test-sys_ioctl.c: Likewise.
4322         * tests/test-sys_wait.c: Likewise.
4323         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4324         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4325         whether or not flock is in use.
4326
4327         tests: remove License section from module
4328         * modules/arpa_inet-tests: Remove unneeded section.
4329         * modules/byteswap-tests: Likewise.
4330         * modules/ceilf-tests: Likewise.
4331         * modules/ceill-tests: Likewise.
4332         * modules/crypto/des-tests: Likewise.
4333         * modules/crypto/gc-arcfour-tests: Likewise.
4334         * modules/crypto/gc-arctwo-tests: Likewise.
4335         * modules/crypto/gc-des-tests: Likewise.
4336         * modules/crypto/gc-hmac-md5-tests: Likewise.
4337         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4338         * modules/crypto/gc-md2-tests: Likewise.
4339         * modules/crypto/gc-md4-tests: Likewise.
4340         * modules/crypto/gc-md5-tests: Likewise.
4341         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4342         * modules/crypto/gc-rijndael-tests: Likewise.
4343         * modules/crypto/gc-sha1-tests: Likewise.
4344         * modules/crypto/gc-tests: Likewise.
4345         * modules/crypto/md2-tests: Likewise.
4346         * modules/crypto/md4-tests: Likewise.
4347         * modules/fcntl-h-tests: Likewise.
4348         * modules/floorf-tests: Likewise.
4349         * modules/floorl-tests: Likewise.
4350         * modules/frexp-nolibm-tests: Likewise.
4351         * modules/frexp-tests: Likewise.
4352         * modules/frexpl-nolibm-tests: Likewise.
4353         * modules/frexpl-tests: Likewise.
4354         * modules/getaddrinfo-tests: Likewise.
4355         * modules/inttypes-tests: Likewise.
4356         * modules/isfinite-tests: Likewise.
4357         * modules/isinf-tests: Likewise.
4358         * modules/ldexpl-tests: Likewise.
4359         * modules/locale-tests: Likewise.
4360         * modules/math-tests: Likewise.
4361         * modules/netdb-tests: Likewise.
4362         * modules/netinet_in-tests: Likewise.
4363         * modules/printf-frexp-tests: Likewise.
4364         * modules/printf-frexpl-tests: Likewise.
4365         * modules/priv-set-tests: Likewise.
4366         * modules/random_r-tests: Likewise.
4367         * modules/round-tests: Likewise.
4368         * modules/roundf-tests: Likewise.
4369         * modules/roundl-tests: Likewise.
4370         * modules/search-tests: Likewise.
4371         * modules/select-tests: Likewise.
4372         * modules/signal-tests: Likewise.
4373         * modules/stdbool-tests: Likewise.
4374         * modules/stddef-tests: Likewise.
4375         * modules/stdint-tests: Likewise.
4376         * modules/stdio-tests: Likewise.
4377         * modules/stdlib-tests: Likewise.
4378         * modules/string-tests: Likewise.
4379         * modules/strings-tests: Likewise.
4380         * modules/sys_select-tests: Likewise.
4381         * modules/sys_socket-tests: Likewise.
4382         * modules/sys_stat-tests: Likewise.
4383         * modules/sys_time-tests: Likewise.
4384         * modules/sys_utsname-tests: Likewise.
4385         * modules/sysexits-tests: Likewise.
4386         * modules/time-tests: Likewise.
4387         * modules/trunc-tests: Likewise.
4388         * modules/truncf-tests: Likewise.
4389         * modules/truncl-tests: Likewise.
4390         * modules/tsearch-tests: Likewise.
4391         * modules/unistd-tests: Likewise.
4392         * modules/wchar-tests: Likewise.
4393         * modules/wctype-tests: Likewise.
4394
4395         tests: fix license on several tests
4396         * tests/test-des.c: Update to GPLv3+.
4397         * tests/test-flock.c: Likewise.
4398         * tests/test-fsync.c: Likewise.
4399         * tests/test-futimens.h: Likewise.
4400         * tests/test-gc-arcfour.c: Likewise.
4401         * tests/test-gc-arctwo.c: Likewise.
4402         * tests/test-gc-des.c: Likewise.
4403         * tests/test-gc-hmac-md5.c: Likewise.
4404         * tests/test-gc-hmac-sha1.c: Likewise.
4405         * tests/test-gc-md2.c: Likewise.
4406         * tests/test-gc-md4.c: Likewise.
4407         * tests/test-gc-md5.c: Likewise.
4408         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4409         * tests/test-gc-rijndael.c: Likewise.
4410         * tests/test-gc-sha1.c: Likewise.
4411         * tests/test-gc.c: Likewise.
4412         * tests/test-getcwd.c: Likewise.
4413         * tests/test-link.c: Likewise.
4414         * tests/test-link.h: Likewise.
4415         * tests/test-lutimens.h: Likewise.
4416         * tests/test-md2.c: Likewise.
4417         * tests/test-md4.c: Likewise.
4418         * tests/test-mkdir.h: Likewise.
4419         * tests/test-rename.c: Likewise.
4420         * tests/test-rename.h: Likewise.
4421         * tests/test-safe-alloc.c: Likewise.
4422         * tests/test-utimens-common.h: Likewise.
4423         * tests/test-utimens.h: Likewise.
4424
4425         maint: sync license texts
4426         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4427         * doc/gpl-3.0.texi: Revert copyright year update.
4428         * doc/lgpl-3.0.texi: Likewise.
4429
4430 2009-12-29  Jim Meyering  <meyering@redhat.com>
4431
4432         update nearly all FSF copyright year lists to include 2009
4433         The files named by the following are exempted:
4434             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4435               test -f "$dst" && { echo "$dst"; continue; }
4436               test -d "$dst" || continue
4437               echo "$dst"/$(basename "$src")
4438             done > exempt
4439             git ls-files tests/unictype >> exempt
4440         In the remaining files, convert to all-interval notation if
4441         - there is already at least one year interval like 2000-2003
4442         - the file is maintained by me
4443         - the file is in lib/uni*/, where that style already prevails
4444         Otherwise, use update-copyright's default.
4445
4446 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4447         and Eric Blake  <ebb9@byu.net>
4448
4449         tests: don't require debug system() to pass
4450         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4451         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4452         * tests/test-unlink.h (test_unlink_func): Likewise.
4453         * tests/test-fstatat.c (main): ...into callers.
4454         * tests/test-lstat.c (main): Likewise.
4455         * tests/test-rmdir.c (main): Likewise.
4456         * tests/test-unlink.c (main): Likewise.
4457         * tests/test-unlinkat.c (main): Likewise.
4458         * tests/test-areadlink-with-size.c (main): Don't require a
4459         debug-only system call to pass, aiding cross-testing to mingw.
4460         * tests/test-areadlink.c (main): Likewise.
4461         * tests/test-areadlinkat-with-size.c (main): Likewise.
4462         * tests/test-areadlinkat.c (main): Likewise.
4463         * tests/test-canonicalize-lgpl.c (main): Likewise.
4464         * tests/test-canonicalize.c (main): Likewise.
4465         * tests/test-chown.c (main): Likewise.
4466         * tests/test-fchownat.c (main): Likewise.
4467         * tests/test-lchown.c (main): Likewise.
4468         * tests/test-fdutimensat.c (main): Likewise.
4469         * tests/test-futimens.c (main): Likewise.
4470         * tests/test-link.c (main): Likewise.
4471         * tests/test-linkat.c (main): Likewise.
4472         * tests/test-mkdir.c (main): Likewise.
4473         * tests/test-mkdirat.c (main): Likewise.
4474         * tests/test-mkfifo.c (main): Likewise.
4475         * tests/test-mkfifoat.c (main): Likewise.
4476         * tests/test-mknod.c (main): Likewise.
4477         * tests/test-readlink.c (main): Likewise.
4478         * tests/test-remove.c (main): Likewise.
4479         * tests/test-rename.c (main): Likewise.
4480         * tests/test-renameat.c (main): Likewise.
4481         * tests/test-symlink.c (main): Likewise.
4482         * tests/test-symlinkat.c (main): Likewise.
4483         * tests/test-utimens.c (main): Likewise.
4484         * tests/test-utimensat.c (main): Likewise.
4485
4486 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4487
4488         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4489         on $(UNUSED_PARAMETER_H) to avoid build failure.
4490
4491 2009-12-28  Jim Meyering  <meyering@redhat.com>
4492
4493         update-copyright: you may specify a max. line length other than 72
4494         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4495
4496         maint: use consistent FSF copyright line syntax
4497         * lib/posixtm.c: Add missing comma in FSF copyright line.
4498         * lib/posixtm.h: Likewise.
4499         * lib/getugroups.c: Add missing ", Inc.".
4500
4501         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4502         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4503         FSF copyright line.  Remove trailing blanks.
4504
4505 2009-12-28  Eric Blake  <ebb9@byu.net>
4506
4507         test-dup2: reduce dependencies
4508         * modules/cloexec (Configure.ac): Set witness.
4509         * modules/dup2-tests (Depends-on): Drop cloexec.
4510         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4511         not present.
4512         Suggested by Bruno Haible.
4513
4514 2009-12-26  Bruno Haible  <bruno@clisp.org>
4515
4516         Remove an unneeded dependency.
4517         * modules/fseterr (Depends-on): Remove dup2.
4518
4519 2009-12-26  Eric Blake  <ebb9@byu.net>
4520
4521         tests: use macros.h in more places
4522         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4523         (ASSERT_STREAM): Provide default of stderr.
4524         * tests/test-dirent-safer.c: Include macros.h, using alternate
4525         stream for assertions.
4526         * tests/test-dup-safer.c: Likewise.
4527         * tests/test-freopen-safer.c: Likewise.
4528         * tests/test-getopt.c: Likewise.
4529         * tests/test-openat-safer.c: Likewise.
4530         * tests/test-pipe.c: Likewise.
4531         * tests/test-popen-safer.c: Likewise.
4532         * modules/dirent-safer-tests (Files): Include macros.h.
4533         * modules/unistd-safer-tests (Files): Likewise.
4534         * modules/freopen-safer-tests (Files): Likewise.
4535         * modules/getopt-posix-tests (Files): Likewise.
4536         * modules/openat-safer-tests (Files): Likewise.
4537         * modules/pipe-tests (Files): Likewise.
4538
4539 2009-12-26  Bruno Haible  <bruno@clisp.org>
4540
4541         javacomp: Portability fix.
4542         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4543         that it also works on Solaris.
4544
4545 2009-12-26  Bruno Haible  <bruno@clisp.org>
4546
4547         localename: Fix storage allocation of gl_locale_name_thread's result.
4548         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4549         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4550         all platforms that have 'uselocale'.
4551         (gl_locale_name_thread_unsafe): New function, extracted from
4552         gl_locale_name_thread.
4553         (gl_locale_name_thread): Call struniq on all platforms that have
4554         'uselocale'.
4555         * tests/test-localename.c (test_locale_name_thread): Check that the
4556         resulting strings are permanently allocated.
4557         * modules/localename-tests (Depends-on): Add strdup.
4558
4559 2009-12-26  Bruno Haible  <bruno@clisp.org>
4560
4561         * tests/test-localename.c (categories): Fill in the strings.
4562
4563 2009-12-26  Jim Meyering  <meyering@redhat.com>
4564
4565         isdir: complete the removal of m4/isdir.m4
4566         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4567
4568         isdir: clean up, since at least grep still uses it
4569         * lib/isdir.c: Include "isdir.h".
4570         (S_ISDIR): Remove now-unneeded definition.
4571         * modules/isdir (Files): Add lib/isdir.h.
4572         * lib/isdir.h: New file, with declaration.
4573         * m4/isdir.m4: Remove file -- unneeded.
4574
4575 2009-12-25  Bruno Haible  <bruno@clisp.org>
4576
4577         selinux-h: Make generated .h files standalone.
4578         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4579         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4580         * lib/se-selinux.in.h: Likewise.
4581         * modules/selinux-h (Depends-on): Add unused-parameter.
4582         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4583         selinux/selinux.h and selinux/context.h.
4584         Suggested by Eric Blake.
4585
4586 2009-12-25  Bruno Haible  <bruno@clisp.org>
4587
4588         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4589         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4590         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4591         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4592         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4593
4594 2009-12-24  Bruno Haible  <bruno@clisp.org>
4595
4596         openat: Fix warning.
4597         * lib/openat-proc.c: Include <unistd.h>.
4598
4599 2009-12-24  Bruno Haible  <bruno@clisp.org>
4600
4601         New module 'unused-parameter'.
4602         * build-aux/unused-parameter.h: New file, extracted from earlier
4603         gnulib-common.m4.
4604         * modules/unused-parameter: New file.
4605         * lib/unistr.h: Include unused-parameter.h.
4606         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4607         _GL_UNUSED.
4608         * modules/unistr/base (Depends-on): Add unused-parameter.
4609
4610 2009-12-24  Bruno Haible  <bruno@clisp.org>
4611
4612         Add missing dependencies to 'extensions' module.
4613         * m4/extensions.m4: Add comment.
4614         * modules/accept4 (Depends-on): Add extensions.
4615         * modules/dup3 (Depends-on): Likewise.
4616         * modules/fcntl (Depends-on): Likewise.
4617         * modules/futimens (Depends-on): Likewise.
4618         * modules/mknod (Depends-on): Likewise.
4619         * modules/pipe2 (Depends-on): Likewise.
4620         * modules/stat-time (Depends-on): Likewise.
4621         * modules/strcasestr-simple (Depends-on): Likewise.
4622         * modules/strsignal (Depends-on): Likewise.
4623         * modules/utimensat (Depends-on): Likewise.
4624         * modules/localcharset (Depends-on): Likewise. Needed because of
4625         gl_FCNTL_O_FLAGS.
4626         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4627         AC_TYPE_MBSTATE_T.
4628         * modules/wcsnrtombs (Depends-on): Likewise.
4629         * modules/wcsrtombs (Depends-on): Likewise.
4630
4631 2009-12-24  Bruno Haible  <bruno@clisp.org>
4632
4633         binary-io: Avoid gcc warning due to SET_BINARY.
4634         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4635         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4636
4637 2009-12-24  Bruno Haible  <bruno@clisp.org>
4638
4639         Avoid future namespace pollution on glibc systems.
4640         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4641         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4642         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4643         glibc systems.
4644
4645 2009-12-24  Bruno Haible  <bruno@clisp.org>
4646
4647         Refactor common macros used in tests.
4648         * tests/macros.h: New file.
4649         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4650         and/or <stdlib.h>, if appropriate.
4651         (ASSERT, SIZEOF): Remove macros.
4652         * tests/test-areadlink-with-size.c: Likewise.
4653         * tests/test-areadlinkat.c: Likewise.
4654         * tests/test-areadlinkat-with-size.c: Likewise.
4655         * tests/test-argmatch.c: Likewise.
4656         * tests/test-argv-iter.c: Likewise.
4657         * tests/test-array-mergesort.c: Likewise.
4658         * tests/test-array_list.c: Likewise.
4659         * tests/test-array_oset.c: Likewise.
4660         * tests/test-avltree_list.c: Likewise.
4661         * tests/test-avltree_oset.c: Likewise.
4662         * tests/test-avltreehash_list.c: Likewise.
4663         * tests/test-base64.c: Likewise.
4664         * tests/test-binary-io.c: Likewise.
4665         * tests/test-bitrotate.c: Likewise.
4666         * tests/test-btowc.c: Likewise.
4667         * tests/test-byteswap.c: Likewise.
4668         * tests/test-c-ctype.c: Likewise.
4669         * tests/test-c-stack.c: Likewise.
4670         * tests/test-c-strcasecmp.c: Likewise.
4671         * tests/test-c-strcasestr.c: Likewise.
4672         * tests/test-c-strncasecmp.c: Likewise.
4673         * tests/test-c-strstr.c: Likewise.
4674         * tests/test-canonicalize-lgpl.c: Likewise.
4675         * tests/test-canonicalize.c: Likewise.
4676         * tests/test-carray_list.c: Likewise.
4677         * tests/test-ceilf1.c: Likewise.
4678         * tests/test-ceilf2.c: Likewise.
4679         * tests/test-ceill.c: Likewise.
4680         * tests/test-chown.c: Likewise.
4681         * tests/test-cloexec.c: Likewise.
4682         * tests/test-copy-acl.c: Likewise.
4683         * tests/test-copy-file.c: Likewise.
4684         * tests/test-count-one-bits.c: Likewise.
4685         * tests/test-dprintf-posix.c: Likewise.
4686         * tests/test-dup2.c: Likewise.
4687         * tests/test-dup3.c: Likewise.
4688         * tests/test-duplocale.c: Likewise.
4689         * tests/test-fbufmode.c: Likewise.
4690         * tests/test-fchdir.c: Likewise.
4691         * tests/test-fchownat.c: Likewise.
4692         * tests/test-fcntl-safer.c: Likewise.
4693         * tests/test-fcntl.c: Likewise.
4694         * tests/test-fdopendir.c: Likewise.
4695         * tests/test-fdutimensat.c: Likewise.
4696         * tests/test-fflush2.c: Likewise.
4697         * tests/test-file-has-acl.c: Likewise.
4698         * tests/test-filevercmp.c: Likewise.
4699         * tests/test-flock.c: Likewise.
4700         * tests/test-floorf1.c: Likewise.
4701         * tests/test-floorf2.c: Likewise.
4702         * tests/test-floorl.c: Likewise.
4703         * tests/test-fnmatch.c: Likewise.
4704         * tests/test-fopen.h: Likewise.
4705         * tests/test-fpending.c: Likewise.
4706         * tests/test-fprintf-posix.c: Likewise.
4707         * tests/test-fpurge.c: Likewise.
4708         * tests/test-freadable.c: Likewise.
4709         * tests/test-freadahead.c: Likewise.
4710         * tests/test-freading.c: Likewise.
4711         * tests/test-freadptr.c: Likewise.
4712         * tests/test-freadptr2.c: Likewise.
4713         * tests/test-freadseek.c: Likewise.
4714         * tests/test-freopen.c: Likewise.
4715         * tests/test-frexp.c: Likewise.
4716         * tests/test-frexpl.c: Likewise.
4717         * tests/test-fseek.c: Likewise.
4718         * tests/test-fseeko.c: Likewise.
4719         * tests/test-fstatat.c: Likewise.
4720         * tests/test-fstrcmp.c: Likewise.
4721         * tests/test-fsync.c: Likewise.
4722         * tests/test-ftell.c: Likewise.
4723         * tests/test-ftello.c: Likewise.
4724         * tests/test-func.c: Likewise.
4725         * tests/test-futimens.c: Likewise.
4726         * tests/test-fwritable.c: Likewise.
4727         * tests/test-fwriting.c: Likewise.
4728         * tests/test-getcwd.c: Likewise.
4729         * tests/test-getdate.c: Likewise.
4730         * tests/test-getdelim.c: Likewise.
4731         * tests/test-getdtablesize.c: Likewise.
4732         * tests/test-getgroups.c: Likewise.
4733         * tests/test-getline.c: Likewise.
4734         * tests/test-getndelim2.c: Likewise.
4735         * tests/test-glob.c: Likewise.
4736         * tests/test-hash.c: Likewise.
4737         * tests/test-i-ring.c: Likewise.
4738         * tests/test-iconv-utf.c: Likewise.
4739         * tests/test-iconv.c: Likewise.
4740         * tests/test-idpriv-drop.c: Likewise.
4741         * tests/test-idpriv-droptemp.c: Likewise.
4742         * tests/test-inet_ntop.c: Likewise.
4743         * tests/test-inet_pton.c: Likewise.
4744         * tests/test-isblank.c: Likewise.
4745         * tests/test-isfinite.c: Likewise.
4746         * tests/test-isinf.c: Likewise.
4747         * tests/test-isnan.c: Likewise.
4748         * tests/test-isnand.h: Likewise.
4749         * tests/test-isnanf.h: Likewise.
4750         * tests/test-isnanl.h: Likewise.
4751         * tests/test-lchown.c: Likewise.
4752         * tests/test-ldexpl.c: Likewise.
4753         * tests/test-link.c: Likewise.
4754         * tests/test-linkat.c: Likewise.
4755         * tests/test-linked_list.c: Likewise.
4756         * tests/test-linkedhash_list.c: Likewise.
4757         * tests/test-localename.c: Likewise.
4758         * tests/test-lseek.c: Likewise.
4759         * tests/test-lstat.c: Likewise.
4760         * tests/test-mbmemcasecmp.c: Likewise.
4761         * tests/test-mbmemcasecoll.c: Likewise.
4762         * tests/test-mbrtowc.c: Likewise.
4763         * tests/test-mbscasecmp.c: Likewise.
4764         * tests/test-mbscasestr1.c: Likewise.
4765         * tests/test-mbscasestr2.c: Likewise.
4766         * tests/test-mbscasestr3.c: Likewise.
4767         * tests/test-mbscasestr4.c: Likewise.
4768         * tests/test-mbschr.c: Likewise.
4769         * tests/test-mbscspn.c: Likewise.
4770         * tests/test-mbsinit.c: Likewise.
4771         * tests/test-mbsncasecmp.c: Likewise.
4772         * tests/test-mbsnrtowcs.c: Likewise.
4773         * tests/test-mbspbrk.c: Likewise.
4774         * tests/test-mbspcasecmp.c: Likewise.
4775         * tests/test-mbsrchr.c: Likewise.
4776         * tests/test-mbsrtowcs.c: Likewise.
4777         * tests/test-mbsspn.c: Likewise.
4778         * tests/test-mbsstr1.c: Likewise.
4779         * tests/test-mbsstr2.c: Likewise.
4780         * tests/test-mbsstr3.c: Likewise.
4781         * tests/test-memchr.c: Likewise.
4782         * tests/test-memchr2.c: Likewise.
4783         * tests/test-memcmp.c: Likewise.
4784         * tests/test-memmem.c: Likewise.
4785         * tests/test-memrchr.c: Likewise.
4786         * tests/test-mkdir.c: Likewise.
4787         * tests/test-mkdirat.c: Likewise.
4788         * tests/test-mkfifo.c: Likewise.
4789         * tests/test-mkfifoat.c: Likewise.
4790         * tests/test-mknod.c: Likewise.
4791         * tests/test-nanosleep.c: Likewise.
4792         * tests/test-nl_langinfo.c: Likewise.
4793         * tests/test-obstack-printf.c: Likewise.
4794         * tests/test-open.c: Likewise.
4795         * tests/test-openat.c: Likewise.
4796         * tests/test-pipe-filter-gi1.c: Likewise.
4797         * tests/test-pipe-filter-gi2-main.c: Likewise.
4798         * tests/test-pipe-filter-ii1.c: Likewise.
4799         * tests/test-pipe-filter-ii2-main.c: Likewise.
4800         * tests/test-pipe2.c: Likewise.
4801         * tests/test-popen.h: Likewise.
4802         * tests/test-posixtm.c: Likewise.
4803         * tests/test-pread.c: Likewise.
4804         * tests/test-printf-frexp.c: Likewise.
4805         * tests/test-printf-frexpl.c: Likewise.
4806         * tests/test-printf-posix.c: Likewise.
4807         * tests/test-priv-set.c: Likewise.
4808         * tests/test-quotearg.c: Likewise.
4809         * tests/test-random_r.c: Likewise.
4810         * tests/test-rawmemchr.c: Likewise.
4811         * tests/test-rbtree_list.c: Likewise.
4812         * tests/test-rbtree_oset.c: Likewise.
4813         * tests/test-rbtreehash_list.c: Likewise.
4814         * tests/test-readlink.c: Likewise.
4815         * tests/test-remove.c: Likewise.
4816         * tests/test-rename.c: Likewise.
4817         * tests/test-renameat.c: Likewise.
4818         * tests/test-rmdir.c: Likewise.
4819         * tests/test-round1.c: Likewise.
4820         * tests/test-roundf1.c: Likewise.
4821         * tests/test-roundl.c: Likewise.
4822         * tests/test-safe-alloc.c: Likewise.
4823         * tests/test-sameacls.c: Likewise.
4824         * tests/test-set-mode-acl.c: Likewise.
4825         * tests/test-setenv.c: Likewise.
4826         * tests/test-sigaction.c: Likewise.
4827         * tests/test-signbit.c: Likewise.
4828         * tests/test-sleep.c: Likewise.
4829         * tests/test-snprintf-posix.c: Likewise.
4830         * tests/test-snprintf.c: Likewise.
4831         * tests/test-sprintf-posix.c: Likewise.
4832         * tests/test-stat-time.c: Likewise.
4833         * tests/test-stat.c: Likewise.
4834         * tests/test-strcasestr.c: Likewise.
4835         * tests/test-strchrnul.c: Likewise.
4836         * tests/test-strerror.c: Likewise.
4837         * tests/test-striconv.c: Likewise.
4838         * tests/test-striconveh.c: Likewise.
4839         * tests/test-striconveha.c: Likewise.
4840         * tests/test-strsignal.c: Likewise.
4841         * tests/test-strstr.c: Likewise.
4842         * tests/test-strtod.c: Likewise.
4843         * tests/test-strverscmp.c: Likewise.
4844         * tests/test-symlink.c: Likewise.
4845         * tests/test-symlinkat.c: Likewise.
4846         * tests/test-trunc1.c: Likewise.
4847         * tests/test-trunc2.c: Likewise.
4848         * tests/test-truncf1.c: Likewise.
4849         * tests/test-truncf2.c: Likewise.
4850         * tests/test-truncl.c: Likewise.
4851         * tests/test-uname.c: Likewise.
4852         * tests/test-unlink.c: Likewise.
4853         * tests/test-unlinkat.c: Likewise.
4854         * tests/test-unsetenv.c: Likewise.
4855         * tests/test-usleep.c: Likewise.
4856         * tests/test-utimens.c: Likewise.
4857         * tests/test-utimensat.c: Likewise.
4858         * tests/test-vasnprintf-posix.c: Likewise.
4859         * tests/test-vasnprintf-posix2.c: Likewise.
4860         * tests/test-vasnprintf.c: Likewise.
4861         * tests/test-vasprintf-posix.c: Likewise.
4862         * tests/test-vasprintf.c: Likewise.
4863         * tests/test-vdprintf-posix.c: Likewise.
4864         * tests/test-vfprintf-posix.c: Likewise.
4865         * tests/test-vprintf-posix.c: Likewise.
4866         * tests/test-vsnprintf-posix.c: Likewise.
4867         * tests/test-vsnprintf.c: Likewise.
4868         * tests/test-vsprintf-posix.c: Likewise.
4869         * tests/test-wcrtomb.c: Likewise.
4870         * tests/test-wcsnrtombs.c: Likewise.
4871         * tests/test-wcsrtombs.c: Likewise.
4872         * tests/test-wctype.c: Likewise.
4873         * tests/test-wcwidth.c: Likewise.
4874         * tests/test-xfprintf-posix.c: Likewise.
4875         * tests/test-xmemdup0.c: Likewise.
4876         * tests/test-xprintf-posix.c: Likewise.
4877         * tests/test-xvasprintf.c: Likewise.
4878         * tests/unicase/test-locale-language.c: Likewise.
4879         * tests/unicase/test-mapping-part1.h: Likewise.
4880         * tests/unicase/test-predicate-part1.h: Likewise.
4881         * tests/unicase/test-u8-casecmp.c: Likewise.
4882         * tests/unicase/test-u8-casecoll.c: Likewise.
4883         * tests/unicase/test-u8-casefold.c: Likewise.
4884         * tests/unicase/test-u8-is-cased.c: Likewise.
4885         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4886         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4887         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4888         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4889         * tests/unicase/test-u8-tolower.c: Likewise.
4890         * tests/unicase/test-u8-totitle.c: Likewise.
4891         * tests/unicase/test-u8-toupper.c: Likewise.
4892         * tests/unicase/test-u16-casecmp.c: Likewise.
4893         * tests/unicase/test-u16-casecoll.c: Likewise.
4894         * tests/unicase/test-u16-casefold.c: Likewise.
4895         * tests/unicase/test-u16-is-cased.c: Likewise.
4896         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4897         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4898         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4899         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4900         * tests/unicase/test-u16-tolower.c: Likewise.
4901         * tests/unicase/test-u16-totitle.c: Likewise.
4902         * tests/unicase/test-u16-toupper.c: Likewise.
4903         * tests/unicase/test-u32-casecmp.c: Likewise.
4904         * tests/unicase/test-u32-casecoll.c: Likewise.
4905         * tests/unicase/test-u32-casefold.c: Likewise.
4906         * tests/unicase/test-u32-is-cased.c: Likewise.
4907         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4908         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4909         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4910         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4911         * tests/unicase/test-u32-tolower.c: Likewise.
4912         * tests/unicase/test-u32-totitle.c: Likewise.
4913         * tests/unicase/test-u32-toupper.c: Likewise.
4914         * tests/unicase/test-ulc-casecmp.c: Likewise.
4915         * tests/unicase/test-ulc-casecoll.c: Likewise.
4916         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4917         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4918         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4919         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4920         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4921         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4922         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4923         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4924         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4925         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4926         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4927         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4928         * tests/unictype/test-bidi_byname.c: Likewise.
4929         * tests/unictype/test-bidi_name.c: Likewise.
4930         * tests/unictype/test-bidi_of.c: Likewise.
4931         * tests/unictype/test-bidi_test.c: Likewise.
4932         * tests/unictype/test-block_list.c: Likewise.
4933         * tests/unictype/test-block_of.c: Likewise.
4934         * tests/unictype/test-block_test.c: Likewise.
4935         * tests/unictype/test-categ_and.c: Likewise.
4936         * tests/unictype/test-categ_and_not.c: Likewise.
4937         * tests/unictype/test-categ_byname.c: Likewise.
4938         * tests/unictype/test-categ_name.c: Likewise.
4939         * tests/unictype/test-categ_none.c: Likewise.
4940         * tests/unictype/test-categ_of.c: Likewise.
4941         * tests/unictype/test-categ_or.c: Likewise.
4942         * tests/unictype/test-categ_test_withtable.c: Likewise.
4943         * tests/unictype/test-combining.c: Likewise.
4944         * tests/unictype/test-decdigit.c: Likewise.
4945         * tests/unictype/test-digit.c: Likewise.
4946         * tests/unictype/test-mirror.c: Likewise.
4947         * tests/unictype/test-numeric.c: Likewise.
4948         * tests/unictype/test-pr_byname.c: Likewise.
4949         * tests/unictype/test-pr_test.c: Likewise.
4950         * tests/unictype/test-predicate-part1.h: Likewise.
4951         * tests/unictype/test-scripts.c: Likewise.
4952         * tests/unictype/test-sy_c_ident.c: Likewise.
4953         * tests/unictype/test-sy_java_ident.c: Likewise.
4954         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4955         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4956         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4957         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4958         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4959         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4960         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4961         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4962         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4963         * tests/uninorm/test-compat-decomposition.c: Likewise.
4964         * tests/uninorm/test-composition.c: Likewise.
4965         * tests/uninorm/test-decomposing-form.c: Likewise.
4966         * tests/uninorm/test-decomposition.c: Likewise.
4967         * tests/uninorm/test-u8-nfc.c: Likewise.
4968         * tests/uninorm/test-u8-nfd.c: Likewise.
4969         * tests/uninorm/test-u8-nfkc.c: Likewise.
4970         * tests/uninorm/test-u8-nfkd.c: Likewise.
4971         * tests/uninorm/test-u8-normcmp.c: Likewise.
4972         * tests/uninorm/test-u8-normcoll.c: Likewise.
4973         * tests/uninorm/test-u16-nfc.c: Likewise.
4974         * tests/uninorm/test-u16-nfd.c: Likewise.
4975         * tests/uninorm/test-u16-nfkc.c: Likewise.
4976         * tests/uninorm/test-u16-nfkd.c: Likewise.
4977         * tests/uninorm/test-u16-normcmp.c: Likewise.
4978         * tests/uninorm/test-u16-normcoll.c: Likewise.
4979         * tests/uninorm/test-u32-nfc.c: Likewise.
4980         * tests/uninorm/test-u32-nfd.c: Likewise.
4981         * tests/uninorm/test-u32-nfkc.c: Likewise.
4982         * tests/uninorm/test-u32-nfkd.c: Likewise.
4983         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4984         * tests/uninorm/test-u32-normcmp.c: Likewise.
4985         * tests/uninorm/test-u32-normcoll.c: Likewise.
4986         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4987         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4988         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4989         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4990         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4991         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4992         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4993         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4994         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4995         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4996         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4997         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4998         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4999         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5000         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5001         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5002         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5003         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5004         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5005         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5006         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5007         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5008         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5009         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5010         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5011         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5012         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5013         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5014         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5015         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5016         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5017         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5018         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5019         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5020         * tests/uniwidth/test-u8-width.c: Likewise.
5021         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5022         * tests/uniwidth/test-u16-width.c: Likewise.
5023         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5024         * tests/uniwidth/test-u32-width.c: Likewise.
5025         * tests/uniwidth/test-uc_width.c: Likewise.
5026         * tests/uniwidth/test-uc_width2.c: Likewise.
5027         * modules/acl-tests (Files): Add tests/macros.h.
5028         * modules/areadlink-tests (Files): Likewise.
5029         * modules/areadlink-with-size-tests (Files): Likewise.
5030         * modules/areadlinkat-tests (Files): Likewise.
5031         * modules/areadlinkat-with-size-tests (Files): Likewise.
5032         * modules/argmatch-tests (Files): Likewise.
5033         * modules/argv-iter-tests (Files): Likewise.
5034         * modules/array-list-tests (Files): Likewise.
5035         * modules/array-mergesort-tests (Files): Likewise.
5036         * modules/array-oset-tests (Files): Likewise.
5037         * modules/avltree-list-tests (Files): Likewise.
5038         * modules/avltree-oset-tests (Files): Likewise.
5039         * modules/avltreehash-list-tests (Files): Likewise.
5040         * modules/base64-tests (Files): Likewise.
5041         * modules/binary-io-tests (Files): Likewise.
5042         * modules/bitrotate-tests (Files): Likewise.
5043         * modules/btowc-tests (Files): Likewise.
5044         * modules/byteswap-tests (Files): Likewise.
5045         * modules/c-ctype-tests (Files): Likewise.
5046         * modules/c-stack-tests (Files): Likewise.
5047         * modules/c-strcase-tests (Files): Likewise.
5048         * modules/c-strcasestr-tests (Files): Likewise.
5049         * modules/c-strstr-tests (Files): Likewise.
5050         * modules/canonicalize-lgpl-tests (Files): Likewise.
5051         * modules/canonicalize-tests (Files): Likewise.
5052         * modules/carray-list-tests (Files): Likewise.
5053         * modules/ceilf-tests (Files): Likewise.
5054         * modules/ceill-tests (Files): Likewise.
5055         * modules/chown-tests (Files): Likewise.
5056         * modules/cloexec-tests (Files): Likewise.
5057         * modules/copy-file-tests (Files): Likewise.
5058         * modules/count-one-bits-tests (Files): Likewise.
5059         * modules/dprintf-posix-tests (Files): Likewise.
5060         * modules/dup2-tests (Files): Likewise.
5061         * modules/dup3-tests (Files): Likewise.
5062         * modules/duplocale-tests (Files): Likewise.
5063         * modules/fbufmode-tests (Files): Likewise.
5064         * modules/fchdir-tests (Files): Likewise.
5065         * modules/fcntl-safer-tests (Files): Likewise.
5066         * modules/fcntl-tests (Files): Likewise.
5067         * modules/fdopendir-tests (Files): Likewise.
5068         * modules/fdutimensat-tests (Files): Likewise.
5069         * modules/fflush-tests (Files): Likewise.
5070         * modules/filevercmp-tests (Files): Likewise.
5071         * modules/flock-tests (Files): Likewise.
5072         * modules/floorf-tests (Files): Likewise.
5073         * modules/floorl-tests (Files): Likewise.
5074         * modules/fnmatch-tests (Files): Likewise.
5075         * modules/fopen-safer-tests (Files): Likewise.
5076         * modules/fopen-tests (Files): Likewise.
5077         * modules/fpending-tests (Files): Likewise.
5078         * modules/fprintf-posix-tests (Files): Likewise.
5079         * modules/fpurge-tests (Files): Likewise.
5080         * modules/freadable-tests (Files): Likewise.
5081         * modules/freadahead-tests (Files): Likewise.
5082         * modules/freading-tests (Files): Likewise.
5083         * modules/freadptr-tests (Files): Likewise.
5084         * modules/freadseek-tests (Files): Likewise.
5085         * modules/freopen-tests (Files): Likewise.
5086         * modules/frexp-nolibm-tests (Files): Likewise.
5087         * modules/frexp-tests (Files): Likewise.
5088         * modules/frexpl-nolibm-tests (Files): Likewise.
5089         * modules/frexpl-tests (Files): Likewise.
5090         * modules/fseek-tests (Files): Likewise.
5091         * modules/fseeko-tests (Files): Likewise.
5092         * modules/fstrcmp-tests (Files): Likewise.
5093         * modules/fsync-tests (Files): Likewise.
5094         * modules/ftell-tests (Files): Likewise.
5095         * modules/ftello-tests (Files): Likewise.
5096         * modules/func-tests (Files): Likewise.
5097         * modules/futimens-tests (Files): Likewise.
5098         * modules/fwritable-tests (Files): Likewise.
5099         * modules/fwriting-tests (Files): Likewise.
5100         * modules/getcwd-tests (Files): Likewise.
5101         * modules/getdate-tests (Files): Likewise.
5102         * modules/getdelim-tests (Files): Likewise.
5103         * modules/getdtablesize-tests (Files): Likewise.
5104         * modules/getgroups-tests (Files): Likewise.
5105         * modules/getline-tests (Files): Likewise.
5106         * modules/getndelim2-tests (Files): Likewise.
5107         * modules/glob-tests (Files): Likewise.
5108         * modules/hash-tests (Files): Likewise.
5109         * modules/i-ring-tests (Files): Likewise.
5110         * modules/iconv-tests (Files): Likewise.
5111         * modules/iconv_open-utf-tests (Files): Likewise.
5112         * modules/idpriv-drop-tests (Files): Likewise.
5113         * modules/idpriv-droptemp-tests (Files): Likewise.
5114         * modules/inet_ntop-tests (Files): Likewise.
5115         * modules/inet_pton-tests (Files): Likewise.
5116         * modules/isblank-tests (Files): Likewise.
5117         * modules/isfinite-tests (Files): Likewise.
5118         * modules/isinf-tests (Files): Likewise.
5119         * modules/isnan-tests (Files): Likewise.
5120         * modules/isnand-nolibm-tests (Files): Likewise.
5121         * modules/isnand-tests (Files): Likewise.
5122         * modules/isnanf-nolibm-tests (Files): Likewise.
5123         * modules/isnanf-tests (Files): Likewise.
5124         * modules/isnanl-nolibm-tests (Files): Likewise.
5125         * modules/isnanl-tests (Files): Likewise.
5126         * modules/lchown-tests (Files): Likewise.
5127         * modules/ldexpl-tests (Files): Likewise.
5128         * modules/link-tests (Files): Likewise.
5129         * modules/linkat-tests (Files): Likewise.
5130         * modules/linked-list-tests (Files): Likewise.
5131         * modules/linkedhash-list-tests (Files): Likewise.
5132         * modules/localename-tests (Files): Likewise.
5133         * modules/lseek-tests (Files): Likewise.
5134         * modules/lstat-tests (Files): Likewise.
5135         * modules/mbmemcasecmp-tests (Files): Likewise.
5136         * modules/mbmemcasecoll-tests (Files): Likewise.
5137         * modules/mbrtowc-tests (Files): Likewise.
5138         * modules/mbscasecmp-tests (Files): Likewise.
5139         * modules/mbscasestr-tests (Files): Likewise.
5140         * modules/mbschr-tests (Files): Likewise.
5141         * modules/mbscspn-tests (Files): Likewise.
5142         * modules/mbsinit-tests (Files): Likewise.
5143         * modules/mbsncasecmp-tests (Files): Likewise.
5144         * modules/mbsnrtowcs-tests (Files): Likewise.
5145         * modules/mbspbrk-tests (Files): Likewise.
5146         * modules/mbspcasecmp-tests (Files): Likewise.
5147         * modules/mbsrchr-tests (Files): Likewise.
5148         * modules/mbsrtowcs-tests (Files): Likewise.
5149         * modules/mbsspn-tests (Files): Likewise.
5150         * modules/mbsstr-tests (Files): Likewise.
5151         * modules/memchr-tests (Files): Likewise.
5152         * modules/memchr2-tests (Files): Likewise.
5153         * modules/memcmp-tests (Files): Likewise.
5154         * modules/memmem-tests (Files): Likewise.
5155         * modules/memrchr-tests (Files): Likewise.
5156         * modules/mkdir-tests (Files): Likewise.
5157         * modules/mkfifo-tests (Files): Likewise.
5158         * modules/mkfifoat-tests (Files): Likewise.
5159         * modules/mknod-tests (Files): Likewise.
5160         * modules/nanosleep-tests (Files): Likewise.
5161         * modules/nl_langinfo-tests (Files): Likewise.
5162         * modules/obstack-printf-tests (Files): Likewise.
5163         * modules/open-tests (Files): Likewise.
5164         * modules/openat-tests (Files): Likewise.
5165         * modules/pipe-filter-gi-tests (Files): Likewise.
5166         * modules/pipe-filter-ii-tests (Files): Likewise.
5167         * modules/pipe2-tests (Files): Likewise.
5168         * modules/popen-safer-tests (Files): Likewise.
5169         * modules/popen-tests (Files): Likewise.
5170         * modules/posixtm-tests (Files): Likewise.
5171         * modules/pread-tests (Files): Likewise.
5172         * modules/printf-frexp-tests (Files): Likewise.
5173         * modules/printf-frexpl-tests (Files): Likewise.
5174         * modules/printf-posix-tests (Files): Likewise.
5175         * modules/priv-set-tests (Files): Likewise.
5176         * modules/quotearg-tests (Files): Likewise.
5177         * modules/random_r-tests (Files): Likewise.
5178         * modules/rawmemchr-tests (Files): Likewise.
5179         * modules/rbtree-list-tests (Files): Likewise.
5180         * modules/rbtree-oset-tests (Files): Likewise.
5181         * modules/rbtreehash-list-tests (Files): Likewise.
5182         * modules/readlink-tests (Files): Likewise.
5183         * modules/remove-tests (Files): Likewise.
5184         * modules/rename-tests (Files): Likewise.
5185         * modules/renameat-tests (Files): Likewise.
5186         * modules/rmdir-tests (Files): Likewise.
5187         * modules/round-tests (Files): Likewise.
5188         * modules/roundf-tests (Files): Likewise.
5189         * modules/roundl-tests (Files): Likewise.
5190         * modules/safe-alloc-tests (Files): Likewise.
5191         * modules/setenv-tests (Files): Likewise.
5192         * modules/sigaction-tests (Files): Likewise.
5193         * modules/signbit-tests (Files): Likewise.
5194         * modules/sleep-tests (Files): Likewise.
5195         * modules/snprintf-posix-tests (Files): Likewise.
5196         * modules/snprintf-tests (Files): Likewise.
5197         * modules/sprintf-posix-tests (Files): Likewise.
5198         * modules/stat-tests (Files): Likewise.
5199         * modules/stat-time-tests (Files): Likewise.
5200         * modules/strcasestr-tests (Files): Likewise.
5201         * modules/strchrnul-tests (Files): Likewise.
5202         * modules/strerror-tests (Files): Likewise.
5203         * modules/striconv-tests (Files): Likewise.
5204         * modules/striconveh-tests (Files): Likewise.
5205         * modules/striconveha-tests (Files): Likewise.
5206         * modules/strsignal-tests (Files): Likewise.
5207         * modules/strstr-tests (Files): Likewise.
5208         * modules/strtod-tests (Files): Likewise.
5209         * modules/strverscmp-tests (Files): Likewise.
5210         * modules/symlink-tests (Files): Likewise.
5211         * modules/symlinkat-tests (Files): Likewise.
5212         * modules/trunc-tests (Files): Likewise.
5213         * modules/truncf-tests (Files): Likewise.
5214         * modules/truncl-tests (Files): Likewise.
5215         * modules/uname-tests (Files): Likewise.
5216         * modules/unicase/cased-tests (Files): Likewise.
5217         * modules/unicase/ignorable-tests (Files): Likewise.
5218         * modules/unicase/locale-language-tests (Files): Likewise.
5219         * modules/unicase/tolower-tests (Files): Likewise.
5220         * modules/unicase/totitle-tests (Files): Likewise.
5221         * modules/unicase/toupper-tests (Files): Likewise.
5222         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5223         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5224         * modules/unicase/u8-casefold-tests (Files): Likewise.
5225         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5226         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5227         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5228         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5229         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5230         * modules/unicase/u8-tolower-tests (Files): Likewise.
5231         * modules/unicase/u8-totitle-tests (Files): Likewise.
5232         * modules/unicase/u8-toupper-tests (Files): Likewise.
5233         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5234         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5235         * modules/unicase/u16-casefold-tests (Files): Likewise.
5236         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5237         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5238         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5239         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5240         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5241         * modules/unicase/u16-tolower-tests (Files): Likewise.
5242         * modules/unicase/u16-totitle-tests (Files): Likewise.
5243         * modules/unicase/u16-toupper-tests (Files): Likewise.
5244         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5245         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5246         * modules/unicase/u32-casefold-tests (Files): Likewise.
5247         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5248         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5249         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5250         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5251         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5252         * modules/unicase/u32-tolower-tests (Files): Likewise.
5253         * modules/unicase/u32-totitle-tests (Files): Likewise.
5254         * modules/unicase/u32-toupper-tests (Files): Likewise.
5255         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5256         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5257         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5258         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5259         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5260         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5261         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5262         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5263         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5264         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5265         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5266         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5267         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5268         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5269         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5270         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5271         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5272         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5273         * modules/unictype/block-list-tests (Files): Likewise.
5274         * modules/unictype/block-of-tests (Files): Likewise.
5275         * modules/unictype/block-test-tests (Files): Likewise.
5276         * modules/unictype/category-C-tests (Files): Likewise.
5277         * modules/unictype/category-Cc-tests (Files): Likewise.
5278         * modules/unictype/category-Cf-tests (Files): Likewise.
5279         * modules/unictype/category-Cn-tests (Files): Likewise.
5280         * modules/unictype/category-Co-tests (Files): Likewise.
5281         * modules/unictype/category-Cs-tests (Files): Likewise.
5282         * modules/unictype/category-L-tests (Files): Likewise.
5283         * modules/unictype/category-Ll-tests (Files): Likewise.
5284         * modules/unictype/category-Lm-tests (Files): Likewise.
5285         * modules/unictype/category-Lo-tests (Files): Likewise.
5286         * modules/unictype/category-Lt-tests (Files): Likewise.
5287         * modules/unictype/category-Lu-tests (Files): Likewise.
5288         * modules/unictype/category-M-tests (Files): Likewise.
5289         * modules/unictype/category-Mc-tests (Files): Likewise.
5290         * modules/unictype/category-Me-tests (Files): Likewise.
5291         * modules/unictype/category-Mn-tests (Files): Likewise.
5292         * modules/unictype/category-N-tests (Files): Likewise.
5293         * modules/unictype/category-Nd-tests (Files): Likewise.
5294         * modules/unictype/category-Nl-tests (Files): Likewise.
5295         * modules/unictype/category-No-tests (Files): Likewise.
5296         * modules/unictype/category-P-tests (Files): Likewise.
5297         * modules/unictype/category-Pc-tests (Files): Likewise.
5298         * modules/unictype/category-Pd-tests (Files): Likewise.
5299         * modules/unictype/category-Pe-tests (Files): Likewise.
5300         * modules/unictype/category-Pf-tests (Files): Likewise.
5301         * modules/unictype/category-Pi-tests (Files): Likewise.
5302         * modules/unictype/category-Po-tests (Files): Likewise.
5303         * modules/unictype/category-Ps-tests (Files): Likewise.
5304         * modules/unictype/category-S-tests (Files): Likewise.
5305         * modules/unictype/category-Sc-tests (Files): Likewise.
5306         * modules/unictype/category-Sk-tests (Files): Likewise.
5307         * modules/unictype/category-Sm-tests (Files): Likewise.
5308         * modules/unictype/category-So-tests (Files): Likewise.
5309         * modules/unictype/category-Z-tests (Files): Likewise.
5310         * modules/unictype/category-Zl-tests (Files): Likewise.
5311         * modules/unictype/category-Zp-tests (Files): Likewise.
5312         * modules/unictype/category-Zs-tests (Files): Likewise.
5313         * modules/unictype/category-and-not-tests (Files): Likewise.
5314         * modules/unictype/category-and-tests (Files): Likewise.
5315         * modules/unictype/category-byname-tests (Files): Likewise.
5316         * modules/unictype/category-name-tests (Files): Likewise.
5317         * modules/unictype/category-none-tests (Files): Likewise.
5318         * modules/unictype/category-of-tests (Files): Likewise.
5319         * modules/unictype/category-or-tests (Files): Likewise.
5320         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5321         * modules/unictype/combining-class-tests (Files): Likewise.
5322         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5323         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5324         * modules/unictype/ctype-blank-tests (Files): Likewise.
5325         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5326         * modules/unictype/ctype-digit-tests (Files): Likewise.
5327         * modules/unictype/ctype-graph-tests (Files): Likewise.
5328         * modules/unictype/ctype-lower-tests (Files): Likewise.
5329         * modules/unictype/ctype-print-tests (Files): Likewise.
5330         * modules/unictype/ctype-punct-tests (Files): Likewise.
5331         * modules/unictype/ctype-space-tests (Files): Likewise.
5332         * modules/unictype/ctype-upper-tests (Files): Likewise.
5333         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5334         * modules/unictype/decimal-digit-tests (Files): Likewise.
5335         * modules/unictype/digit-tests (Files): Likewise.
5336         * modules/unictype/mirror-tests (Files): Likewise.
5337         * modules/unictype/numeric-tests (Files): Likewise.
5338         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5339         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5340         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5341         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5342         Likewise.
5343         * modules/unictype/property-bidi-block-separator-tests (Files):
5344         Likewise.
5345         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5346         Likewise.
5347         * modules/unictype/property-bidi-common-separator-tests (Files):
5348         Likewise.
5349         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5350         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5351         Likewise.
5352         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5353         Likewise.
5354         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5355         Likewise.
5356         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5357         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5358         Likewise.
5359         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5360         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5361         Likewise.
5362         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5363         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5364         * modules/unictype/property-bidi-segment-separator-tests (Files):
5365         Likewise.
5366         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5367         * modules/unictype/property-byname-tests (Files): Likewise.
5368         * modules/unictype/property-combining-tests (Files): Likewise.
5369         * modules/unictype/property-composite-tests (Files): Likewise.
5370         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5371         * modules/unictype/property-dash-tests (Files): Likewise.
5372         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5373         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5374         Likewise.
5375         * modules/unictype/property-deprecated-tests (Files): Likewise.
5376         * modules/unictype/property-diacritic-tests (Files): Likewise.
5377         * modules/unictype/property-extender-tests (Files): Likewise.
5378         * modules/unictype/property-format-control-tests (Files): Likewise.
5379         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5380         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5381         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5382         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5383         * modules/unictype/property-hyphen-tests (Files): Likewise.
5384         * modules/unictype/property-id-continue-tests (Files): Likewise.
5385         * modules/unictype/property-id-start-tests (Files): Likewise.
5386         * modules/unictype/property-ideographic-tests (Files): Likewise.
5387         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5388         * modules/unictype/property-ids-trinary-operator-tests (Files):
5389         Likewise.
5390         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5391         * modules/unictype/property-iso-control-tests (Files): Likewise.
5392         * modules/unictype/property-join-control-tests (Files): Likewise.
5393         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5394         * modules/unictype/property-line-separator-tests (Files): Likewise.
5395         * modules/unictype/property-logical-order-exception-tests (Files):
5396         Likewise.
5397         * modules/unictype/property-lowercase-tests (Files): Likewise.
5398         * modules/unictype/property-math-tests (Files): Likewise.
5399         * modules/unictype/property-non-break-tests (Files): Likewise.
5400         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5401         * modules/unictype/property-numeric-tests (Files): Likewise.
5402         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5403         * modules/unictype/property-other-default-ignorable-code-point-tests
5404         (Files): Likewise.
5405         * modules/unictype/property-other-grapheme-extend-tests (Files):
5406         Likewise.
5407         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5408         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5409         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5410         * modules/unictype/property-other-math-tests (Files): Likewise.
5411         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5412         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5413         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5414         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5415         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5416         * modules/unictype/property-private-use-tests (Files): Likewise.
5417         * modules/unictype/property-punctuation-tests (Files): Likewise.
5418         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5419         * modules/unictype/property-radical-tests (Files): Likewise.
5420         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5421         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5422         * modules/unictype/property-space-tests (Files): Likewise.
5423         * modules/unictype/property-terminal-punctuation-tests (Files):
5424         Likewise.
5425         * modules/unictype/property-test-tests (Files): Likewise.
5426         * modules/unictype/property-titlecase-tests (Files): Likewise.
5427         * modules/unictype/property-unassigned-code-value-tests (Files):
5428         Likewise.
5429         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5430         * modules/unictype/property-uppercase-tests (Files): Likewise.
5431         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5432         * modules/unictype/property-white-space-tests (Files): Likewise.
5433         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5434         * modules/unictype/property-xid-start-tests (Files): Likewise.
5435         * modules/unictype/property-zero-width-tests (Files): Likewise.
5436         * modules/unictype/scripts-tests (Files): Likewise.
5437         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5438         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5439         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5440         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5441         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5442         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5443         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5444         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5445         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5446         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5447         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5448         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5449         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5450         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5451         * modules/uninorm/composition-tests (Files): Likewise.
5452         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5453         * modules/uninorm/decomposition-tests (Files): Likewise.
5454         * modules/uninorm/filter-tests (Files): Likewise.
5455         * modules/uninorm/nfc-tests (Files): Likewise.
5456         * modules/uninorm/nfd-tests (Files): Likewise.
5457         * modules/uninorm/nfkc-tests (Files): Likewise.
5458         * modules/uninorm/nfkd-tests (Files): Likewise.
5459         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5460         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5461         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5462         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5463         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5464         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5465         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5466         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5467         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5468         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5469         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5470         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5471         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5472         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5473         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5474         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5475         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5476         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5477         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5478         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5479         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5480         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5481         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5482         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5483         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5484         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5485         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5486         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5487         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5488         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5489         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5490         * modules/uniwidth/u8-width-tests (Files): Likewise.
5491         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5492         * modules/uniwidth/u16-width-tests (Files): Likewise.
5493         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5494         * modules/uniwidth/u32-width-tests (Files): Likewise.
5495         * modules/uniwidth/width-tests (Files): Likewise.
5496         * modules/unlink-tests (Files): Likewise.
5497         * modules/unsetenv-tests (Files): Likewise.
5498         * modules/usleep-tests (Files): Likewise.
5499         * modules/utimens-tests (Files): Likewise.
5500         * modules/utimensat-tests (Files): Likewise.
5501         * modules/vasnprintf-posix-tests (Files): Likewise.
5502         * modules/vasnprintf-tests (Files): Likewise.
5503         * modules/vasprintf-posix-tests (Files): Likewise.
5504         * modules/vasprintf-tests (Files): Likewise.
5505         * modules/vdprintf-posix-tests (Files): Likewise.
5506         * modules/vfprintf-posix-tests (Files): Likewise.
5507         * modules/vprintf-posix-tests (Files): Likewise.
5508         * modules/vsnprintf-posix-tests (Files): Likewise.
5509         * modules/vsnprintf-tests (Files): Likewise.
5510         * modules/vsprintf-posix-tests (Files): Likewise.
5511         * modules/wcrtomb-tests (Files): Likewise.
5512         * modules/wcsnrtombs-tests (Files): Likewise.
5513         * modules/wcsrtombs-tests (Files): Likewise.
5514         * modules/wctype-tests (Files): Likewise.
5515         * modules/wcwidth-tests (Files): Likewise.
5516         * modules/xmemdup0-tests (Files): Likewise.
5517         * modules/xprintf-posix-tests (Files): Likewise.
5518         * modules/xvasprintf-tests (Files): Likewise.
5519
5520 2009-12-24  Eric Blake  <ebb9@byu.net>
5521
5522         test-nanosleep: fix typo
5523         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5524         patch.
5525         Reported by Bruno Haible.
5526
5527 2009-12-24  Bruno Haible  <bruno@clisp.org>
5528
5529         Reduce namespace pollution on glibc systems.
5530         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5531         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5532         systems.
5533         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5534         <getopt.h> on glibc systems.
5535         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5536         systems.
5537         * lib/fcntl.c: Include <unistd.h> here instead.
5538
5539 2009-12-24  Bruno Haible  <bruno@clisp.org>
5540
5541         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5542
5543 2009-12-24  Eric Blake  <ebb9@byu.net>
5544
5545         tests: add signature checks
5546         * tests/signature.h (SIGNATURE_CHECK): New file.
5547         * modules/atexit-tests (Files): Use it.
5548         * modules/btowc-tests (Files): Likewise.
5549         * modules/canonicalize-lgpl-tests (Files): Likewise.
5550         * modules/ceilf-tests (Files): Likewise.
5551         * modules/ceill-tests (Files): Likewise.
5552         * modules/chown-tests (Files): Likewise.
5553         * modules/dprintf-posix-tests (Files): Likewise.
5554         * modules/dup2-tests (Files): Likewise.
5555         * modules/dup3-tests (Files): Likewise.
5556         * modules/duplocale-tests (Files): Likewise.
5557         * modules/fchdir-tests (Files): Likewise.
5558         * modules/fcntl-tests (Files): Likewise.
5559         * modules/fdopendir-tests (Files): Likewise.
5560         * modules/fflush-tests (Files): Likewise.
5561         * modules/flock-tests (Files): Likewise.
5562         * modules/floorf-tests (Files): Likewise.
5563         * modules/floorl-tests (Files): Likewise.
5564         * modules/fnmatch-tests (Files): Likewise.
5565         * modules/fopen-tests (Files): Likewise.
5566         * modules/fprintf-posix-tests (Files): Likewise.
5567         * modules/freopen-tests (Files): Likewise.
5568         * modules/frexp-nolibm-tests (Files): Likewise.
5569         * modules/frexp-tests (Files): Likewise.
5570         * modules/frexpl-nolibm-tests (Files): Likewise.
5571         * modules/frexpl-tests (Files): Likewise.
5572         * modules/fseek-tests (Files): Likewise.
5573         * modules/fseeko-tests (Files): Likewise.
5574         * modules/fsync-tests (Files): Likewise.
5575         * modules/ftell-tests (Files): Likewise.
5576         * modules/ftello-tests (Files): Likewise.
5577         * modules/futimens-tests (Files): Likewise.
5578         * modules/getaddrinfo-tests (Files): Likewise.
5579         * modules/getcwd-tests (Files): Likewise.
5580         * modules/getdelim-tests (Files): Likewise.
5581         * modules/getdtablesize-tests (Files): Likewise.
5582         * modules/getgroups-tests (Files): Likewise.
5583         * modules/gethostname-tests (Files): Likewise.
5584         * modules/getline-tests (Files): Likewise.
5585         * modules/getopt-posix-tests (Files): Likewise.
5586         * modules/gettimeofday-tests (Files): Likewise.
5587         * modules/glob-tests (Files): Likewise.
5588         * modules/iconv-tests (Files): Likewise.
5589         * modules/inet_ntop-tests (Files): Likewise.
5590         * modules/inet_pton-tests (Files): Likewise.
5591         * modules/isblank-tests (Files): Likewise.
5592         * modules/lchown-tests (Files): Likewise.
5593         * modules/ldexpl-tests (Files): Likewise.
5594         * modules/link-tests (Files): Likewise.
5595         * modules/linkat-tests (Files): Likewise.
5596         * modules/lseek-tests (Files): Likewise.
5597         * modules/lstat-tests (Files): Likewise.
5598         * modules/mbrtowc-tests (Files): Likewise.
5599         * modules/mbsinit-tests (Files): Likewise.
5600         * modules/mbsnrtowcs-tests (Files): Likewise.
5601         * modules/mbsrtowcs-tests (Files): Likewise.
5602         * modules/memchr-tests (Files): Likewise.
5603         * modules/memcmp-tests (Files): Likewise.
5604         * modules/memmem-tests (Files): Likewise.
5605         * modules/memrchr-tests (Files): Likewise.
5606         * modules/mkdir-tests (Files): Likewise.
5607         * modules/mkfifo-tests (Files): Likewise.
5608         * modules/mkfifoat-tests (Files): Likewise.
5609         * modules/mknod-tests (Files): Likewise.
5610         * modules/nanosleep-tests (Files): Likewise.
5611         * modules/nl_langinfo-tests (Files): Likewise.
5612         * modules/obstack-printf-tests (Files): Likewise.
5613         * modules/open-tests (Files): Likewise.
5614         * modules/openat-tests (Files): Likewise.
5615         * modules/perror-tests (Files): Likewise.
5616         * modules/pipe2-tests (Files): Likewise.
5617         * modules/poll-tests (Files): Likewise.
5618         * modules/popen-tests (Files): Likewise.
5619         * modules/posix_spawn-tests (Files): Likewise.
5620         * modules/posix_spawnp-tests (Files): Likewise.
5621         * modules/pread-tests (Files): Likewise.
5622         * modules/printf-posix-tests (Files): Likewise.
5623         * modules/pty-tests (Files): Likewise.
5624         * modules/random_r-tests (Files): Likewise.
5625         * modules/rawmemchr-tests (Files): Likewise.
5626         * modules/readlink-tests (Files): Likewise.
5627         * modules/remove-tests (Files): Likewise.
5628         * modules/rename-tests (Files): Likewise.
5629         * modules/renameat-tests (Files): Likewise.
5630         * modules/rmdir-tests (Files): Likewise.
5631         * modules/round-tests (Files): Likewise.
5632         * modules/roundf-tests (Files): Likewise.
5633         * modules/roundl-tests (Files): Likewise.
5634         * modules/select-tests (Files): Likewise.
5635         * modules/setenv-tests (Files): Likewise.
5636         * modules/sigaction-tests (Files): Likewise.
5637         * modules/sleep-tests (Files): Likewise.
5638         * modules/snprintf-posix-tests (Files): Likewise.
5639         * modules/snprintf-tests (Files): Likewise.
5640         * modules/sprintf-posix-tests (Files): Likewise.
5641         * modules/stat-tests (Files): Likewise.
5642         * modules/strcasestr-tests (Files): Likewise.
5643         * modules/strchrnul-tests (Files): Likewise.
5644         * modules/strerror-tests (Files): Likewise.
5645         * modules/strsignal-tests (Files): Likewise.
5646         * modules/strstr-tests (Files): Likewise.
5647         * modules/strtod-tests (Files): Likewise.
5648         * modules/strverscmp-tests (Files): Likewise.
5649         * modules/symlink-tests (Files): Likewise.
5650         * modules/symlinkat-tests (Files): Likewise.
5651         * modules/times-tests (Files): Likewise.
5652         * modules/trunc-tests (Files): Likewise.
5653         * modules/truncf-tests (Files): Likewise.
5654         * modules/truncl-tests (Files): Likewise.
5655         * modules/tsearch-tests (Files): Likewise.
5656         * modules/uname-tests (Files): Likewise.
5657         * modules/unlink-tests (Files): Likewise.
5658         * modules/unsetenv-tests (Files): Likewise.
5659         * modules/usleep-tests (Files): Likewise.
5660         * modules/utimensat-tests (Files): Likewise.
5661         * modules/vasprintf-tests (Files): Likewise.
5662         * modules/vdprintf-posix-tests (Files): Likewise.
5663         * modules/vfprintf-posix-tests (Files): Likewise.
5664         * modules/vprintf-posix-tests (Files): Likewise.
5665         * modules/vsnprintf-posix-tests (Files): Likewise.
5666         * modules/vsnprintf-tests (Files): Likewise.
5667         * modules/vsprintf-posix-tests (Files): Likewise.
5668         * modules/wcrtomb-tests (Files): Likewise.
5669         * modules/wcsnrtombs-tests (Files): Likewise.
5670         * modules/wcsrtombs-tests (Files): Likewise.
5671         * modules/wcwidth-tests (Files): Likewise.
5672         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5673         * tests/test-isinf.c (isinf): Likewise.
5674         * tests/test-isnan.c (isnan): Likewise.
5675         * tests/test-signbit.c (signbit): Likewise.
5676         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5677         declaration, either as macro or with correct signature.
5678         (select): Ensure function under test is declared with correct
5679         signature in correct header.
5680         * tests/test-atexit.c (atexit): Likewise.
5681         * tests/test-btowc.c (btowc): Likewise.
5682         * tests/test-canonicalize-lgpl.c (realpath)
5683         (canonicalize_file_name): Likewise.
5684         * tests/test-ceilf1.c (ceilf): Likewise.
5685         * tests/test-ceill.c (ceill): Likewise.
5686         * tests/test-chown.c (chown): Likewise.
5687         * tests/test-dprintf-posix.c (dprintf): Likewise.
5688         * tests/test-dup2.c (dup2): Likewise.
5689         * tests/test-dup3.c (dup3): Likewise.
5690         * tests/test-duplocale.c (duplocale): Likewise.
5691         * tests/test-fchdir.c (fchdir): Likewise.
5692         * tests/test-fchownat.c (fchownat): Likewise.
5693         * tests/test-fcntl.c (fcntl): Likewise.
5694         * tests/test-fdopendir.c (fdopendir): Likewise.
5695         * tests/test-fflush.c (fflush): Likewise.
5696         * tests/test-flock.c (flock): Likewise.
5697         * tests/test-floorf1.c (floorf): Likewise.
5698         * tests/test-floorl.c (floorl): Likewise.
5699         * tests/test-fnmatch.c (fnmatch): Likewise.
5700         * tests/test-fopen.c (fopen): Likewise.
5701         * tests/test-fprintf-posix.c (fprintf): Likewise.
5702         * tests/test-freopen.c (freopen): Likewise.
5703         * tests/test-frexp.c (frexp): Likewise.
5704         * tests/test-frexpl.c (frexpl): Likewise.
5705         * tests/test-fseek.c (fseek): Likewise.
5706         * tests/test-fseeko.c (fseeko): Likewise.
5707         * tests/test-fstatat.c (fstatat): Likewise.
5708         * tests/test-fsync.c (fsync): Likewise.
5709         * tests/test-ftell.c (ftell): Likewise.
5710         * tests/test-ftello.c (ftello): Likewise.
5711         * tests/test-futimens.c (futimens): Likewise.
5712         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5713         (gai_strerror): Likewise.
5714         * tests/test-getcwd.c (getcwd): Likewise.
5715         * tests/test-getdelim.c (getdelim): Likewise.
5716         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5717         * tests/test-getgroups.c (getgroups): Likewise.
5718         * tests/test-gethostname.c (gethostname): Likewise.
5719         * tests/test-getline.c (getline): Likewise.
5720         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5721         Likewise.
5722         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5723         * tests/test-glob.c (glob, globfree): Likewise.
5724         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5725         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5726         * tests/test-inet_pton.c (inet_pton): Likewise.
5727         * tests/test-isblank.c (isblank): Likewise.
5728         * tests/test-lchown.c (lchown): Likewise.
5729         * tests/test-ldexpl.c (ldexpl): Likewise.
5730         * tests/test-link.c (link): Likewise.
5731         * tests/test-linkat.c (linkat): Likewise.
5732         * tests/test-lseek.c (lseek): Likewise.
5733         * tests/test-lstat.c (lstat): Likewise.
5734         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5735         * tests/test-mbsinit.c (mbsinit): Likewise.
5736         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5737         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5738         * tests/test-memchr.c (memchr): Likewise.
5739         * tests/test-memcmp.c (memcmp): Likewise.
5740         * tests/test-memmem.c (memmem): Likewise.
5741         * tests/test-memrchr.c (memrchr): Likewise.
5742         * tests/test-mkdir.c (mkdir): Likewise.
5743         * tests/test-mkdirat.c (mkdirat): Likewise.
5744         * tests/test-mkfifo.c (mkfifo): Likewise.
5745         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5746         * tests/test-mknod.c (mknod): Likewise.
5747         * tests/test-nanosleep.c (nanosleep): Likewise.
5748         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5749         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5750         Likewise.
5751         * tests/test-open.c (open): Likewise.
5752         * tests/test-openat.c (openat): Likewise.
5753         * tests/test-perror.c (perror): Likewise.
5754         * tests/test-pipe2.c (pipe2): Likewise.
5755         * tests/test-poll.c (poll): Likewise.
5756         * tests/test-popen.c (popen, pclose): Likewise.
5757         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5758         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5759         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5760         (posix_spawn_file_actions_destroy)
5761         (posix_spawn_file_actions_addclose)
5762         (posix_spawn_file_actions_addopen)
5763         (posix_spawn_file_actions_adddup2): Likewise.
5764         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5765         * tests/test-pread.c (pread): Likewise.
5766         * tests/test-printf-posix.c (printf): Likewise.
5767         * tests/test-pty.c (openpty, forkpty): Likewise.
5768         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5769         (random_r): Likewise.
5770         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5771         * tests/test-readlink.c (readlink): Likewise.
5772         * tests/test-remove.c (remove): Likewise.
5773         * tests/test-rename.c (rename): Likewise.
5774         * tests/test-renameat.c (renameat): Likewise.
5775         * tests/test-rmdir.c (rmdir): Likewise.
5776         * tests/test-round1.c (round): Likewise.
5777         * tests/test-roundf1.c (roundf): Likewise.
5778         * tests/test-roundl.c (roundl): Likewise.
5779         * tests/test-setenv.c (setenv): Likewise.
5780         * tests/test-sigaction.c (sigaction): Likewise.
5781         * tests/test-sleep.c (sleep): Likewise.
5782         * tests/test-snprintf.c (snprintf): Likewise.
5783         * tests/test-sprintf-posix.c (sprintf): Likewise.
5784         * tests/test-stat.c (stat): Likewise.
5785         * tests/test-stpncpy.c (stpncpy): Likewise.
5786         * tests/test-strcasestr.c (strcasestr): Likewise.
5787         * tests/test-strchrnul.c (strchrnul): Likewise.
5788         * tests/test-strerror.c (strerror): Likewise.
5789         * tests/test-strsignal.c (strsignal): Likewise.
5790         * tests/test-strstr.c (strstr): Likewise.
5791         * tests/test-strtod.c (strtod): Likewise.
5792         * tests/test-strverscmp.c (strverscmp): Likewise.
5793         * tests/test-symlink.c (symlink): Likewise.
5794         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5795         * tests/test-times.c (times): Likewise.
5796         * tests/test-trunc1.c (trunc): Likewise.
5797         * tests/test-truncf1.c (truncf): Likewise.
5798         * tests/test-truncl.c (truncl): Likewise.
5799         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5800         Likewise.
5801         * tests/test-uname.c (uname): Likewise.
5802         * tests/test-unlink.c (unlink): Likewise.
5803         * tests/test-unlinkat.c (unlinkat): Likewise.
5804         * tests/test-unsetenv.c (unsetenv): Likewise.
5805         * tests/test-usleep.c (usleep): Likewise.
5806         * tests/test-utimensat.c (utimensat): Likewise.
5807         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5808         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5809         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5810         * tests/test-vprintf-posix.c (vprintf): Likewise.
5811         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5812         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5813         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5814         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5815         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5816         * tests/test-wcwidth.c (wcwidth): Likewise.
5817
5818         build: pull in conditional headers during GNULIB_POSIXCHECK
5819         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5820         definitions from any conditionally-included headers.
5821         * lib/stdlib.in.h (includes): Likewise.
5822         * lib/unistd.in.h (includes): Likewise.
5823
5824 2009-12-24  Bruno Haible  <bruno@clisp.org>
5825
5826         * tests/test-argv-iter.c: Include header file being tested immediately
5827         after config.h.
5828         * tests/test-base64.c: Likewise.
5829         * tests/test-flock.c: Likewise.
5830         * tests/test-fsync.c: Likewise.
5831         * tests/test-getdate.c: Likewise.
5832         * tests/test-getndelim2.c: Likewise.
5833         * tests/test-isfinite.c: Likewise.
5834         * tests/test-isinf.c: Likewise.
5835         * tests/test-strerror.c: Likewise.
5836         * tests/test-strsignal.c: Likewise.
5837
5838 2009-12-23  Eric Blake  <ebb9@byu.net>
5839
5840         unistd: work around cygwin bug
5841         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5842         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5843         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5844
5845 2009-12-23  Bruno Haible  <bruno@clisp.org>
5846
5847         localename: More tests.
5848         * tests/test-localename.c (SIZEOF): New macro.
5849         (categories): New variable.
5850         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5851         test_locale_name_default): Add test w.r.t. thread locale.
5852         (test_locale_name_thread): New function.
5853         (main): Invoke it.
5854
5855         localename: Make aware of thread locale.
5856         * lib/localename.h (gl_locale_name_thread): New declaration.
5857         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5858         behaviour with respect to thread locale.
5859         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5860         <langinfo.h>, glthread/lock.h.
5861         (SIZE_BITS): New macro.
5862         (string_hash): New function.
5863         (struct hash_node): New type.
5864         (HASH_TABLE_SIZE): New macro.
5865         (struniq_hash_table, struniq_lock): New variables.
5866         (struniq): New function.
5867         (gl_locale_name_thread): New function.
5868         (gl_locale_name): Invoke it.
5869         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5870         * modules/localename (Depends-on): Add lock.
5871         Reported by Mike Gran <spk121@yahoo.com>.
5872
5873 2009-12-23  Eric Blake  <ebb9@byu.net>
5874
5875         va-args: new module
5876         * modules/va-args: New file.
5877         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5878         * MODULES.html.sh (Core language properties): Mention it.
5879
5880         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5881         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5882         named alias for __attribute__((__unused__)).
5883         * lib/chown.c: Update client.
5884         * lib/fchmodat.c: Likewise.
5885         * lib/fts.c: Likewise.
5886         * lib/getdate.y: Likewise.
5887         * lib/getgroups.c: Likewise.
5888         * lib/getopt.c: Likewise.
5889         * lib/getugroups.c: Likewise.
5890         * lib/mkdir.c: Likewise.
5891         * lib/mkfifo.c: Likewise.
5892         * lib/mkfifoat.c: Likewise.
5893         * lib/mknod.c: Likewise.
5894         * lib/mknodat.c: Likewise.
5895         * lib/readlink.c: Likewise.
5896         * lib/se-context.in.h: Likewise.
5897         * lib/se-selinux.in.h: Likewise.
5898         * lib/sockets.c: Likewise.
5899         * lib/symlink.c: Likewise.
5900         * lib/symlinkat.c: Likewise.
5901         * lib/unicodeio.c: Likewise.
5902         * lib/unistr.h: Likewise.
5903         * tests/test-areadlink.c: Likewise.
5904         * tests/test-areadlinkat.c: Likewise.
5905         * tests/test-filenamecat.c: Likewise.
5906         * tests/test-fseeko.c: Likewise.
5907         * tests/test-ftello.c: Likewise.
5908         * tests/test-getdate.c: Likewise.
5909         * tests/test-getgroups.c: Likewise.
5910         * tests/test-gethostname.c: Likewise.
5911         * tests/test-quotearg.c: Likewise.
5912         * tests/test-version-etc.c: Likewise.
5913         * tests/test-xalloc-die.c: Likewise.
5914         * tests/test-xfprintf-posix.c: Likewise.
5915         * tests/test-xprintf-posix.c: Likewise.
5916         * tests/test-xvasprintf.c: Likewise.
5917
5918         tests: avoid compiler warnings
5919         * tests/test-fcntl.c (main): Delete unused parameters.
5920         * tests/test-freopen-safer.c (main): Likewise.
5921         * tests/test-xalloc-die.c (main): Mark unused parameters.
5922         * tests/test-fseeko.c (main): Likewise.
5923         * tests/test-ftello.c (main): Likewise.
5924         * tests/test-nanosleep.c (main): Avoid declaration warning.
5925         * tests/test-sleep.c (main): Likewise.
5926         * tests/test-unsetenv.c (main): Silence warning about string
5927         literal.
5928         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5929
5930 2009-12-23  Bruno Haible  <bruno@clisp.org>
5931
5932         * tests/test-localename.c (test_locale_name): New function, extracted
5933         from main. Also test mixed situations.
5934         (test_locale_name_posix, test_locale_name_environ,
5935         test_locale_name_default): New functions.
5936         (main): Invoke them all.
5937         * modules/localename-tests (configure.ac): Test for newlocale.
5938
5939 2009-12-23  Bruno Haible  <bruno@clisp.org>
5940
5941         unistd: Ensure getcwd gets declared before being overridden.
5942         * lib/unistd.in.h: Conditionally include <io.h>.
5943
5944 2009-12-22  Bruno Haible  <bruno@clisp.org>
5945
5946         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5947         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5948         (gl_WCHAR_H): Invoke it.
5949         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5950         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5951         Reported by Karl Berry <karl@freefriends.org>.
5952
5953 2009-12-22  Eric Blake  <ebb9@byu.net>
5954
5955         math, unistd: avoid redundant includes
5956         * lib/math.in.h (isnan): No need to re-include <math.h>.
5957         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5958
5959         getsubopt: work around cygwin bug
5960         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5961         avoid conflicting with system getsubopt.
5962         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5963         bug.
5964
5965         getopt: synchronize from glibc
5966         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5967         parameter order.  Adjust all callers.
5968         (_getopt_internal_r, main): Adjust quoting in error messages.
5969         Drop considerations for outdated POSIX 1003.2 error message.
5970         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5971         callers.
5972         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5973
5974         test-getopt: test stderr behavior
5975         * modules/getopt-posix-tests (Depends-on): Add dup2.
5976         * tests/test-getopt.c (ASSERT): Avoid stderr.
5977         (main): Move stderr to a temporary file.
5978         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5979         Instead, add parameter to inform caller if output occurred.
5980         (test_getopt): Adjust all existing tests to expect silence, and
5981         add new tests of leading ":".
5982         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5983         glibc shortcomings with leading "-:" or "+:" in optstring.
5984         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5985         Likewise.
5986         * doc/posix-functions/getopt.texi (getopt): Likewise.
5987
5988         test-getopt: enhance test
5989         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5990         supports optind=0.
5991         * tests/test-getopt.c (OPTIND_MIN): Move...
5992         * tests/test-getopt.h (OPTIND_MIN): ...here.
5993         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5994         Require that optind=0 works, since modern BSD supports it in
5995         addition to optreset, and since coreutils expects it.
5996         (test_getopt_long_only): New test.
5997         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5998         glibc shortcomings with 'W;', and enforcement of optind=0.
5999         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6000         Likewise.
6001
6002 2009-12-21  Bruno Haible  <bruno@clisp.org>
6003
6004         localename: Improvements for MacOS X and Cygwin.
6005         * lib/localename.h (gl_locale_name_environ): New declaration.
6006         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6007         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6008         (gl_locale_name_posix): Invoke it.
6009         (gl_locale_name_default): Add comments. Use Windows native API also on
6010         Cygwin.
6011
6012 2009-12-21  Bruno Haible  <bruno@clisp.org>
6013
6014         Update list of Win32 locale ids.
6015         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6016         (LANG_SAMI): Renamed from LANG_SAAMI.
6017         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6018         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6019         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6020         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6021         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6022         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6023         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6024         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6025         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6026         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6027         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6028         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6029         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6030         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6031         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6032         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6033         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6034         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6035         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6036         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6037         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6038         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6039         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6040         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6041         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6042         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6043         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6044         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6045         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6046         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6047         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6048         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6049         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6050         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6051         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6052         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6053         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6054         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6055         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6056         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6057         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6058         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6059         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6060         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6061         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6062         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6063         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6064         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6065         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6066         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6067         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6068         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6069         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6070         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6071         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6072         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6073         Add more languages and countries for Sami, Sorbian. Add more countries
6074         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6075         for Pashto. Change country for Syriac, Tswana.
6076
6077 2009-12-21  Eric Blake  <ebb9@byu.net>
6078
6079         test-utimens: avoid spurious failure
6080         * tests/test-chown.h (nap): Factor...
6081         * tests/nap.h: ...into new file.
6082         * tests/test-lchown.h (nap): Avoid duplication.
6083         * tests/test-utimens-common.h (nap): Use shared implementation,
6084         necessary on file systems with 1-second resolution.
6085         * modules/chown-tests (Files): Include new file.
6086         * modules/fdutimensat-tests (Files): Likewise.
6087         * modules/futimens-tests (Files): Likewise.
6088         * modules/lchown-tests (Files): Likewise.
6089         * modules/openat-tests (Files): Likewise.
6090         * modules/utimens-tests (Files): Likewise.
6091         * modules/utimensat-tests (Files): Likewise.
6092
6093 2009-12-19  Eric Blake  <ebb9@byu.net>
6094
6095         futimens, utimensat: work around Linux bug
6096         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6097         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6098         * lib/utimensat.c (rpl_utimensat): Work around it.
6099         * lib/futimens.c (rpl_futimens): Adjust comment.
6100
6101         utimens: work around Linux ctime bug
6102         * lib/utimens.c (detect_ctime_bug): New helper function.
6103         (update_timespec): Differentiate between workaround needed for
6104         this bug vs. what is needed for systems that lack utimensat.
6105         (fdutimens, lutimens): Work around bug.
6106
6107         utimens: check for ctime update
6108         * tests/test-utimens-common.h (check_ctime): Define.
6109         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6110         * tests/test-futimens.h (test_futimens): Likewise.
6111         * tests/test-lutimens.h (test_lutimens): Likewise.
6112         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6113         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6114
6115 2009-12-19  Bruno Haible  <bruno@clisp.org>
6116
6117         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6118         * tests/test-dprintf-posix2.sh: New file.
6119         * tests/test-dprintf-posix2.c: New file.
6120         * modules/dprintf-posix-tests (Files): Add them.
6121         (configure.ac): Check for getrlimit and setrlimit.
6122         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6123
6124 2009-12-19  Bruno Haible  <bruno@clisp.org>
6125
6126         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6127         * tests/test-fprintf-posix3.sh: New file.
6128         * tests/test-fprintf-posix3.c: New file.
6129         * modules/fprintf-posix-tests (Files): Add them.
6130         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6131
6132 2009-12-19  Eric Blake  <ebb9@byu.net>
6133
6134         dirfd: fix prototype
6135         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6136         * lib/dirfd.c (dirfd): Likewise.
6137
6138         canonicalize: reduce memory usage
6139         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6140         allocation to size.
6141         Reported by Solar Designer <solar@openwall.com>.
6142
6143 2009-12-19  Bruno Haible  <bruno@clisp.org>
6144
6145         New module attribute 'Applicability'.
6146         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6147         * gnulib-tool: New option --extract-applicability.
6148         (func_usage): Document it.
6149         (sed_extract_prog): Recognize it.
6150         (func_get_applicability): New function.
6151         (func_import): Generalize handling of 'link-warning' module.
6152         * modules/link-warning (Applicability): New section.
6153         * modules/arg-nonnull (Applicability): New section.
6154         Repoted by Simon Josefsson <simon@josefsson.org>.
6155
6156 2009-12-19  Bruno Haible  <bruno@clisp.org>
6157
6158         fflush: tweak
6159         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6160         * lib/fseeko.c (rpl_fseeko): Likewise.
6161
6162 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6163
6164         * lib/gl_list.h: Fix typo in comment.
6165
6166 2009-12-16  Eric Blake  <ebb9@byu.net>
6167
6168         fcntl: use to simplify other modules
6169         * modules/cloexec (Depends-on): Add fcntl.
6170         * modules/fchdir (Depends-on): Likewise.
6171         * modules/fd-safer-flag (Depends-on): Likewise.
6172         * modules/unistd-safer (Depends-on): Likewise.
6173         * modules/dup3 (configure.ac): Set module indicator.
6174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6175         missing.
6176         * lib/fchdir.c (_gl_register_dup): Fix comment.
6177         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6178         * lib/dup-safer.c (dup_safer): Likewise.
6179         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6180         * lib/dup3.c (dup3): Likewise.
6181         * tests/test-fchdir.c (main): Enhance test.
6182         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
6183
6184         fcntl: port portions of fcntl to mingw
6185         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6186         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6187         replacement for mingw.
6188         * modules/fcntl (Description): Update.
6189         (Depends-on): Add dup2.
6190         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6191         * modules/fcntl-h (Makefile.am): Substitute it.
6192         * lib/fcntl.in.h (fcntl): Update declaration.
6193         (F_DUPFD, F_GETFD): New macros, when needed.
6194         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6195         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6196         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6197         we now guarantee.
6198
6199         fcntl: work around cygwin bug in F_DUPFD
6200         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6201         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6202         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6203         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6204         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6205
6206         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6207         * modules/fcntl (Files): List new files.
6208         (configure.ac): Run a test.
6209         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6210         * lib/fcntl.c (rpl_fcntl): Likewise.
6211         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6212         (gl_FCNTL_H): Always replace fcntl.h.
6213         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6214         * lib/fcntl.in.h (fcntl): Declare replacement.
6215         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6216         needed, plus a witness.
6217         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6218         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6219         * tests/test-fcntl.c: New file.
6220         * modules/fcntl-tests: Likewise.
6221
6222         binary-io: avoid potential compilation warning
6223         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6224         directives.
6225
6226         fflush: avoid compilation error on NetBSD
6227         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6228         between off_t and fpos_t, since the latter is sometimes a struct.
6229         * lib/fseeko.c (rpl_fseeko): Likewise.
6230         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6231
6232 2009-12-15  Eric Blake  <ebb9@byu.net>
6233
6234         fcntl-h, stdio, sys_ioctl: fix declarations
6235         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6236         function must not take arguments.
6237         * lib/sys_ioctl.in.h (ioctl): Likewise.
6238         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6239         (open): Add a link warning.
6240
6241 2009-12-15  Jim Meyering  <meyering@redhat.com>
6242
6243         areadlink, areadlink-with-size: relax license to LGPLv2+
6244         * modules/areadlink (License): Relax to LGPLv2+.
6245         * modules/areadlink-with-size (License): Likewise.
6246
6247 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6248             Bruno Haible  <bruno@clisp.org>
6249
6250         *printf: Fix memory leak.
6251         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6252         * lib/vfprintf.c (vfprintf): Likewise.
6253         * lib/dprintf.c (dprintf): Likewise.
6254         * lib/vdprintf.c (vdprintf): Likewise.
6255
6256 2009-12-14  Eric Blake  <ebb9@byu.net>
6257
6258         accept4: adjust module dependencies
6259         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6260
6261         utimens: one more try at avoiding compiler warning
6262         * lib/utimens.c (lutimens): Lower scope of result.
6263
6264 2009-12-13  Bruno Haible  <bruno@clisp.org>
6265
6266         Move the malloc checking from module 'list' to new module 'xlist'.
6267         * modules/xlist: New file.
6268         * lib/gl_xlist.h: New file.
6269         * lib/gl_xlist.c: New file.
6270         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6271         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6272         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6273         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6274         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6275         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6276         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6277         gl_sortedlist_nx_add): New declarations.
6278         (struct gl_list_implementation): Rename and change methods accordingly.
6279         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6280         (gl_list_nx_create): Renamed from gl_list_create.
6281         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6282         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6283         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6284         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6285         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6286         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6287         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6288         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6289         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6290         gl_list_create_empty.
6291         (gl_list_nx_create): Renamed from gl_list_create.
6292         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6293         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6294         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6295         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6296         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6297         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6298         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6299         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6300         * lib/gl_array_list.c: Don't include xalloc.h.
6301         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6302         NULL upon out-of-memory.
6303         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6304         out-of-memory.
6305         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6306         Change return type to 'int'.
6307         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6308         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6309         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6310         upon out-of-memory.
6311         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6312         upon out-of-memory.
6313         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6314         upon out-of-memory.
6315         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6316         upon out-of-memory.
6317         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6318         out-of-memory.
6319         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6320         Update.
6321         (gl_array_list_implementation): Update.
6322         * lib/gl_carray_list.c: Don't include xalloc.h.
6323         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6324         Return NULL upon out-of-memory.
6325         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6326         out-of-memory.
6327         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6328         Change return type to 'int'.
6329         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6330         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6331         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6332         upon out-of-memory.
6333         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6334         upon out-of-memory.
6335         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6336         out-of-memory.
6337         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6338         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6339         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6340         Update.
6341         (gl_carray_list_implementation): Update.
6342         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6343         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6344         gl_linked_create_empty. Return NULL upon out-of-memory.
6345         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6346         out-of-memory.
6347         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6348         Change return type to 'int'. Return -1 upon out-of-memory.
6349         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6350         out-of-memory.
6351         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6352         upon out-of-memory.
6353         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6354         upon out-of-memory.
6355         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6356         NULL upon out-of-memory.
6357         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6358         upon out-of-memory.
6359         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6360         out-of-memory.
6361         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6362         Update.
6363         * lib/gl_linked_list.c: Don't include xalloc.h.
6364         (gl_linked_list_implementation): Update.
6365         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6366         (add_to_bucket): Change return type to 'int'.
6367         (gl_linkedhash_list_implementation): Update.
6368         * lib/gl_anytree_list1.h (free_subtree): New function.
6369         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6370         gl_tree_create_empty. Return NULL upon out-of-memory.
6371         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6372         Change return type to 'int'. Return -1 upon out-of-memory.
6373         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6374         out-of-memory.
6375         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6376         (gl_tree_remove_node): New function, moved here from
6377         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6378         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6379         Update.
6380         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6381         malloc, not xmalloc. Return NULL upon out-of-memory.
6382         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6383         out-of-memory.
6384         (gl_tree_remove_node_from_tree): New function, extracted from
6385         gl_tree_remove_node.
6386         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6387         upon out-of-memory.
6388         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6389         out-of-memory.
6390         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6391         upon out-of-memory.
6392         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6393         upon out-of-memory.
6394         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6395         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6396         not xmalloc. Return NULL upon out-of-memory.
6397         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6398         out-of-memory.
6399         (gl_tree_remove_node_from_tree): New function, extracted from
6400         gl_tree_remove_node.
6401         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6402         upon out-of-memory.
6403         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6404         out-of-memory.
6405         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6406         upon out-of-memory.
6407         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6408         upon out-of-memory.
6409         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6410         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6411         gl_anytree_list1.h before gl_anyavltree_list2.h.
6412         (gl_avltree_list_implementation): Update.
6413         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6414         gl_anytree_list1.h before gl_anyavltree_list2.h.
6415         (gl_rbtree_list_implementation): Update.
6416         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6417         Change return type to 'int'. Return -1 upon out-of-memory. Use
6418         __builtin_expect.
6419         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6420         (gl_avltreehash_list_implementation): Update.
6421         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6422         (gl_rbtreehash_list_implementation): Update.
6423         * modules/array-list (Depends-on): Remove xalloc.
6424         * modules/carray-list (Depends-on): Likewise.
6425         * modules/linked-list (Depends-on): Likewise.
6426         * modules/linkedhash-list (Depends-on): Likewise.
6427         * modules/avltree-list (Depends-on): Likewise.
6428         * modules/rbtree-list (Depends-on): Likewise.
6429         * modules/avltreehash-list (Depends-on): Likewise.
6430         * modules/rbtreehash-list (Depends-on): Likewise.
6431
6432         * modules/xsublist: New file.
6433         * lib/gl_xsublist.h: New file.
6434         * lib/gl_xsublist.c: New file.
6435         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6436         (gl_sublist_nx_create): New declaration.
6437         * lib/gl_sublist.c: Don't include xalloc.h.
6438         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6439         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6440         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6441         Change return type to 'int'. Return -1 upon out-of-memory.
6442         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6443         upon out-of-memory.
6444         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6445         NULL upon out-of-memory.
6446         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6447         upon out-of-memory.
6448         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6449         NULL upon out-of-memory.
6450         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6451         NULL upon out-of-memory.
6452         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6453         upon out-of-memory.
6454         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6455         (gl_sublist_list_implementation): Update.
6456         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6457         upon out-of-memory.
6458         * modules/sublist (Depends-on): Remove xalloc.
6459
6460         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6461         * tests/test-carray_list.c: Likewise.
6462         * tests/test-linked_list.c: Likewise.
6463         * tests/test-linkedhash_list.c: Likewise.
6464         * tests/test-avltree_list.c: Likewise.
6465         * tests/test-rbtree_list.c: Likewise.
6466         * tests/test-avltreehash_list.c: Likewise.
6467         * tests/test-rbtreehash_list.c: Likewise.
6468         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6469         * modules/carray-list-tests (Makefile.am): Likewise.
6470         * modules/linked-list-tests (Makefile.am): Likewise.
6471         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6472         * modules/avltree-list-tests (Makefile.am): Likewise.
6473         * modules/rbtree-list-tests (Makefile.am): Likewise.
6474         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6475         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6476
6477         * NEWS: Mention the changes.
6478
6479         * lib/clean-temp.c: Include gl_xlist.h.
6480         * modules/clean-temp (Depends-on): Add xlist.
6481
6482         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6483         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6484
6485         * tests/test-array_oset.c: Include gl_xlist.h.
6486         * modules/array-oset-tests (Depends-on): Add xlist.
6487
6488         Reported by José E. Marchesi <jemarch@gnu.org>.
6489
6490 2009-12-13  Bruno Haible  <bruno@clisp.org>
6491
6492         Move the malloc checking from module 'oset' to new module 'xoset'.
6493         * modules/xoset: New file.
6494         * lib/gl_xoset.h: New file.
6495         * lib/gl_xoset.c: New file.
6496         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6497         declarations.
6498         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6499         (struct gl_oset_implementation): Rename and change methods accordingly.
6500         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6501         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6502         'int'. Mark as __warn_unused_result__.
6503         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6504         gl_oset_create_empty.
6505         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6506         'int'.
6507         * lib/gl_array_oset.c: Don't include xalloc.h.
6508         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6509         malloc, not xmalloc.
6510         (grow): Change return type to 'int'. Don't call xalloc_die.
6511         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6512         to 'int'.
6513         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6514         'int'.
6515         (gl_array_oset_implementation): Update.
6516         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6517         gl_tree_create_empty.
6518         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6519         'int'.
6520         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6521         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6522         xmalloc.
6523         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6524         not xmalloc.
6525         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6526         xmalloc.
6527         (gl_avltree_oset_implementation): Update.
6528         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6529         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6530         xmalloc.
6531         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6532         not xmalloc.
6533         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6534         xmalloc.
6535         (gl_rbtree_oset_implementation): Update.
6536         * modules/array-oset (Depends-on): Remove xalloc.
6537         * modules/avltree-oset (Depends-on): Likewise.
6538         * modules/rbtree-oset (Depends-on): Likewise.
6539         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6540         * tests/test-avltree_oset.c: Likewise.
6541         * tests/test-rbtree_oset.c: Likewise.
6542         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6543         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6544         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6545         * NEWS: Mention the change.
6546
6547 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6548
6549         maint.mk: allow a project to override release-prep commands
6550         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6551         commands into a new rule.
6552         (release-prep): New rule.
6553         (release-prep-hook): New overridable variable.
6554
6555 2009-12-13  Bruno Haible  <bruno@clisp.org>
6556
6557         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6558
6559 2009-12-13  Jim Meyering  <meyering@redhat.com>
6560
6561         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6562         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6563
6564 2009-12-12  Bruno Haible  <bruno@clisp.org>
6565
6566         duplocale: Tweak.
6567         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6568
6569 2009-12-12  Karl Berry  <karl@gnu.org>
6570
6571         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6572
6573 2009-12-12  Bruno Haible  <bruno@clisp.org>
6574
6575         * m4/po.m4: Undo incorrect untabification.
6576
6577 2009-12-12  Bruno Haible  <bruno@clisp.org>
6578
6579         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6580         * modules/c-strtod (Depends-on): Add locale.
6581         * modules/c-strtold (Depends-on): Likewise.
6582
6583 2009-12-12  Bruno Haible  <bruno@clisp.org>
6584
6585         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6586
6587 2009-12-11  Eric Blake  <ebb9@byu.net>
6588
6589         setenv: relax requirement in light of POSIX ruling
6590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6591         not NULL.
6592         * tests/test-setenv.c (main): Relax test.
6593         * tests/test-unsetenv.c (main): Likewise.
6594         * doc/posix-functions/setenv.texi (setenv): Document this.
6595         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6596
6597 2009-12-11  Bruno Haible  <bruno@clisp.org>
6598
6599         New module 'fd-safer-flag'.
6600         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6601         * lib/dup-safer.c (dup_safer_flag): Remove function.
6602         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6603         * lib/fd-safer.c (fd_safer_flag): Remove function.
6604         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6605         * modules/cloexec (configure.ac): Drop indicator macro.
6606         * modules/fd-safer-flag: New file.
6607         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6608         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6609         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6610
6611 2009-12-11  Bruno Haible  <bruno@clisp.org>
6612
6613         Tests for module 'nl_langinfo'.
6614         * modules/nl_langinfo-tests: New file.
6615         * tests/test-nl_langinfo.sh: New file.
6616         * tests/test-nl_langinfo.c: New file.
6617
6618         New module 'nl_langinfo'.
6619         * lib/nl_langinfo.c: New file.
6620         * m4/nl_langinfo.m4: New file.
6621         * modules/nl_langinfo: New file.
6622         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6623
6624 2009-12-11  Bruno Haible  <bruno@clisp.org>
6625
6626         Tests for module 'langinfo'.
6627         * modules/langinfo-tests: New file.
6628         * tests/test-langinfo.c: New file.
6629
6630         New module 'langinfo'.
6631         * lib/langinfo.in.h: New file.
6632         * m4/langinfo_h.m4: New file.
6633         * modules/langinfo: New file.
6634         * doc/posix-headers/langinfo.texi: Mention the new module.
6635
6636 2009-12-11  Bruno Haible  <bruno@clisp.org>
6637
6638         * lib/config.charset: Untabify.
6639
6640 2009-12-11  Bruno Haible  <bruno@clisp.org>
6641
6642         * modules/unistd-safer (configure.ac): Drop indicator macro.
6643
6644 2009-12-11  Bruno Haible  <bruno@clisp.org>
6645
6646         Move pipe2-safer code to its own file.
6647         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6648         * lib/pipe-safer.c (pipe2_safer): Remove function.
6649         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6650         (Makefile.am): Add it to lib_SOURCES.
6651
6652 2009-12-10  Bruno Haible  <bruno@clisp.org>
6653
6654         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6655
6656 2009-12-10  Bruno Haible  <bruno@clisp.org>
6657
6658         Declare which arguments expect non-NULL values, for GCC and clang.
6659         * build-aux/arg-nonnull.h: New file.
6660         * modules/arg-nonnull: New file.
6661         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6662         (inet_ntop, inet_pton): Use it.
6663         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6664         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6665         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6666         (open, openat): Use it.
6667         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6668         (fnmatch): Use it.
6669         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6670         (getopt, getopt_long, getopt_long_only): Use it.
6671         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6672         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6673         Use it.
6674         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6675         (iconv_open): Use it.
6676         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6677         (strtoimax, strtoumax): Use it.
6678         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6679         (duplocale): Use it.
6680         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6681         (frexp, frexpl): Use it.
6682         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6683         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6684         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6685         (tsearch, tfind, tdelete, twalk): Use it.
6686         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6687         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6688         sigpending): Use it.
6689         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6690         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6691         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6692         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6693         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6694         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6695         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6696         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6697         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6698         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6699         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6700         Use it.
6701         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6702         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6703         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6704         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6705         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6706         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6707         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6708         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6709         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6710         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6711         strtoull, unsetenv): Use it.
6712         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6713         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6714         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6715         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6716         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6717         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6718         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6719         (strcasecmp, strncasecmp): Use it.
6720         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6721         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6722         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6723         rpl_setsockopt): Use it.
6724         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6725         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6726         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6727         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6728         (gettimeofday): Use it.
6729         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6730         (times): Use it.
6731         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6732         (uname): Use it.
6733         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6734         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6735         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6736         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6737         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6738         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6739         unlinkat, write): Use it.
6740         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6741         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6742         * lib/argv-iter.h: Include arg-nonnull.h.
6743         (_ATTRIBUTE_NONNULL_): Remove macro.
6744         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6745         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6746         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6747         optimization.
6748         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6749         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6750         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6751         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6752         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6753         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6754         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6755         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6756         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6757         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6758         * modules/dirent (Depends-on): Add arg-nonnull.
6759         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6760         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6761         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6762         * modules/fnmatch (Depends-on): Add arg-nonnull.
6763         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6764         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6765         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6766         * modules/glob (Depends-on): Add arg-nonnull.
6767         (Makefile.am): Insert arg-nonnull.h into glob.h.
6768         * modules/iconv_open (Depends-on): Add arg-nonnull.
6769         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6770         * modules/inttypes (Depends-on): Add arg-nonnull.
6771         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6772         * modules/locale (Depends-on): Add arg-nonnull.
6773         (Makefile.am): Insert arg-nonnull.h into locale.h.
6774         * modules/math (Depends-on): Add arg-nonnull.
6775         (Makefile.am): Insert arg-nonnull.h into math.h.
6776         * modules/netdb (Depends-on): Add arg-nonnull.
6777         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6778         * modules/search (Depends-on): Add arg-nonnull.
6779         (Makefile.am): Insert arg-nonnull.h into search.h.
6780         * modules/signal (Depends-on): Add arg-nonnull.
6781         (Makefile.am): Insert arg-nonnull.h into signal.h.
6782         * modules/spawn (Depends-on): Add arg-nonnull.
6783         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6784         * modules/stdio (Depends-on): Add arg-nonnull.
6785         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6786         * modules/stdlib (Depends-on): Add arg-nonnull.
6787         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6788         * modules/string (Depends-on): Add arg-nonnull.
6789         (Makefile.am): Insert arg-nonnull.h into string.h.
6790         * modules/strings (Depends-on): Add arg-nonnull.
6791         (Makefile.am): Insert arg-nonnull.h into strings.h.
6792         * modules/sys_socket (Depends-on): Add arg-nonnull.
6793         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6794         * modules/sys_stat (Depends-on): Add arg-nonnull.
6795         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6796         * modules/sys_time (Depends-on): Add arg-nonnull.
6797         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6798         * modules/sys_times (Depends-on): Add arg-nonnull.
6799         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6800         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6801         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6802         * modules/time (Depends-on): Add arg-nonnull.
6803         (Makefile.am): Insert arg-nonnull.h into time.h.
6804         * modules/unistd (Depends-on): Add arg-nonnull.
6805         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6806         * modules/wchar (Depends-on): Add arg-nonnull.
6807         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6808         * modules/argv-iter (Depends-on): Add arg-nonnull.
6809         * tests/test-canonicalize.c (null_ptr): New function.
6810         (main): Use it.
6811         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6812         (main): Use it.
6813         * tests/test-memmem.c (null_ptr): New function.
6814         (main): Use it.
6815         Reported by Jim Meyering.
6816
6817 2009-12-10  Bruno Haible  <bruno@clisp.org>
6818
6819         Use spaces for indentation, not tabs.
6820         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6821         * m4/*.m4: Untabify.
6822         * build-aux/*.h: Untabify.
6823         * tests/**/*.[hc]: Untabify.
6824         * README: New section "Indent with spaces, not TABs", based on
6825         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6826         * NEWS: Mention the change.
6827
6828 2009-12-10  Bruno Haible  <bruno@clisp.org>
6829
6830         pty test: Fix link error.
6831         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6832         test_pty_LDADD.
6833
6834 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6835
6836         * modules/pty: New file.
6837         * modules/pty-tests: New file.
6838         * m4/pty.m4: New file.
6839         * tests/test-pty.c: New file.
6840         * doc/glibc-headers/pty.texi: Modified.
6841         * doc/glibc-functions/forkpty.texi: Modified.
6842         * doc/glibc-functions/openpty.texi: Modified.
6843
6844 2009-12-10  Bruno Haible  <bruno@clisp.org>
6845
6846         Avoid syntax error in C++ mode.
6847         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6848
6849 2009-12-10  Bruno Haible  <bruno@clisp.org>
6850
6851         Use sed with option -e.
6852         * gnulib-tool (func_version, func_emit_copyright_notice,
6853         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6854         option -e to sed.
6855         * modules/link-warning (Makefile.am): Likewise.
6856
6857 2009-12-10  Jim Meyering  <meyering@redhat.com>
6858
6859         mgetgroups: do not write bytes beyond end of malloc'd buffer
6860         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6861         username, we call getgroups with a one-element-shorter buffer,
6862         but still told it the length was original, max_n_groups.
6863
6864 2009-12-09  Eric Blake  <ebb9@byu.net>
6865
6866         cloexec: relax license
6867         * modules/cloexec (Maintainer): Add myself.
6868         (License): Use LGPL, not GPL.
6869
6870         link-warning: optimize generation
6871         * modules/link-warning (Makefile.am): Reduce process usage.
6872
6873 2009-12-09  Bruno Haible  <bruno@clisp.org>
6874
6875         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6876         workaround was added on 2009-11-17.
6877
6878 2009-12-09  Jim Meyering  <meyering@redhat.com>
6879             Bruno Haible  <bruno@clisp.org>
6880
6881         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6882         * modules/link-warning (Makefile.am): Make the comment-removing sed
6883         command more robust in the face of bootstrap-prepended comment lines.
6884
6885 2009-12-09  Bruno Haible  <bruno@clisp.org>
6886
6887         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6888         most one group.
6889
6890 2009-12-09  Simon Josefsson <simon@josefsson.org>
6891             Bruno Haible  <bruno@clisp.org>
6892
6893         * build-aux/link-warning.h: Add copyright notice.
6894         * modules/link-warning (Makefile.am): Generate link-warning.h from
6895         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6896         * NEWS: Mention change in link-warning module.
6897         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6898         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6899         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6900         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6901         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6902         * modules/math (Makefile.am): Add dependency to math.h.
6903         * modules/search (Makefile.am): Add dependency to search.h.
6904         * modules/signal (Makefile.am): Add dependency to signal.h.
6905         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6906         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6907         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6908         * modules/string (Makefile.am): Add dependency to string.h.
6909         * modules/strings (Makefile.am): Add dependency to strings.h.
6910         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6911         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6912         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6913         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6914         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6915         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6916         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6917         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6918         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6919
6920 2009-12-09  Bruno Haible  <bruno@clisp.org>
6921
6922         fchdir: Optimize away rpl_fstat when possible.
6923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6924         REPLACE_OPEN_DIRECTORY.
6925         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6926
6927 2009-12-09  Bruno Haible  <bruno@clisp.org>
6928
6929         * lib/fchdir.c: Update comment.
6930
6931 2009-12-09  Bruno Haible  <bruno@clisp.org>
6932
6933         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6934
6935 2009-12-08  Eric Blake  <ebb9@byu.net>
6936
6937         fchdir: avoid memory leak on re-registration.
6938         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6939
6940 2009-12-08  Jim Meyering  <meyering@redhat.com>
6941
6942         init.sh: avoid Solaris 10 /bin/sh portability problem
6943         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6944         sourced script:
6945           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6946           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6947           bar
6948         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6949         and two tests used that idiom.
6950         * tests/init.sh: Update suggested usage comments.
6951         (path_prepend_): New function, to be used in place
6952         of the --src-path=DIR option.
6953         (setup_): Move PATH-prepending code into path_prepend_.
6954         * tests/test-pread.sh: Adapt to new usage.
6955         * tests/test-xalloc-die.sh: Likewise.
6956
6957 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6958
6959         * doc/gnulib.texi (Glibc pty.h): Add.
6960         * doc/glibc-functions/forkpty.texi: Add.
6961         * doc/glibc-functions/openpty.texi: Add.
6962         Suggested by Bruno Haible.
6963
6964 2009-12-08  Eric Blake  <ebb9@byu.net>
6965
6966         fchdir: fix logic bugs
6967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6968         * tests/test-fchdir.c (main): Enhance test.
6969         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6970         is in use.
6971
6972         dup2: fix logic bugs
6973         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6974         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6975         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6976         exists.
6977         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6978
6979 2009-12-07  Eric Blake  <ebb9@byu.net>
6980
6981         unlink: fix m4 detection
6982         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6983
6984         unistd-safer: add unit test
6985         * modules/unistd-safer-tests: New file.
6986         * tests/test-dup-safer.c: Likewise.
6987         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6988         * tests/test-dup2.c (setmode): Likewise.
6989         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6990
6991         cloexec: preserve text vs. binary across dup_cloexec
6992         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6993         mode.
6994         * modules/dup2-tests (Depends-on): Add binary-io.
6995         * modules/cloexec-tests (Depends-on): Likewise.
6996         * tests/test-dup2.c (setmode, is_mode): New helpers.
6997         (main): Add tests that translation mode is preserved.
6998         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6999         Reported by Bruno Haible.
7000
7001         mgetgroups: reduce duplicate listings
7002         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7003         resulting array.
7004         * tests/test-chown.h (test_chown): Simplify client.
7005         * tests/test-lchown.h (test_lchown): Likewise.
7006
7007 2009-12-06  Bruno Haible  <bruno@clisp.org>
7008
7009         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7010         value.
7011
7012 2009-12-06  Bruno Haible  <bruno@clisp.org>
7013
7014         * lib/progname.c: Include stdio.h, stdlib.h.
7015         (set_program_name): Reject a NULL argument.
7016
7017 2009-12-05  Eric Blake  <ebb9@byu.net>
7018
7019         pipe2-safer: new module
7020         * modules/pipe2-safer: New file.
7021         * lib/unistd-safer.h (pipe2_safer): New prototype.
7022         * lib/unistd--.h (pipe2): New wrapper.
7023         * lib/pipe-safer.c (pipe2_safer): New function.
7024         * modules/pipe (Depends-on): Add pipe2-safer.
7025         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7026
7027         stdlib-safer: preserve cloexec flag for mkostemp[s]
7028         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7029         fd_safer_flag.
7030
7031         unistd-safer: allow preservation of cloexec status via flag
7032         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7033         prototypes.
7034         * lib/dup-safer.c (dup_safer_flag): New function.
7035         * lib/fd-safer.c (fd_safer_flag): Likewise.
7036         * modules/cloexec (configure.ac): Set witness.
7037
7038         test-dup2: enhance test
7039         * modules/dup2-tests (Depends-on): Add cloexec.
7040         * tests/test-dup2.c (main): Enhance test.
7041
7042         cloexec: add dup_cloexec
7043         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7044         header and comments.
7045         * lib/cloexec.c (set_cloexec_flag): Add comments.
7046         (dup_cloexec): New function, with mingw implementation borrowed
7047         from...
7048         * lib/w32spawn.h (dup_noinherit): ...here.
7049         * modules/execute (Depends-on): Add cloexec.
7050         * modules/pipe (Depends-on): Likewise.
7051         * modules/cloexec (Depends-on): Add dup2.
7052         * modules/cloexec-tests (Files): New file.
7053         * tests/test-cloexec.c: Likewise.
7054
7055         test-xalloc-die: fix test for mingw
7056         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7057         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7058         directory and .exe suffix off argv[0] output.
7059
7060         test-fseeko: fix test for mingw
7061         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7062         than undefining fseek, so test will pass on mingw.
7063
7064 2009-12-05  Bruno Haible  <bruno@clisp.org>
7065
7066         * lib/progname.h (set_program_name): Clarify specification.
7067         * lib/progname.c (set_program_name): Likewise.
7068         Reported by Jim Meyering.
7069
7070 2009-12-05  Jim Meyering  <meyering@redhat.com>
7071
7072         maint.mk: backslash-escape parens in default regexp
7073         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7074         backslash-escape the literal parentheses.
7075
7076         maint.mk: news-date-check: use grep -E
7077         * top/maint.mk (today): Define a Make variable, not a...
7078         (news-date-check): ...shell variable.
7079         (news-date-regexp): Use the Make variable.
7080         Use grep's -E option.  Change the failing diagnostic to mention
7081         the variable, $(news-date-regexp).
7082
7083 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7084
7085         maintainer-makefile: allow customization of NEWS entry format
7086         * top/maint.mk (news-date-regexp): New overridable variable.
7087         (news-date-check): Use it.
7088
7089 2009-12-04  Eric Blake  <ebb9@byu.net>
7090
7091         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7092         * lib/mgetgroups.h (xgetgroups): New prototype.
7093         * lib/mgetgroups.c (xgetgroups): New wrapper.
7094         (mgetgroups): Handle ENOSYS.
7095         * modules/mgetgroups (Depends-on): Add realloc.
7096         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7097
7098         mgetgroups: avoid argument promotion issues with -1
7099         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7100         for invalid gid_t.
7101         * tests/test-chown.h (getegid, test_chown): Likewise.
7102         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7103
7104 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7105
7106         exclude: Fix header file problems.
7107         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7108
7109 2009-12-01  Jim Meyering  <meyering@redhat.com>
7110
7111         fts: fts_open: do not let an empty string cause immediate failure
7112         This is required in support of GNU rm, for which the command
7113         "rm A '' B" must process and remove both A and B, in spite of
7114         the empty string argument.
7115         * lib/fts.c (fts_open): Do not let the presence of an empty string
7116         cause fts_open to fail immediately.  Most fts-using tools must be
7117         able to process all arguments, in order, and can be expected to
7118         diagnose such arguments themselves.
7119
7120 2009-11-30  Eric Blake  <ebb9@byu.net>
7121
7122         utimens: fix compilation error
7123         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7124         Declare variable at right scope.
7125
7126 2009-11-29  Jim Meyering  <meyering@redhat.com>
7127
7128         bootstrap: handle perl-5.11's changed --version output
7129         * build-aux/bootstrap (get_version): Handle perl separately,
7130         since perl-5.11's --version output is different.
7131
7132 2009-11-28  Jim Meyering  <meyering@redhat.com>
7133
7134         userspec: depend on the inttostr module, too
7135         * modules/userspec (Depends-on): Add inttostr.
7136
7137         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7138         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7139         number of MAXUID when it evaluates to (uid_t) -1.
7140         Likewise for group ID.  Reported by Matt McCutchen in
7141         <http://savannah.gnu.org/bugs/?28113>
7142
7143         userspec: reformat to use spaces, not TABs
7144         * lib/userspec.c: Expand TABs to spaces.
7145         Add Emacs' "indent-tabs-mode: nil" hint.
7146
7147 2009-11-27  Eric Blake  <ebb9@byu.net>
7148
7149         getopt-gnu: flush out another BSD bug
7150         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7151         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7152         flush out BSD bug.
7153         * tests/test-getopt.h (test_getopt): End lists with NULL.
7154         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7155         (test_getopt_long_posix): Enhance test.
7156         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7157         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7158         getopt-gnu.
7159         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7160         Likewise.
7161
7162 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7163
7164         * modules/idpriv-droptemp-tests (Notice): Fix text.
7165
7166 2009-11-27  Jim Meyering  <meyering@redhat.com>
7167
7168         test-xalloc-die: avoid spurious failure due to libtool argv difference
7169         In a libtool-enabled project, this test would fail due to a difference
7170         in the emitted program name, e.g.,
7171         -test-xalloc-die: memory exhausted
7172         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7173         Use program to avoid that.
7174         * modules/xalloc-die-tests (Depends-on): Add progname.
7175         * tests/test-xalloc-die.c: Include progname.h".
7176         (program_name): Remove decl.
7177         (main): Call set_program_name.
7178         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7179
7180 2009-11-26  Richard Jones  <rjones@redhat.com>
7181
7182         w32sock: leave win32 error in place.
7183         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7184
7185 2009-11-26  Eric Blake  <ebb9@byu.net>
7186
7187         init.sh: suggest to use skip_ and fail_ functions in comments
7188         * tests/init.sh: Add a sentence.
7189
7190 2009-11-25  Bruno Haible  <bruno@clisp.org>
7191
7192         init.sh: add documentation in comments
7193         * tests/init.sh: Add some developer and user documentation.
7194
7195 2009-11-26  Jim Meyering  <meyering@redhat.com>
7196
7197         init.sh: accommodate even those who specify bogus srcdir manually
7198         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7199         configure-time tests to be sanitized, so that there is no need to
7200         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7201         (with no double quotes) suffices.  However, since tests may be
7202         invoked manually, and since you may explicitly set srcdir to the
7203         name of a directory containing spaces, do quote its uses here.
7204         * tests/test-pread.sh: Likewise.
7205         Suggested by Bruno Haible.
7206
7207         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7208         * tests/test-pread.sh: Write no data into the pipe, because
7209         test-pread actually reads none.  This avoids a diagnostic,
7210         "bash: echo: write error: Broken pipe", that arises in the unusual
7211         event something is ignoring SIGPIPE, and might be interpreted
7212         as some sort of failure.  Reported by Bruno Haible.
7213
7214 2009-11-25  Jim Meyering  <meyering@redhat.com>
7215
7216         test-pread: cover failure with ESPIPE and EINVAL
7217         * tests/test-pread.c (main): Test for failure, too.
7218         * tests/test-pread.sh: Invoke with stdin on a pipe.
7219         Suggested by Eric Blake.
7220
7221         pread: improvement and fix
7222         * modules/pread (Depends-on): Depend on lseek, for portability to
7223         e.g., mingw.  Suggested by Eric Blake.
7224         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7225
7226         unistd.in.h: correct declaration of pread
7227         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7228         Reported by Richard W.M. Jones.
7229
7230         test-pread.sh: distribute the test script
7231         * modules/pread-tests (Files): Include test-pread.sh.
7232
7233         test-pread.sh: clean up
7234         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7235         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7236         That is unnecessary, since it's always ".".
7237         Suggestion from Eric Blake.
7238
7239         test-pread.sh: make executable
7240         * tests/test-pread.sh: Set executable bit.
7241         Reported by Eric Blake.
7242
7243         correct typo in test-pread.sh
7244         * tests/test-pread.sh: Add #! line.
7245
7246         test pread
7247         * tests/test-pread.c: New file.
7248         * tests/test-pread.sh: Likewise.
7249         * modules/pread-tests: Likewise.
7250
7251         pread: new module
7252         * modules/pread: New file.
7253         * lib/unistd.in.h (pread): Define/declare.
7254         * lib/pread.c (pread): New file.
7255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7256         * modules/unistd (Makefile.am): Substitute witnesses.
7257         * doc/posix-functions/pread.texi (pread): Update.
7258         * MODULES.html.sh: Add pread.
7259
7260 2009-11-25  Jim Meyering  <meyering@redhat.com>
7261
7262         tests/init.sh: new file to be used via most *.sh tests
7263         * tests/init.sh: New file.
7264
7265 2009-11-25  Eric Blake  <ebb9@byu.net>
7266
7267         utimens: work around older Linux failure with symlinks
7268         * lib/utimens.c (lutimensat_works_really): New variable.
7269         (fdutimens, lutimens): Use it to manage kernels that support
7270         nanosecond times on files, but not on symlinks.
7271         Reported by OndÅ™ej Vašík.
7272
7273         utimes: fix configure grammar
7274         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7275
7276 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7277
7278         regex: Fix fastmap for multibyte character ranges.
7279         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7280         characters when a multibyte character range is included.
7281
7282 2009-11-22  Andy Wingo  <wingo@pobox.com>
7283
7284         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7285         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7286
7287 2009-11-24  Bruno Haible  <bruno@clisp.org>
7288
7289         doc: Most *_l functions exist in MacOS X 10.5.
7290         * doc/posix-functions/duplocale.texi: Update platforms list.
7291         * doc/posix-functions/freelocale.texi: Likewise.
7292         * doc/posix-functions/newlocale.texi: Likewise.
7293         * doc/posix-functions/uselocale.texi: Likewise.
7294         * doc/posix-functions/isalnum_l.texi: Likewise.
7295         * doc/posix-functions/isalpha_l.texi: Likewise.
7296         * doc/posix-functions/isblank_l.texi: Likewise.
7297         * doc/posix-functions/iscntrl_l.texi: Likewise.
7298         * doc/posix-functions/isdigit_l.texi: Likewise.
7299         * doc/posix-functions/isgraph_l.texi: Likewise.
7300         * doc/posix-functions/islower_l.texi: Likewise.
7301         * doc/posix-functions/isprint_l.texi: Likewise.
7302         * doc/posix-functions/ispunct_l.texi: Likewise.
7303         * doc/posix-functions/isspace_l.texi: Likewise.
7304         * doc/posix-functions/isupper_l.texi: Likewise.
7305         * doc/posix-functions/iswalnum_l.texi: Likewise.
7306         * doc/posix-functions/iswalpha_l.texi: Likewise.
7307         * doc/posix-functions/iswblank_l.texi: Likewise.
7308         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7309         * doc/posix-functions/iswctype_l.texi: Likewise.
7310         * doc/posix-functions/iswdigit_l.texi: Likewise.
7311         * doc/posix-functions/iswgraph_l.texi: Likewise.
7312         * doc/posix-functions/iswlower_l.texi: Likewise.
7313         * doc/posix-functions/iswprint_l.texi: Likewise.
7314         * doc/posix-functions/iswpunct_l.texi: Likewise.
7315         * doc/posix-functions/iswspace_l.texi: Likewise.
7316         * doc/posix-functions/iswupper_l.texi: Likewise.
7317         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7318         * doc/posix-functions/isxdigit_l.texi: Likewise.
7319         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7320         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7321         * doc/posix-functions/strcoll_l.texi: Likewise.
7322         * doc/posix-functions/strfmon_l.texi: Likewise.
7323         * doc/posix-functions/strftime_l.texi: Likewise.
7324         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7325         * doc/posix-functions/strxfrm_l.texi: Likewise.
7326         * doc/posix-functions/tolower_l.texi: Likewise.
7327         * doc/posix-functions/toupper_l.texi: Likewise.
7328         * doc/posix-functions/towctrans_l.texi: Likewise.
7329         * doc/posix-functions/towlower_l.texi: Likewise.
7330         * doc/posix-functions/towupper_l.texi: Likewise.
7331         * doc/posix-functions/wcscoll_l.texi: Likewise.
7332         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7333         * doc/posix-functions/wctrans_l.texi: Likewise.
7334         * doc/posix-functions/wctype_l.texi: Likewise.
7335         * doc/glibc-functions/strptime_l.texi: Likewise.
7336         * doc/glibc-functions/strtod_l.texi: Likewise.
7337         * doc/glibc-functions/strtof_l.texi: Likewise.
7338         * doc/glibc-functions/strtol_l.texi: Likewise.
7339         * doc/glibc-functions/strtold_l.texi: Likewise.
7340         * doc/glibc-functions/strtoll_l.texi: Likewise.
7341         * doc/glibc-functions/strtoul_l.texi: Likewise.
7342         * doc/glibc-functions/strtoull_l.texi: Likewise.
7343         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7344         * doc/glibc-functions/wcstod_l.texi: Likewise.
7345         * doc/glibc-functions/wcstof_l.texi: Likewise.
7346         * doc/glibc-functions/wcstol_l.texi: Likewise.
7347         * doc/glibc-functions/wcstold_l.texi: Likewise.
7348         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7349         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7350         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7351
7352 2009-11-24  Bruno Haible  <bruno@clisp.org>
7353
7354         duplocale: Fix logic bug.
7355         * lib/duplocale.c: Don't include <langinfo.h>.
7356         (_NL_LOCALE_NAME): Remove macro.
7357         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7358         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7359
7360 2009-11-23  Jim Meyering  <meyering@redhat.com>
7361
7362         test-update-copyright: don't hard-code /usr/bin/perl
7363         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7364         perl to print the current year.  Gilles Espinasse reported that
7365         the replaced use of perl was hard-coded as /usr/bin/perl.
7366
7367 2009-11-23  Bruno Haible  <bruno@clisp.org>
7368
7369         duplocale: Add support for glibc 2.3.x.
7370         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7371
7372 2009-11-22  Bruno Haible  <bruno@clisp.org>
7373
7374         vasnprintf: Tiny optimization.
7375         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7376         MacOS X.
7377
7378 2009-11-22  Bruno Haible  <bruno@clisp.org>
7379
7380         Tests for module 'duplocale'.
7381         * modules/duplocale-tests: New file.
7382         * tests/test-duplocale.c: New file.
7383
7384         New module 'duplocale'.
7385         * m4/duplocale.m4: New file.
7386         * lib/locale.in.h (duplocale): New declaration.
7387         * lib/duplocale.c: New file.
7388         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7389         gl_LOCALE_H_DEFAULTS): New macros.
7390         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7391         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7392         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7393         REPLACE_DUPLOCALE.
7394         * modules/duplocale: New file.
7395         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7396
7397 2009-11-22  Bruno Haible  <bruno@clisp.org>
7398
7399         * modules/locale-tests (configure.ac): Test for newlocale function.
7400         * tests/test-locale.c: When the system has extended locale functions,
7401         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7402
7403         locale: Make locale_t available when possible.
7404         * lib/locale.in.h: Include <xlocale.h> when it exists.
7405         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7406         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7407         * modules/locale (Depends-on): Add extensions.
7408         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7409         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7410
7411 2009-11-22  Bruno Haible  <bruno@clisp.org>
7412
7413         Add comments.
7414         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7415         invocation.
7416         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7417         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7418         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7419
7420 2009-11-22  Bruno Haible  <bruno@clisp.org>
7421
7422         error: account for the possibility of freopen (stdout).
7423         * lib/error.c: Include <unistd.h>.
7424         (flush_stdout): New function, extracted from error and error_at_line.
7425         Determine stdout's fd dynamically.
7426         (error, error_at_line): Invoke flush_stdout.
7427         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7428         * modules/error (Depends-on): Add unistd.
7429
7430 2009-11-22  Bruno Haible  <bruno@clisp.org>
7431
7432         diffseq: Add comment.
7433         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7434
7435 2009-11-22  Jim Meyering  <meyering@redhat.com>
7436
7437         c-stack: avoid defining an unused static function
7438         * lib/c-stack.c (find_stack_direction): Do not define this function
7439         when it will not be used.
7440
7441         diffseq: avoid spurious gcc warnings
7442         * lib/diffseq.h (IF_LINT2): Define.
7443         (compareseq): Use it to initialize two members of "part".
7444         This avoids two used-uninitialized warnings.
7445
7446 2009-11-21  Jim Meyering  <meyering@redhat.com>
7447
7448         c-stack: avoid "ignoring return value of `write'" warning
7449         * lib/c-stack.c: Include "ignore-value.h".
7450         (die): Explicitly ignore each write return value.
7451         * modules/c-stack (Depends-on): Add ignore-value.
7452
7453 2009-11-21  Bruno Haible  <bruno@clisp.org>
7454
7455         diffseq: reduce scope of variable 'best'.
7456         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7457         variable, earlier used for two different purposes.
7458
7459 2009-11-21  Jim Meyering  <meyering@redhat.com>
7460
7461         diffseq: remove useless assignment to "best"
7462         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7463         assignment.  At that point "best" is already guaranteed to be zero.
7464
7465 2009-11-20  Eric Blake  <ebb9@byu.net>
7466
7467         build: mention ftp redirector in release announcements
7468         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7469         values that used to come from cfg.mk; mention FTP redirect URL.
7470         * build-aux/announce-gen: Mention the mirror list.
7471         Suggested by Karl Berry.
7472
7473         nanosleep: improve port to mingw
7474         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7475         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7476         LIB_NANOSLEEP, but only when needed.
7477         * modules/select (Link): Document LIBSOCKET.
7478         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7479         enough.
7480
7481         nanosleep: work around cygwin bug
7482         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7483         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7484         bug.
7485         (getnow): Delete, not needed.
7486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7487         LIB_CLOCK_GETTIME.
7488         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7489         clock-time, gettime.
7490         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7491         bug.
7492         * modules/nanosleep-tests: New test.
7493         * tests/test-nanosleep.c: New file.
7494
7495         sleep: work around cygwin bug
7496         * lib/sleep.c (rpl_sleep): Work around the bug.
7497         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7498         (gl_PREREQ_SLEEP): Delete unused macro.
7499         * modules/sleep (Depends-on): Add verify.
7500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7501         * modules/unistd (Makefile.am): Substitute witness.
7502         * lib/unistd.in.h (sleep): Update prototype.
7503         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7504         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7505         * modules/sleep-tests (Depends-on): Check for alarm.
7506
7507 2009-11-20  Jim Meyering  <meyering@redhat.com>
7508
7509         maint.mk: improve sc_prohibit_magic_number_exit
7510         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7511         so it does not match uses like System.exit(1).
7512         Add comments showing how to correct all offenders.
7513
7514 2009-11-19  Eric Blake  <ebb9@byu.net>
7515
7516         xalloc-die-tests: add missing library
7517         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7518
7519         test-xvasprintf: silence compiler warnings
7520         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7521         empty string from gcc.
7522
7523 2009-11-19  Jim Meyering  <meyering@redhat.com>
7524
7525         xfreopen: new module, from coreutils
7526         * modules/xfreopen: New module.
7527         * lib/xfreopen.c: New file.
7528         * lib/xfreopen.h: New file.
7529         * MODULES.html.sh (File stream based Input/Output"): Add it.
7530
7531 2009-11-19  Eric Blake  <ebb9@byu.net>
7532
7533         manywarnings: depend on warnings
7534         * modules/manywarnings (Depends-on): Add warnings.
7535
7536         build: avoid compiler warnings
7537         * lib/select.c (rpl_select): Delete unused variable.
7538         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7539
7540 2009-11-18  Eric Blake  <ebb9@byu.net>
7541
7542         tests: avoid false negative with --with-packager
7543         * tests/test-version-etc.sh: Discard packager information.
7544         * tests/test-argp-version-etc-1.sh: Likewise.
7545         Reported by Mike Frysinger.
7546
7547         utimens: fix regression on Solaris
7548         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7549         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7550         can only change fd timestamps via futimesat.  Instead, use an
7551         additional witness macro to avoid BSD bug.
7552         Reported by Jim Meyering.
7553
7554 2009-11-17  Eric Blake  <ebb9@byu.net>
7555
7556         usleep: use it to simplify tests
7557         * modules/stat-time-tests (Depends-on): Add usleep.
7558         (configure.ac): Drop usleep check.
7559         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7560         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7561         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7562         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7563         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7564         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7565         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7566         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7567         Likewise.
7568         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7569         * tests/test-lchown.h (nap): Likewise.
7570         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7571         * tests/test-stat-time.c (nap): Likewise.
7572         * tests/test-utimens-common.h (nap): Update comments.
7573
7574         usleep: new module
7575         * modules/usleep: New file.
7576         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7577         * lib/usleep.c (usleep): Likewise.
7578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7579         * modules/unistd (Makefile.am): Substitute witnesses.
7580         * lib/unistd.in.h (usleep): Add declaration.
7581         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7582         * MODULES.html.sh (Date and time): Likewise.
7583         * modules/usleep-tests (Depends-on): New test.
7584         * tests/test-usleep.c: New file.
7585
7586         chown: work around OpenBSD bug
7587         * lib/chown.c (rpl_chown): Work around the bug.
7588         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7589         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7590         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7591         * modules/chown (Depends-on): Add stdbool.
7592         * modules/lchown (Depends-on): Likewise.
7593         * doc/posix-functions/chown.texi (chown): Document the bug.
7594         * doc/posix-functions/lchown.texi (lchown): Likewise.
7595         * tests/test-lchown.h (test_chown): Relax test.
7596
7597         mkstemp: avoid conflict with C++ keyword template
7598         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7599         * lib/mkostemp.c (mkostemp): Likewise.
7600         * lib/mkostemps.c (mkostemps): Likewise.
7601         * lib/mkstemp.c (mkstemp): Likewise.
7602         * lib/mkstemps.c (mkstemps): Likewise.
7603
7604         xalloc-die-tests: optimize
7605         * tests/test-xalloc-die.sh: Reduce number of processes.
7606
7607 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7608
7609         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7610         patch from ludo@gnu.org (Ludovic Courtès).
7611
7612 2009-11-17  Jim Meyering  <meyering@redhat.com>
7613
7614         version-etc: use proper license string
7615         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7616         * modules/version-etc-fsf: Likewise.
7617
7618 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7619
7620         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7621         printed to stdout.  Deal with EOL differences.
7622
7623 2009-11-17  Eric Blake  <ebb9@byu.net>
7624
7625         unsetenv: work around Solaris bug
7626         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7627         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7628         Reported by Jim Meyering.
7629
7630         vasnprintf: avoid compiler warnings
7631         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7632         variables.
7633         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7634
7635 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7636
7637         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7638         settings since xalloc-die is no longer the self test,
7639         xalloc-die.sh is.
7640
7641 2009-11-17  Jim Meyering  <meyering@redhat.com>
7642
7643         test-xalloc-die.sh: make the code agree with the commit log
7644         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7645         at the end, just in case you happen to have a test-xalloc-die
7646         program in some other PATH directory.
7647
7648         test-xalloc-die.sh: fix a portability bug
7649         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7650         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7651         Otherwise, argv[0] (as often seen in diagnostics) would be too
7652         system-dependent, sometimes with, and sometimes without the leading "./".
7653
7654         version-etc-fsf: relax license to LGPLv3+
7655         * modules/version-etc-fsf (License): Relax license.
7656
7657 2009-11-16  Eric Blake  <ebb9@byu.net>
7658
7659         xalloc-die-tests: avoid printing null pointer
7660         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7661         shell script.
7662         * tests/test-xalloc-die.c (program_name): Declare.
7663         * tests/test-xalloc-die.sh (tmpfiles): New file.
7664
7665         setenv, unsetenv: work around various bugs
7666         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7667         (setenv) [HAVE_SETENV]: Work around bugs.
7668         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7669         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7670         for bugs.
7671         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7672         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7674         * modules/stdlib (Makefile.am): Update substitutions.
7675         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7676         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7677         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7678         * modules/setenv-tests: New test.
7679         * modules/unsetenv-tests: Likewise.
7680         * tests/test-setenv.c: New file.
7681         * tests/test-unsetenv.c: Likewise.
7682
7683 2009-11-16  Jim Meyering  <meyering@redhat.com>
7684
7685         version-etc: relax license to LGPLv3+
7686         * modules/version-etc (License): Relax license.
7687
7688         better AC_REQUIRE expanded-before-required-warning avoidance
7689         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7690         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7691         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7692         which is no longer needed.
7693
7694 2009-11-16  Eric Blake  <ebb9@byu.net>
7695
7696         test-freading: clean up temporary file
7697         * tests/test-freading.c (main): Remove file on success, and use
7698         ASSERT more liberally.
7699         Reported by Jim Meyering.
7700
7701 2009-11-16  Jim Meyering  <meyering@redhat.com>
7702
7703         avoid new AC_REQUIRE expanded-before-required warnings
7704         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7705         merely using it.
7706         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7707         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7708
7709 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7710
7711         * tests/test-xalloc-die.c: New file.
7712         * modules/xalloc-die-tests: New file.
7713         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7714         XFAIL_TESTS so it can be appended by modules.
7715
7716 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7717
7718         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7719         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7720
7721 2009-11-14  Eric Blake  <ebb9@byu.net>
7722
7723         fnmatch: avoid compiler warning
7724         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7725         to silence compiler warning about mismatch signedness in ?:.
7726         Reported by Robert Millan.
7727
7728         intprops: add double-inclusion guard
7729         * lib/intprops.h: Allow idempotent includes.
7730         Suggested by Bruce Korb.
7731
7732         openat: detect Solaris fchownat bug
7733         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7734         penalizing glibc chownat when only lchownat is broken.
7735         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7736         trailing slash bugs.
7737         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7738         * modules/openat-tests (Files): Include more files.
7739         (Depends-on): Add mgetgroups, sleep, stat-time.
7740         (configure.ac): Add additional checks.
7741         (Makefile.am): Build new test.
7742         * tests/test-fchownat.c: New file.
7743
7744         lchown: detect Solaris and FreeBSD bug
7745         * lib/lchown.c (rpl_lchown): Work around bug.
7746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7748         * modules/unistd (Makefile.am): Populate it.
7749         * lib/unistd.in.h (lchown): Update declaration.
7750         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7751         * modules/lchown-tests: New file.
7752         * tests/test-lchown.h (test_lchown): Likewise.
7753         * tests/test-lchown.c (main): Likewise.
7754
7755         chown: detect Solaris and FreeBSD bug
7756         * lib/chown.c (rpl_chown): Work around bug.
7757         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7758         (gl_PREREQ_CHOWN): Delete.
7759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7760         * modules/unistd (Makefile.am): Populate it.
7761         * lib/unistd.in.h (chown): Update declaration.
7762         * lib/lchown.c (chown): Update client.
7763         * modules/lchown (Depends-on): Add lstat.
7764         * doc/posix-functions/chown.texi (chown): Document the bug.
7765         * doc/posix-functions/getgroups.texi (getgroups): Document
7766         getgroups pitfall.
7767         * modules/chown-tests: New file.
7768         * tests/test-chown.h (test_chown): Likewise.
7769         * tests/test-chown.c (main): Likewise.
7770
7771 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7772
7773         gnulib-tool: correctly detect absence of m4 directories
7774         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7775
7776 2009-11-14  Jim Meyering  <meyering@redhat.com>
7777
7778         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7779         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7780
7781 2009-11-14  John W. Eaton  <jwe@gnu.org>
7782
7783         strftime.h: wrap funtion declaration in extern "C" block
7784         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7785
7786 2009-11-13  Eric Blake  <ebb9@byu.net>
7787
7788         getgroups: avoid compiler warning
7789         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7790
7791         getgroups: work around FreeBSD bug
7792         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7793         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7794         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7795         * tests/test-getgroups.c (main): Fix buffer overrun.
7796
7797         getgroups: avoid compilation failure
7798         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7799         * modules/getgroups (Depends-on): Add stdint.
7800
7801 2009-11-13  Jim Meyering  <meyering@redhat.com>
7802
7803         test-getgroups: avoid compilation failure
7804         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7805
7806 2009-11-13  Eric Blake  <ebb9@byu.net>
7807
7808         mgetgroups: new module, taken from coreutils
7809         * modules/mgetgroups: New file.
7810         * lib/mgetgroups.h: Likewise.
7811         * lib/mgetgroups.c (mgetgroups): Likewise.
7812         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7813         * MODULES.html.sh (Users and groups): Mention it.
7814
7815         getgroups: don't expose GETGROUPS_T to user
7816         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7817         an element at a time if GETGROUPS_T is wrong size.
7818         * lib/getugroups.h (getugroups): Change signature.
7819         * lib/unistd.in.h (getgroups): Likewise.
7820         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7821         signature needs fixing.
7822         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7823         AC_TYPE_GETGROUPS.
7824         * modules/group-member (Depends-on): Add getgroups.
7825         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7826         (group_member): Rely on getgroups replacement.
7827         * lib/getugroups.c (getugroups): Use gid_t.
7828         * tests/test-getgroups.c (main): Likewise.
7829         * NEWS: Mention the signature change.
7830         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7831         problem with signature.
7832         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7833         GETGROUPS_T is still useful for setgroups.
7834
7835         getgroups, getugroups: provide stubs for mingw
7836         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7837         * lib/getugroups.c (getugroups): Likewise.
7838         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7839         function.  Modernize replacement scheme.
7840         (gl_PREREQ_GETGROUPS): Delete.
7841         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7842         * modules/getgroups (configure.ac): Declare witness.
7843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7844         * modules/unistd (Depends-on): Substitute witness.
7845         * lib/unistd.in.h (getgroups): Declare replacement.
7846
7847         getgroups: avoid calling exit
7848         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7849         drop xalloc.
7850         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7851         dependencies.
7852         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7853         exiting, in the rare case of malloc failure.
7854
7855         getgroups: fix logic error
7856         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7857         has more than 20 groups.
7858         * modules/getgroups-tests: New test.
7859         * tests/test-getgroups.c: New file.
7860
7861 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7862
7863         * tests/test-base64.c: Improve.
7864
7865 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7866
7867         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7868         Blake <ebb9@byu.net>.
7869
7870 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7871
7872         * tests/test-xvasprintf.c: Add %s%s related checks.
7873
7874 2009-11-12  Eric Blake  <ebb9@byu.net>
7875
7876         version-etc: match standards.texi style
7877         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7878         and use <> only for URLs.
7879
7880 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7881
7882         fts: do not fail on a submount during traversal
7883         * lib/fts.c (fts_build): Read the stat info again after opening
7884         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7885         Original report at http://bugzilla.redhat.com/501848.
7886
7887 2009-11-12  Jim Meyering  <meyering@redhat.com>
7888
7889         bootstrap: sync from coreutils
7890         * build-aux/bootstrap (bootstrap_epilogue): New function.
7891         Use git_modules_config in one more place.  This make bootstrap's
7892         --gnulib-srcdir option more useful for testing.
7893
7894         bootstrap: generalize autoheader check
7895         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7896         AC_CONFIG_HEADERS.
7897
7898 2009-11-11  Eric Blake  <ebb9@byu.net>
7899
7900         mkfifoat: use new modules for Solaris and BSD bugs
7901         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7902         * lib/mkfifoat.c (mknodat): Split...
7903         * lib/mknodat.c (mknodat): ...into new file.
7904         * modules/mkfifoat (Files): Ship new file.
7905         (Depends-on): Add mkfifo, mknod.
7906         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7907         (Depends-on): Add symlink.
7908         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7909         redundant with test_mkfifo.h.
7910         (do_mkfifoat, do_mknodat): New helpers.
7911
7912         mknod: new module
7913         * modules/mknod: New file.
7914         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7915         * lib/mknod.c (mknod): Likewise.
7916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7917         defaults.
7918         * modules/sys_stat (Makefile.am): Substitute them.
7919         * lib/sys_stat.in.h (mknod): Declare replacement.
7920         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7921         Document it.
7922         * doc/posix-functions/mknod.texi (mknod): Likewise.
7923         * modules/mknod-tests: New test.
7924         * tests/test-mknod.c: Likewise.
7925
7926         mkfifo: new module
7927         * modules/mkfifo: New file.
7928         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7929         * lib/mkfifo.c (mkfifo): Likewise.
7930         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7931         defaults.
7932         * modules/sys_stat (Makefile.am): Substitute them.
7933         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7934         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7935         Document it.
7936         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7937         * modules/mkfifo-tests: New test.
7938         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7939         from test-mkfifoat.c.
7940         * tests/test-mkfifo.c: New file.
7941
7942         readlink: detect FreeBSD bug
7943         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7944         slash on symlink.
7945         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7946         * tests/test-readlink.h (test_readlink): Enhance test.
7947
7948         symlink: detect FreeBSD bug
7949         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7950         slash on symlink.
7951         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7952         * tests/test-symlink.h (test_symlink): Enhance test.
7953
7954 2009-11-10  Eric Blake  <ebb9@byu.net>
7955
7956         link: detect FreeBSD bug
7957         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7958         symlink.
7959         * doc/posix-functions/link.texi (link): Document the bug.
7960         * tests/test-link.h (test_link): Enhance test.
7961         * tests/test-linkat.c (main): Update caller.
7962
7963         unlink, remove: detect FreeBSD bug
7964         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7965         slash on symlink.
7966         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7967         * doc/posix-functions/remove.texi (remove): Likewise.
7968         * tests/test-unlink.h (test_unlink): Enhance test.
7969         * tests/test-remove.c (main): Likewise.
7970
7971 2009-11-09  Eric Blake  <ebb9@byu.net>
7972
7973         rename: detect FreeBSD bug
7974         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7975         slash on symlink.
7976         * modules/renameat-tests (Depends-on): Add filenamecat.
7977         * tests/test-rename.h (test_rename): Allow one more errno.
7978         * tests/test-renameat.c (main): Likewise.
7979         * doc/posix-functions/rename.texi (rename): Document the bug.
7980
7981         open: detect FreeBSD bug
7982         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7983         symlink.
7984         * doc/posix-functions/open.texi (open): Document the bug.
7985         * doc/posix-functions/utimes.texi (utimes): Likewise.
7986         * tests/test-open.h (test_open): Add parameters, and test symlink
7987         handling.
7988         * tests/test-open.c (main): Adjust caller.
7989         * tests/test-fcntl-safer.c (main): Likewise.
7990         * modules/open-tests (Depends-on): Add stdbool, symlink.
7991         * modules/fcntl-safer-tests (Depends-on): Likewise.
7992         * tests/test-openat.c (main): Add test-open tests.
7993
7994         stat: detect FreeBSD bug
7995         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7996         symlink.
7997         * doc/posix-functions/stat.texi (stat): Document the bug.
7998         * tests/test-stat.h (test_stat_func): Add argument.
7999         * tests/test-stat.c (main): Adjust caller.
8000         * tests/test-fstatat.c (main): Likewise.
8001         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8002         Reported by Jim Meyering.
8003
8004 2009-11-09  James Youngman  <jay@gnu.org>
8005
8006         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8007         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8008
8009 2009-11-08  Jim Meyering  <meyering@redhat.com>
8010
8011         utimens: remove invalid futimesat call
8012         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8013         It used the file descriptor of the target file as the DIR_FD
8014         parameter and NULL as the file name.  That caused failure with
8015         errno == EFAULT on FreeBSD-8.0-rc2
8016
8017 2009-11-07  Eric Blake  <ebb9@byu.net>
8018
8019         fflush, freadseek: use fseeko, not fseek
8020         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8021         (clear_ungetc_buffer): Avoid potential problems on large files.
8022         * lib/freadseek.c (freadseek): Likewise.
8023         * modules/freadseek (Depends-on): Add fseeko.
8024         * modules/fseek (configure.ac): Set a witness.
8025         * tests/test-fflush.c (main): Use fseeko.
8026         * tests/test-fpurge.c (fseek): Disable link warning.
8027         * tests/test-freadable.c (fseek): Likewise.
8028         * tests/test-freading.c (fseek): Likewise.
8029         * tests/test-fseeko.c (fseek): Likewise.
8030         * tests/test-ftell.c (fseek): Likewise.
8031         * tests/test-ftello.c (fseek): Likewise.
8032         * tests/test-fwritable.c (fseek): Likewise.
8033         * tests/test-fwriting.c (fseek): Likewise.
8034
8035 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8036
8037         * modules/memchr (Depends-on): Drop getpagesize dependency.
8038
8039 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8040
8041         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8042         Reported by Ludovic Courtès.
8043         * build-aux/pmccabe2html: Improve example usage.
8044         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8045
8046 2009-11-06  Jim Meyering  <meyering@redhat.com>
8047
8048         do-release-commit-and-tag: New module.
8049         Automate the release-commit and tag process.
8050         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8051         * modules/do-release-commit-and-tag: New file.
8052         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8053
8054 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8055
8056         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8057         because test-select.c uses inet_pton.
8058
8059 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8060
8061         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8062         GETADDRINFO_LIB.  Bump serial number.
8063         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8064         Suggested by Eric Blake <ebb9@byu.net>.
8065
8066 2009-11-05  Eric Blake  <ebb9@byu.net>
8067
8068         strtod: detect darwin bug
8069         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8070         Reported by Leo Davis.
8071
8072         freopen-safer: new module
8073         * modules/freopen-safer: New module.
8074         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8075         * lib/freopen-safer.c (freopen_safer): New file.
8076         * lib/stdio-safer.h (freopen_safer): New declaration.
8077         * lib/stdio--.h (freopen): New override.
8078         * MODULES.html.sh (File stream based Input/Output): Mention it.
8079         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8080         freopen-safer module.
8081         * doc/posix-functions/stderr.texi (stderr): Likewise.
8082         * doc/posix-functions/stdin.texi (stdin): Likewise.
8083         * doc/posix-functions/stdout.texi (stdout): Likewise.
8084         * modules/freopen-safer-tests: New test.
8085         * tests/test-reopen-safer.c: New file.
8086
8087 2009-11-05  Jim Meyering  <meyering@redhat.com>
8088
8089         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8090         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8091
8092 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8093
8094         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8095
8096 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8097
8098         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8099
8100 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8101
8102         Fix link error.
8103         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8104         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8105
8106 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8107
8108         * tests/test-func.c: Also test value of __func__.
8109
8110 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8111
8112         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8113         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8114
8115 2009-11-05  Bruno Haible  <bruno@clisp.org>
8116
8117         Fix link error.
8118         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8119         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8120         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8121
8122 2009-11-05  Bruno Haible  <bruno@clisp.org>
8123
8124         Tests for module 'inet_pton'.
8125         * modules/inet_pton-tests: New file.
8126         * tests/test-inet_pton.c: New file.
8127
8128 2009-11-05  Bruno Haible  <bruno@clisp.org>
8129
8130         Tests for module 'inet_ntop'.
8131         * modules/inet_ntop-tests: New file.
8132         * tests/test-inet_ntop.c: New file.
8133
8134 2009-11-04  Eric Blake  <ebb9@byu.net>
8135
8136         stdlib-safer: wrap all mkstemp variants
8137         * modules/mkostemp (configure.ac): Set witness.
8138         * modules/mkostemps (configure.ac): Likewise.
8139         * modules/mkstemps (configure.ac): Likewise.
8140         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8141         (mkstemps_safer): Wrap more functions.
8142         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8143         wrapping.
8144         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8145         (mkstemps_safer): Implement the wrappers.
8146
8147         mkstemps, mkostemps: new modules
8148         * modules/mkostemps: New module.
8149         * modules/mkstemps: Likewise.
8150         * lib/mkostemps.c (mkostemps): New file.
8151         * lib/mkstemps.c (mkstemps): Likewise.
8152         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8153         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8155         * modules/stdlib (Makefile.am): Substitute them.
8156         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8157         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8158         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8159         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8160         * MODULES.html.sh (File system functions): Mention them.
8161
8162         tempname: resync from glibc
8163         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8164         same values for __GT_FILE as glibc.  Abort even when assertions
8165         are disabled.
8166         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8167         match its value otherwise.  Allow idempotent inclusion.
8168         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8169         * lib/mkostemp.c (mkostemp): Likewise.
8170         * lib/mkstemp.c (mkstemp): Likewise.
8171         * lib/tmpfile.c (tmpfile): Likewise.
8172         * NEWS: Document this.
8173
8174         utimens: fix use of futimens on older Linux
8175         * lib/utimens.c (fdutimens): Use updated, rather than original,
8176         timespec to avoid bug in older Linux kernel.
8177         Reported by Simon Josefsson.
8178
8179 2009-11-04  Bruno Haible  <bruno@clisp.org>
8180
8181         Make num_processors more flexible and consistent.
8182         * lib/nproc.h (enum nproc_query): New type.
8183         (num_processors): Add a 'query' argument.
8184         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8185         (num_processors): Add a 'query' argument. Test the value of the
8186         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8187         mingw, count the number of CPUs available for the current process.
8188         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8189         Check for sched_getaffinity and sched_getaffinity_np.
8190         * modules/nproc (Depends-on): Add c-ctype, extensions.
8191         * NEWS: Mention the change.
8192
8193 2009-11-03  Bruno Haible  <bruno@clisp.org>
8194
8195         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8196
8197 2009-11-03  Jim Meyering  <meyering@redhat.com>
8198
8199         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8200         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8201         if it is defined.
8202
8203 2009-11-02  Eric Blake  <ebb9@byu.net>
8204
8205         mktime, timegm: share common declaration
8206         * lib/mktime-internal.h: New file.
8207         * lib/mktime.c: Use it rather than open-coding a declaration.
8208         * lib/timegm.c: Likewise.
8209         * modules/mktime (Files): Ship it.
8210         * modules/timegm (Files): Likewise.
8211         Suggested by Bruno Haible.
8212
8213         test-update-copyright: update test to match script changes
8214         * tests/test-update-copyright.sh: Avoid hard-coding perl
8215         location.  Don't update *.bak created by earlier runs.
8216
8217 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8218             Simon Josefsson  <simon@josefsson.org>
8219             Bruno Haible  <bruno@clisp.org>
8220
8221         Fix link error on Solaris 8.
8222         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8223         also in libnsl. Define also INET_PTON_LIB.
8224         * modules/inet_pton (Link): New section.
8225
8226 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8227             Bruno Haible  <bruno@clisp.org>
8228
8229         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8230         * modules/inet_ntop (Link): New section.
8231         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8232
8233 2009-11-02  Eric Blake  <ebb9@byu.net>
8234
8235         maint: avoid compiler warnings in m4 macros
8236         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8237         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8238
8239 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8240
8241         * m4/pmccabe2html.m4: Remove file.
8242         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8243         function.  Change maintainer.
8244         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8245         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8246         Courtès).
8247
8248 2009-10-31  Eric Blake  <ebb9@byu.net>
8249
8250         fseeko: fix m4 regression
8251         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8252         regression from 2009-10-27.
8253         Reported by Ralf Wildenhues.
8254
8255 2009-10-31  Jim Meyering  <meyering@redhat.com>
8256
8257         inttostr: aesthetics and improved (compile-time) safety
8258         Define inttype_is_signed rather than inttype_is_unsigned,
8259         since the sole use is via "#if inttype_is_signed".
8260         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8261         inttype_is_unsigned.
8262         * lib/offtostr.c (inttype_is_signed): Likewise.
8263         * lib/uinttostr.c (inttype_is_signed): Likewise.
8264         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8265         * lib/inttostr.c (inttostr): Use verify to cross-check the
8266         inttype_is_signed value and the signedness of the actual type.
8267         * modules/inttostr (Depends-on): Add verify.
8268
8269 2009-10-30  Eric Blake  <ebb9@byu.net>
8270
8271         build: avoid compiler warnings
8272         * lib/fchmodat.c (lchmod): Mark unused variables.
8273         * lib/getopt.c (_getopt_initialize): Likewise.
8274         * lib/mktime.c (__mktime_internal): Provide prototype.
8275         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8276         older gcc that do not understand #pragma GCC diagnostic.
8277         * lib/uinttostr.c (inttype_is_unsigned): Define.
8278         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8279
8280 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8281
8282         stat: fix compilation on AIX
8283         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8284         only see struct stat64.
8285
8286 2009-10-30  Eric Blake  <ebb9@byu.net>
8287
8288         exclude: make more robust
8289         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8290         rather than masking a coding bug.
8291         Suggested by Bruno Haible.
8292
8293 2009-10-30  Jim Meyering  <meyering@redhat.com>
8294
8295         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8296         Rather than putting #!/usr/bin/perl on the first line,
8297         start with a variant of what's recommended by "man perlrun" that
8298         invokes the first "perl" program from your shell's search path.
8299         * build-aux/gitlog-to-changelog: Replace #!... as above.
8300         Add a "Local Variables" perl mode setting.
8301         Prompted by a patch from Ludovic Courtès.
8302         Improved by Eric Blake.
8303         * build-aux/useless-if-before-free: Likewise.
8304         * build-aux/announce-gen: Likewise.
8305         * build-aux/update-copyright: Likewise.
8306
8307 2009-10-29  Eric Blake  <ebb9@byu.net>
8308
8309         filenamecat-lgpl: adjust clients
8310         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8311         filenamecat.
8312         * modules/renameat (Depends-on): Likewise.
8313
8314         filenamecat: split into filenamecat-lgpl
8315         * modules/filenamecat-lgpl: New module.
8316         * modules/filenamecat (Files): Move library-safe files into
8317         filenamecat-lgpl.
8318         (Depends-on): Add filenamecat-lgpl.
8319         (configure.ac): Declare witness.
8320         * lib/filenamecat.h (file_name_concat): Only declare when using
8321         GPL module.
8322         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8323         Move...
8324         * lib/filenamecat-lgpl.c: ...into new file.
8325         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8326         (gl_FILE_NAME_CONCAT): Use it.
8327         * MODULES.html.sh (File system functions): Mention new module.
8328
8329         argp: avoid memory leak
8330         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8331         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8332         base_name, since the latter malloc()s and can call exit().
8333         Leak introduced 2006-07-03.
8334
8335         dirname-lgpl: adjust clients that don't need full dirname
8336         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8337         * modules/filenamecat (Depends-on): Likewise.
8338         * modules/linkat (Depends-on): Likewise.
8339         * modules/mkancesdirs (Depends-on): Likewise.
8340         * modules/mkdir (Depends-on): Likewise.
8341         * modules/openat (Depends-on): Likewise.
8342         * modules/savewd (Depends-on): Likewise.
8343         * modules/rename (Depends-on): Likewise.
8344         (License): Relax license.
8345         * modules/mkdir-tests (Depends-on): Drop progname.
8346         (Makefile.am): Delete unneeded LDADD.
8347         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8348
8349         dirname: split into dirname-lgpl
8350         * modules/dirname-lgpl: New module.
8351         * modules/dirname (Files): Move library-safe files into
8352         dirname-lgpl.
8353         (Depends-on): Add dirname-lgpl.
8354         (configure.ac): Declare witness.
8355         * modules/double-slash-root (License): Relax license.
8356         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8357         module.
8358         * lib/dirname.c (dir_len, mdir_name): Move...
8359         * lib/dirname-lgpl.c: ...into new file.
8360         * lib/basename.c (last_component, base_len): Move...
8361         * lib/basename-lgpl.c: ...into new file.
8362         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8363         (gl_DIRNAME): Use it.
8364         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8365         Mention new module.
8366         * modules/dirname-tests (Depends-on): Add progname.
8367         * tests/test-dirname.c (program_name): Delete.
8368
8369         mkdir: make safe for libraries
8370         * modules/mkdir (Depends-on): Drop xalloc.
8371         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8372         exit.
8373
8374         tests: avoid some compiler warnings
8375         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8376         literals.
8377         * tests/test-memchr.c (main): Avoid type mismatch.
8378         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8379         * tests/test-base64.c (main): Likewise.
8380         * tests/test-getdelim.c (main): Likewise.
8381         * tests/test-gethostname.c (main): Likewise.
8382         * tests/test-getline.c (main): Likewise.
8383         * tests/test-netinet_in.c (main): Likewise.
8384         * tests/test-select.c (open_server_socket, main): Likewise.
8385         * tests/test-select-stdin.c (main): Likewise.
8386         * tests/test-sockets.c (main): Likewise.
8387         * tests/test-strsignal.c (main): Likewise.
8388         * tests/test-sys_select.c (main): Likewise.
8389         * tests/test-sys_socket.c (main): Likewise.
8390         * tests/test-u64.c (main): Likewise.
8391         * tests/test-xfprintf-posix.c (main): Likewise.
8392         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8393
8394         sockets: avoid compiler warning
8395         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8396
8397         maint: detect usage(1) and other suspicious exits
8398         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8399
8400 2009-10-29  Jim Meyering  <meyering@redhat.com>
8401
8402         timespec: long-to-int truncation could make timespec_cmp malfunction
8403         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8404         a multiple of 2^32 nanoseconds as no difference.
8405
8406 2009-10-28  Jim Meyering  <meyering@redhat.com>
8407
8408         fprintftime: wrap macro code argument in "do {...} while(0)"
8409         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8410         cpy macro must be a statement that can be followed by a semicolon.
8411         Now that the else clause contains a comment and is hence longer
8412         than one line, I require curly braces.  That in turn requires
8413         that we wrap this code block in the standard do...while(0).
8414
8415         fprintftime: remove stray semicolon from previous change
8416         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8417
8418         fprintftime: avoid a warning about ignored fwrite return value
8419         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8420         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8421         that is unsafe.
8422         * modules/fprintftime (Depends-on): Add ignore-value.
8423
8424         exclude: avoid an unwarranted warning
8425         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8426
8427 2009-10-27  Eric Blake  <ebb9@byu.net>
8428
8429         fseek: avoid compilation failure when fflush is replaced
8430         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8431         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8432         module is in use.
8433         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8434         module is not in use; since REPLACE_FSEEK worked otherwise.
8435         (GNULIB_FTELLO): Likewise for ftell.
8436         Reported by Ian Beckwith and others.
8437
8438 2009-10-27  Bruno Haible  <bruno@clisp.org>
8439
8440         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8441         Reported by Jim Meyering.
8442
8443 2009-10-27  Jim Meyering  <jim@meyering.net>
8444             Bruno Haible  <bruno@clisp.org>
8445
8446         Avoid warning despite dropping the return value of fwrite.
8447         * lib/unicodeio.c: Include ignore-value.h.
8448         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8449         * modules/unicodeio (Depends-on): Add ignore-value.
8450
8451 2009-10-26  Eric Blake  <ebb9@byu.net>
8452
8453         areadlinkat: fix fallback path
8454         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8455         pointer and zero.
8456
8457 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8458
8459         Use a better IO block size for modern systems
8460         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8461         * lib/md2.c: Likewise.
8462         * lib/md4.c: Likewise.
8463         * lib/md5.c: Likewise.
8464         * lib/sha1.c: Likewise.
8465         * lib/sha256.c: Likewise.
8466         * lib/sha512.c: Likewise.
8467
8468 2009-10-22  Eric Blake  <ebb9@byu.net>
8469
8470         tests: avoid several compiler warnings
8471         * tests/test-getcwd.c (main): Avoid buffer underflow.
8472         * tests/test-getdate.c (main): String literals are not safe with
8473         putenv, so use setenv.  Declare unused argument.
8474         * modules/getdate-tests (Depends-on): Add setenv.
8475         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8476         problems with string literals in char *.
8477         * tests/test-hash.c (main): Avoid shadowing declaration.
8478         (insert_new): Treat string literals as char const *.
8479         * tests/test-getopt.h (test_getopt): Likewise.
8480         (getopt_loop): Alter types to minimize casting elsewhere.
8481         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8482         (test_getopt_long_posix): Likewise.
8483         (do_getopt_long): Add wrapper to minimize casting.
8484         * tests/test-atexit.c (clear_temp_file): Use void.
8485         * tests/test-areadlink-with-size.c (main): Declare unused
8486         arguments.
8487         * tests/test-areadlink.c (main): Likewise.
8488         * tests/test-areadlinkat-with-size.c (main): Likewise.
8489         * tests/test-areadlinkat.c (main): Likewise.
8490         * tests/test-canonicalize-lgpl.c (main): Likewise.
8491         * tests/test-canonicalize.c (main): Likewise.
8492         * tests/test-dirent-safer.c (main): Likewise.
8493         * tests/test-dirname.c (main): Likewise.
8494         * tests/test-dup2.c (main): Likewise.
8495         * tests/test-fchdir.c (main): Likewise.
8496         * tests/test-fcntl-h.c (main): Likewise.
8497         * tests/test-fcntl-safer.c (main): Likewise.
8498         * tests/test-fdopendir.c (main): Likewise.
8499         * tests/test-fdutimensat.c (main): Likewise.
8500         * tests/test-fflush.c (main): Likewise.
8501         * tests/test-filenamecat.c (main): Likewise.
8502         * tests/test-filevercmp.c (main): Likewise.
8503         * tests/test-fopen-safer.c (main): Likewise.
8504         * tests/test-fopen.c (main): Likewise.
8505         * tests/test-fpending.c (main): Likewise.
8506         * tests/test-fpurge.c (main): Likewise.
8507         * tests/test-freading.c (main): Likewise.
8508         * tests/test-fstatat.c (main): Likewise.
8509         * tests/test-fsync.c (main): Likewise.
8510         * tests/test-futimens.c (main): Likewise.
8511         * tests/test-getndelim2.c (main): Likewise.
8512         * tests/test-gettimeofday.c (main): Likewise.
8513         * tests/test-getopt.c (main): Likewise.
8514         * tests/test-i-ring.c (main): Likewise.
8515         * tests/test-inttypes.c (main): Likewise.
8516         * tests/test-link.c (main): Likewise.
8517         * tests/test-lstat.c (main): Likewise.
8518         * tests/test-math.c (main): Likewise.
8519         * tests/test-md5.c (main): Likewise.
8520         * tests/test-memchr2.c (main): Likewise.
8521         * tests/test-memrchr.c (main): Likewise.
8522         * tests/test-mkdir.c (main): Likewise.
8523         * tests/test-mkdirat.c (main): Likewise.
8524         * tests/test-mkfifoat.c (main): Likewise.
8525         * tests/test-open.c (main): Likewise.
8526         * tests/test-openat-safer.c (main): Likewise.
8527         * tests/test-openat.c (main): Likewise.
8528         * tests/test-quotearg.c (main): Likewise.
8529         * tests/test-rawmemchr.c (main): Likewise.
8530         * tests/test-readlink.c (main): Likewise.
8531         * tests/test-remove.c (main): Likewise.
8532         * tests/test-rename.c (main): Likewise.
8533         * tests/test-renameat.c (main): Likewise.
8534         * tests/test-rmdir.c (main): Likewise.
8535         * tests/test-sha1.c (main): Likewise.
8536         * tests/test-signal.c (main): Likewise.
8537         * tests/test-sigaction.c (main): Likewise.
8538         * tests/test-stat.c (main): Likewise.
8539         * tests/test-stat-time.c (main): Likewise.
8540         * tests/test-stddef.c (main): Likewise.
8541         * tests/test-stdint.c (main): Likewise.
8542         * tests/test-stdio.c (main): Likewise.
8543         * tests/test-stdlib.c (main): Likewise.
8544         * tests/test-strchrnul.c (main): Likewise.
8545         * tests/test-strerror.c (main): Likewise.
8546         * tests/test-string.c (main): Likewise.
8547         * tests/test-strtod.c (main): Likewise.
8548         * tests/test-strverscmp.c (main): Likewise.
8549         * tests/test-symlink.c (main): Likewise.
8550         * tests/test-symlinkat.c (main): Likewise.
8551         * tests/test-sys_stat.c (main): Likewise.
8552         * tests/test-sys_time.c (main): Likewise.
8553         * tests/test-time.c (main): Likewise.
8554         * tests/test-unistd.c (main): Likewise.
8555         * tests/test-unlink.c (main): Likewise.
8556         * tests/test-unlinkat.c (main): Likewise.
8557         * tests/test-utimens.c (main): Likewise.
8558         * tests/test-utimensat.c (main): Likewise.
8559         * tests/test-version-etc.c (main): Likewise.
8560         * tests/test-wchar.c (main): Likewise.
8561         * tests/test-wctype.c (main): Likewise.
8562         * tests/test-xprintf-posix.c (main): Likewise.
8563         * tests/test-posixtm.c (main): Likewise.
8564         (STREQ): Delete unused macro.
8565         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8566         shadowed variables.
8567         * tests/test-memchr.c (main): Likewise.
8568
8569 2009-10-21  Eric Blake  <ebb9@byu.net>
8570
8571         areadlinkat: avoid failure on older glibc
8572         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8573         rather than mis-comparing 0 against FUNC_RESULT of char*.
8574
8575 2009-10-21  Bruno Haible  <bruno@clisp.org>
8576
8577         * modules/stpncpy (License): Relicense under LGPLv2+.
8578         Reported by David Lutterkort <lutter@redhat.com>.
8579
8580 2009-10-20  Eric Blake  <ebb9@byu.net>
8581
8582         utimensat: work around Solaris 9 bug
8583         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8584         has trailing slash bugs.
8585         * tests/test-lutimens.h (test_lutimens): Enhance test.
8586         * tests/test-utimens.h (test_utimens): Likewise.
8587         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8588         * doc/posix-functions/utimes.texi (utimes): Likewise.
8589         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8590         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8591         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8592         * doc/posix-functions/futimens.texi (futimens): Likewise.
8593
8594         fdutimensat: new module
8595         * modules/fdutimensat: New file.
8596         * lib/fdutimensat.c (fdutimensat): Likewise.
8597         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8598         * MODULES.html.sh (File system functions): Mention module.
8599         * modules/fdutimensat-tests: New test.
8600         * tests/test-fdutimensat.c: Likewise.
8601
8602         doc: regenerate INSTALL
8603         * doc/INSTALL: Reflect recent autoconf update.
8604         * doc/INSTALL.ISO: Likewise.
8605         * doc/INSTALL.UTF-8: Likewise.
8606
8607 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8608
8609         acl: warn if ACL support is not detected
8610         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8611
8612 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8613
8614         * lib/nproc.h: Add extern "C" block for C++.
8615
8616 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8617             Bruno Haible  <bruno@clisp.org>
8618
8619         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8620         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8621         * doc/posix-functions/isalpha.texi: Likewise.
8622         * doc/posix-functions/isblank.texi: Likewise.
8623         * doc/posix-functions/iscntrl.texi: Likewise.
8624         * doc/posix-functions/isdigit.texi: Likewise.
8625         * doc/posix-functions/isgraph.texi: Likewise.
8626         * doc/posix-functions/islower.texi: Likewise.
8627         * doc/posix-functions/isprint.texi: Likewise.
8628         * doc/posix-functions/ispunct.texi: Likewise.
8629         * doc/posix-functions/isspace.texi: Likewise.
8630         * doc/posix-functions/isupper.texi: Likewise.
8631         * doc/posix-functions/isxdigit.texi: Likewise.
8632
8633 2009-10-18  Bruno Haible  <bruno@clisp.org>
8634
8635         Tests for module 'isblank'.
8636         * modules/isblank-tests: New file.
8637         * tests/test-isblank.c: New file.
8638
8639         New module 'isblank'.
8640         * lib/isblank.c: New file.
8641         * m4/isblank.m4: New file.
8642         * modules/isblank: New file.
8643         * doc/posix-functions/isblank.texi: Mention the new module.
8644
8645 2009-10-18  Bruno Haible  <bruno@clisp.org>
8646
8647         New module 'ctype'.
8648         * lib/ctype.in.h: New file.
8649         * m4/ctype.m4: New file.
8650         * modules/ctype: New file.
8651         * doc/posix-headers/ctype.texi: Mention the new module.
8652
8653 2009-10-18  Jim Meyering  <meyering@redhat.com>
8654
8655         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8656         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8657         right after its initialization, rather than farther down.
8658         Keeping these in close proximity makes it easier to ensure
8659         that each such variable is initialized.  E.g.,
8660
8661             LIB_CLOCK_GETTIME=
8662             AC_SUBST([LIB_CLOCK_GETTIME])
8663
8664         This change also increments these serial numbers.
8665         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8666         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8668
8669 2009-10-18  Bruno Haible  <bruno@clisp.org>
8670
8671         Don't let environment variables perturb build.
8672         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8673         (gl_PREREQ_GETHRXTIME): ... not here.
8674
8675 2009-10-18  Bruno Haible  <bruno@clisp.org>
8676
8677         Avoid symlink attack in localcharset module.
8678         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8679         (O_NOFOLLOW): Define fallback.
8680         (get_charset_aliases): Don't open the file if it is a symbolic link.
8681         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8682         gl_FCNTL_H.
8683         (gl_FCNTL_H): Require it.
8684         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8685         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8686         Reported by Fergal Glynn <fglynn@veracode.com>.
8687
8688 2009-10-18  Bruno Haible  <bruno@clisp.org>
8689
8690         Implement nproc for mingw.
8691         * lib/nproc.c: Include <windows.h>
8692         (num_processors): On native Windows platforms, try GetSystemInfo.
8693
8694 2009-10-18  Bruno Haible  <bruno@clisp.org>
8695
8696         Implement nproc for IRIX.
8697         * lib/nproc.c: Include <sys/sysmp.h>.
8698         (num_processors): On IRIX systems, try sysmp.
8699         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8700
8701 2009-10-18  Bruno Haible  <bruno@clisp.org>
8702
8703         Implement nproc for HP-UX.
8704         * lib/nproc.c: Include <sys/pstat.h>
8705         (num_processors): On HP-UX systems, try pstat_getdynamic.
8706         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8707         pstat_getdynamic.
8708
8709 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8710             Bruno Haible  <bruno@clisp.org>
8711
8712         Implement nproc for NetBSD, OpenBSD.
8713         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8714         (ARRAY_SIZE): New macro.
8715         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8716         * m4/nproc.m4: New file.
8717         * modules/nproc (Files): Add m4/nproc.m4.
8718         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8719         (Makefile.am): Instead, augment lib_SOURCES.
8720
8721 2009-10-18  Bruno Haible  <bruno@clisp.org>
8722
8723         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8724         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8725         sys/param.h.
8726
8727 2009-10-16  Eric Blake  <ebb9@byu.net>
8728
8729         utimensat: new module
8730         * modules/utimensat: New file.
8731         * lib/utimensat.c (utimensat): Likewise.
8732         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8733         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8734         so we can work around Linux bugs.
8735         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8736         * modules/sys_stat (Makefile.am): Substitute them.
8737         * lib/sys_stat.in.h (utimensat): Declare it.
8738         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8739         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8740         * modules/utimensat-tests: New test.
8741         * tests/test-utimensat.c: Likewise.
8742
8743         utimens: let lutimens work on non-symlinks
8744         * lib/utimens.c (lutimens): Fall back to utimens rather than
8745         failing with ENOSYS, when file is not a symlink.
8746         (utimens): Reduce redirection.
8747         * tests/test-lutimens.h (test_lutimens): Update test to cover
8748         non-symlinks.
8749         * tests/test-utimens.h (test_utimens): Update test to cover
8750         symlinks.
8751         * tests/test-utimens.c (main): Update caller.
8752
8753         utimens: cache whether utimensat syscall works
8754         * lib/utimens.c (utimensat_works_really): New cache variable.
8755         (fdutimens, lutimens): Use it to avoid failing syscall.
8756
8757         test-stat-time, test-utimens: improve portability
8758         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8759         ext4 on alpha, and for cygwin.
8760         * tests/test-utimens-common.h: New file.
8761         (nap): Factor delays into single function.
8762         * tests/test-lutimens.h (test_lutimens): Use new header.
8763         * tests/test-futimens.h (test_futimens): Likewise.
8764         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8765         timestamps to occur from same machine, as was done previously for
8766         test_utimens.
8767         * modules/utimens-tests (Files): Ship new file.
8768         * modules/futimens-tests (Files): Likewise.
8769         Reported in part by Jim Meyering.
8770
8771         sys_stat: sort replacement declarations
8772         * lib/sys_stat.in.h: Sort declarations.
8773         * lib/futimens.c (futimens): Fix typo.
8774
8775 2009-10-15  Jim Meyering  <meyering@redhat.com>
8776
8777         don't let environment settings perturb build
8778         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8779         could cause a configure-time and/or build-time malfunction.
8780         Typically, a configure-time function-in-library test is performed
8781         via code like this:
8782
8783           LIB_VAR=
8784           AC_SUBST([LIB_VAR])
8785           prefix_saved_LIBS=$LIBS
8786             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8787                        [test "$ac_cv_search_FUNC" = "none required" ||
8788                         LIB_VAR=$ac_cv_search_FUNC])
8789           LIBS=$prefix_saved_LIBS
8790
8791         However, in each of the files affected by this change, the LIB_VAR=
8792         initialization was omitted.  Thus, when set in the environment, its
8793         value would propagate into generated Makefiles when FUNC is not found
8794         in LIB_NAME.
8795         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8796         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8798
8799 2009-10-14  Eric Blake  <ebb9@byu.net>
8800
8801         fchdir: avoid infinite recursion in mingw
8802         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8803         recursing.
8804
8805         test-stat-time: port to mingw
8806         * tests/test-stat-time.c (force_unlink): Return a value.
8807         (test_ctime) [W32]: Fix compilation error.
8808         (nap): Don't call usleep with too large an argument.  Use
8809         force_unlink.
8810         * doc/pastposix-functions/usleep.texi (usleep): Document the
8811         portability issue.
8812
8813 2009-10-13  Jim Meyering  <meyering@redhat.com>
8814
8815         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8816         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8817         * modules/pipe-filter-ii: Likewise.
8818         * modules/sys_socket-tests: Likewise.
8819         * modules/tsearch-tests: Likewise.
8820         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8821         (check): Depend on it.
8822
8823 2009-10-12  Eric Blake  <ebb9@byu.net>
8824
8825         utimens-tests: port to NFS file systems
8826         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8827         comparisons to avoid spurious failures from timestamp drift
8828         between NFS machines.
8829
8830 2009-10-12  Eric Blake  <ebb9@byu.net>
8831
8832         stat-time-tests: minor cleanups
8833         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8834         * tests/test-stat-time.c (nap): Separate assignment from call.
8835         Suggested by Paolo Bonzini and Bruno Haible.
8836
8837         sys_stat: guarantee struct timespec
8838         * lib/sys_stat.in.h (includes): Always include <time.h>
8839         * modules/sys_stat (Depends-on): Add time.
8840         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8841         mode_t permission values.
8842         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8843         get at subsecond timestamps.
8844
8845 2009-10-10  Eric Blake  <ebb9@byu.net>
8846
8847         futimens: new module
8848         * modules/futimens: New file.
8849         * lib/futimens.c (futimens): Likewise.
8850         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8851         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8852         we can work around Linux bugs.
8853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8854         * modules/sys_stat (Makefile.am): Substitute them.
8855         * lib/sys_stat.in.h (futimens): Declare it.
8856         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8857         * doc/posix-functions/futimens.texi (futimens): Likewise.
8858         * modules/futimens-tests: New test.
8859         * tests/test-futimens.c: Likewise.
8860
8861         utimens: introduce fdutimens
8862         * lib/utimens.h (fdutimens): New prototype.
8863         * lib/utimens.c (gl_futimens): Move guts...
8864         (fdutimens): ...to new interface.
8865         * tests/test-utimens.c (do_fdutimens): Use it.
8866
8867         utimens: add UTIME_NOW and UTIME_OMIT support
8868         * lib/utimens.c (validate_timespec, update_timespec): New helper
8869         functions.
8870         (gl_futimens, lutimens): Use them.
8871         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8872         stdbool, sys_stat.
8873         (Link): Mention resulting library dependency.
8874         * modules/utimecmp (Link): Likewise.
8875         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8876         (Makefile.am): Pick up library dependency.
8877         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8878         definition.
8879         * tests/test-sys_stat.c: Test the definitions.
8880         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8881         * NEWS: Document library dependency.
8882
8883         utimecmp: support symlink timestamps
8884         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8885         hashing when possible.  Use pathconf when available.
8886         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8887         * modules/utimecmp (Depends-on): Add lstat.
8888
8889         utimens: add lutimens interface
8890         * lib/utimens.c (lutimens): New function.
8891         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8892         * lib/utimens.h (lutimens): Declare new interface.
8893         * tests/test-utimens.c (main): Enhance test.
8894         * tests/test-lutimens.h (test_lutimens): New file.
8895         * modules/utimens-tests (Files): Distribute it.
8896         (Depends-on): Add symlink.
8897         (configure.ac): Check for usleep.
8898
8899         utimens: validate futimens usage
8900         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8901         fewer syscalls on failure later on.  Avoid compiler warning on
8902         mingw.
8903         * modules/utimens (Depends-on): Add dup2.
8904
8905         utimens: add test
8906         * modules/utimens-tests: New test.
8907         * tests/test-utimens.h: New file.
8908         * tests/test-futimens.h: Likewise.
8909         * tests/test-utimens.c: Likewise.
8910
8911         doc: mention timestamp portability issues
8912         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8913         instead.
8914         * doc/posix-functions/utime.texi (utime): Likewise.
8915         * doc/posix-functions/utimes.texi (utimes): Likewise.
8916         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8917         instead.
8918         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8919         module.
8920         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8921         Mention weakness with symlink timestamps.
8922         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8923         to utimensat/futimens instead.
8924         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8925
8926         test-dup2: enhance test
8927         * tests/test-dup2.c (main): Also check AT_FDCWD.
8928
8929         test-stat-time: avoid more spurious failures
8930         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8931         xfs; and avoid race if the two timestamps cross quantization edge.
8932
8933         relocatable: prefer 'file system' over 'filesystem'
8934         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8935         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8936         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8937         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8938         * lib/relocatable.c (compute_curr_prefix): Likewise.
8939
8940 2009-10-10  Jim Meyering  <meyering@redhat.com>
8941
8942         stat-time-tests: check for the usleep function
8943         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8944
8945 2009-10-10  Bruno Haible  <bruno@clisp.org>
8946
8947         * modules/xnanosleep: Put the Link section after the Include section.
8948
8949 2009-10-09  Eric Blake  <ebb9@byu.net>
8950
8951         dup2: work around FreeBSD 6.1 bug
8952         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8953         * doc/posix-functions/dup2.texi (dup2): Document it.
8954         Reported by Nelson H. F. Beebe and Jim Meyering.
8955
8956         test-stat-time: port to buggy NFS clients
8957         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8958         (test_ctime): Also skip test if mtime and ctime are skewed.
8959
8960         maint: prefer 'file system' over 'filesystem'
8961         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8962         * doc/posix-functions/lstat.texi (lstat): Likewise.
8963         * lib/file-has-acl.c (file_has_acl): Likewise.
8964         * lib/fwriteerror.c [TEST]: Likewise.
8965         * tests/test-areadlink.h (test_areadlink): Likewise.
8966         * tests/test-areadlinkat-with-size.c (main): Likewise.
8967         * tests/test-areadlinkat.c (main): Likewise.
8968         * tests/test-canonicalize-lgpl.c (main): Likewise.
8969         * tests/test-canonicalize.c (main): Likewise.
8970         * tests/test-fstatat.c (main): Likewise.
8971         * tests/test-linkat.c (main): Likewise.
8972         * tests/test-lstat.h (test_lstat_func): Likewise.
8973         * tests/test-mkdir.h (test_mkdir): Likewise.
8974         * tests/test-readlink.h (test_readlink): Likewise.
8975         * tests/test-remove.c (main): Likewise.
8976         * tests/test-rename.h (test_rename): Likewise.
8977         * tests/test-renameat.c (main): Likewise.
8978         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8979         * tests/test-symlink.h (test_symlink): Likewise.
8980         * tests/test-symlinkat.c (main): Likewise.
8981         * tests/test-unlink.h (test_unlink_func): Likewise.
8982         * tests/test-unlinkat.c (main): Likewise.
8983
8984         maint: make realtime library usage explicit
8985         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8986         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8987         * modules/settime (Link): Likewise.
8988         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8989
8990         test-stat-time: speed up execution
8991         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8992         warning on mingw.
8993         (nap): New helper function.
8994         (prepare_test): Use it to reduce sleep time.
8995         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8996         execution.
8997         * modules/stat-time-tests (configure.ac): Check for usleep.
8998
8999 2009-10-09  Jim Meyering  <meyering@redhat.com>
9000
9001         selinux-h: always use getfilecon wrappers
9002         * lib/getfilecon.c: New file.
9003         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9004         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9005         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9006         (fgetfilecon): Provide a stub.
9007         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9008         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9009         file unconditionally.
9010         When <selinux/selinux.h> is found, arrange to use wrappers.
9011         * modules/selinux-h (Files): Add getfilecon.c.
9012         (Makefile.am): Substitute include-next-related bits
9013         into the now-always-generated selinux/selinux.h file.
9014         * doc/glibc-functions/lgetfilecon.texi: New file.
9015         * doc/glibc-functions/fgetfilecon.texi: New file.
9016         * doc/glibc-functions/getfilecon.texi: New file.
9017         * doc/glibc-functions/getfilecon-desc.texi: New file.
9018         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9019         which to pull in the new files.
9020         * MODULES.html.sh (Misc): Add selinux-h.
9021
9022 2009-10-08  Jim Meyering  <meyering@redhat.com>
9023
9024         unistd: fix comment typo
9025         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9026
9027 2009-10-08  Eric Blake  <ebb9@byu.net>
9028
9029         areadlink: use SIZE_MAX consistently
9030         * modules/areadlink (Depends-on): Add stdint.
9031         * modules/areadlink-with-size (Depends-on): Likewise.
9032         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9033         gives NULL; drop sys/types, since unistd gives size_t; and add
9034         stdint for SIZE_MAX.
9035         (SIZE_MAX): Rely on headers.
9036         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9037         and add stdint.
9038         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9039         (SIZE_MAX): Likewise.
9040         (INITIAL_BUF_SIZE): Turn into enum.
9041         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9042
9043 2009-10-08  Jim Meyering  <meyering@redhat.com>
9044
9045         areadlinkat: avoid compilation failure
9046         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9047         Fix typo in comment.
9048
9049 2009-10-07  Eric Blake  <ebb9@byu.net>
9050
9051         areadlinkat-with-size: new module
9052         * modules/areadlinkat-with-size: New module.
9053         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9054         * lib/areadlink.h (areadlinkat): Declare it.
9055         * MODULES.html.sh (File system functions): Mention it.
9056         * modules/areadlinkat-with-size-tests: New test.
9057         * tests/test-areadlinkat-with-size.c: New file.
9058
9059         xreadlinkat: new module
9060         * modules/xreadlinkat: New module.
9061         * lib/xreadlinkat.c (xreadlinkat): New file.
9062         * lib/xreadlink.h (xreadlinkat): Declare it.
9063         * MODULES.html.sh (File system functions): Mention it.
9064
9065         areadlinkat: new module
9066         * lib/at-func.c (FUNC_FAIL): New define.
9067         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9068         * modules/areadlinkat: New module.
9069         * lib/linkat.c (areadlinkat): Move...
9070         * lib/areadlinkat.c (areadlinkat): ...to new file.
9071         * lib/areadlink.h (areadlinkat): Declare it.
9072         * modules/linkat (Depends-on): Add areadlinkat.
9073         * MODULES.html.sh (File system functions): Mention it.
9074         * modules/areadlinkat-tests: New test.
9075         * tests/test-areadlinkat.c: New file.
9076
9077         areadlink, areadlink-with-size: add tests
9078         * modules/areadlink-tests: New test.
9079         * modules/areadlink-with-size-tests: Likewise.
9080         * tests/test-areadlink.h: New file.
9081         * tests/test-areadlink.c: Likewise.
9082         * tests/test-areadlink-with-size.c: Likewise.
9083
9084         maint: minor cleanups
9085         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9086         _UNUSED_PARAMETER_ instead.
9087         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9088         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9089         * modules/linkat-tests (Files): Distribute test-link.h.
9090
9091         openat, utimens: whitespace cleanup
9092         * lib/openat.c: Prefer space throughout, rather than mix of 8
9093         spaces vs. tabs.
9094         * lib/at-func.c: Likewise.
9095         * lib/utimens.c: Likewise.
9096
9097         openat: avoid using wrong fd
9098         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9099         working directory chooses same fd.
9100         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9101
9102         mkdir, mkdirat: fix cygwin 1.5.x bug
9103         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9104         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9105         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9106         bug.
9107         (gl_PREREQ_MKDIR): Delete unused macro.
9108         * modules/mkdir (Files): Track file rename.
9109         (configure.ac): Update macro name.
9110         * modules/openat (Depends-on): Add mkdir.
9111         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9112
9113         mkdir, mkdirat: add tests
9114         * modules/mkdir-tests: New test.
9115         * tests/test-mkdir.h: New file.
9116         * tests/test-mkdir.c: Likewise.
9117         * tests/test-mkdirat.c: Likewise.
9118         * modules/openat-tests (Files): Add new files.
9119         (Makefile.am): Run new test.
9120
9121 2009-10-06  Eric Blake  <ebb9@byu.net>
9122
9123         doc: tweak *at function documentation
9124         * doc/posix-functions/faccessat.texi (faccessat): Mention
9125         known issue with replacement.
9126         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9127         * doc/posix-functions/linkat.texi (linkat): Likewise.
9128         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9129         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9130         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9131         * doc/posix-functions/renameat.texi (renameat): Likewise.
9132         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9133
9134         openat: fix GNU/Hurd bug in unlinkat
9135         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9136         broken.
9137         * doc/posix-functions/unlink.texi (unlink): Document this.
9138         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9139
9140         fdopendir: fix GNU/Hurd bug
9141         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9142         allowing non-directory fds.
9143         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9144         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9145         * modules/dirent (Makefile.am): Substitute it.
9146         * lib/dirent.in.h (fdopendir): Declare replacement.
9147         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9148         * tests/test-fdopendir.c (main): Test something other than
9149         /dev/null, since on Hurd that behaves like a directory.
9150
9151         test-symlink: port to GNU/Hurd
9152         * tests/test-symlink.h (test_symlink): Relax expected errno.
9153
9154         doc: tweak more cygwin information
9155         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9156         now compatible with glibc.
9157         * doc/posix-functions/getopt.texi (getopt): Likewise.
9158
9159         getopt-gnu: add another test
9160         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9161         guarantee behavior relied on by m4.
9162         * tests/test-getopt.c (main): Use it.
9163         * modules/getopt-posix-tests (Depends-on): Add setenv.
9164         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9165
9166         getopt: fix compilation on darwin
9167         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9168         include.
9169         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9170         Reported by Ludovic Courtès.
9171
9172 2009-10-06  Bruno Haible  <bruno@clisp.org>
9173
9174         * modules/size_max (Description): Discourage its use.
9175         Reported by Simon Josefsson.
9176
9177 2009-10-06  Jim Meyering  <meyering@redhat.com>
9178
9179         linkat: avoid compilation failure
9180         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9181
9182 2009-10-05  Eric Blake  <ebb9@byu.net>
9183
9184         linkat: support Linux 2.6.17
9185         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9186         linkat on Linux, but allow cache variable override.
9187         * lib/linkat.c (rpl_linkat): Define override.
9188         * modules/linkat (Depends-on): Add symlinkat.
9189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9190         * modules/unistd (Makefile.am): Substitute it.
9191         * lib/unistd.in.h (linkat): Declare replacement.
9192         Reported by Pádraig Brady.
9193
9194         quotearg: port test to systems with C.UTF-8 locale
9195         * tests/test-quotearg.c (struct result_strings): Add another
9196         member, differentiating between C.ASCII and C.UTF-8 handling.
9197         (compare_strings): Add parameter.
9198         (main): Adjust all callers.
9199
9200         getopt: avoid clash with FreeBSD _getopt_internal
9201         * lib/getopt.in.h (_getopt_internal): Override the name.
9202         * lib/getopt_int.h (includes): Pick up any overrides.
9203         Reported by Reuben Thomas.
9204
9205         hash: allow C89 compilation
9206         * lib/hash.c (check_tuning): Move declaration before statement.
9207         Reported by Reuben Thomas.
9208
9209 2009-10-05  Karl Berry  <karl@gnu.org>
9210
9211         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9212
9213 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9214             Bruno Haible  <bruno@clisp.org>
9215
9216         * lib/uname.c (uname): Use a table-driven algorithm to compute
9217         Windows NT versions.
9218
9219 2009-10-04  Bruno Haible  <bruno@clisp.org>
9220
9221         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9222         program_invocation_short_name.
9223         * modules/progname (configure.ac): Test for presence of
9224         program_invocation_short_name.
9225         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9226
9227 2009-10-04  Bruno Haible  <bruno@clisp.org>
9228
9229         * lib/progname.c (set_program_name): Fix comment.
9230         Reported by Jim Meyering.
9231
9232 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9233             Bruno Haible  <bruno@clisp.org>
9234
9235         * lib/uname.c: Include <string.h>.
9236         (uname): Do only one call to GetVersionEx in the common case.
9237
9238 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9239             Bruno Haible  <bruno@clisp.org>
9240
9241         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9242         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9243         (uname): Add support for Windows CE and various non-x86 CPU types.
9244
9245 2009-10-03  Bruno Haible  <bruno@clisp.org>
9246
9247         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9248         invocation to tests/configure.ac.
9249         Reported by Ian Beckwith <ianb@erislabs.net>.
9250
9251 2009-10-02  Eric Blake  <ebb9@byu.net>
9252
9253         fchdir: avoid compiler warning
9254         * lib/fchdir.c (canonicalize_file_name)
9255         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9256
9257         test-open: support mingw errno values
9258         * tests/test-open.h (test_open): Relax test.
9259         * tests/test-fopen.h (test_fopen): Likewise.
9260         * tests/test-openat-safer.c (main): Likewise.
9261
9262         open: fix opening directory on mingw
9263         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9264
9265         test-open: on GNU/Hurd, /dev/null is a directory
9266         * tests/test-fopen.h (main): Rename...
9267         (test_fopen): ...to this.  Use a guaranteed non-directory when
9268         confirming open behavior on trailing slash.
9269         * tests/test-openat-safer.c (main): Likewise.
9270         * tests/test-open.h (main): Likewise....
9271         (test_open): ...to this.
9272         * tests/test-fopen.c (main): Adjust caller.
9273         * tests/test-fopen-safer.c (main): Likewise.
9274         * tests/test-open.c (main): Likewise.
9275         * tests/test-fcntl-safer.c (main): Likewise.
9276         Reported by Samuel Thibault.
9277
9278         rename, fchdir: don't ignore chdir failure
9279         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9280         * lib/rename.c (rpl_rename) [W32]: Likewise.
9281         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9282         an empty destination directory if source cannot be renamed,
9283         although there is still possibility for failure.
9284         * doc/posix-functions/rename.texi (rename): Document the race.
9285         Reported by Jim Meyering.
9286
9287         maint: cleanup whitespace in recent commits
9288         * lib/rename.c (rpl_rename): Remove tabs.
9289         * tests/test-link.h (test_link): Likewise.
9290         * lib/fchdir.c (get_name): Likewise.
9291         Reported by Jim Meyering.
9292
9293 2009-10-02  Ben Pfaff  <blp@gnu.org>
9294
9295         relocatable-prog-wrapper: Add missing dependency on
9296         double-slash-root.
9297         * modules/relocatable-prog-wrapper: Add dependency.
9298         Reported by Ian Beckwith <ianb@erislabs.net>.
9299
9300 2009-10-02  Eric Blake  <ebb9@byu.net>
9301
9302         renameat: fix Solaris bugs
9303         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9304         needed fixing.
9305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9306         * modules/stdio (Makefile.am): Substitute it.
9307         * lib/stdio.in.h (renameat): Declare replacement.
9308         * lib/renameat.c (rpl_renameat): Implement fix.
9309
9310         renameat: new module
9311         * modules/renameat: New file.
9312         * lib/renameat.c (renameat): Likewise.
9313         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9315         * modules/stdio (Makefile.am): Substitute them.
9316         * lib/stdio.in.h (renameat): Declare it.
9317         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9318         * doc/posix-functions/renameat.texi (renameat): Likewise.
9319         * modules/renameat-tests: New test.
9320         * tests/test-renameat.c: Likewise.
9321
9322         rename: fix mingw bugs
9323         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9324         directory overwrite bugs.
9325
9326         rename: fix another cygwin 1.5 bug
9327         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9328         checks.
9329         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9330         unnecessary cygwin workarounds.  Also work around bug with moving
9331         full directory onto an empty one.
9332         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9333
9334         rename-dest-slash: merge into rename module
9335         * modules/rename-dest-slash (Status): Mark obsolete.
9336         (Depends-on): Add rename.
9337         (Files): Let rename do it all.
9338         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9339         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9340         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9341         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9342         * lib/rename.c (rpl_rename): Update comments.
9343
9344         rename: fix cygwin 1.5.x bugs
9345         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9346         * lib/rename.c (rpl_rename): Work around them.
9347         * modules/rename (Depends-on): Add same-inode.
9348
9349         rename: fix Solaris 10 bug
9350         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9351         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9352         was the only bug.
9353
9354         rename: fix Solaris 9 bug
9355         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9356         on non-directory.  Avoid calling exit.
9357         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9358         strdup.
9359         * modules/rename-tests (Depends-on): Drop lstat.
9360         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9361         (gl_PREREQ_RENAME): Delete unused macro.
9362
9363         rename-dest-slash: fix NetBSD bug
9364         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9365         links.
9366         * modules/rename-dest-slash (Depends-on): Add same-inode.
9367
9368         rename-tests: new test, exposes several platform bugs
9369         * modules/rename-tests: New file.
9370         * tests/test-rename.h: Likewise.
9371         * tests/test-rename.c: Likewise.
9372         * doc/posix-functions/rename.texi (rename): Improve documentation,
9373         including bugs that will eventually be fixed in gnulib.
9374
9375 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9376
9377         * lib/uname.c: Include <stdlib.h>
9378         (uname): Assume version info is available.
9379
9380 2009-10-02  Jim Meyering  <meyering@redhat.com>
9381
9382         gnu-web-doc-update: correct --help output
9383         * build-aux/gnu-web-doc-update: Make --help output relevant.
9384
9385         gnu-web-doc-update: add standard options
9386         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9387
9388         gnu-web-doc-update: New module.
9389         Use this script to automatically update the on-line web documentation
9390         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9391         * modules/gnu-web-doc-update: New file, from coreutils.
9392         * build-aux/gnu-web-doc-update: New script.
9393
9394 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9395
9396         link: LoadLibrary is not needed.
9397         * lib/link.c: Use GetModuleHandle.
9398
9399 2009-10-01  Eric Blake  <ebb9@byu.net>
9400
9401         getopt: bump serial number
9402         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9403         change.
9404
9405         tests: tighten link, rmdir, and remove tests
9406         * tests/test-link.h (includes): No need to use <config.h> here.
9407         Clean up if directory hard link was created, otherwise test for
9408         trailing '.'.
9409         * tests/test-linkat.c (main): Simplify.
9410         * tests/test-remove.c (main): Enhance test for trailing '.'.
9411         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9412
9413 2009-10-01  Jim Meyering  <meyering@redhat.com>
9414
9415         maint.mk: requiring "make major" was annoying, for a "minor" release.
9416         What is intended is "stable", to contrast with alpha and beta,
9417         so require "make stable", not "make major".
9418         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9419         (get_tool_versions): Likewise.
9420         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9421
9422 2009-09-30  Ben Pfaff  <blp@gnu.org>
9423
9424         Fix broken build of replacement for Windows tmpfile().
9425         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9426         flags argument added along with the 'mkostemp' module.
9427
9428 2009-09-28  Bruno Haible  <bruno@clisp.org>
9429
9430         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9431         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9432         to 'remove_elt'.
9433         (gl_list_remove): Update.
9434         * lib/gl_list.c (gl_list_remove): Update.
9435         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9436         to 'remove_elt'.
9437         (gl_oset_remove): Update.
9438         * lib/gl_list.c (gl_oset_remove): Update.
9439         Reported by Eric Blake.
9440
9441 2009-09-28  Eric Blake  <ebb9@byu.net>
9442
9443         doc: mention yet more cygwin 1.7 status
9444         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9445         cygwin.
9446         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9447         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9448
9449         argp: fix test failure
9450         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9451         that are not upper-case.  Pass correct range to tolower.
9452
9453 2009-09-27  Jim Meyering  <meyering@redhat.com>
9454
9455         test-yesno: work around sparc-dash here-document infelicity
9456         Without this change, the literal \177 byte in a here document
9457         would make dash 0.5.5.1-3 access uninitialized memory.
9458         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9459         Instead, use a marker, "@", and filter through tr to create the desired
9460         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9461
9462 2009-09-27  Bruno Haible  <bruno@clisp.org>
9463
9464         Disable untested support for new flavours of ACLs on AIX.
9465         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9466         progress.
9467         * lib/set-mode-acl.c (qset_acl): Likewise.
9468
9469 2008-12-07  Bruno Haible  <bruno@clisp.org>
9470
9471         Add support for new flavours of ACLs on AIX. (Untested.)
9472         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9473         (file_has_acl): Add support for newer AIX.
9474         * lib/set-mode-acl.c (qset_acl): Likewise.
9475         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9476         Rainer Tammer <tammer@tammer.net>.
9477
9478 2009-09-26  Eric Blake  <ebb9@byu.net>
9479
9480         argp: fix compilation of getopt
9481         * lib/getopt.in.h (includes): Use different guard than glibc.
9482         Reported by Sergey Poznyakoff.
9483
9484         doc: mention more cygwin 1.7 status
9485         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9486         bug.
9487         * doc/posix-functions/execl.texi (execl): Likewise.
9488         * doc/posix-functions/execle.texi (execle): Likewise.
9489         * doc/posix-functions/execlp.texi (execlp): Likewise.
9490         * doc/posix-functions/execv.texi (execv): Likewise.
9491         * doc/posix-functions/execve.texi (execve): Likewise.
9492         * doc/posix-functions/execvp.texi (execvp): Likewise.
9493         * doc/glibc-functions/canonicalize_file_name.texi
9494         (canonicalize_file_name): Cygwin 1.7 now provides this.
9495         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9496         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9497         on AT_SYMLINK_NOFOLLOW.
9498
9499 2009-09-24  Eric Blake  <ebb9@byu.net>
9500
9501         test-linkat: make test more robust
9502         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9503
9504         getopt: fix inclusion guards for cygwin
9505         * modules/getopt-posix (Depends-on): Add include-next.
9506         (Makefile.am): Substitute more items in replacement header.
9507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9508         <getopt.h>.
9509         * lib/getopt.in.h (includes): Use split inclusion guard, and
9510         prefer <getopt.h> over include <unistd.h> when one is present.
9511         (option): Also override name of 'struct option'.
9512
9513         same-inode: revert prior change; it is not yet ready
9514         * NEWS: Undo mention of this change.
9515         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9516         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9517         * lib/cycle-check.c (cycle_check): Likewise.
9518         * lib/same.c (same_name): Likewise.
9519         * lib/at-func2.c (at_func2): Likewise.
9520
9521 2009-09-23  Eric Blake  <ebb9@byu.net>
9522
9523         linkat: new module
9524         * modules/linkat: New file.
9525         * lib/at-func2.c (at_func2): Likewise.
9526         * lib/linkat.c (linkat): Likewise.
9527         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9528         * lib/openat-priv.h (at_func2): Add declaration.
9529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9530         * modules/unistd (Makefile.am): Substitute them.
9531         * lib/unistd.in.h (linkat): Declare it.
9532         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9533         * doc/posix-functions/linkat.texi (linkat): Likewise.
9534         * doc/posix-functions/link.texi (link): Tweak wording.
9535         * tests/test-link.c (main): Move guts...
9536         * tests/test-link.h (test_link): ...into new file.
9537         * modules/linkat-tests: New test.
9538         * tests/test-linkat.c: Likewise.
9539         * modules/link-tests (Files): Ship new file.
9540         (Depends-on): Add stdbool.
9541
9542         dirname: add library-safe mdir_name
9543         * lib/dirname.h (mdir_name): New prototype.
9544         * lib/dirname.c (dir_name): Move guts...
9545         (mdir_name): ...to new function that avoids xalloc_die.
9546
9547         fchdir: another mingw fix
9548         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9549         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9550         on mingw (where it has not yet been ported), and make it optional
9551         elsewhere.
9552         (_gl_register_fd): Use it.
9553
9554         same-inode: make SAME_INODE tri-state, to port to mingw
9555         * NEWS: Mention this change.
9556         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9557         st_ino always being 0.
9558         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9559         * lib/cycle-check.c (cycle_check): Likewise.
9560         * lib/same.c (same_name): Likewise.
9561
9562         lstat: avoid mingw compilation error
9563         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9564         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9565         lstat ourselves.
9566         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9567         was adequate.
9568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9569         the checks for lstat.
9570         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9571
9572         link: fix test failure on Solaris 9
9573         * lib/link.c (rpl_link): Don't assume link will catch bogus
9574         trailing slash on source.
9575
9576         test-symlinkat: enhance test
9577         * tests/test-readlink.c (main): Move guts...
9578         * tests/test-readlink.h (test_readlink): ...into new file.
9579         * tests/test-symlink.c (main): Move guts...
9580         * tests/test-symlink.h (test_symlink): ...into new file.
9581         * tests/test-symlinkat.c (main): Use new files for further
9582         coverage.
9583         (do_symlink, do_readlink): New helper functions.
9584         * modules/symlink-tests (Files): Ship new file.
9585         (Depends-on): Add stdbool.
9586         * modules/readlink-tests (Files): Ship new file.
9587         (Depends-on): Add stdbool.
9588         * modules/symlinkat-tests (Files): Use new files.
9589
9590 2009-09-23  Eric Blake  <ebb9@byu.net>
9591
9592         readlink: document portability issue with symlink length
9593         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9594         systems have bogus st_size on symlinks, and mention the
9595         areadlink-with-size module.
9596         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9597         * doc/posix-functions/readlink.texi (readlink): Mention the
9598         areadlink module, and ERANGE failure.
9599         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9600         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9601
9602         readlink: fix Solaris 9 bug with trailing slash
9603         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9604         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9605         * doc/posix-functions/readlink.texi (readlink): Document this.
9606         * modules/readlink-tests: New test.
9607         * tests/test-readlink.c: Likewise.
9608
9609         readlink: fix cygwin 1.5.x bug with return type
9610         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9611         * lib/unistd.in.h (readlink): Use ssize_t.
9612         * lib/readlink.c (readlink): Likewise.
9613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9614         * modules/unistd (Makefile.am): Substitute it.
9615         * lib/unistd.in.h (readlink): Declare replacement.
9616         * doc/posix-functions/readlink.texi (readlink): Document this.
9617
9618         symlink: use throughout gnulib
9619         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9620         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9621         symlink is not used.
9622         * modules/symlinkat (Depends-on): Add symlink.
9623         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9624         * modules/canonicalize-tests (Depends-on): Likewise.
9625         * modules/lstat-tests (Depends-on): Likewise.
9626         * modules/openat-tests (Depends-on): Likewise.
9627         * modules/remove-tests (Depends-on): Likewise.
9628         * modules/rmdir-tests (Depends-on): Likewise.
9629         * modules/unlink-tests (Depends-on): Likewise.
9630         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9631         * tests/test-canonicalize.c (symlink): Likewise.
9632         * tests/test-fstatat.c (symlink): Likewise.
9633         * tests/test-lstat.c (symlink): Likewise.
9634         * tests/test-remove.c (symlink): Likewise.
9635         * tests/test-rmdir.c (symlink): Likewise.
9636         * tests/test-unlink.c (symlink): Likewise.
9637         * tests/test-unlinkat.c (symlink): Likewise.
9638
9639         symlink: new module, for Solaris 9 bug
9640         * modules/symlink: New file.
9641         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9642         * lib/symlink.c: Likewise.
9643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9644         * modules/unistd (Makefile.am): Substitute them.
9645         * lib/unistd.in.h (symlink): Declare replacement.
9646         * MODULES.html.sh (File system functions): Mention it.
9647         * doc/posix-functions/symlink.texi (symlink): Likewise.
9648         * modules/symlink-tests: New test.
9649         * tests/test-symlink.c: Likewise.
9650
9651 2009-09-23  Bruno Haible  <bruno@clisp.org>
9652
9653         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9654         when needed.
9655         Test case: gnulib-tool --import --with-tests atexit inttypes.
9656         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9657
9658 2009-09-23  Bruno Haible  <bruno@clisp.org>
9659
9660         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9661         subcommand, not in a subshell.
9662
9663 2009-09-22  Eric Blake  <ebb9@byu.net>
9664
9665         unistd: sort replacement declarations
9666         * lib/unistd.in.h: Sort declarations.
9667
9668         open, openat: minor optimization
9669         * lib/open.c (open): If open succeeded, len is non-zero.
9670         * lib/openat.c (rpl_openat): Likewise.
9671
9672         link-follow: ensure correct result
9673         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9674         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9675         distinguish between possible failures.
9676
9677 2009-09-21  Eric Blake  <ebb9@byu.net>
9678
9679         fts: avoid compiler warning
9680         * lib/fts.c (dirent_inode_sort_may_be_useful)
9681         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9682
9683 2009-09-19  Bruno Haible  <bruno@clisp.org>
9684
9685         * lib/progreloc.c (canonicalize_file_name): New declaration.
9686
9687 2009-09-19  Eric Blake  <ebb9@byu.net>
9688
9689         link: fix quoting
9690         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9691
9692         openat: fix openat bugs on Solaris 9
9693         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9694         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9695         * modules/openat (Depends-on): Add open.
9696         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9697         * modules/fcntl-h (Makefile.am): Substitute it.
9698         * lib/fcntl.in.h (openat): Declare replacement.
9699         * doc/posix-functions/openat.texi (openat): Document this.
9700
9701         openat: move fstatat and unlinkat into correct files
9702         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9703         compiled.
9704         * lib/openat.c (fstatat, unlinkat): Move...
9705         * lib/fstatat.c (fstatat): ...into correct files.
9706         * lib/unlinkat.c (unlinkat): Likewise.
9707
9708         openat: fix unlinkat bugs on Solaris 9
9709         * lib/unlinkat.c (unlinkat): New file.
9710         * modules/openat (Depends-on): Add unlink.
9711         (Files): Distribute it.
9712         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9713         trailing slash behavior is broken.
9714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9715         * modules/unistd (Makefile.am): Substitute it.
9716         * lib/unistd.in.h (unlinkat): Declare replacement.
9717         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9718
9719         openat: fix fstatat bugs on Solaris 9
9720         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9721         stat.
9722         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9723
9724         test-unlinkat: enhance test, to expose Solaris 9 bug
9725         * tests/test-unlink.c (main): Factor guts...
9726         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9727         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9728         * tests/test-rmdir.c (main): Adjust caller.
9729         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9730         (unlinker): New helper function.
9731         (rmdirat): Enhance check.
9732         * modules/rmdir-tests (Depends-on): Add stdbool.
9733         * modules/unlink-tests (Depends-on): Likewise.
9734         (Files): Add test-unlink.h.
9735         * modules/openat-tests (Files): Likewise.
9736         (Depends-on): Add unlinkdir.
9737
9738         test-fstatat: new test, to expose Solaris 9 bugs
9739         * tests/test-stat.c (main): Factor guts...
9740         * tests/test-stat.h (test_stat_func): ...into new file.
9741         * tests/test-lstat.c (main): Factor guts...
9742         * tests/test-lstat.h (test_lstat_func): ...into new file.
9743         * tests/test-fstatat.c: New file.
9744         * modules/stat-tests (Files): Add test-stat.h.
9745         * modules/lstat-tests (Files): Add test-lstat.h.
9746         (Depends-on): Add stdbool.
9747         * modules/openat-tests (Depends-on): Add pathmax.
9748         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9749         (Makefile.am): Run new test.
9750
9751         remove: new module, for mingw and Solaris 9 bugs
9752         * modules/remove: New file.
9753         * lib/remove.c: Likewise.
9754         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9756         * modules/stdio (Makefile.am): Use them.
9757         * lib/stdio.in.h (remove): Declare replacement.
9758         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9759         * doc/posix-functions/remove.texi (remove): Likewise.
9760         * modules/remove-tests: New test.
9761         * tests/test-remove.c: Likewise.
9762
9763         unlink: new module, for Solaris 9 bug
9764         * modules/unlink: New file.
9765         * lib/unlink.c: Likewise.
9766         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9768         * modules/unistd (Makefile.am): Use them.
9769         * lib/unistd.in.h (stat): Declare replacement.
9770         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9771         * doc/posix-functions/unlink.texi (unlink): Likewise.
9772         * modules/unlink-tests: New test.
9773         * tests/test-unlink.c: Likewise.
9774
9775         lstat: fix Solaris 9 bug
9776         * lib/lstat.c (lstat): Also check for trailing slash on
9777         non-symlink, non-directories.  Use stat module to simplify logic.
9778         * doc/posix-functions/lstat.texi (lstat): Document it.
9779         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9780         (configure.ac): Check for symlink.
9781         * tests/test-lstat.c (main): Add more tests.
9782
9783         stat: add as dependency to other modules
9784         * modules/chown (Depends-on): Add stat.
9785         * modules/euidaccess (Depends-on): Likewise.
9786         * modules/fchdir (Depends-on): Likewise.
9787         * modules/isdir (Depends-on): Likewise.
9788         * modules/link (Depends-on): Likewise.
9789         * modules/lstat (Depends-on): Likewise.
9790         * modules/mkdir-p (Depends-on): Likewise.
9791         * modules/modechange (Depends-on): Likewise.
9792         * modules/open (Depends-on): Likewise.
9793         * modules/readlink (Depends-on): Likewise.
9794         * modules/same (Depends-on): Likewise.
9795
9796         stat: fix Solaris 9 bug
9797         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9798         slash.
9799         * lib/stat.c (rpl_stat): Work around it.
9800         * doc/posix-functions/stat.texi (stat): Update documentation.
9801
9802         stat: new module, for mingw bug
9803         * modules/stat: New file.
9804         * lib/stat.c: Likewise.
9805         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9806         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9807         * modules/sys_stat (Makefile.am): Use them.
9808         * lib/sys_stat.in.h (stat): Declare replacement.
9809         * lib/openat.c (fstatat): Deal with lstat and stat being function
9810         macros.
9811         * modules/openat (Depends-on): Add inline.
9812         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9813         * doc/posix-functions/stat.texi (stat): Likewise.
9814         * modules/stat-tests: New test.
9815         * tests/test-stat.c: Likewise.
9816
9817 2009-09-19  Jim Meyering  <meyering@redhat.com>
9818
9819         syntax-check: detect unnecessary inclusion of canonicalize.h
9820         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9821
9822 2009-09-19  Eric Blake  <ebb9@byu.net>
9823
9824         canonicalize-lgpl: adjust clients to use correct header
9825         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9826         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9827         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9828         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9829         * lib/progreloc.c (includes): Likewise.
9830
9831 2009-09-19  Jim Meyering  <meyering@redhat.com>
9832
9833         test-posixtm.c: correct a comment
9834         * tests/test-posixtm.c: Correct first-line comment.
9835         Spotted by Eric Blake.
9836
9837 2009-09-16  Jim Meyering  <meyering@redhat.com>
9838
9839         posixtm-tests: make T const-correct; add a test case
9840         * tests/test-posixtm.c (T): Declare const.
9841         Add a test for -(2^31+1).
9842         Remove useless can-succeed-only-in-2002 test.
9843
9844         posixtm-tests: adjust the sole failing test
9845         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9846         expected output matches what mktime now produces.  Cross-checked via
9847         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9848
9849         posixtm: move #ifdef'd tests into a new module
9850         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9851         * tests/test-posixtm.c: ... this new file.
9852         * modules/posixtm-tests: New module.
9853
9854 2009-09-19  Eric Blake  <ebb9@byu.net>
9855
9856         openat: simplify use of at-func.c
9857         * lib/at-func.c (includes): Include prerequisites here, to
9858         simplify requirements on client files.
9859         * lib/openat-priv.h: Add double-inclusion guard.
9860         * lib/faccessat.c (includes): Simplify.
9861         * lib/fchmodat.c (includes): Likewise.
9862         * lib/fchownat.c (includes): Likewise.
9863         * lib/mkdirat.c (includes): Likewise.
9864         * lib/mkfifoat.c (includes): Likewise.
9865         * lib/symlinkat.c (includes): Likewise.
9866
9867         openat: allow return of fd 0
9868         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9869         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9870         unistd-safer.
9871         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9872         <fcntl.h>; this module does not leak fds.
9873         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9874         must be allowed to return 0, leaving openat_safer to add the
9875         safety.
9876         (openat_permissive): Avoid writing to just-opened fd 2 if
9877         restoring the current directory fails.
9878         * lib/openat-die.c (openat_restore_fail): Add comment.
9879         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9880         (save_cwd): Guarantee safe fd, but without use of open_safer.
9881         * tests/test-openat.c: New test.
9882         * modules/openat-tests (Files, Makefile.am): Distribute and build
9883         new file.
9884
9885         relocatable-prog-wrapper: fix build
9886         * modules/relocatable-prog-wrapper (Files): Update name of
9887         canonicalize m4 file, broken on 2009-09-17.
9888         Reported by emad hajjar <aleppos@hotmail.com>.
9889
9890 2009-09-19  Bruno Haible  <bruno@clisp.org>
9891
9892         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9893         * lib/safe-alloc.c: Likewise.
9894         Reported by Ian Beckwith <ianb@erislabs.net>.
9895
9896 2009-09-18  Bruno Haible  <bruno@clisp.org>
9897
9898         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9899         Reported by <erobles@sensacd.com.mx>.
9900
9901 2009-09-17  Eric Blake  <ebb9@byu.net>
9902
9903         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9904         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9905         slashes when checking if last component is missing.
9906         * tests/test-canonicalize.c (main): Test this.
9907
9908         canonicalize, canonicalize-lgpl: honor // if distinct from /
9909         * modules/canonicalize (Files): Add double-slash-root.m4.
9910         * modules/canonicalize-lgpl (Files): Likewise.
9911         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9912         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9913         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9914         fallback definition.
9915         (canonicalize_filename_mode): Use it to protect //.
9916         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9917         (__realpath): Likewise.
9918         * tests/test-canonicalize.c (main): Test this.
9919         * tests/test-canonicalize-lgpl.c (main): Likewise.
9920         * modules/canonicalize-tests (Depends-on): Add same-inode.
9921         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9922
9923         canonicalize-lgpl: fix glibc bug with trailing slash
9924         * m4/canonicalize-lgpl.m4: Move contents...
9925         * m4/canonicalize.m4: ...here.
9926         (gl_CANONICALIZE_LGPL): Factor realpath check...
9927         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9928         glibc 2.3.5 bug, fixed 2005-04-27.
9929         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9930         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9931         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9932         * modules/canonicalize-lgpl (Files): Manage file rename.
9933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9934         * modules/stdlib (Makefile.am): Substitute witness.
9935         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9936         is needed.
9937         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9938         replacement is required.
9939         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9940         * doc/glibc-functions/canonicalize_file_name.texi
9941         (canonicalize_file_name): Document this.
9942         * doc/posix-functions/realpath.texi (realpath): Likewise.
9943
9944         canonicalize-lgpl: reject non-directory with trailing slash
9945         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9946         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9947         catches failures in glibc 2.3.5.
9948         * tests/test-canonicalize.c (main): Likewise.
9949
9950         canonicalize-lgpl: use native realpath if it works
9951         * lib/canonicalize-lgpl.c (realpath): Guard with
9952         FUNC_REALPATH_WORKS.
9953         * lib/stdlib.in.h (realpath): Make declaration optional based on
9954         HAVE_REALPATH.
9955         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9956         native realpath works.
9957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9958         * modules/stdlib (Makefile.am): Substitute witness.
9959
9960         canonicalize, canonicalize-lgpl: use <stdlib.h>
9961         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9962         (Include): Mention <stdlib.h>.
9963         (configure.ac): Mention functions we provide.
9964         * modules/canonicalize (configure.ac): Likewise.
9965         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9966         realpath if canonicalize_file_name is missing.
9967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9968         * modules/stdlib (Makefile.am): Substitute witnesses.
9969         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9970         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9971         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9972         * NEWS: Document this.
9973         * doc/glibc-functions/canonicalize_file_name.texi
9974         (canonicalize_file_name): Likewise.
9975         * doc/posix-functions/realpath.texi (realpath): Likewise.
9976         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9977
9978         test-canonicalize: consolidate into single C program
9979         * tests/test-canonicalize.sh: Delete; move setup into...
9980         * tests/test-canonicalize.c (main): ...the program, making it
9981         easier to run in debugger.  Add some tests.
9982         * modules/canonicalize-tests (Files): Remove unused file.
9983         (Depends-on): Add progname.
9984         (configure.ac, Makefile.am): Simplify.
9985
9986         test-canonicalize-lgpl: consolidate into single C program
9987         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9988         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9989         easier to run in debugger.  Add some tests.
9990         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9991         (configure.ac, Makefile.am): Simplify.
9992
9993         canonicalize: avoid resolvepath
9994         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9995         unnecessary checks.
9996         * lib/canonicalize.c (includes): Simplify.
9997         (canonicalize_file_name): Drop resolvepath implementation.
9998         * modules/canonicalize (Depends-on): Drop filenamecat.
9999
10000         canonicalize: don't lose errno
10001         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10002         over calls to free.
10003
10004         canonicalize: simplify errno handling
10005         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10006         assignment.
10007
10008         canonicalize, canonicalize-lgpl: update module dependencies
10009         * modules/canonicalize (Depends-on): Add extensions, lstat,
10010         pathmax, stdlib.
10011         (Files): Drop pathmax.h.
10012         (configure.ac): Adjust macro name.
10013         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10014         lstat, stdlib, sys_stat.
10015         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10016         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10017         extensions.
10018         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10019         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10020         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10021         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10022         declaration, if available.
10023         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10024         we can rely on the readlink module.
10025         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10026         (includes): Use <unistd.h> unconditionally.
10027
10028 2009-09-17  Eric Blake  <ebb9@byu.net>
10029
10030         maint: make Include sections of modules consistent
10031         * modules/alloca: Use only header name; no need to list #include.
10032         * modules/alloca-opt: Likewise.
10033         * modules/arpa_inet: Likewise.
10034         * modules/canon-host: Likewise.
10035         * modules/configmake: Likewise.
10036         * modules/dirent: Likewise.
10037         * modules/eealloc: Likewise.
10038         * modules/environ: Likewise.
10039         * modules/fchdir: Likewise.
10040         * modules/fcntl: Likewise.
10041         * modules/fcntl-h: Likewise.
10042         * modules/gethrxtime: Likewise.
10043         * modules/gettime: Likewise.
10044         * modules/ignore-value: Likewise.
10045         * modules/inet_ntop: Likewise.
10046         * modules/inet_pton: Likewise.
10047         * modules/inttypes: Likewise.
10048         * modules/isnand-nolibm: Likewise.
10049         * modules/isnanf-nolibm: Likewise.
10050         * modules/mbchar: Likewise.
10051         * modules/mbfile: Likewise.
10052         * modules/mbiter: Likewise.
10053         * modules/mbuiter: Likewise.
10054         * modules/netdb: Likewise.
10055         * modules/netinet_in: Likewise.
10056         * modules/nproc: Likewise.
10057         * modules/pagealign_alloc: Likewise.
10058         * modules/poll: Likewise.
10059         * modules/printf-frexp: Likewise.
10060         * modules/pthread: Likewise.
10061         * modules/putenv: Likewise.
10062         * modules/random_r: Likewise.
10063         * modules/relocatable-prog: Likewise.
10064         * modules/search: Likewise.
10065         * modules/select: Likewise.
10066         * modules/selinux-h: Likewise.
10067         * modules/settime: Likewise.
10068         * modules/signal: Likewise.
10069         * modules/size_max: Likewise.
10070         * modules/socklen: Likewise.
10071         * modules/ssize_t: Likewise.
10072         * modules/stdarg: Likewise.
10073         * modules/stdbool: Likewise.
10074         * modules/stddef: Likewise.
10075         * modules/stdint: Likewise.
10076         * modules/stdio: Likewise.
10077         * modules/stdlib: Likewise.
10078         * modules/string: Likewise.
10079         * modules/strings: Likewise.
10080         * modules/sys_file: Likewise.
10081         * modules/sys_ioctl: Likewise.
10082         * modules/sys_select: Likewise.
10083         * modules/sys_socket: Likewise.
10084         * modules/sys_stat: Likewise.
10085         * modules/sys_time: Likewise.
10086         * modules/sys_times: Likewise.
10087         * modules/sys_utsname: Likewise.
10088         * modules/sys_wait: Likewise.
10089         * modules/sysexits: Likewise.
10090         * modules/time: Likewise.
10091         * modules/times: Likewise.
10092         * modules/tmpfile: Likewise.
10093         * modules/trim: Likewise.
10094         * modules/unistd: Likewise.
10095         * modules/wchar: Likewise.
10096         * modules/wctype: Likewise.
10097
10098 2009-09-17  Bruno Haible  <bruno@clisp.org>
10099
10100         Make getdate.y compile on QNX and NetBSD 5 / i386.
10101         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10102         TIME_T_FITS_IN_LONG_INT.
10103         * lib/getdate.y (long_time_t): New type.
10104         (relative_time): Change type of 'seconds' field to long_time_t.
10105         (get_date): Update types of local variables. Check against overflow
10106         during conversion from long_time_t to time_t.
10107         Reported by Matt Kraai <kraai@ftbfs.org>
10108         and Hasso Tepper <hasso@netbsd.org>.
10109
10110 2009-09-17  Bruno Haible  <bruno@clisp.org>
10111
10112         * modules/COPYING: Update copyright years.
10113         * modules/README: Likeiwse.
10114         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10115         Reported by Ian Beckwith <ianb@erislabs.net>.
10116
10117 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10118
10119         * users.txt: Update references for gnuit package.
10120
10121 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10122
10123         * m4/getdelim.m4: Fix typo in copyright line.
10124
10125 2009-09-17  Bruno Haible  <bruno@clisp.org>
10126
10127         * lib/atoll.c: Use the standard header with GPL copyright.
10128         * lib/argz.in.h: Likewise.
10129         * lib/glob.c: Likewise.
10130         * lib/glob-libc.h: Likewise.
10131         * lib/random_r.c: Likewise.
10132         * lib/siglist.h: Likewise.
10133         * lib/strsignal.c: Likewise.
10134         Reported by Ian Beckwith <ianb@erislabs.net>.
10135
10136 2009-09-17  Eric Blake  <ebb9@byu.net>
10137
10138         rmdir: ensure correct dependency order
10139         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10140
10141 2009-09-17  Bruno Haible  <bruno@clisp.org>
10142
10143         Disable assertion that fails on NetBSD 5 / i386.
10144         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10145         Reported by Sam Steingold <sds@gnu.org>
10146         and Hasso Tepper <hasso@netbsd.org>.
10147
10148 2009-09-16  Eric Blake  <ebb9@byu.net>
10149
10150         unlinkdir: port to mingw
10151         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10152         on which no one can unlink a directory.
10153
10154         stdlib: sort witness names
10155         * modules/stdlib (Makefile.am): Sort replacements.
10156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10157         * lib/stdlib.in.h: Likewise.
10158
10159         parse-duration-tests: avoid link failure
10160         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10161         LIBINTL.
10162         Reported by Tom G. Christensen.
10163
10164         openat-tests: ensure unlinkat behaves like rmdir
10165         * tests/test-rmdir.c (main): Factor guts...
10166         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10167         * modules/rmdir-tests (Files): Ship new file.
10168         * modules/openat-tests: New test.
10169         * tests/test-unlinkat.c: Likewise.
10170
10171         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10172         * modules/rmdir-errno (Status, Notice): Now obsolete.
10173
10174         rmdir: work around cygwin 1.5.x and mingw bugs
10175         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10176         * lib/rmdir.c (rmdir): Work around it.
10177         * modules/rmdir (Status, Notice): No longer obsolete.
10178         (Files): Add dos.m4.
10179         (Depends-on): Add unistd.
10180         (configure.ac): Set witnesses.
10181         (License): Relax to LGPLv2+.
10182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10183         * modules/unistd (Makefile.am): Substitute witnesses.
10184         * lib/unistd.in.h (rmdir): Declare replacement.
10185         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10186         * modules/rmdir-tests: New tests.
10187         * tests/test-rmdir.c: Likewise.
10188
10189 2009-09-15  Eric Blake  <ebb9@byu.net>
10190
10191         fchdir: improve use of replacement functions
10192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10193         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10194         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10195         REPLACE_CLOSEDIR.
10196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10197         * modules/sys_stat (Makefile.am): Substitute correct witness.
10198         * modules/dirent (Makefile.am): Likewise.
10199         * modules/unistd (Makefile.am): Likewise.
10200         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10201         * lib/unistd.in.h (dup): Likewise.
10202         * lib/sys_stat.in.h (fstat): Likewise.
10203
10204         maint: ignore gnulib-tool temp files
10205         * .gitignore: Ignore files created during gnulib-tool --test.
10206
10207 2009-09-13  Jim Meyering  <meyering@redhat.com>
10208
10209         posixtm: don't reject a time that specify "60" as the number of seconds
10210         * lib/posixtm.c (posixtime): The code to reject invalid dates
10211         would also reject a time specified with the .60 suffix.
10212         But POSIX allows that, in order to accommodate leap seconds.
10213         So don't reject it.
10214         (main): Adjust tests accordingly.
10215         * modules/posixtm (Depends-on): Add stpcpy.
10216
10217 2009-09-11  Jim Meyering  <meyering@redhat.com>
10218
10219         announce-gen: include [$release_type] in emitted Subject:
10220         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10221         e.g., [stable] in the emitted Subject: line.
10222
10223 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10224
10225         Remove obsolete macros from several modules.
10226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10227         obsolete Autoconf macros with their modern counterparts.
10228         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10229         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10231         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10232         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10233         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10235         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10236         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10237         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10238         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10239         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10240         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10241         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10242         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10243         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10244         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10245         * m4/time_r.m4 (gl_TIME_R): Likewise.
10246         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10247         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10248         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10249
10250         Fix copyright header in build-aux scripts.
10251         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10252         recommendation.
10253         * build-aux/ncftpput-ftp: Likewise.
10254         * build-aux/update-copyright: Likewise.
10255
10256 2009-09-09  Eric Blake  <ebb9@byu.net>
10257
10258         test-link: allow Linux choice of errno
10259         * tests/test-link.c (main): Relax test for alternate error.
10260
10261         strndup: fix improper m4 caching
10262         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10263         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10264         (gl_PREREQ_STRNDUP): Delete.
10265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10266         * modules/string (Makefile.am): Substitute it.
10267         * lib/string.in.h (strndup): Modernize prototype.
10268
10269         getcwd: port to mingw
10270         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10271         different from the POSIX assumptions made throughout the getcwd
10272         module; fortunately, the mingw getcwd does not need replacement.
10273         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10274         * modules/getcwd-tests: New test.
10275         * tests/test-getcwd.c: Likewise.
10276
10277         link: fix platform bugs
10278         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10279         * lib/link.c (link): Work around them.  Fix related mingw bug.
10280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10281         * modules/unistd (Makefile.am): Substitute it.
10282         * lib/unistd.in.h (link): Declare replacement.
10283         * doc/posix-functions/link.texi (link): Document this.
10284         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10285
10286         test-link: consolidate into single C program, test more cases
10287         * tests/test-link.sh: Delete.
10288         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10289         at least Cygwin and Solaris.
10290         * modules/link-tests (Files): Remove unused file.
10291         (Depends-on): Add errno, sys_stat.
10292         (Makefile.am): Simplify.
10293
10294 2009-09-08  Bruno Haible  <bruno@clisp.org>
10295
10296         Work around towlower, towupper bug on mingw.
10297         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10298         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10299         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10300         * doc/posix-functions/towupper.texi: Likewise.
10301         Reported by Eric Blake.
10302
10303 2009-09-08  Jim Meyering  <meyering@redhat.com>
10304
10305         build: don't try to run autoheader if we don't use it
10306         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10307         is not used in configure.ac.
10308
10309 2009-09-08  Eric Blake  <ebb9@byu.net>
10310
10311         euidaccess: fix compilation error
10312         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10313
10314         rawmemchr: relax license
10315         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10316         okay.
10317         Reported by Jim Meyering.
10318
10319         mkfifoat: new module
10320         * modules/mkfifoat: New file.
10321         * lib/mkfifoat.c: Likewise.
10322         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10323         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10324         * modules/sys_stat (Makefile.am): Use them.
10325         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10326         * MODULES.html.sh (File system functions): Mention module.
10327         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10328         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10329         * modules/mkfifoat-tests: New test.
10330         * tests/test-mkfifoat.c: Likewise.
10331
10332         strchrnul: relax license
10333         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10334         okay.
10335         Reported by Jim Meyering.
10336
10337 2009-09-08  Eric Blake  <ebb9@byu.net>
10338
10339         fstatat: fix compilation on Solaris
10340         * lib/fstatat.c (includes): Add fcntl.h.
10341         Reported by Pádraig Brady.
10342
10343 2009-09-07  Eric Blake  <ebb9@byu.net>
10344
10345         rename: modernize replacement
10346         * modules/rename (Depends-on): Add stdio.
10347         (configure.ac): Declare witness.
10348         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10349         stdio take care of replacement.
10350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10351         * modules/stdio (Makefile.am): Substitute them.
10352         * lib/stdio.in.h (rename): Declare replacement.
10353         * lib/rename.c (includes): Allow cross-compilation to non-windows
10354         machines.
10355         * doc/posix-functions/rename.texi (rename): Improve
10356         documentation.
10357
10358         stdio: sort witness names
10359         * modules/stdio (Makefile.am): Sort replacements.
10360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10361         * lib/stdio.in.h: Likewise.
10362
10363         getcwd: minor cleanups
10364         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10365         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10366
10367         openat: provide more convenience names
10368         * modules/faccessat (configure.ac): Add C witness.
10369         * lib/unistd.in.h (readlinkat): Fix typo.
10370         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10371         convenience wrappers.
10372         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10373         wrappers in syntax checks.
10374
10375 2009-09-06  Eric Blake  <ebb9@byu.net>
10376
10377         doc: fix comments in recent patches
10378         * lib/faccessat.c: Mention correct function.
10379         * lib/fchmodat.c: Likewise.
10380         * lib/fchownat.c: Likewise.
10381         * lib/symlinkat.c: Likewise.
10382         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10383         constants.
10384
10385         faccessat, symlinkat: continue cleanup of previous patch
10386         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10387         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10388         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10390         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10391         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10392         set.
10393
10394 2009-09-06  Bruno Haible  <bruno@clisp.org>
10395
10396         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10397         (fstatat): Declare if GNULIB_FSTATAT is set.
10398         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10399         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10400         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10401         * modules/fcntl-h (Files): Remove m4/openat.m4.
10402         * modules/sys_stat (Files): Remove m4/openat.m4.
10403         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10404         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10405         * modules/unistd (Files): Remove m4/openat.m4.
10406         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10407         GNULIB_OPENAT.
10408         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10409         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10410         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10411         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10412         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10413         gl_OPENAT_DEFAULTS.
10414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10415         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10416         Don't require gl_OPENAT_DEFAULTS.
10417         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10418         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10419         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10420         (gl_OPENAT_DEFAULTS): Remove macro.
10421
10422 2009-09-06  Bruno Haible  <bruno@clisp.org>
10423
10424         * modules/openat (configure.ac): Remove unneeded witness.
10425
10426 2009-09-06  Bruno Haible  <bruno@clisp.org>
10427
10428         Set errno to ENOSYS when a function is entirely unsupported.
10429         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10430         EOPNOTSUPP.
10431         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10432         * modules/chown (Depends-on): Remove errno.
10433
10434 2009-09-06  Bruno Haible  <bruno@clisp.org>
10435
10436         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10437
10438 2009-09-06  Bruno Haible  <bruno@clisp.org>
10439
10440         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10441
10442 2009-09-06  Ben Pfaff  <blp@gnu.org>
10443             Bruno Haible  <bruno@clisp.org>
10444
10445         Work around a glibc bug in strtok_r.
10446         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10447         Undefine if UNDEFINE_STRTOK_R is set.
10448         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10450         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10451         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10452         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10453         UNDEFINE_STRTOK_R.
10454         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10455
10456 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10457
10458         exclude: minor fix
10459         * lib/exclude.c: Include wctype.h
10460
10461 2009-09-06  Akim Demaille  <demaille@gostai.com>
10462
10463         bootstrap: improve error message
10464         * build-aux/bootstrap (find_tool): Upon failure, report the list
10465         of candidates.
10466         Honor the initial value of the envvar.
10467
10468 2009-09-05  Eric Blake  <ebb9@byu.net>
10469
10470         symlinkat: new module
10471         * modules/symlinkat: New file.
10472         * lib/symlinkat.c: Likewise.
10473         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10475         * modules/unistd (Makefile.am): Use them.
10476         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10477         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10478         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10479         * MODULES.html.sh (File system functions): Mention module.
10480         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10481         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10482         * modules/symlinkat-tests: New test.
10483         * tests/test-symlinkat.c: Likewise.
10484
10485         test-openat-safer: add more checks
10486         * tests/test-openat-safer.c (main): Check more code paths.
10487
10488 2009-09-05  Jim Meyering  <meyering@redhat.com>
10489
10490         syntax-check: detect unnecessary inclusion of openat.h
10491         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10492
10493 2009-09-05  Bruno Haible  <bruno@clisp.org>
10494
10495         Support towlower, towupper.
10496         * doc/posix-functions/towlower.texi: Mention module wctype.
10497         * doc/posix-functions/towupper.texi: Likewise.
10498         * lib/wctype.in.h (towlower, towupper): New functions.
10499         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10500         (ASSERT): New macro.
10501         (e): New variable.
10502         (main): Test also towlower, towupper. Test WEOF argument.
10503         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10504
10505 2009-09-05  Bruno Haible  <bruno@clisp.org>
10506
10507         Fix conversion behaviour when the input is invalid.
10508         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10509         mark occurring in first pass of indirect conversion.
10510         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10511         input.
10512         Found by clang's static analyzer.
10513
10514 2009-09-05  Bruno Haible  <bruno@clisp.org>
10515
10516         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10517         where direct conversion is possible.
10518
10519 2009-09-04  Eric Blake  <ebb9@byu.net>
10520
10521         openat: fail with ENOENT on empty name
10522         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10523         buffer.
10524
10525         link-follow: fix logic bug in prior patch
10526         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10527         reversed sense of yes and no in prior patch.  Avoid confusing
10528         compilation failure with desired semantics.
10529
10530         link-follow: accomodate mingw and cross-compilation
10531         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10532         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10533         cross-compilation results to -1, to make linkat easier to
10534         implement when cross-compiling.  Trivially support mingw.
10535         * modules/link-follow (configure.ac): Call new name.
10536         * NEWS: Mention this.
10537
10538 2009-09-03  Eric Blake  <ebb9@byu.net>
10539
10540         faccessat: compile replacement
10541         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10542         needed.
10543
10544         fts: fix compilation error
10545         * lib/fts.c (includes): Re-add "openat.h", for
10546         openat_needs_fchdir.
10547
10548         faccessat: new module
10549         * modules/faccessat: New file.
10550         * lib/faccessat.c: Likewise.
10551         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10553         * modules/unistd (Makefile.am): Use it.
10554         * lib/unistd.in.h (faccessat): Declare it.
10555         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10556         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10557         * MODULES.html.sh (File system functions): Mention it.
10558         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10559         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10560
10561         euidaccess: prefer POSIX over non-standard implementation
10562         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10563         * lib/euidaccess.c (euidaccess): Use it if available.
10564
10565         openat: make template easier to use
10566         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10567         AT_FUNC_F2 to be undefined.
10568         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10569         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10570         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10571         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10572         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10573         Likewise.
10574         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10575         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10576         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10577         Likewise.
10578
10579         openat: declare in POSIX headers
10580         * NEWS: Mention this.
10581         * modules/openat (configure.ac): Declare witnesses.
10582         (Depends-on): Add fcntl-h, sys_stat, unistd.
10583         (Include): Mention correct headers.
10584         * modules/fcntl-h (Depends-on): Add link-warning.
10585         (Files): Add openat.m4.
10586         (Makefile.am): Substitute witnesses.
10587         * modules/sys_stat (Files, Makefile.am): Likewise.
10588         * modules/unistd (Files, Makefile.am): Likewise.
10589         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10590         (gl_OPENAT_DEFAULTS): New macro.
10591         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10593         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10594         (SYS_STAT_H): Remove unused variable.
10595         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10596         * lib/fcntl--.h (includes): Remove unneeded header.
10597         * lib/openat-safer.c (includes): Likewise.
10598         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10599         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10600         appropriate headers.
10601         (__OPENAT_PREFIX): Delete.
10602         * lib/fcntl.in.h (openat): Provide declaration.
10603         (AT_FDCWD): Fix Solaris bug.
10604         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10605         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10606         * lib/fchmodat.c (includes):  Adjust to find declaration.
10607         * lib/fchownat.c (includes): Likewise.
10608         * lib/mkdirat.c (includes): Likewise.
10609         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10610         still visible.
10611
10612 2009-09-02  Eric Blake  <ebb9@byu.net>
10613
10614         errno: use consistently
10615         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10616         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10617         * lib/canonicalize.c (ELOOP): Likewise.
10618         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10619         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10620         * lib/lchown.c (EOPNOTSUPP): Likewise.
10621         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10622         * lib/savewd.c (ESTALE): Likewise.
10623         * lib/settime.c (ENOSYS): Likewise.
10624         * lib/utimens.c (ENOSYS): Likewise.
10625         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10626         * lib/chdir-safer.c (ELOOP): Likewise.
10627         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10628         * modules/c-stack (Depends-on): Add errno.
10629         * modules/canonicalize (Depends-on): Likewise.
10630         * modules/chdir-safer (Depends-on): Likewise.
10631         * modules/fdopendir (Depends-on): Likewise.
10632         * modules/inet_ntop (Depends-on): Likewise.
10633         * modules/inet_pton (Depends-on): Likewise.
10634         * modules/lchown (Depends-on): Likewise.
10635         * modules/openat (Depends-on): Likewise.
10636         * modules/savewd (Depends-on): Likewise.
10637         * modules/settime (Depends-on): Likewise.
10638         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10639
10640         fts: avoid leaking fds
10641         * modules/fts (Depends-on): Add cloexec.
10642         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10643         flag.
10644
10645         fts: make directory fds more robust
10646         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10647         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10648
10649         backupfile, chdir-long, fts, savedir: make safer
10650         * lib/backupfile.c (includes): Use "dirent--.h", since
10651         numbered_backup can write to stderr during readdir.
10652         * lib/savedir.c (includes): Likewise.
10653         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10654         emulation can write to stderr on failure.
10655         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10656         * lib/getcwd.c: Document why opendir_safer is unused.
10657         * lib/glob.c: Likewise.
10658         * lib/scandir.c: Likewise.
10659         * lib/openat-proc.c: Likewise, for open_safer.
10660         * modules/backupfile (Depends-on): Add dirent-safer.
10661         * modules/savedir (Depends-on): Likewise.
10662         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10663         * modules/chdir-long (Depends-on): Add openat-safer.
10664
10665         openat-safer: new module
10666         * modules/openat-safer: New file.
10667         * lib/openat-safer.c: Likewise.
10668         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10669         * lib/fcntl-safer.h (openat_safer): Declare.
10670         * lib/fcntl--.h (openat): Override.
10671         * MODULES.html.sh (File descriptor based I/O): Mention it.
10672         * lib/openat.h: Add double-inclusion guards.
10673         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10674         "fcntl--.h", so we can implement openat.
10675         * modules/openat-safer-tests: New test.
10676         * tests/test-openat-safer.c: New file.
10677
10678         dirent-safer: new module
10679         * modules/dirent-safer: New file.
10680         * lib/dirent--.h: Likewise.
10681         * lib/dirent-safer.h: Likewise.
10682         * lib/opendir-safer.c: Likewise.
10683         * m4/dirent-safer.m4: Likewise.
10684         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10685         * modules/dirent-safer-tests: New test.
10686         * tests/test-dirent-safer.c: New file.
10687         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10688
10689         fdopendir: optimize on mingw
10690         * lib/unistd.in.h (_gl_directory_name): New prototype.
10691         * lib/fchdir.c (_gl_directory_name): Implement it.
10692         (fchdir): Use it to simplify implementation.
10693         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10694         fchdir, when available, to avoid calling [f]chdir().
10695
10696         fdopendir: split into its own module
10697         * lib/openat.c (fdopendir): Move...
10698         * lib/fdopendir.c: ...into new file.
10699         * modules/fdopendir: New module.
10700         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10701         * modules/openat (Depends-on): Add fdopendir.
10702         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10703         fdopendir here.
10704         * modules/savedir (Depends-on): Only need fdopendir, not full
10705         openat.
10706         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10707         * lib/openat.h (fdopendir): Drop prototype.
10708         * lib/dirent.in.h (fdopendir): Provide prototype.
10709         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10710         * modules/dirent (Makefile.am): Substitute them.
10711         * MODULES.html.sh (File system functions): Mention it.
10712         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10713         * modules/fdopendir-tests: New file.
10714         * tests/test-fdopendir.c: Likewise.
10715
10716         fchdir: use more consistent macro convention
10717         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10718         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10719         REPLACE_FCHDIR, rather than relying on config.h macros.
10720         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10721         inside a single make-time REPLACE_FCHDIR block, rather than using
10722         the config.h FCHDIR_REPLACEMENT.
10723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10724         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10725         Manage fstat replacement.
10726         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10727         REPLACE_FCHDIR.
10728         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10729         (Makefile.am): Substitute REPLACE_FCHDIR.
10730         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10731         FCHDIR_REPLACEMENT.
10732         * lib/dup-safer.c (dup_safer): Likewise.
10733         * lib/dup2.c (rpl_dup2): Likewise.
10734         * lib/dup3.c (rpl_dup3): Likewise.
10735         * lib/open.c (rpl_open): Likewise.
10736
10737         fchdir: simplify error handling, and support dup3
10738         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10739         stdbool, malloc-posix, realloc-posix.
10740         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10741         (ensure_dirs_slot): Return false on allocation failure.
10742         (rpl_dup2): Delete.
10743         (_gl_register_dup): New function.
10744         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10745         (_gl_register_fd): Close fd on allocation failure.
10746         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10747         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10748         prototype.
10749         (rpl_dup2_fchdir): Delete prototype.
10750         * lib/open.c (open): Update caller.
10751         * lib/dup2.c (dup2): Track fchdir metadata.
10752         * lib/dup3.c (dup3): Likewise.
10753         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10755
10756 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10757
10758         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10759         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10760         don't pass arguments to AC_OUTPUT.
10761
10762 2009-09-02  Bruno Haible  <bruno@clisp.org>
10763
10764         * modules/mkdtemp (License): Relicense under LGPLv2+.
10765         Reported by Paolo Bonzini.
10766
10767 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10768
10769         Replace uses of obsolete autoconf macros in Jim's modules.
10770         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10771         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10772         can evoke a warning from autoconf when run with -Wobsolete
10773         enabled.  They were declared obsolete for good reasons (see
10774         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10775         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10776         should not continue using the deprecated macros.
10777         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10778         obsolete Autoconf macros with modern counterparts.
10779         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10780         * m4/dos.m4 (gl_AC_DOS): Likewise.
10781         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10782         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10783         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10784         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10785         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10786         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10787         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10788         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10789         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10790         Likewise.
10791         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10792         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10793         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10794         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10795         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10796         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10797
10798 2009-09-01  Eric Blake  <ebb9@byu.net>
10799
10800         fchdir: fix off-by-one bug in previous patch
10801         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10802         (_gl_unregister_fd): Delete useless if.
10803
10804 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10805
10806         maint.mk: sort the list of syntax-check rules
10807         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10808         easier to get a sense of progress when the rules are run sequentially
10809         and take a long time.
10810
10811 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10812
10813         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10814         * modules/netinet_in: Likewise.
10815         * modules/sys_file: Likewise.
10816         * modules/sys_ioctl: Likewise.
10817         * modules/sys_select: Likewise.
10818         * modules/sys_socket: Likewise.
10819         * modules/sys_stat: Likewise.
10820         * modules/sys_time: Likewise.
10821         * modules/sys_times: Likewise.
10822         * modules/sys_utsname: Likewise.
10823         * modules/sys_wait: Likewise.
10824
10825 2009-09-01  Jim Meyering  <meyering@redhat.com>
10826
10827         fts: help ensure that return values are not ignored
10828         * lib/fts_.h (__GNUC_PREREQ): Define.
10829         (__attribute_warn_unused_result__): Define.
10830         (fts_children, fts_close, fts_open, fts_read): Declare with
10831         __attribute_warn_unused_result__.
10832
10833         fts: fts_close now fails also when closing a dir file descriptor fails
10834         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10835         and propagate to caller, along with errno.
10836
10837         announce-gen: correct formatting in --help output
10838         * build-aux/announce-gen (usage): Move the one-line description in
10839         --help output "up", to where it belongs, just after Usage:.
10840
10841 2009-08-31  Eric Blake  <ebb9@byu.net>
10842
10843         fchdir: port to mingw
10844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10845         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10846         opened, then use a substitute.
10847         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10848         replacement.
10849         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10850         (_gl_register_fd): No need to check stat if open already filters
10851         all directories.
10852         (fchdir): Fix error condition to match POSIX.
10853         * modules/fchdir (Depends-on): Add sys_stat.
10854         * doc/posix-functions/open.texi (open): Document the limitation.
10855         * modules/fchdir-tests: New file.
10856         * tests/test-fchdir.c: Likewise.
10857
10858         canonicalize: allow cross-testing from cygwin to mingw
10859         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10860         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10861         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10862         Likewise.
10863         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10864         target does not support symlinks.
10865         * tests/test-canonicalize-lgpl.sh: Likewise.
10866
10867         chown: avoid compilation warning on mingw
10868         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10869         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10870         mingw.
10871         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10872         * modules/chown (Depends-on): Add errno.
10873
10874 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10875
10876         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10877         command.
10878
10879 2009-08-31  Jim Meyering  <meyering@redhat.com>
10880
10881         canonicalize: remove useless initialization
10882         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10883         initialization of local, "end".
10884
10885 2009-08-30  Bruno Haible  <bruno@clisp.org>
10886
10887         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10888         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10889         ENOSYS.
10890
10891 2009-08-30  Bruno Haible  <bruno@clisp.org>
10892
10893         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10894         /usr/xpg4/bin/tr when it exists.
10895         * tests/test-pipe-filter-gi1.sh: Likewise.
10896
10897 2009-08-30  Bruno Haible  <bruno@clisp.org>
10898
10899         Work around deficient /usr/bin/id program on Solaris.
10900         * tests/test-file-has-acl.sh (ID): New variable.
10901         * tests/test-set-mode-acl.sh (ID): Likewise.
10902         * tests/test-copy-acl.sh (ID): Likewise.
10903         * tests/test-copy-file.sh (ID): Likewise.
10904
10905 2009-08-30  Bruno Haible  <bruno@clisp.org>
10906
10907         New module 'xstriconveh'.
10908         * lib/xstriconveh.h: New file.
10909         * lib/xstriconveh.c: New file.
10910         * modules/xstriconveh: New file.
10911
10912 2009-08-30  Bruno Haible  <bruno@clisp.org>
10913
10914         Make it easier to use mem_cd_iconveh.
10915         * lib/striconveh.h (iconveh_t): New type.
10916         (iconveh_open, iconveh_close): New declarations.
10917         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10918         with a single 'const iconveh_t *' argument.
10919         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10920         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10921         with a single 'const iconveh_t *' argument.
10922         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10923         * tests/test-striconveh.c (main): Update.
10924         * NEWS: Mention the change.
10925
10926 2009-08-30  Bruno Haible  <bruno@clisp.org>
10927
10928         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10929         problem.
10930
10931 2009-08-30  Bruno Haible  <bruno@clisp.org>
10932
10933         Work around iconv_open problem on Solaris.
10934         * lib/iconv_open-solaris.gperf: New file.
10935         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10936         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10937         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10938         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10939         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10940         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10941
10942 2009-08-29  Jim Meyering  <meyering@redhat.com>
10943
10944         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10945         * top/maint.mk (cvs-check): Remove target; it was just an alias
10946         to the better-named vc-diff-check.
10947         (maintainer-distcheck): Remove rule.  It was used only from
10948         the (alpha/beta/major) target, and all of its commands but one
10949         were coreutils-specific.
10950         (vc-dist): Remove rule.
10951         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10952         Run vc-diff-check, not vc-dist.
10953         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10954
10955 2009-08-27  Bruno Haible  <bruno@clisp.org>
10956
10957         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10958         of 0.
10959
10960 2009-08-27  Bruno Haible  <bruno@clisp.org>
10961
10962         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10963         compilers.
10964         * doc/func.texi: Document the SunPRO C bug.
10965
10966 2009-08-27  Bruno Haible  <bruno@clisp.org>
10967
10968         Fix link error on Solaris.
10969         * tests/test-parse-duration.c (xstrdup): Remove function.
10970
10971 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10972
10973         ignore-value: handle pointer types, too
10974         * lib/ignore-value.h (__attribute__): Remove definition.
10975         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10976         of a more concise and more-often effective "(void) i" statement.
10977         (ignore_ptr): New function to suppress warnings from functions that
10978         return pointers, and to make it explicit that one function doesn't
10979         handle all cases.
10980
10981 2009-08-25  Bruno Haible  <bruno@clisp.org>
10982
10983         dup2: work around a Linux bug.
10984         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10985         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10986         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10987         Reported by Simon Josefsson.
10988
10989 2009-08-25  Jim Meyering  <meyering@redhat.com>
10990
10991         libguestfs uses gnulib
10992         * users.txt: Add libguestfs.
10993
10994 2009-08-24  Eric Blake  <ebb9@byu.net>
10995
10996         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10997         * lib/pipe2.c (includes): Add binary-io.h.
10998         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10999
11000 2009-08-24  Bruno Haible  <bruno@clisp.org>
11001
11002         Tolerate declared but missing accept4 syscall.
11003         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11004         available.
11005         * lib/sys_socket.in.h (accept4): If the function is already present,
11006         override it.
11007         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11008         * modules/accept4 (Makefile.am): Compile accept4.c always.
11009         Reported by Paolo Bonzini and Eric Blake.
11010
11011 2009-08-23  Bruno Haible  <bruno@clisp.org>
11012
11013         New module 'accept4'.
11014         * lib/sys_socket.in.h (accept4): New declaration.
11015         * lib/accept4.c: New file.
11016         * m4/accept4.m4: New file.
11017         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11018         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11019         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11020         HAVE_ACCEPT4.
11021         * modules/accept4: New file.
11022         * doc/glibc-functions/accept4.texi: Mention the new module.
11023
11024 2009-08-24  Jim Meyering  <meyering@redhat.com>
11025
11026         progname: also set global program_invocation_name, when possible
11027         Before this change, a libtool-enabled program that calls glibc's
11028         error function would report the program name as
11029         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11030         * modules/progname (configure.ac): Check for a declaration of
11031         program_invocation_name.
11032         * lib/progname.c:  Include <errno.h>.
11033         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11034         Set program_invocation_name.
11035
11036 2009-08-23  Bruno Haible  <bruno@clisp.org>
11037
11038         * lib/dup3.c: Include <string.h>.
11039
11040 2009-08-23  Bruno Haible  <bruno@clisp.org>
11041
11042         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11043         * lib/pipe2.c (pipe2): Likewise.
11044         Suggested by Eric Blake.
11045
11046 2009-08-23  Bruno Haible  <bruno@clisp.org>
11047
11048         Tolerate declared but missing dup3 syscall.
11049         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11050         * lib/unistd.in.h (dup3): If the function is already present,
11051         override it.
11052         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11053         * modules/dup3 (Makefile.am): Compile dup3.c always.
11054         Reported by Paolo Bonzini.
11055
11056 2009-08-23  Bruno Haible  <bruno@clisp.org>
11057
11058         Tolerate declared but missing pipe2 syscall.
11059         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11060         available.
11061         * lib/unistd.in.h (pipe2): If the function is already present,
11062         override it.
11063         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11064         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11065         Reported by Paolo Bonzini.
11066
11067 2009-08-23  Bruno Haible  <bruno@clisp.org>
11068
11069         * lib/pipe2.c (pipe2): Move #ifs inside function.
11070
11071 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11072
11073         quotearg: document limitations of quote_these_too
11074         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11075         those limitations are created.
11076         * lib/quotearg.h (set_char_quoting): Document that digits and
11077         letters that are special after backslash are not permitted.
11078         (quotearg_char): Cross-reference set_char_quoting documentation.
11079
11080 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11081
11082         quotearg: implement custom_quoting_style
11083         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11084         right_quote fields.
11085         (set_custom_quoting): New public function.
11086         (quotearg_buffer_restyled): Add left_quote and right_quote
11087         arguments, handle them very much like locale quoting, and update
11088         all uses.
11089         (quotearg_n_custom): New public function.
11090         (quotearg_n_custom_mem): New public function.
11091         (quotearg_custom): New public function.
11092         (quotearg_custom_mem): New public function.
11093         * lib/quotearg.h: Prototype and document new public functions.
11094         (enum quoting_style): For escape_quoting_style and
11095         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11096         ignored even though they're otherwise like c_quoting_style.
11097         Add custom_quoting_style member and document with comparison to
11098         clocale_quoting_style.
11099         * tests/test-quotearg.c (custom_quotes): New array.
11100         (custom_results): New array.
11101         (main): Extend to test custom quoting.
11102
11103 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11104
11105         quotearg: fix right quote escaping when it's in quote_these_too
11106         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11107         quote, be sure to prepend only one backslash.
11108         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11109         (main): Test it.
11110
11111 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11112
11113         quotearg-tests: test escaping of embedded locale quotes
11114         * tests/test-quotearg.c (struct result_strings): Add member for
11115         new input.
11116         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11117         (inputs): Add new input.
11118         (results_g): Add expected results.
11119         (flag_results): Likewise.
11120         (locale_results): Likewise.
11121         (compare_strings): Check those.
11122
11123 2009-08-23  Bruno Haible  <bruno@clisp.org>
11124
11125         Tests for module 'dup3'.
11126         * modules/dup3-tests: New file.
11127         * tests/test-dup3.c: New file.
11128
11129         New module 'dup3'.
11130         * lib/unistd.in.h (dup3): New declaration.
11131         * lib/dup3.c: New file.
11132         * m4/dup3.m4: New file.
11133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11134         HAVE_DUP3.
11135         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11136         * modules/dup3: New file.
11137         * doc/glibc-functions/dup3.texi: Mention the new module.
11138
11139 2009-08-23  Bruno Haible  <bruno@clisp.org>
11140
11141         Tweak the dup2 test.
11142         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11143         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11144         the test file is still empty. Fix argument order of lseek.
11145
11146 2009-08-23  Bruno Haible  <bruno@clisp.org>
11147
11148         Avoid test link errors when the modules getopt-gnu, gettext are used.
11149         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11150         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11151
11152 2009-08-23  Bruno Haible  <bruno@clisp.org>
11153
11154         Fix getdtablesize() on mingw.
11155         * lib/getdtablesize.c (getdtablesize): Implement differently.
11156         * lib/unistd.in.h (getdtablesize): Improve comment.
11157
11158 2009-08-23  Bruno Haible  <bruno@clisp.org>
11159
11160         New module 'mkostemp'.
11161         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11162         * lib/stdlib.in.h (mksotemp): New declaration.
11163         * lib/mkostemp.c: New file, from glibc with modifications.
11164         * lib/tempname.h (GT_FILE): Remove outdated comment.
11165         (gen_tempname): Add flags argument.
11166         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11167         (__GT_FILE): Map to 1.
11168         (small_open, large_open): Remove macros.
11169         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11170         * lib/mkstemp.c (mkstemp): Update.
11171         * lib/mkdtemp.c (mkdtemp): Likewise.
11172         * m4/mkostemp.m4: New file.
11173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11174         HAVE_MKOSTEMP.
11175         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11176         HAVE_MKOSTEMP.
11177         * modules/mkostemp: New file, based on modules/mkstemp.
11178         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11179         * NEWS: Mention the change.
11180
11181 2009-08-23  Bruno Haible  <bruno@clisp.org>
11182
11183         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11184         Reported by Eric Blake.
11185
11186 2009-08-23  Bruno Haible  <bruno@clisp.org>
11187
11188         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11189         Reported by Eric Blake.
11190
11191 2009-08-23  Bruno Haible  <bruno@clisp.org>
11192
11193         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11194         * modules/pipe2 (Depends-on): Likewise.
11195
11196 2009-08-23  Eric Blake  <ebb9@byu.net>
11197
11198         fcntl-h: add O_TTY_INIT support
11199         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11200         * tests/test-fcntl-h.c (o): Test it.
11201         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11202
11203         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11204         * modules/fcntl: Move <fcntl.h> header replacement...
11205         * modules/fcntl-h: ...to new name, so as not to collide with
11206         like-named function.
11207         * tests/test-fcntl.c: Rename...
11208         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11209         * modules/fcntl-tests: Rename...
11210         * modules/fcntl-h-tests: ...to this.  Update test file name.
11211         * modules/chdir-long (Depends-on): Update clients.
11212         * modules/chdir-safer (Depends-on): Likewise.
11213         * modules/fcntl-safer (Depends-on): Likewise.
11214         * modules/fts (Depends-on): Likewise.
11215         * modules/mkancesdirs (Depends-on): Likewise.
11216         * modules/mkdir-p (Depends-on): Likewise.
11217         * modules/open (Depends-on): Likewise.
11218         * modules/savewd (Depends-on): Likewise.
11219         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11220         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11221
11222 2009-08-22  Bruno Haible  <bruno@clisp.org>
11223
11224         * modules/binary-io (License): Relicense under LGPL.
11225         * modules/pipe2 (License): Likewise.
11226
11227 2009-08-22  Bruno Haible  <bruno@clisp.org>
11228
11229         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11230         return value.
11231         * lib/pipe-filter-gi.c (filter_init): Likewise.
11232         Reported by Eric Blake.
11233
11234 2009-08-22  Bruno Haible  <bruno@clisp.org>
11235
11236         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11237         * modules/pipe (Depends-on): Add pipe2.
11238
11239 2009-08-22  Bruno Haible  <bruno@clisp.org>
11240
11241         Tests for module 'pipe2'.
11242         * modules/pipe2-tests: New file.
11243         * tests/test-pipe2.c: New file.
11244
11245         New module 'pipe2'.
11246         * lib/unistd.in.h (pipe2): New declaration.
11247         * lib/pipe2.c: New file.
11248         * m4/pipe2.m4: New file.
11249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11250         HAVE_PIPE2.
11251         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11252         * modules/pipe2: New file.
11253         * doc/glibc-functions/pipe2.texi: Mention the new module.
11254
11255 2009-08-22  Bruno Haible  <bruno@clisp.org>
11256
11257         Reference some new glibc functions.
11258         * doc/glibc-functions/accept4.texi: New file.
11259         * doc/glibc-functions/dup3.texi: New file.
11260         * doc/glibc-functions/mkostemp.texi: New file.
11261         * doc/glibc-functions/pipe2.texi: New file.
11262         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11263         (Glibc sys/socket.h): Refer to accept4.
11264         (Glibc unistd.h): Refer to dup3, pipe2.
11265         Reported by Eric Blake.
11266
11267 2009-08-22  Jim Meyering  <meyering@redhat.com>
11268             Bruno Haible  <bruno@clisp.org>
11269
11270         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11271         This makes it so packages using automake-1.11's silent-rules option
11272         can print e.g., a single "GEN    configmake.h" line, rather than
11273         the 30+ statements that perform the job.  If you want to see the
11274         actual commands, you can still run "make V=1".
11275         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11276         so that make output is abbreviated when those variables are defined
11277         appropriately.
11278         * modules/argz: Likewise.
11279         * modules/arpa_inet: Likewise.
11280         * modules/byteswap: Likewise.
11281         * modules/configmake: Likewise.
11282         * modules/dirent: Likewise.
11283         * modules/errno: Likewise.
11284         * modules/fcntl: Likewise.
11285         * modules/float: Likewise.
11286         * modules/fnmatch: Likewise.
11287         * modules/getopt-posix: Likewise.
11288         * modules/glob: Likewise.
11289         * modules/iconv_open: Likewise.
11290         * modules/inttypes: Likewise.
11291         * modules/localcharset: Likewise.
11292         * modules/locale: Likewise.
11293         * modules/math: Likewise.
11294         * modules/netdb: Likewise.
11295         * modules/netinet_in: Likewise.
11296         * modules/poll: Likewise.
11297         * modules/posix_spawnp-tests: Likewise.
11298         * modules/sched: Likewise.
11299         * modules/search: Likewise.
11300         * modules/selinux-h: Likewise.
11301         * modules/signal: Likewise.
11302         * modules/spawn: Likewise.
11303         * modules/stdarg: Likewise.
11304         * modules/stdbool: Likewise.
11305         * modules/stddef: Likewise.
11306         * modules/stdint: Likewise.
11307         * modules/stdio: Likewise.
11308         * modules/stdlib: Likewise.
11309         * modules/string: Likewise.
11310         * modules/strings: Likewise.
11311         * modules/sys_file: Likewise.
11312         * modules/sys_ioctl: Likewise.
11313         * modules/sys_select: Likewise.
11314         * modules/sys_socket: Likewise.
11315         * modules/sys_stat: Likewise.
11316         * modules/sys_time: Likewise.
11317         * modules/sys_times: Likewise.
11318         * modules/sys_utsname: Likewise.
11319         * modules/sys_wait: Likewise.
11320         * modules/sysexits: Likewise.
11321         * modules/time: Likewise.
11322         * modules/unistd: Likewise.
11323         * modules/wchar: Likewise.
11324         * modules/wctype: Likewise.
11325
11326 2009-08-22  Jim Meyering  <meyering@redhat.com>
11327
11328         announce-gen: detect write failure
11329         * build-aux/announce-gen: Add Coda at end.
11330         Remove equivalent-but-more-verbose block at top.
11331
11332 2009-08-19  Akim Demaille  <demaille@gostai.com>
11333
11334         bootstrap: --help to stdout.
11335         * bootstrap (usage): Don't send --help to stderr.
11336         Use a here doc instead of a long string.
11337
11338 2009-08-21  Eric Blake  <ebb9@byu.net>
11339
11340         test-popen-safer: split from test-popen
11341         * tests/test-popen.c (main): Move...
11342         * tests/test-popen.h: ...into new file.
11343         * tests/test-popen-safer2.c: New file.
11344         * modules/popen-tests (Files): Add test-popen.h.
11345         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11346         Suggested by Bruno Haible.
11347
11348         test-fcntl-safer: split from test-open
11349         * tests/test-open.c (main): Move...
11350         * tests/test-open.h: ...into new file.
11351         * tests/test-fcntl-safer.c: New file.
11352         * modules/open-tests (Files): Add test-open.h.
11353         * modules/fcntl-safer-tests: New file.
11354         Suggested by Bruno Haible.
11355
11356         test-fopen-safer: split from test-fopen
11357         * tests/test-fopen.c (main): Move...
11358         * tests/test-fopen.h: ...into new file.
11359         * tests/test-fopen-safer.c: New file.
11360         * modules/fopen-tests (Files): Add test-fopen.h.
11361         * modules/fopen-safer-tests: New file.
11362         Suggested by Bruno Haible.
11363
11364 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11365
11366         popen-safer: test O_CLOEXEC at run-time.
11367         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11368
11369 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11370
11371         fcntl: move more flags to the header
11372         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11373         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11374         * lib/fcntl.in.h: Do both things here.
11375
11376 2009-08-21  Jim Meyering  <meyering@redhat.com>
11377
11378         consistently remove $@-t before redirecting to it
11379         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11380         * modules/alloca-opt: Likewise.
11381         * modules/byteswap: Likewise.
11382         * modules/fnmatch: Likewise.
11383         * modules/getopt-posix: Likewise.
11384         * modules/glob: Likewise.
11385         * modules/poll: Likewise.
11386         * modules/posix_spawnp-tests: Likewise.
11387         * modules/sys_socket: Likewise.
11388         * modules/sysexits: Likewise.
11389
11390 2009-08-21  Eric Blake  <ebb9@byu.net>
11391
11392         popen: simplify access to original popen
11393         * lib/popen.c (rpl_popen): No need to worry about popen being a
11394         macro.
11395         Reported by Bruno Haible.
11396
11397 2009-08-20  Eric Blake  <ebb9@byu.net>
11398
11399         build: avoid some compiler warnings
11400         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11401         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11402         type.
11403         (new_exclude_segment, excluded_file_pattern_p)
11404         (excluded_file_name_p): Reduce scope.
11405         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11406         old-style declaration.
11407
11408 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11409
11410         * tests/test-exclude1.sh: Handle Windows EOL.
11411         * tests/test-exclude2.sh: Likewise.
11412         * tests/test-exclude3.sh: Likewise.
11413         * tests/test-exclude4.sh: Likewise.
11414         * tests/test-exclude5.sh: Likewise.
11415         * tests/test-exclude6.sh: Likewise.
11416         * tests/test-exclude7.sh: Likewise.
11417
11418 2009-08-19  Akim Demaille  <demaille@gostai.com>
11419
11420         bootstrap: find sha1sum when named gsha1sum.
11421         * bootstrap (find_tool): New.
11422         ($SHA1SUM): New.
11423         Use it.
11424
11425 2009-08-20  Jim Meyering  <meyering@redhat.com>
11426
11427         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11428         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11429         expression that converts "." in a file name to "\." in the resulting
11430         regexp.  Start with a dummy statement, so that prior shell variable
11431         definitions are expanded portably.  Reported by Simon Josefsson.
11432
11433 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11434
11435         Fix polling for writeability of a screen buffer.
11436         * lib/poll.c: Distinguish input and screen buffers for the
11437         Win32 implementation.
11438         * lib/select.c: Likewise.
11439
11440 2009-08-19  Eric Blake  <ebb9@byu.net>
11441
11442         popen-safer: prevent popen from clobbering std descriptors
11443         * modules/popen-safer: New file.
11444         * lib/popen-safer.c: Likewise.
11445         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11446         * lib/stdio--.h (popen): Provide override.
11447         * lib/stdio-safer.h (popen_safer): Provide declaration.
11448         * tests/test-popen.c (includes): Partially test this.
11449         * modules/popen-safer-tests: New file, for more tests.
11450         * tests/test-popen-safer.c: Likewise.
11451         * MODULES.html.sh (file stream based Input/Output): Mention it.
11452
11453         tests: test some of the *-safer modules
11454         * modules/fopen-safer (Depends-on): Add fopen.
11455         * modules/fcntl-safer (Depends-on): Add fcntl.
11456         * modules/stdlib-safer (Depends-on): Add stdlib.
11457         (configure.ac): Set indicator.
11458         * modules/unistd-safer (configure.ac): Likewise.
11459         * modules/tmpfile-safer (configure.ac): Likewise.
11460         (Depends-on): Add tmpfile.
11461         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11462         active.
11463         * tests/test-fopen.c (includes): Test safer versions when they are
11464         in use.
11465         * tests/test-open.c (includes): Likewise.
11466
11467         popen: fix cygwin 1.5 bug when stdin closed
11468         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11469         * modules/popen: New file.
11470         * modules/popen-tests: Likewise.
11471         * tests/test-popen.c: Likewise.
11472         * m4/popen.m4: Likewise.
11473         * lib/popen.c: Likewise.
11474         * lib/stdio.in.h (popen): New declaration.
11475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11476         * modules/stdio (Makefile.am): Likewise.
11477         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11478
11479 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11480
11481         maint.mk: give full control over update-copyright exclusions
11482         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11483         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11484         (update-copyright): Don't force inclusion of top-level
11485         ChangeLog.  Don't force exclusion of all COPYING files, but make
11486         them the default exclusion instead.
11487
11488 2009-08-16  Bruno Haible  <bruno@clisp.org>
11489
11490         Fix test failures on Solaris 10.
11491         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11492         tests when Solaris iconv() is used.
11493         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11494         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11495         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11496         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11497         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11498
11499 2009-08-16  Bruno Haible  <bruno@clisp.org>
11500
11501         Fix test failures on Solaris 10.
11502         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11503         'tr' program and pass it as first argument.
11504         * tests/test-pipe-filter-gi1.sh: Likewise.
11505         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11506         program as first argument.
11507         * tests/test-pipe-filter-gi1.c (main): Likewise.
11508
11509 2009-08-16  Eric Blake  <ebb9@byu.net>
11510
11511         fpurge: fix previous commits
11512         * modules/fpurge (Makefile.am): Make replacement conditional,
11513         partially reverting 2007-04-29 change; missed in previous
11514         attempt.
11515         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11516         is missing.
11517
11518 2009-08-16  Bruno Haible  <bruno@clisp.org>
11519
11520         Clarify fpurge's effect on the file position.
11521         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11522         * tests/test-fpurge.c (main): Make a second pass for checking the file
11523         position.
11524
11525 2009-08-16  Bruno Haible  <bruno@clisp.org>
11526
11527         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11528         declaration of fpurge is missing.
11529         * tests/test-fpurge.c (main): Check that the file has not more contents
11530         than expected. Close the file before removing it.
11531
11532 2009-08-15  Eric Blake  <ebb9@byu.net>
11533
11534         fpurge: don't wrap working cygwin implementation
11535         * lib/fpurge.c (fpurge): Fix comment typo.
11536         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11537         1.7 to avoid replacement.
11538         * tests/test-fpurge.c (main): Enhance test.
11539
11540 2009-08-15  Eric Blake  <ebb9@byu.net>
11541         and Jim Meyering  <meyering@redhat.com>
11542
11543         test-update-copyright: skip if perl is insufficient
11544         * tests/test-update-copyright.sh: Failure to run maintainer tool
11545         should not cause testsuite failure on cygwin 1.5.
11546
11547 2009-08-14  Eric Blake  <ebb9@byu.net>
11548
11549         doc: mention more functions added in cygwin 1.7.0
11550         * doc/posix-headers/limits.texi (limits.h): Update for recent
11551         cygwin additions.
11552         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11553         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11554         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11555         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11556         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11557
11558 2009-08-14  Eric Blake  <ebb9@byu.net>
11559
11560         maint.mk: simplify update-copyright rule
11561         * top/maint.mk (update-copyright-local): Delete, and document how
11562         to do it in cfg.mk instead.
11563         (update-copyright-exclude-regexp): Delete, and document how to do
11564         it in .x-update-copyright instead.
11565         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11566         exclude ChangeLog.
11567
11568 2009-08-14  Bruno Haible  <bruno@clisp.org>
11569
11570         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11571
11572 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11573
11574         maint.mk: support update-copyright-env
11575         * top/maint.mk (update-copyright-env): Define place-holder.
11576         (update-copyright): Expand $(update-copyright-env) before
11577         invoking update-copyright.
11578
11579 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11580
11581         update-copyright: implement forced reformatting
11582         * build-aux/update-copyright: Implement and document
11583         UPDATE_COPYRIGHT_FORCE.
11584         * tests/test-update-copyright.sh: Test it.
11585
11586 2009-08-14  Eric Blake  <ebb9@byu.net>
11587         and Bruno Haible  <bruno@clisp.org>
11588
11589         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11590         * tests/test-locale.c: Revert previous patch related to NULL.
11591         * tests/test-stdio.c: Likewise.
11592         * tests/test-stdlib.c: Likewise.
11593         * tests/test-string.c: Likewise.
11594         * tests/test-unistd.c: Likewise.
11595         * modules/time-tests (Depends-on): Add verify.
11596         * modules/wchar-tests (Depends-on): Likewise.
11597         * tests/test-time.c: Test for NULL compliance.
11598         * tests/test-wchar.c: Likewise.
11599         * modules/locale (Depends-on): Add stddef.
11600         * modules/stdio (Depends-on): Likewise.
11601         * modules/stdlib (Depends-on): Likewise.
11602         * modules/string (Depends-on): Likewise.
11603         * modules/time (Depends-on): Likewise.
11604         * modules/unistd (Depends-on): Likewise.
11605         * modules/wchar (Depends-on): Likewise.
11606         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11607         * lib/stdlib.in.h (includes): Likewise.
11608         * lib/string.in.h (includes): Likewise.
11609         * lib/time.in.h (includes): Likewise.
11610         * lib/unistd.in.h (includes): Likewise.
11611         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11612         replaced.
11613         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11614         * m4/stddef_h.m4: New file.
11615         * modules/stddef: Likewise.
11616         * lib/stddef.in.h: Likewise.
11617         * modules/stddef-tests: Likewise.
11618         * tests/test-stddef.c: Likewise.
11619         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11620         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11621         * doc/posix-headers/locale.texi (locale.h): Likewise.
11622         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11623         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11624         * doc/posix-headers/string.texi (string.h): Likewise.
11625         * doc/posix-headers/time.texi (time.h): Likewise.
11626         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11627         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11628
11629 2009-08-14  Eric Blake  <ebb9@byu.net>
11630
11631         doc: improve git diff of texinfo files
11632         * .gitattributes: Add rule for *.texi files, with hint on how to
11633         use it.
11634         Copied from m4, and based on a report by Bruno Haible.
11635
11636 2009-08-14  Bruno Haible  <bruno@clisp.org>
11637
11638         Disable multithread support by default on Cygwin 1.5.x for real.
11639         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11640
11641 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11642
11643         update-copyright: much ado about intervals
11644         * build-aux/update-copyright: Implement and document
11645         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11646         of copyright year intervals.
11647         Also, document UPDATE_COPYRIGHT_YEAR.
11648         * tests/test-update-copyright.sh: Test it.
11649
11650         update-copyright: convert 2-digit to 4-digit years
11651         * build-aux/update-copyright: Implement and document.
11652         * tests/test-update-copyright.sh: Update.
11653
11654 2009-08-14  Jim Meyering  <meyering@redhat.com>
11655
11656         test-exclude: avoid coreutils "make check" failure
11657         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11658         just as in test-argmatch.c.
11659
11660 2009-08-13  Eric Blake  <ebb9@byu.net>
11661
11662         test-dup2: fix bad assumption
11663         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11664         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11665
11666         test-version-etc: fix CRLF portability issue
11667         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11668         recognize \r.
11669         * tests/test-argp-version-etc-1.sh: Likewise.
11670
11671         getopt: update client modules
11672         * modules/argp (Depends-on): Use getopt-gnu.
11673         * modules/git-merge-changelog (Depends-on): Likewise.
11674         * modules/long-options (Depends-on): Likewise.
11675         * modules/xstrtol (Depends-on): Likewise.
11676
11677 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11678
11679         * tests/test-version-etc.sh: Don't fail on different
11680         project/version.  Don't fail on CRLF differences.  Rewrite to use
11681         multiple -e instead of multiple sed forks, suggested by Eric Blake
11682         <ebb9@byu.net>.
11683         * tests/test-argp-version-etc-1.sh: Likewise.
11684
11685 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11686
11687         * tests/test-version-etc.sh: Don't fail on different
11688         project/version.
11689
11690 2009-08-12  Bruno Haible  <bruno@clisp.org>
11691
11692         Tests for modules 'getopt-posix', 'getopt-gnu'.
11693         * modules/getopt-posix-tests: New file.
11694         * tests/test-getopt.c: New file.
11695         * tests/test-getopt.h: New file.
11696         * tests/test-getopt_long.h: New file.
11697
11698         New modules 'getopt-posix', 'getopt-gnu'.
11699         * modules/getopt-gnu: New file, renamed from modules/getopt.
11700         * modules/getopt-posix: New file.
11701         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11702         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11703         (gl_GETOPT): Remove macro.
11704         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11705         Disable the test against BSD systems that declare optreset. Test
11706         against mingw bug. Test against lack of support of optional arguments
11707         on many platforms.
11708         * doc/glibc-headers/getopt.texi: Update module name and list of
11709         relevant platforms.
11710         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11711         'getopt-gnu' and more portability problems.
11712         * NEWS: Mention the changes.
11713
11714 2009-08-12  Bruno Haible  <bruno@clisp.org>
11715
11716         Ensure that optarg etc. get declared by <unistd.h>.
11717         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11718         AC_USE_SYSTEM_EXTENSIONS.
11719         * modules/getopt (Depends-on): Add 'extensions'.
11720
11721 2009-08-12  Bruno Haible  <bruno@clisp.org>
11722
11723         Avoid test link errors.
11724         * modules/pipe-filter-ii-tests (Makefile.am): Define
11725         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11726         * modules/pipe-filter-gi-tests (Makefile.am): Define
11727         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11729
11730 2009-08-12  Bruno Haible  <bruno@clisp.org>
11731
11732         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11733         gl_GETOPT_SUBSTITUTE before.
11734         (gl_GETOPT): Use it.
11735         * m4/argp.m4 (gl_ARGP): Update.
11736         Reported by Sergey Poznyakoff.
11737
11738         * m4/getopt.m4: Reorder macros.
11739         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11740         (gl_GETOPT_SUBSTITUTE): Remove macro.
11741
11742 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11743
11744         Minor improvement in gitlog-to-changelog
11745
11746         * build-aux/gitlog-to-changelog: New option `--format' makes
11747         output format string configurable.
11748
11749 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11750
11751         Optimize exclude: use hash tables for non-wildcard patterns.
11752
11753         * lib/exclude.c: Include hash.h and mbuiter.h
11754         (struct exclude_pattern, exclude_segment): New data types.
11755         (struct exclude): Rewrite.
11756         (fnmatch_pattern_has_wildcards): New function.
11757         (new_exclude_segment, free_exclude_segment): New functions.
11758         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11759         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11760         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11761         * modules/exclude: Depend on hash and mbuiter.
11762
11763         * modules/exclude-tests: New file.
11764         * tests/test-exclude.c: New file.
11765         * tests/test-exclude1.sh: New file.
11766         * tests/test-exclude2.sh: New file.
11767         * tests/test-exclude3.sh: New file.
11768         * tests/test-exclude4.sh: New file.
11769         * tests/test-exclude5.sh: New file.
11770         * tests/test-exclude6.sh: New file.
11771         * tests/test-exclude7.sh: New file.
11772
11773 2009-08-12  Bruno Haible  <bruno@clisp.org>
11774
11775         Ensure that getopt() gets declared by <unistd.h>.
11776         * lib/unistd.in.h: Conditionally include getopt.h.
11777         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11778         Set GNULIB_UNISTD_H_GETOPT.
11779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11780         GNULIB_UNISTD_H_GETOPT.
11781         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11782
11783 2009-08-12  Bruno Haible  <bruno@clisp.org>
11784
11785         Clarify logic.
11786         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11787         gl_replace_getopt instead of GETOPT_H.
11788
11789 2009-08-12  Bruno Haible  <bruno@clisp.org>
11790
11791         * m4/getopt.m4: Add comments.
11792
11793 2009-08-12  Bruno Haible  <bruno@clisp.org>
11794
11795         Disable multithread support by default on Cygwin 1.5.x.
11796         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11797         set gl_use_threads=no if not specified otherwise.
11798
11799 2009-08-11  Bruno Haible  <bruno@clisp.org>
11800
11801         Avoid compilation error on NetBSD 5.0.
11802         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11803         * tests/test-stdio.c: Likewise.
11804         * tests/test-stdlib.c: Likewise.
11805         * tests/test-string.c: Likewise.
11806         * tests/test-unistd.c: Likewise.
11807         Reported by Greg Troxel <gdt@ir.bbn.com>
11808         at <https://savannah.gnu.org/support/?106973>.
11809
11810 2009-08-11  Bruno Haible  <bruno@clisp.org>
11811
11812         * modules/dup2-tests (Depends-on): Remove close.
11813
11814         Undo 2009-07-19 commit.
11815         * modules/acl-tests (Depends-on): Remove close.
11816         * modules/binary-io-tests (Depends-on): Likewise.
11817         * modules/closein-tests (Depends-on): Likewise.
11818         * modules/flock-tests (Depends-on): Likewise.
11819         * modules/fsync-tests (Depends-on): Likewise.
11820         * modules/lseek-tests (Depends-on): Likewise.
11821         * modules/pipe-tests (Depends-on): Likewise.
11822         * modules/posix_spawn-tests (Depends-on): Likewise.
11823         * modules/posix_spawnp-tests (Depends-on): Likewise.
11824         * modules/stat-time-tests (Depends-on): Likewise.
11825         * modules/yesno-tests (Depends-on): Likewise.
11826
11827 2009-08-10  Bruno Haible  <bruno@clisp.org>
11828
11829         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11830
11831 2009-08-10  Bruno Haible  <bruno@clisp.org>
11832
11833         Fix a gcc warning.
11834         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11835
11836 2009-08-10  Bruno Haible  <bruno@clisp.org>
11837
11838         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11839         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11840         not only the first time.
11841         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11842         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11843         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11844         is 1, not only the the first time.
11845
11846 2009-08-10  Bruno Haible  <bruno@clisp.org>
11847
11848         Make it possible to use module 'gethostname' without module 'close'.
11849         * lib/unistd.in.h (close): Evoke a link error only if
11850         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11852         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11853         * modules/unistd (Makefile.am): Substitute
11854         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11855         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11856         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11857         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11858         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11859         * modules/sys_ioctl (Makefile.am): Substitute
11860         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11861         * modules/socket (configure.ac): On native Windows, set
11862         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11863         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11864         Reported by Sam Steingold <sds@gnu.org>.
11865
11866 2009-08-10  Bruno Haible  <bruno@clisp.org>
11867
11868         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11869         * modules/ioctl (configure.ac): Likewise.
11870
11871 2009-08-10  Bruno Haible  <bruno@clisp.org>
11872
11873         Avoid collision between gnulib wrapper and libintl wrapper.
11874         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11875         already defined in intl/printf.c.
11876         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11877         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11878
11879 2009-08-09  Bruno Haible  <bruno@clisp.org>
11880
11881         Make <sys/select.h> really self-contained, also on Solaris 10.
11882         * lib/sys_select.in.h: Include <string.h>.
11883         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11884         Solaris 10 problem.
11885         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11886         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11887         Reported by Jim Meyering.
11888
11889 2009-08-09  Bruno Haible  <bruno@clisp.org>
11890
11891         Avoid warnings from 'aclocal' that are due to a use of macro name
11892         AM_XGETTEXT_OPTION that is not defined in automake.
11893         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11894         automake.
11895         * modules/error (configure.ac): Likewise.
11896         * modules/propername (configure.ac): Likewise.
11897         * modules/vasprintf (configure.ac): Likewise.
11898         * modules/verror (configure.ac): Likewise.
11899         * modules/xprintf (configure.ac): Likewise.
11900         * modules/xvasprintf (configure.ac): Likewise.
11901
11902 2009-08-08  Bruno Haible  <bruno@clisp.org>
11903
11904         Avoid compilation error in C++ mode.
11905         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11906         Reported by Sam Steingold <sds@gnu.org>.
11907
11908 2009-08-08  Bruno Haible  <bruno@clisp.org>
11909
11910         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11911         for the various Unix platforms.
11912         * doc/posix-headers/limits.texi: Update platforms list regarding
11913         HOST_NAME_MAX.
11914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11915
11916 2009-08-07  Jim Meyering  <meyering@redhat.com>
11917
11918         selinux-at: fix typo in a comment
11919         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11920         Spotted by Paolo Bonzini.
11921
11922         selinux-at: remove redundant m4 code, add documentation
11923         * modules/selinux-at (configure.ac): Remove redundant code.
11924         LIB_SELINUX is already set via the dependent module, selinux-h.
11925         (Include): Add quotes around selinux-at.h.
11926         * lib/selinux-at.h: Add documentation.
11927         Reported by Bruno Haible in
11928         http://marc.info/?l=gnulib-bug&m=124958988300749
11929
11930 2009-08-07  Bruno Haible  <bruno@clisp.org>
11931
11932         Avoid link error on MacOS X 10.3 and 10.4.
11933         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11934         on non-ELF systems.
11935         * lib/argp-pv.c (argp_program_version): Likewise.
11936         Reported by Simon Josefsson.
11937
11938 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11939
11940         * tests/test-version-etc.sh: Use $EXEEXT.
11941
11942 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11943
11944         update-copyright: update documentation to point to maint.mk
11945         * build-aux/update-copyright: Here.
11946
11947 2009-08-06  Jim Meyering  <meyering@redhat.com>
11948
11949         maint.mk: support update-copyright-local
11950         * top/maint.mk (update-copyright-local): Define place-holder.
11951         (update-copyright): Depend on $(update-copyright-local).
11952
11953 2009-08-06  Jim Meyering  <meyering@redhat.com>
11954
11955         selinux-at: new module
11956         Initially written for coreutils, this module will soon be
11957         used by findutils, too.
11958         * MODULES.html.sh [Misc]: Add selinux-at.
11959         * lib/selinux-at.h: New file, from coreutils.
11960         * lib/selinux-at.c: Likewise.
11961         * modules/selinux-at: Likewise.
11962         (License): Change from LGPL to GPL, since it depends
11963         on the GPL'd openat module.
11964
11965         doc: update README
11966         * README: Remove references to cogito.
11967         Remove cvs-repo-updating instructions from 2007.
11968         Don't imply that CVS is better if you have limited disk space.
11969
11970 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11971
11972         update-copyright: support C-style comments
11973         * build-aux/update-copyright: Implement and document.
11974         * tests/test-update-copyright.sh: Test.
11975
11976 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11977
11978         update-copyright: support omitted "(C)"
11979         * build-aux/update-copyright: Implement and document.  Also,
11980         allow variable whitespace before "(C)".
11981         * tests/test-update-copyright.sh: Test.
11982
11983 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11984
11985         update-copyright: don't trip on non-FSF copyright statements
11986         * build-aux/update-copyright: Fix so that the first correctly
11987         formatted FSF copyright statement is recognized no matter what
11988         appears before it.  Update documentation.
11989         * tests/test-update-copyright.sh: Test that.
11990
11991 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11992
11993         update-copyright: clean up code a little
11994         * build-aux/update-copyright: Append "_re" to the name of any
11995         variable holding a regular expression.
11996         Replace "old" and "new" with "stmt" in variable names.
11997         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11998         handled correctly.
11999         Format code more consistently.
12000
12001 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12002
12003         update-copyright-tests: improve portability
12004         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12005         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12006
12007 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12008
12009         update-copyright: support @copyright{} and &copy;
12010         * build-aux/update-copyright: Implement and document.
12011         * tests/test-update-copyright.sh: Test.
12012
12013 2009-08-04  Jim Meyering  <meyering@redhat.com>
12014
12015         update-copyright-tests: correctly test EOL=\r\n handling
12016         * tests/test-update-copyright.sh: Put \r at the end of some lines
12017         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12018
12019         maint.mk: make update-copyright exclusion list more configurable
12020         * top/maint.mk (update-copyright): Default to excluding COPYING,
12021         but allow an override, in case someone does want to update that file.
12022
12023         maint.mk: don't update copyright date in COPYING
12024         * top/maint.mk (update-copyright): Exclude COPYING.
12025
12026         maint.mk: add a copyright-updating rule
12027         * top/maint.mk (update-copyright): New rule.
12028         Derived from coreutils/Makefile.am.
12029
12030         update-copyright: rename some variables
12031         * build-aux/update-copyright: Rename a few variables for clarity.
12032         Tweak syntax.  List Joel E. Denny as coauthor.
12033
12034 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12035
12036         update-copyright: fix bug for 2-digit last year and add tests
12037         * build-aux/update-copyright: Fix bug.
12038         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12039         specified.
12040         * modules/update-copyright-tests: New
12041         * tests/test-update-copyright.sh: New.
12042
12043 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12044
12045         update-copyright: handle leading tabs in line prefix
12046         * build-aux/update-copyright: Count leading tabs as 8 spaces
12047         when computing margin.  This helps with the formatting of
12048         ChangeLogs, for example.
12049         Fix documentation a little.
12050
12051 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12052
12053         update-copyright: support EOL=\r\n
12054         * build-aux/update-copyright: Implement that.
12055
12056 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12057
12058         update-copyright: automatically format copyright statements
12059         * build-aux/update-copyright: Implement that.
12060         Also, be a little more predictable and safer by always failing
12061         when the full copyright format is not perfectly recognized as an
12062         unbroken whole.  Discussed at
12063         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12064         Rewrite documentation.
12065
12066 2009-08-03  Bruno Haible  <bruno@clisp.org>
12067
12068         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12069
12070 2009-08-02  Bruno Haible  <bruno@clisp.org>
12071
12072         Tests for module 'uname'.
12073         * modules/uname-tests: New file.
12074         * tests/test-uname.c: New file.
12075
12076         New module 'uname'.
12077         * lib/uname.c: New file.
12078         * m4/uname.m4: New file.
12079         * modules/uname: New file.
12080         * doc/posix-functions/uname.texi: Mention the new module.
12081
12082 2009-08-02  Bruno Haible  <bruno@clisp.org>
12083
12084         Tests for module 'sys_utsname'.
12085         * modules/sys_utsname-tests: New file.
12086         * tests/test-sys_utsname.c: New file.
12087
12088         New module 'sys_utsname'.
12089         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12090         * m4/sys_utsname_h.m4: New file.
12091         * modules/sys_utsname: New file.
12092         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12093
12094 2009-08-02  Bruno Haible  <bruno@clisp.org>
12095
12096         Implicitly initialize the sockets library.
12097         * lib/gethostname.c: Include sockets.h.
12098         (rpl_gethostname): Invoke gl_sockets_startup.
12099         * lib/socket.c: Include sockets.h.
12100         (rpl_socket): Invoke gl_sockets_startup.
12101         * modules/gethostname (Depends-on): Add sockets.
12102         * modules/socket (Depends-on): Likewise.
12103         * tests/test-poll.c: Don't include sockets.h.
12104         (main): Don't invoke gl_sockets_startup.
12105         * tests/test-select.c: Don't include sockets.h.
12106         (main): Don't invoke gl_sockets_startup.
12107
12108 2009-08-02  Bruno Haible  <bruno@clisp.org>
12109
12110         Allow multiple calls to gl_sockets_startup.
12111         * lib/sockets.c (initialized_sockets_version): New variable.
12112         (gl_sockets_startup): Do nothing if already called for this or a higher
12113         version.
12114         (gl_sockets_cleanup): Reset initialized_sockets_version.
12115
12116 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12117
12118         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12119         different project/version.
12120
12121 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12122             Bruno Haible  <bruno@clisp.org>
12123
12124         Tests for module 'pipe-filter-gi'.
12125         * modules/pipe-filter-gi-tests: New file.
12126         * tests/test-pipe-filter-gi1.sh: New file.
12127         * tests/test-pipe-filter-gi1.c: New file.
12128         * tests/test-pipe-filter-gi2.sh: New file.
12129         * tests/test-pipe-filter-gi2-main.c: New file.
12130         * tests/test-pipe-filter-gi2-child.c: New file.
12131
12132         New module 'pipe-filter-gi'.
12133         * lib/pipe-filter-gi.c: New file.
12134         * modules/pipe-filter-gi: New file.
12135
12136 2009-08-02  Bruno Haible  <bruno@clisp.org>
12137             Paolo Bonzini  <bonzini@gnu.org>
12138
12139         Tests for module 'pipe-filter-ii'.
12140         * modules/pipe-filter-ii-tests: New file.
12141         * tests/test-pipe-filter-ii1.sh: New file.
12142         * tests/test-pipe-filter-ii1.c: New file.
12143         * tests/test-pipe-filter-ii2.sh: New file.
12144         * tests/test-pipe-filter-ii2-main.c: New file.
12145         * tests/test-pipe-filter-ii2-child.c: New file.
12146
12147         New module 'pipe-filter-ii'.
12148         * lib/pipe-filter.h: New file.
12149         * lib/pipe-filter-ii.c: New file.
12150         * lib/pipe-filter-aux.h: New file.
12151         * modules/pipe-filter-ii: New file.
12152
12153 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12154
12155         * lib/gc-libgcrypt.c: Change copyright to FSF.
12156         * lib/gc-gnulib.c: Likewise.
12157
12158 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12159
12160         * lib/gethostname.c: Include limits.h.
12161
12162 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12163             Bruno Haible  <bruno@clisp.org>
12164
12165         Ensure HOST_NAME_MAX as part of the gethostname module.
12166         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12167         define also HOST_NAME_MAX.
12168         * tests/test-gethostname.c: Include <limits.h>.
12169         (main): Check also HOST_NAME_MAX.
12170         * doc/posix-headers/limits.texi: Document the mingw problem.
12171
12172 2009-08-02  Bruno Haible  <bruno@clisp.org>
12173
12174         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12175         Add comments.
12176
12177 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12178
12179         * lib/gethostname.c: Add Windows wrapper.
12180         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12181         * modules/gethostname: Depend on sys_socket & errno, for also
12182         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12183         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12184
12185 2009-07-31  Jim Meyering  <meyering@redhat.com>
12186
12187         getloadavg: fix symbol name in comment
12188         * lib/getloadavg.c: Correct a typo I introduced when adding
12189         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12190         Matt Kraai spotted the problem.
12191
12192 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12193
12194         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12195         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12196         code also if ! defined N_NAME_POINTER.
12197         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12198         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12199         but the n_name member is a 12-byte array.
12200
12201 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12202
12203         update-copyright: generalize comment handling
12204         * build-aux/update-copyright: Handle copyright statements
12205         within more comment styles.
12206         Document usage.
12207         Report any file with an external copyright holder or parse failure.
12208
12209 2009-07-29  Jim Meyering  <meyering@redhat.com>
12210
12211         mktime: correct setting of REPLACE_MKTIME
12212         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12213
12214         update-copyright: new module
12215         * modules/update-copyright: New file.
12216         * build-aux/update-copyright: New file.
12217         * MODULES.html.sh (maint+release support): Add update-copyright.
12218
12219 2009-07-27  Bruno Haible  <bruno@clisp.org>
12220
12221         Fix compilation error when <ctime> is used and mktime is replaced.
12222         * lib/time.in.h (mktime): New declaration.
12223         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12224         REPLACE_MKTIME instead of defining mktime in config.h.
12225         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12226         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12227         Reported by Ross McFarland <rwmcfa1@neces.com>.
12228
12229 2009-07-27  Bruno Haible  <bruno@clisp.org>
12230
12231         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12232         Reported by Matt Kraai <mkraai@beckman.com>.
12233
12234 2009-07-25  Jim Meyering  <meyering@redhat.com>
12235
12236         maint.mk: avoid warnings about missing files
12237         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12238         diagnostic when .prev-version does not exist.
12239         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12240         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12241         nonexistent cfg.mk.
12242         Suggestions from Simon Josefsson.
12243
12244 2009-07-25  Bruno Haible  <bruno@clisp.org>
12245
12246         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12247         defined as macros. Needed on QNX 6.4.1.
12248         Reported by Matt Kraai <mkraai@beckman.com>.
12249
12250 2009-07-23  Jim Meyering  <meyering@redhat.com>
12251
12252         maint.mk: invoke "make dist" with a working value of XZ_OPT
12253         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12254
12255 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12256
12257         Make fseeko.c compile on QNX.
12258         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12259
12260 2009-07-22  Peter Simons  <simons@cryp.to>
12261
12262         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12263         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12264         * lib/md4.h: Likewise.
12265         * lib/md5.h: Likewise.
12266         * lib/sha1.h: Likewise.
12267         * lib/sha256.h: Likewise.
12268         * lib/sha512.h: Likewise.
12269
12270         tests-sha1: don't assign literal string to 'char *' variable
12271         * tests/test-sha1.c (main): Declare locals with "const" to match
12272         attributes of the right hand side.
12273
12274 2009-07-21  Eric Blake  <ebb9@byu.net>
12275
12276         dup2: fix more mingw problems
12277         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12278         fd to itself.
12279         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12280         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12281         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12282         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12283         care of mingw bugs.
12284
12285 2009-07-21  Jim Meyering  <meyering@redhat.com>
12286
12287         vc-list-files: avoid failure when /bin/sh is dash
12288         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12289         On some Debian based systems, /bin/sh is a symlink to dash, and running
12290         this command would omit the "/" following each 'tests' prefix:
12291           dash -x build-aux/vc-list-files -C . tests
12292         That is because bash and dash work differently:
12293           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12294           bash ok
12295           dash odd
12296
12297 2009-07-21  Eric Blake  <ebb9@byu.net>
12298
12299         dup2-tests: test previous patch
12300         * modules/dup2-tests: New file.
12301         * tests/test-dup2.c: Likewise.
12302         * tests/test-open.c (main): Avoid unspecified behavior.
12303         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12304         test.
12305
12306         dup2: work around mingw and cygwin 1.5 bug
12307         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12309         * modules/unistd (Makefile.am): Substitute it.
12310         * lib/unistd.in.h (dup2): Declare the replacement.
12311         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12312         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12313         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12314         * modules/execute (Depends-on): Add dup2.
12315         * modules/fseterr (Depends-on): Likewise.
12316         * modules/pipe (Depends-on): Likewise.
12317         * modules/posix_spawn-internal (Depends-on): Likewise.
12318
12319 2009-07-21  Bruno Haible  <bruno@clisp.org>
12320
12321         * modules/.gitattributes: New file.
12322
12323 2009-07-20  Bruno Haible  <bruno@clisp.org>
12324
12325         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12326         (main): Use it.
12327
12328 2009-07-20  Eric Blake  <ebb9@byu.net>
12329
12330         test-pipe: make a bit more robust.
12331         * tests/test-pipe.c (myerr): Allow error messages regardless of
12332         what we do to stderr.
12333         (test_pipe): Rearrange to avoid deadlock.
12334         (child_main): Try a larger read, to ensure we avoided deadlock.
12335         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12336         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12337         if misused.
12338
12339 2009-07-19  Jim Meyering  <meyering@redhat.com>
12340
12341         fts: avoid false-positive cycle-detection
12342         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12343         for each new command line argument.
12344
12345 2009-07-19  Bruno Haible  <bruno@clisp.org>
12346
12347         Fix build error on mingw with the modules sys_select and unistd.
12348         * modules/acl-tests (Depends-on): Add close.
12349         * modules/binary-io-tests (Depends-on): Likewise.
12350         * modules/closein-tests (Depends-on): Likewise.
12351         * modules/flock-tests (Depends-on): Likewise.
12352         * modules/fsync-tests (Depends-on): Likewise.
12353         * modules/lseek-tests (Depends-on): Likewise.
12354         * modules/pipe-tests (Depends-on): Likewise.
12355         * modules/posix_spawn-tests (Depends-on): Likewise.
12356         * modules/posix_spawnp-tests (Depends-on): Likewise.
12357         * modules/stat-time-tests (Depends-on): Likewise.
12358         * modules/yesno-tests (Depends-on): Likewise.
12359
12360 2009-07-19  Bruno Haible  <bruno@clisp.org>
12361
12362         Unify conditionals.
12363         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12364         macros, not at the compiler macros.
12365         * lib/pipe.c: Likewise.
12366         * lib/execute.c: Likewise.
12367         * lib/spawni.c: Likewise.
12368
12369 2009-07-19  Bruno Haible  <bruno@clisp.org>
12370
12371         Fix handling of closed stdin/stdout/stderr on mingw.
12372         * lib/w32spawn.h: Include unistd.h.
12373         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12374         file descriptor with O_NOINHERIT flag.
12375         (fd_safer_noinherit): New function, based on fd-safer.c.
12376         (dup_safer_noinherit): New function, based on dup-safer.c.
12377         (undup_safer_noinherit): New function.
12378         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12379         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12380         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12381         instead of fd_safer.
12382         * tests/test-pipe.c: Include <windows.h>.
12383         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12384
12385         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12386         from main.
12387         (test_pipe): Pass an extra argument for disambiguation.
12388         (main): Invoke parent_main or child_main.
12389
12390         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12391         consistently.
12392
12393 2009-07-18  Eric Blake  <ebb9@byu.net>
12394
12395         test-pipe: fix mingw build
12396         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12397
12398 2009-07-18  Bruno Haible  <bruno@clisp.org>
12399
12400         * modules/pipe-tests (Makefile.am): Fix typo.
12401
12402 2009-07-18  Eric Blake  <ebb9@byu.net>
12403
12404         error: fix mingw build
12405         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12406         Reported by Bruno Haible.
12407
12408         error: avoid undefined use of stdout
12409         * lib/error.c (error, error_at_line): Check that fd 1 is open
12410         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12411         is handling faults and the close_stdout module wants to report the
12412         detection of closed stdout as an error.
12413
12414 2009-07-17  Eric Blake  <ebb9@byu.net>
12415
12416         pipe: be robust in face of closed fds
12417         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12418         should cause child to misbehave.
12419         * modules/pipe-tests: New module.
12420         * tests/test-pipe.c: New file.
12421         * tests/test-pipe.sh: New file.
12422         Reported by Akim Demaille.
12423
12424 2009-07-14  Bruno Haible  <bruno@clisp.org>
12425
12426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12427         Reported by anonymous kc.
12428
12429 2009-07-07  Jim Meyering  <meyering@redhat.com>
12430
12431         maint.mk: don't look for translatable strings in *.m4 or *.mk
12432         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12433         when searching for translatable strings.
12434
12435 2009-07-05  Jim Meyering  <meyering@redhat.com>
12436
12437         remove superfluous parentheses in STREQ definition
12438         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12439         * lib/getugroups.c (STREQ): Likewise.
12440         * lib/fnmatch.c (STREQ): Likewise.
12441         Spotted by Bruno Haible.
12442
12443 2009-07-04  Jim Meyering  <meyering@redhat.com>
12444
12445         argv-iter: new module
12446         * MODULES.html.sh: Add argv-iter.
12447         * lib/argv-iter.c, lib/argv-iter.h: New files.
12448         * modules/argv-iter: New file.
12449         * modules/argv-iter-tests: New file.
12450         * tests/test-argv-iter.c: Test it.
12451
12452 2009-07-04  Bruno Haible  <bruno@clisp.org>
12453
12454         Fix assertion.
12455         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12456         contains more exact copies of a given entry than file2, leave the extra
12457         copies unpaired rather than aborting.
12458         Reported by Eric Blake.
12459
12460 2009-07-02  Bruno Haible  <bruno@clisp.org>
12461
12462         Speedup git-merge-changelog for git cherry-pick.
12463         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12464         (entries_mapping_get): New function, extracted from compute_mapping.
12465         (entries_mapping_reverse_get): New function.
12466         (compute_mapping): Add a 'full' argument. Return the result in a
12467         'struct entries_mapping'.
12468         (main): Update. Access the mappings through entries_mapping_get.
12469         Reported by Eric Blake.
12470
12471 2009-07-02  Bruno Haible  <bruno@clisp.org>
12472
12473         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12474         best_i.
12475
12476 2009-07-02  Bruno Haible  <bruno@clisp.org>
12477
12478         Speed up approximate search for matching ChangeLog entries.
12479         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12480         argument. Call fstrcmp_bounded instead of fstrcmp.
12481         (compute_mapping, try_split_merged_entry, main): Update callers.
12482
12483 2009-07-02  Bruno Haible  <bruno@clisp.org>
12484
12485         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12486
12487 2009-06-30  Bruno Haible  <bruno@clisp.org>
12488
12489         Reduce the number of uc_is_cased calls.
12490         * lib/unicase.h (casing_suffix_context_t): Add
12491         'first_char_except_ignorable' field.
12492         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12493         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12494         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12495         Update initializer.
12496         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12497         case-ignorable characters.
12498         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12499         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12500         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12501         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12502         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12503
12504 2009-06-30  Bruno Haible  <bruno@clisp.org>
12505
12506         Tests for module 'unicase/ignorable'.
12507         * modules/unicase/ignorable-tests: New file.
12508         * tests/unicase/test-ignorable.c: New file, generated by
12509         gen-uni-tables.
12510
12511         Tests for module 'unicase/cased'.
12512         * modules/unicase/cased-tests: New file.
12513         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12514         * tests/unicase/test-predicate-part1.h: New file, derived from
12515         tests/unictype/test-predicate-part1.h.
12516         * tests/unicase/test-predicate-part2.h: New file, same as
12517         tests/unictype/test-predicate-part2.h.
12518
12519         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12520         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12521         (output_casing_properties): New function.
12522         (main): Call it.
12523         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12524         * lib/unicase/cased.c: Include unictype/bitmap.h.
12525         (uc_is_cased): Define through a bitmap lookup.
12526         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12527         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12528         (uc_is_case_ignorable): Define through a bitmap lookup.
12529         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12530         lib/unictype/bitmap.h.
12531         (Depends-on): Add inline. Clean up.
12532         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12533         lib/unictype/bitmap.h.
12534         (Depends-on): Add inline. Clean up.
12535         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12536         recognition.
12537         * tests/unicase/test-u16-tolower.c (main): Likewise.
12538         * tests/unicase/test-u32-tolower.c (main): Likewise.
12539
12540 2009-06-30  Bruno Haible  <bruno@clisp.org>
12541
12542         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12543         * lib/unicase/u16-casemap.c: Likewise.
12544         * lib/unicase/u32-casemap.c: Likewise.
12545
12546 2009-06-29  Bruno Haible  <bruno@clisp.org>
12547
12548         Define u32_casefold as a wrapper around u32_ct_casefold.
12549         * lib/unicase/u32-casefold.c: Update.
12550         * modules/unicase/u32-casefold (Depends-on): Add
12551         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12552         unicase/empty-suffix-context. Clean up.
12553
12554         Define u16_casefold as a wrapper around u16_ct_casefold.
12555         * lib/unicase/u16-casefold.c: Update.
12556         * modules/unicase/u16-casefold (Depends-on): Add
12557         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12558         unicase/empty-suffix-context. Clean up.
12559
12560         Define u8_casefold as a wrapper around u8_ct_casefold.
12561         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12562         * lib/unicase/u8-casefold.c: Update.
12563         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12564         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12565
12566         Define u32_totitle as a wrapper around u32_ct_totitle.
12567         * lib/unicase/u32-totitle.c: Update.
12568         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12569         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12570
12571         Define u16_totitle as a wrapper around u16_ct_totitle.
12572         * lib/unicase/u16-totitle.c: Update.
12573         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12574         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12575
12576         Define u8_totitle as a wrapper around u8_ct_totitle.
12577         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12578         functions.
12579         (FUNC): Delegate to U_CT_TOTITLE.
12580         * lib/unicase/u8-totitle.c: Update.
12581         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12582         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12583
12584         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12585         invocation.
12586         * modules/unicase/u32-tolower (Depends-on): Add
12587         unicase/empty-prefix-context, unicase/empty-suffix-context.
12588
12589         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12590         invocation.
12591         * modules/unicase/u16-tolower (Depends-on): Add
12592         unicase/empty-prefix-context, unicase/empty-suffix-context.
12593
12594         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12595         * modules/unicase/u8-tolower (Depends-on): Add
12596         unicase/empty-prefix-context, unicase/empty-suffix-context.
12597
12598         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12599         invocation.
12600         * modules/unicase/u32-toupper (Depends-on): Add
12601         unicase/empty-prefix-context, unicase/empty-suffix-context.
12602
12603         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12604         invocation.
12605         * modules/unicase/u16-toupper (Depends-on): Add
12606         unicase/empty-prefix-context, unicase/empty-suffix-context.
12607
12608         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12609         * modules/unicase/u8-toupper (Depends-on): Add
12610         unicase/empty-prefix-context, unicase/empty-suffix-context.
12611
12612         New module 'unicase/u32-ct-casefold'.
12613         * lib/unicase/u32-ct-casefold.c: New file.
12614         * modules/unicase/u32-ct-casefold: New file.
12615
12616         New module 'unicase/u16-ct-casefold'.
12617         * lib/unicase/u16-ct-casefold.c: New file.
12618         * modules/unicase/u16-ct-casefold: New file.
12619
12620         New module 'unicase/u8-ct-casefold'.
12621         * lib/unicase/u8-ct-casefold.c: New file.
12622         * lib/unicase/u-ct-casefold.h: New file, derived from
12623         lib/unicase/u-casefold.h.
12624         * modules/unicase/u8-ct-casefold: New file.
12625
12626         New module 'unicase/u32-ct-totitle'.
12627         * lib/unicase/u32-ct-totitle.c: New file.
12628         * modules/unicase/u32-ct-totitle: New file.
12629
12630         New module 'unicase/u16-ct-totitle'.
12631         * lib/unicase/u16-ct-totitle.c: New file.
12632         * modules/unicase/u16-ct-totitle: New file.
12633
12634         New module 'unicase/u8-ct-totitle'.
12635         * lib/unicase/u8-ct-totitle.c: New file.
12636         * lib/unicase/u-ct-totitle.h: New file, derived from
12637         lib/unicase/u-totitle.h.
12638         * modules/unicase/u8-ct-totitle: New file.
12639
12640         New module 'unicase/u32-ct-tolower'.
12641         * lib/unicase/u32-ct-tolower.c: New file.
12642         * modules/unicase/u32-ct-tolower: New file.
12643
12644         New module 'unicase/u16-ct-tolower'.
12645         * lib/unicase/u16-ct-tolower.c: New file.
12646         * modules/unicase/u16-ct-tolower: New file.
12647
12648         New module 'unicase/u8-ct-tolower'.
12649         * lib/unicase/u8-ct-tolower.c: New file.
12650         * modules/unicase/u8-ct-tolower: New file.
12651
12652         New module 'unicase/u32-ct-toupper'.
12653         * lib/unicase/u32-ct-toupper.c: New file.
12654         * modules/unicase/u32-ct-toupper: New file.
12655
12656         New module 'unicase/u16-ct-toupper'.
12657         * lib/unicase/u16-ct-toupper.c: New file.
12658         * modules/unicase/u16-ct-toupper: New file.
12659
12660         New module 'unicase/u8-ct-toupper'.
12661         * lib/unicase/u8-ct-toupper.c: New file.
12662         * modules/unicase/u8-ct-toupper: New file.
12663
12664         Add context arguments to u*_casemap functions.
12665         * lib/unicase/unicasemap.h: Include unicase.h.
12666         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12667         suffix_context arguments.
12668         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12669         functions.
12670         (FUNC): Add prefix_context and suffix_context arguments. Use
12671         uc_is_cased and uc_is_case_ignorable.
12672         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12673         * lib/unicase/u16-casemap.c: Likewise.
12674         * lib/unicase/u32-casemap.c: Likewise.
12675         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12676         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12677         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12678         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12679         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12680         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12681
12682         New module 'unicase/u32-suffix-context'.
12683         * lib/unicase/u32-suffix-context.c: New file.
12684         * modules/unicase/u32-suffix-context: New file.
12685
12686         New module 'unicase/u16-suffix-context'.
12687         * lib/unicase/u16-suffix-context.c: New file.
12688         * modules/unicase/u16-suffix-context: New file.
12689
12690         New module 'unicase/u8-suffix-context'.
12691         * lib/unicase/u8-suffix-context.c: New file.
12692         * lib/unicase/u-suffix-context.h: New file.
12693         * modules/unicase/u8-suffix-context: New file.
12694
12695         New module 'unicase/empty-suffix-context'.
12696         * lib/unicase/empty-suffix-context.c: New file.
12697         * modules/unicase/empty-suffix-context: New file.
12698
12699         New module 'unicase/u32-prefix-context'.
12700         * lib/unicase/u32-prefix-context.c: New file.
12701         * modules/unicase/u32-prefix-context: New file.
12702
12703         New module 'unicase/u16-prefix-context'.
12704         * lib/unicase/u16-prefix-context.c: New file.
12705         * modules/unicase/u16-prefix-context: New file.
12706
12707         New module 'unicase/u8-prefix-context'.
12708         * lib/unicase/u8-prefix-context.c: New file.
12709         * lib/unicase/u-prefix-context.h: New file.
12710         * lib/unicase/context.h: New file.
12711         * modules/unicase/u8-prefix-context: New file.
12712
12713         New module 'unicase/empty-prefix-context'.
12714         * lib/unicase/empty-prefix-context.c: New file.
12715         * modules/unicase/empty-prefix-context: New file.
12716
12717         New module 'unicase/ignorable'.
12718         * lib/unicase/ignorable.c: New file.
12719         * modules/unicase/ignorable: New file.
12720
12721         New module 'unicase/cased'.
12722         * lib/unicase/caseprop.h: New file.
12723         * lib/unicase/cased.c: New file.
12724         * modules/unicase/cased: New file.
12725
12726         New functions for case mapping of substrings.
12727         * lib/unicase.h (casing_prefix_context_t): New type.
12728         (unicase_empty_prefix_context): New variable.
12729         (u8_casing_prefix_context, u16_casing_prefix_context,
12730         u32_casing_prefix_context, u8_casing_prefixes_context,
12731         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12732         declarations.
12733         (casing_suffix_context_t): New type.
12734         (unicase_empty_suffix_context): New variable.
12735         (u8_casing_suffix_context, u16_casing_suffix_context,
12736         u32_casing_suffix_context, u8_casing_suffixes_context,
12737         u16_casing_suffixes_context, u32_casing_suffixes_context,
12738         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12739         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12740         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12741         declarations.
12742
12743 2009-06-28  Jim Meyering  <meyering@redhat.com>
12744
12745         boostrap: indent only with spaces
12746         * build-aux/bootstrap: Indent only with spaces, never TABs.
12747
12748         bootstrap: split long lines
12749         * build-aux/bootstrap: Keep line length < 80.
12750
12751         bootstrap: sync from coreutils
12752         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12753         just as autoreconf does.  Verify a list of prerequisite
12754         package-name,version-number pairs if defined in bootstrap.conf.
12755         Refer to README-prereq, if prerequisites are not satisfied.
12756
12757 2009-06-27  Eric Blake  <ebb9@byu.net>
12758
12759         tests: add test for bogus NULL definition
12760         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12761         * tests/test-stdlib.c: Likewise.
12762         * tests/test-string.c: Likewise.
12763         * tests/test-locale.c: Likewise.
12764         * tests/test-unistd.c: Likewise.
12765         * modules/stdio-tests (Depends-on): Add verify.
12766         * modules/stdlib-tests (Depends-on): Likewise.
12767         * modules/string-tests (Depends-on): Likewise.
12768         * modules/locale-tests (Depends-on): Likewise.
12769         * modules/unistd-tests (Depends-on): Likewise.
12770
12771 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12772
12773         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12774         self-explaining comment.
12775         * m4/selinux-selinux-h: Update serial.
12776         (gl_LIBSELINUX): New macro, adding a warning for missing development
12777         packages to code extracted from...
12778         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12779         Add warning for missing development packages here, too.
12780
12781 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12782
12783         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12784
12785 2009-06-25  Eric Blake  <ebb9@byu.net>
12786
12787         version-etc: fix regression
12788         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12789         gcc.
12790         (version_etc): Use it, to catch bugs with trailing NULL.
12791         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12792         (version_etc_va): Fix logic bug.
12793         * modules/version-etc-tests: Add test.
12794         * tests/test-version-etc.c: New file.
12795         * tests/test-version-etc.sh: Likewise.
12796
12797 2009-06-25  Sam Steingold  <sds@gnu.org>
12798
12799         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12800         mbtowc declaration.
12801
12802 2009-06-25  Eric Blake  <ebb9@byu.net>
12803
12804         fpurge: migrate into <stdio.h>
12805         * lib/fpurge.h: Delete...
12806         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12807         * lib/fpurge.c (fpurge): Change declaring header.
12808         * modules/fpurge (Files): Drop deleted file.
12809         (Depends-on): Add stdio.
12810         (configure.ac): Set witness.
12811         * modules/stdio (Makefile.am): Support fpurge macros.
12812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12813         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12814         * lib/fflush.c: Update client.
12815         * tests/test-fpurge.c: Likewise.
12816         * NEWS: Mention the change.
12817
12818 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12819
12820         * lib/argp-version-etc.c (program_authors): Add const
12821         qualifier.
12822         * lib/version-etc.c: Fix typos in the comments.
12823         * modules/argp-version-etc: Depends on version-etc.
12824
12825 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12826
12827         argp-version-etc: new module.
12828
12829         * lib/argp-version-etc.c: New file.
12830         * lib/argp-version-etc.h: New file.
12831         * modules/argp-version-etc: New file.
12832         * modules/argp-version-etc-tests: New file.
12833         * tests/test-argp-version-etc.c: New test.
12834         * tests/test-argp-version-etc-1.sh: New test.
12835
12836 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12837
12838         Provide additional interfaces and documentation for version-etc
12839         module.
12840
12841         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12842         interfaces.
12843         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12844         prototypes.
12845
12846 2009-06-24  Bruno Haible  <bruno@clisp.org>
12847
12848         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12849         HAVE_LIB${NAME} macro.
12850         Reported by Sam Steingold <sds@gnu.org>.
12851
12852 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12853
12854         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12855         needed.
12856
12857 2009-06-21  Bruno Haible  <bruno@clisp.org>
12858
12859         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12860         work.
12861         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12862         together with LIB${NAME}, LTLIB${NAME}.
12863         Reported by Sam Steingold <sds@gnu.org>.
12864
12865 2009-06-20  Jim Meyering  <meyering@redhat.com>
12866
12867         tests: make sc_require_test_exit_idiom more generic
12868         * top/maint.mk (Exit_witness_file): New overridable variable.
12869         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12870         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12871
12872 2009-06-19  Jim Meyering  <meyering@redhat.com>
12873
12874         hash: reverse order of src/dst parameters in an internal interface
12875         * lib/hash.c (transfer_entries): Reverse order of parameters to
12876         put DST before SRC.  Adjust callers.
12877
12878         tests: test-hash: avoid wholesale duplication
12879         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12880         Instead, use a loop and add a single conditional.
12881
12882         tests: test-hash: allow seed selection via a command line argument
12883         * tests/test-hash.c (get_seed): New function.
12884         (main): Use it.
12885
12886 2009-06-19  Eric Blake  <ebb9@byu.net>
12887
12888         hash: avoid memory leak on allocation failure
12889         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12890         failure.  Factor repeated algorithm...
12891         (transfer_entries): ...into new helper routine.
12892         (hash_delete): React to hash_rehash return value.
12893
12894         hash: reduce memory pressure in hash_rehash no-op case
12895         * lib/hash.c (next_prime): Avoid overflow.
12896         (hash_initialize): Factor bucket size computation...
12897         (compute_bucket_size): ...into new helper function.
12898         (hash_rehash): Use new function and open coding to reduce memory
12899         pressure, and avoid a memory leak in USE_OBSTACK code.
12900         Reported by Jim Meyering.
12901
12902 2009-06-18  Eric Blake  <ebb9@byu.net>
12903
12904         hash: make rotation more obvious
12905         * modules/hash (Depends-on): Add bitrotate and stdint.
12906         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12907         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12908         (SIZE_MAX): Rely on headers for definition.
12909         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12910         (raw_hasher): Use rotr_sz.
12911         Suggested by Jim Meyering.
12912
12913         hash: fix memory leak in last patch
12914         * lib/hash.c (hash_rehash): Avoid memory leak.
12915
12916         hash: avoid no-op rehashing
12917         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12918
12919         hash: provide default callback functions
12920         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12921         (hash_initialize): Use them as defaults.
12922         * tests/test-hash.c (main): Test this.
12923
12924         hash: minor optimization
12925         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12926         when possible.
12927         (hash_initialize): Document this promise.
12928         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12929         * tests/test-hash.c (hash_compare_strings): Test this.
12930
12931 2009-06-18  Bruno Haible  <bruno@clisp.org>
12932
12933         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12934         going to be replaced anyway.
12935
12936 2009-06-18  Bruno Haible  <bruno@clisp.org>
12937
12938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12939         in one place.
12940         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12941         be replaced anyway.
12942
12943 2009-06-18  Eric Blake  <ebb9@byu.net>
12944
12945         hash: check for resize before insertion
12946         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12947         threshold before insertion, so that a pathological hash_rehash
12948         that fills every bucket can still trigger another rehash.
12949
12950 2009-06-18  Jim Meyering  <meyering@redhat.com>
12951
12952         hash-tests: add a loop around the small tests
12953         * tests/test-hash.c (main): Repeat small tests with selected
12954         small initial table sizes.
12955
12956 2009-06-17  Eric Blake  <ebb9@byu.net>
12957
12958         hash: minor cleanups
12959         * lib/hash.h (hash_entry): Make opaque, by moving...
12960         * lib/hash.c (hash_entry): ...here.
12961         (hash_insert): Clarify restrictions on what can be inserted.
12962         (hash_get_next): Clarify when it is safe to remove an element
12963         during traversal.
12964         (check_tuning): Skip verification when tuning is known safe.
12965         (hash_initialize): Clarify restrictions on tuning.
12966
12967 2009-06-17  Jim Meyering  <jim@meyering.net>
12968         and Eric Blake  <ebb9@byu.net>
12969
12970         hash-tests: new module
12971         * modules/hash-tests: New file.
12972         * tests/test-hash.c: New file.
12973
12974 2009-06-17  Eric Blake  <ebb9@byu.net>
12975
12976         strstr-simple: document new module
12977         * MODULES.html.sh: Document new module.
12978
12979         strstr, strcasestr: replace on platforms with broken memchr
12980         * modules/strstr: Split into...
12981         * modules/strstr-simple: ...new module that does not care about
12982         performance, but does care about glibc bug.
12983         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12984         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12985         if platform memchr is broken, per Debian bug 521737.
12986         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12987         memchr.
12988         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12989         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12990         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12991         * modules/mountlist (Depends-on): Add strstr-simple.
12992         * modules/gen-uni-tables (Depends-on): Likewise.
12993         * modules/argz (Depends-on): Add strstr.
12994
12995 2009-06-17  Bruno Haible  <bruno@clisp.org>
12996
12997         * modules/posix_spawn-internal (Depends-on): Add errno.
12998
12999 2009-06-17  Bruno Haible  <bruno@clisp.org>
13000
13001         Define missing ESTALE on Interix 3.5.
13002         * lib/errno.in.h (ESTALE): Assign a value if missing.
13003         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13004         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13005         missing.
13006         * doc/posix-headers/errno.texi: Mention the Interix bug.
13007         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13008
13009 2009-06-15  Eric Blake  <ebb9@byu.net>
13010
13011         memchr, memchr2: add valgrind exception
13012         * lib/memchr.valgrind: New file.
13013         * lib/memchr2.valgrind: New file.
13014         * modules/memchr (Files): Distribute valgrind file.
13015         * modules/memchr2 (Files): Likewise.
13016
13017         docs: memchr is no longer obsolete
13018         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13019         * lib/string.in.h (memchr): Simplify logic.
13020
13021 2009-06-14  Jim Meyering  <meyering@redhat.com>
13022
13023         link-follow: fix the "checking..." message to not mention trailing slash
13024         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13025         never considered trailing slashes.
13026
13027 2009-06-14  Bruno Haible  <bruno@clisp.org>
13028
13029         * m4/memchr.m4: Mention also the bug on IA-64.
13030         * doc/posix-functions/memchr.texi: Likewise.
13031
13032 2009-06-12  Eric Blake  <ebb9@byu.net>
13033
13034         memchr: detect broken x86_64 and alpha implementations
13035         * modules/memchr-tests (Depends-on): Move mmap detection...
13036         * modules/memchr (Depends-on): ...here.
13037         (configure.ac): Set indicator.
13038         * lib/string.in.h (memchr): Declare replacement.
13039         * modules/string (Makefile.am): Trigger replacement.
13040         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13041         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13042         bugs.
13043         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13044         * modules/getpagesize (License): Relax license.
13045
13046 2009-06-11  Bruno Haible  <bruno@clisp.org>
13047
13048         * lib/idpriv.h: Add more references.
13049
13050 2009-06-08  Bruno Haible  <bruno@clisp.org>
13051
13052         Tests for module 'idpriv-droptemp'.
13053         * modules/idpriv-droptemp-tests: New file.
13054         * tests/test-idpriv-droptemp.sh: New file.
13055         * tests/test-idpriv-droptemp.su.sh: New file.
13056         * tests/test-idpriv-droptemp.c: New file.
13057
13058         New module 'idpriv-droptemp'.
13059         * lib/idpriv-droptemp.c: New file.
13060         * modules/idpriv-droptemp: New file.
13061
13062 2009-06-08  Bruno Haible  <bruno@clisp.org>
13063
13064         Tests for module 'idpriv-drop'.
13065         * modules/idpriv-drop-tests: New file.
13066         * tests/test-idpriv-drop.sh: New file.
13067         * tests/test-idpriv-drop.su.sh: New file.
13068         * tests/test-idpriv-drop.c: New file.
13069
13070         New module 'idpriv-drop'.
13071         * lib/idpriv.h: New file.
13072         * lib-idpriv-drop.c: New file.
13073         * m4/idpriv.m4: New file.
13074         * modules/idpriv-drop: New file.
13075
13076 2009-06-08  Bruno Haible  <bruno@clisp.org>
13077
13078         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13079         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13080         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13081         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13082         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13083         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13084         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13085
13086 2009-06-08  Eric Blake  <ebb9@byu.net>
13087
13088         test-strstr: use memory fence, when possible
13089         * tests/test-strstr.c (main): Use memory fence, in order to be
13090         more likely to trigger Debian bug 521737.
13091         * modules/strstr-tests (Files): Pull in additional files.
13092
13093         memchr: no longer obsolete, for wider field testing
13094         * modules/memchr (Status, Notice): Delete, this module is no
13095         longer obsolete.
13096         * modules/vasnprintf (Depends-on): Add memchr.
13097
13098 2009-06-07  Jim Meyering  <meyering@redhat.com>
13099
13100         hash: declare some functions with the warn_unused_result attribute
13101         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13102
13103 2009-06-07  Bruno Haible  <bruno@clisp.org>
13104
13105         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13106         Reported by Eric Blake.
13107
13108 2009-06-06  Eric Blake  <ebb9@byu.net>
13109
13110         test-alignof: fix typo with long double
13111         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13112         compiler error.
13113
13114 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13115
13116         Escape non-texinfo { and }s.
13117         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13118         markup error.
13119
13120 2009-06-04  Jim Meyering  <meyering@redhat.com>
13121
13122         gitlog-to-changelog: don't infloop on an empty commit log
13123         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13124         Reported by Boris Petersen <transacid@centerim.org>.
13125
13126 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13127
13128         version-etc: extend for packagers
13129         Add three new configure options, intended for packagers:
13130           --with-packager="packager name"
13131           --with-packager-version="packager-specific version"
13132           --with-packager-bug-reports="packager bug reporting"
13133         An example with coreutils:
13134           $ ./configure \
13135             --with-packager=Gentoo \
13136             --with-packager-bug-report=http://bugs.gentoo.org/ \
13137             --with-packager-version="patchset 1.6"
13138           $ ./src/ls --version | head -n2
13139           ls (GNU coreutils) 7.1-dirty
13140           Packaged by Gentoo (patchset 1.6)
13141         Note that the bug reporting info via --help doesn't show up because
13142         coreutils uses its own custom emit_bug_reporting_address() implementation
13143         in src/system.h.  If it didn't, it'd look like:
13144           $ ./src/ls --help | tail -n4
13145           Report bugs to <bug-coreutils@gnu.org>.
13146           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13147           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13148           General help using GNU software: <http://www.gnu.org/gethelp/>.
13149         * lib/version-etc.c: Print new information, if provided.
13150         * m4/version-etc.m4: New file.
13151         * modules/version-etc (Files): Add m4/version-etc.m4.
13152         (configure.ac): Add gl_VERSION_ETC.
13153
13154 2009-05-31  Bruno Haible  <bruno@clisp.org>
13155
13156         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13157         and 'int64_t'.
13158         * modules/alignof-tests (Dependencies): Add stdint.
13159         Reported by Eric Blake.
13160
13161 2009-05-31  Bruno Haible  <bruno@clisp.org>
13162
13163         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13164         restriction due to compiler bugs.
13165         Reported by Eric Blake.
13166
13167 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13168             Bruno Haible  <bruno@clisp.org>
13169
13170         Fix test-alignof failure.
13171         * lib/alignof.h (alignof_slot): New macro.
13172         (alignof_type): New macro, with the same semantics as the previous
13173         'alignof'.
13174         (alignof): Alias to alignof_slot.
13175         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13176         check that the results are usable as constant expressions.
13177
13178 2009-05-31  Bruno Haible  <bruno@clisp.org>
13179
13180         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13181         * tests/test-memchr.c (main): Check that memchr does not read past the
13182         first occurrence of the byte.
13183         * tests/test-strstr.c (main): Update comment.
13184         Suggested by Eric Blake.
13185
13186 2009-05-30  Bruno Haible  <bruno@clisp.org>
13187
13188         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13189         detail how to use dumpbin.
13190         Reported by David Byron <dbyron@dbyron.com>.
13191
13192 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13193
13194         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13195
13196 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13197
13198         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13199
13200 2009-05-28  Bruno Haible  <bruno@clisp.org>
13201
13202         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13203         build-aux/ files.
13204
13205 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13206
13207         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13208
13209 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13210
13211         * gnulib-tool (sed_transform_main_lib_file)
13212         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13213         regexps.
13214
13215 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13216
13217         * tests/test-strstr.c: Add another self-test.
13218         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13219         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13220
13221 2009-05-23  Bruno Haible  <bruno@clisp.org>
13222
13223         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13224         change.
13225
13226 2009-05-21  Bruno Haible  <bruno@clisp.org>
13227
13228         Simplify use of mode_t varargs.
13229         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13230         uses 'mode_t' or 'int'.
13231         * lib/openat.c (openat): Likewise.
13232         * lib/open-safer.c (open_safer): Likewise.
13233         * m4/mode_t.m4: New file.
13234         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13235         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13236         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13237         * modules/open (Files): Add m4/mode_t.m4.
13238         * modules/openat (Files): Likewise.
13239         * modules/fcntl-safer (Files): Likewise.
13240         Suggested by Eric Blake.
13241
13242 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13243
13244         * doc/glibc-functions/fallocate.texi: New file.
13245         * doc/gnulib.texi: Include it.
13246
13247 2009-05-21  Eric Blake  <ebb9@byu.net>
13248             Bruno Haible  <bruno@clisp.org>
13249
13250         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13251         invocations.
13252         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13253
13254 2009-05-21  Eric Blake  <ebb9@byu.net>
13255             Bruno Haible  <bruno@clisp.org>
13256
13257         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13258         include_next. Fix of 2008-11-20 commit.
13259         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13260         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13261         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13262         NEXT_MATH_H.
13263         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13264         instead of NEXT_MATH_H.
13265
13266 2009-05-21  Bruno Haible  <bruno@clisp.org>
13267
13268         Avoid redefinition warnings for SIZE_MAX.
13269         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13270         Reported by Simon Josefsson.
13271
13272 2009-05-21  Bruno Haible  <bruno@clisp.org>
13273
13274         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13275         AC_CACHE_VAL.
13276
13277 2009-05-20  Bruno Haible  <bruno@clisp.org>
13278
13279         Make zeroptr.h work on mingw.
13280         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13281         mprotect.
13282         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13283         * modules/memchr2-tests (configure.ac): Likewise.
13284         * modules/memcmp-tests (configure.ac): Likewise.
13285         * modules/memmem-tests (configure.ac): Likewise.
13286         * modules/memrchr-tests (configure.ac): Likewise.
13287         Reported by Simon Josefsson.
13288
13289 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13290
13291         * tests/test-glob.c: Include string.h for strcmp prototype.
13292
13293 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13294
13295         * modules/getdelim (Depends-on): Add explicit stdint, although it
13296         was implicitly already pulled in via realloc-posix.
13297         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13298
13299 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13300
13301         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13302         G. Christensen" <tgc@jupiterrise.com>.
13303         * m4/sys_socket_h.m4: Check for sa_family_t.
13304         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13305         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13306         * tests/test-sys_socket.c: Check that sa_family_t works.
13307
13308 2009-05-18  Eric Blake  <ebb9@byu.net>
13309
13310         maint.mk: allow gnulib_dir in VPATH build
13311         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13312
13313 2009-05-15  Jim Meyering  <meyering@redhat.com>
13314
13315         maint.mk: Give gnulib_dir a default definition.
13316         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13317         Thus, most packages no longer need to specify this variable in cfg.mk
13318
13319 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13320
13321         rename.m4: fix typos that would make non-mingw cross-configure fail
13322         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13323
13324 2009-05-13  Eric Blake  <ebb9@byu.net>
13325
13326         mmap-anon: avoid out-of-order autoconf expansion
13327         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13328         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13329         * modules/memchr-tests (Depends-on): Add extensions.
13330         * modules/memchr2-tests (Depends-on): Add extensions.
13331         * modules/memcmp-tests (Depends-on): Add extensions.
13332         * modules/memmem-tests (Depends-on): Add extensions.
13333         * modules/memrchr-tests (Depends-on): Add extensions.
13334
13335 2009-05-13  Bruno Haible  <bruno@clisp.org>
13336
13337         Make some tests ISO C 99 compliant.
13338         * tests/zerosize-ptr.h: New file.
13339         * tests/test-memchr.c: Include zerosize-ptr.h.
13340         (main): Use a zero-size object pointer instead of NULL.
13341         * tests/test-memchr2.c: Include zerosize-ptr.h.
13342         (main): Use a zero-size object pointer instead of NULL.
13343         * tests/test-memcmp.c: Include zerosize-ptr.h.
13344         (main): Use a zero-size object pointer instead of NULL.
13345         * tests/test-memmem.c: Include zerosize-ptr.h.
13346         (main): Use a zero-size object pointer instead of NULL.
13347         * tests/test-memrchr.c: Include zerosize-ptr.h.
13348         (main): Use a zero-size object pointer instead of NULL.
13349         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13350         m4/mmap-anon.m4.
13351         (Depends-on): Add getpagesize.
13352         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13353         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13354         m4/mmap-anon.m4.
13355         (Depends-on): Add getpagesize.
13356         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13357         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13358         m4/mmap-anon.m4.
13359         (Depends-on): Add getpagesize.
13360         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13361         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13362         m4/mmap-anon.m4.
13363         (Depends-on): Add getpagesize.
13364         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13365         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13366         m4/mmap-anon.m4.
13367         (Depends-on): Add getpagesize.
13368         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13369
13370 2009-05-12  Bruno Haible  <bruno@clisp.org>
13371
13372         Tests for module 'alignof'.
13373         * modules/alignof-tests: New file.
13374         * tests/test-alignof.c: New file.
13375
13376 2009-05-12  Bruno Haible  <bruno@clisp.org>
13377
13378         Fix alignof macro.
13379         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13380         vendor compilers that are always correct.
13381
13382 2009-05-12  Bruno Haible  <bruno@clisp.org>
13383
13384         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13385         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13386         not whether its fully works.
13387
13388 2009-05-12  Bruno Haible  <bruno@clisp.org>
13389
13390         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13391
13392 2009-05-12  Jim Meyering  <meyering@redhat.com>
13393
13394         * top/maint.mk: Adjust backslash alignment.
13395
13396 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13397
13398         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13399
13400 2009-05-11  Eric Blake  <ebb9@byu.net>
13401
13402         argp: avoid undefined behavior
13403         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13404         macros.
13405
13406 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13407
13408         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13409         user.name to prevent git commit from complaining.
13410
13411 2009-05-10  Bruno Haible  <bruno@clisp.org>
13412
13413         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13414         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13415         it rewrites every file name only once.
13416         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13417
13418 2009-05-08  Bruno Haible  <bruno@clisp.org>
13419
13420         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13421         instead of 'max'.
13422
13423 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13424
13425         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13426         sockaddr_storage test.
13427
13428 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13429
13430         * modules/sys_socket (Makefile.am): Substitute
13431         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13432         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13433         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13434         * tests/test-sys_socket.c: Check sockaddr_storage.
13435
13436 2009-05-08  Bruno Haible  <bruno@clisp.org>
13437
13438         New module 'alignof'.
13439         * lib/alignof.h: New file.
13440         * modules/alignof: New file.
13441
13442 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13443             Bruno Haible  <bruno@clisp.org>
13444
13445         Fix test-file-has-acl on FreeBSD.
13446         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13447         mask is implicitly added.
13448         * tests/test-file-has-acl.c: Include <signal.h>.
13449         (main): Terminate the test after 5 seconds.
13450         * modules/acl-tests (configure.ac): Check for alarm function.
13451
13452 2009-05-04  Bruno Haible  <bruno@clisp.org>
13453
13454         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13455         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13456         * modules/errno (configure.ac): Drop AC_REQUIRE.
13457         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13458         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13459
13460 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13461
13462         * modules/glob-tests: New module.
13463         * tests/test-glob.c: Add.
13464
13465 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13466
13467         * modules/fnmatch-tests: New module.
13468         * tests/test-fnmatch.c: Add.
13469
13470 2009-05-04  Eric Blake  <ebb9@byu.net>
13471
13472         maint: make the new no-submodule-changes rule VPATH-safe
13473         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13474
13475 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13476             Bruno Haible  <bruno@clisp.org>
13477
13478         acl: Fix infinite loop on FreeBSD.
13479         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13480         of return value from acl_get_entry.
13481         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13482         Likewise.
13483
13484 2009-05-03  Bruno Haible  <bruno@clisp.org>
13485
13486         * lib/acl-internal.h (acl_entries): Clarify return value.
13487         * lib/acl_entries.c (acl_entries): Likewise.
13488
13489 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13490
13491         Bug fix in acl module.
13492         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13493
13494 2009-05-03  Bruno Haible  <bruno@clisp.org>
13495
13496         Create gperf-generated file in the source dir, not in the build dir.
13497         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13498         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13499         * modules/unicase/locale-language (unicase/locale-languages.h):
13500         Likewise.
13501         * modules/unicase/special-casing (unicase/special-casing-table.h):
13502         Likewise.
13503         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13504         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13505         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13506         Reported by Ralf Wildenhues.
13507
13508 2009-05-03  Bruno Haible  <bruno@clisp.org>
13509
13510         * modules/fnmatch (Description, configure.ac): Taken from
13511         fnmatch-posix.
13512         * modules/fnmatch-posix: Turn into a symbolic reference to the
13513         'fnmatch' module, and deprecate.
13514         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13515
13516 2009-05-03  Bruno Haible  <bruno@clisp.org>
13517
13518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13519         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13520         Reported by Ralf Wildenhues.
13521
13522 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13523
13524         * m4/fnmatch.m4: Fix fnmatch re-define.
13525
13526 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13527
13528         priv-set: new module and tests; adapt write-any-file
13529         * lib/priv-set.c: New file.
13530         * lib/priv-set.h: New file.
13531         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13532         * lib/write-any-file.c: Simplify by using priv-set module.
13533         * m4/priv-set.m4: New file.
13534         * modules/priv-set: New file.
13535         * modules/unlinkdir: Add dependency on priv-set module.
13536         * modules/write-any-file: Likewise.
13537
13538         Tests for module 'priv-set'.
13539         * modules/priv-set-tests: New file.
13540         * tests/test-priv-set.c: New file.
13541
13542 2009-05-03  Jim Meyering  <meyering@redhat.com>
13543             Bruno Haible  <bruno@clisp.org>
13544
13545         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13546         use the converted UTF-8 variant of the name instead.
13547
13548 2009-05-03  Jim Meyering  <meyering@redhat.com>
13549
13550         tests: tighten some getdate tests
13551         * tests/test-getdate.c (main): Tighten tests: require equality,
13552         not just greater than.  Set TZ envvar to UTC0.
13553
13554 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13555
13556         getdate: correctly interpret "next monday" when run on a Monday
13557         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13558         that e.g., "next tues" (when run on a tuesday) results in a date
13559         that is one week in the future, and not today's date.
13560         I.e., add a week when the wday is the same as the current one.
13561         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13562         and earlier by Martin Bernreuther and Jan Minář.
13563         * tests/test-getdate.c (main): Check that "next DAY" is always in
13564         the future and that "last DAY" is always in the past.
13565
13566 2009-05-02  Jim Meyering  <meyering@redhat.com>
13567
13568         build: ensure that a release build fails when a submodule is unclean
13569         * top/maint.mk (no-submodule-changes): New rule.
13570         (alpha beta major): Depend on it.
13571
13572 2009-05-02  Bruno Haible  <bruno@clisp.org>
13573
13574         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13575         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13576         shell variable gl_fnmatch_required to detect which variant is
13577         requested.
13578         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13579         gl_FUNC_FNMATCH_POSIX.
13580         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13581         exclude fnmatch-posix.
13582
13583 2009-05-02  Bruno Haible  <bruno@clisp.org>
13584
13585         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13586         * modules/mbsrtowcs (License): Change to LGPLv2+.
13587         * modules/strnlen1 (License): Likewise.
13588         Reported by Simon Josefsson.
13589
13590 2009-05-02  Bruno Haible  <bruno@clisp.org>
13591
13592         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13593         "cross".
13594         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13595         gnulib-tool was called with option --source-base=lib.
13596
13597 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13598
13599         Use automake *-local hooks without commands, for extensibility.
13600         * modules/localcharset (Makefile.am): Rename install-exec-local
13601         rule to install-exec-localcharset, and make it a prerequisite of
13602         install-exec-local.  Likewise, rename the uninstall-local rule to
13603         uninstall-localcharset, and make it a prerequisite of the former.
13604
13605 2009-05-01  Bruno Haible  <bruno@clisp.org>
13606
13607         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13608         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13609         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13610         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13611         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13612         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13613         m4/locale-zh.m4, m4/codeset.m4.
13614
13615         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13616         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13617         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13618         m4/locale-zh.m4.
13619
13620         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13621         REPLACE_WCRTOMB if mbstate_t must be replaced.
13622         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13623         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13624
13625 2009-05-01  Bruno Haible  <bruno@clisp.org>
13626
13627         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13628         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13629         dngettext, dcngettext, textdomain, bindtextdomain,
13630         bind_textdomain_codeset): Undefine before redefining.
13631
13632 2009-04-30  Bruno Haible  <bruno@clisp.org>
13633
13634         Fix bug introduced on 2009-04-25.
13635         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13636         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13637         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13638         is defined.
13639         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13640         is defined.
13641         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13642         is defined.
13643         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13644
13645 2009-04-28  Bruno Haible  <bruno@clisp.org>
13646
13647         Comment tweaks.
13648         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13649         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13650         * lib/unicase.h (u*_casexfrm): Likewise.
13651         Reported by Paolo Bonzini.
13652
13653 2009-04-28  Bruno Haible  <bruno@clisp.org>
13654
13655         Fix a compilation error.
13656         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13657         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13658         Reported by Jim Meyering.
13659
13660 2009-04-27  Bruno Haible  <bruno@clisp.org>
13661
13662         New module 'libunistring'.
13663         * modules/libunistring: New file.
13664         * m4/libunistring.m4: New file.
13665         * MODULES.html.sh (Unicode string functions): Add it.
13666
13667 2009-04-27  Eric Blake  <ebb9@byu.net>
13668
13669         maint.mk: allow package-specific header to provide <config.h>
13670         * top/maint.mk (sc_require_config_h): New variable.
13671         (sc_require_config_h, sc_require_config_h_first): Use it.
13672
13673 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13674
13675         * top/maint.mk (sc_avoid_if_before_free): Except
13676         useless-if-before-free script.
13677
13678 2009-04-27  Eric Blake  <ebb9@byu.net>
13679
13680         maintainer-makefile: depend on all required helper scripts
13681         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13682         useless-if-before-free.
13683         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13684         version, rather than assuming gnulib checkout is available.
13685         Reported by Simen Josefsson.
13686
13687 2009-04-26  Bruno Haible  <bruno@clisp.org>
13688
13689         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13690         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13691         "../" or "..".
13692
13693 2009-04-26  Bruno Haible  <bruno@clisp.org>
13694
13695         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13696         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13697         AC_LIB_HAVE_LINKFLAGS.
13698
13699 2009-04-26  Bruno Haible  <bruno@clisp.org>
13700
13701         Simplify calling convention of u*_conv_from_encoding.
13702         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13703         u32_conv_from_encoding): Expect a resultbuf argument and return the
13704         result directly as a pointer.
13705         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13706         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13707         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13708         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13709         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13710         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13711         Update.
13712         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13713         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13714         * lib/vasnprintf.c (VASNPRINTF): Update.
13715         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13716         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13717         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13718         * NEWS: Mention the change.
13719
13720 2009-04-26  Bruno Haible  <bruno@clisp.org>
13721
13722         Simplify calling convention of u*_conv_to_encoding.
13723         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13724         u32_conv_to_encoding): Expect a resultbuf argument and return the
13725         result directly as a pointer.
13726         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13727         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13728         freeing scaled_offsets if mem_iconveha failed.
13729         * lib/unicase/u-casexfrm.h (FUNC): Update.
13730         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13731         * lib/vasnprintf.c (VASNPRINTF): Update.
13732         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13733         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13734         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13735         * NEWS: Mention the change.
13736
13737 2009-04-26  Bruno Haible  <bruno@clisp.org>
13738
13739         Avoid test failures on AIX and OSF/1.
13740         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13741         malloc(0).
13742         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13743         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13744         Likewise.
13745         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13746         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13747         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13748         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13749         * doc/posix-functions/malloc.texi: Document the portability problem
13750         related to malloc(0).
13751
13752 2009-04-26  Bruno Haible  <bruno@clisp.org>
13753
13754         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13755         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13756         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13757
13758 2009-04-25  Bruno Haible  <bruno@clisp.org>
13759
13760         Avoid link error when creating a namespace clean library.
13761         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13762         as macro with arguments if already defined as an alias.
13763         * lib/signbitf.c (gl_signbitf): Don't undefine.
13764         * lib/signbitd.c (gl_signbitd): Don't undefine.
13765         * lib/signbitl.c (gl_signbitl): Don't undefine.
13766
13767 2009-04-25  Jim Meyering  <meyering@redhat.com>
13768
13769         vc-list-files: fix another quoting bug
13770         * build-aux/vc-list-files: Avoid sed backslash expansion
13771         of pathological directory names.
13772
13773 2009-04-25  Eric Blake  <ebb9@byu.net>
13774
13775         vc-list-files: fix shell quoting error
13776         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13777         timestamp.
13778
13779 2009-04-25  Jim Meyering  <meyering@redhat.com>
13780
13781         vc-list-files: restore lost functionality with subdir argument
13782         * build-aux/vc-list-files: When given a non-"." sub-directory
13783         argument, substitute the $dir/ prefix back onto each resulting name.
13784         Otherwise, coreutils' root_tests check would fail.
13785
13786 2009-04-24  Eric Blake  <ebb9@byu.net>
13787
13788         vc-list-files: ignore git symlinks
13789         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13790         than ls-files, to ignore git symlinks.
13791
13792         maint.mk: import improvements from m4
13793         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13794         (move_if_change): Delete unused macro.
13795         (news-date-check, vc-diff-check): Support VPATH builds.
13796         (announcement): Likewise.  Split --bootstrap-tools list...
13797         (boostrap-tools): ...into separate list, which can be overridden
13798         in cfg.mk.
13799         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13800         requiring dependency on useless-if-before-free module.
13801         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13802         Support VPATH builds.
13803
13804 2009-04-24  Jim Meyering  <meyering@redhat.com>
13805
13806         maint.mk: remove coreutils-specific rules and variables
13807         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13808         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13809         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13810
13811         maint.mk: remove obsolete rule
13812         * top/maint.mk (rel-check): Remove rule.
13813         (WGET, WGETFLAGS): Remove now-unused variables.
13814
13815 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13816
13817         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13818         consistency.
13819
13820         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13821         '$(PATH_SEPARATOR)' instead of ':'.
13822
13823 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13824
13825         * lib/getopt1.c (main): Use 'const' for static array.
13826
13827 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13828
13829         * top/maint.mk: Sync with coreutils.
13830         * NEWS: Explain incompatibilities.
13831
13832 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13833             Bruno Haible  <bruno@clisp.org>
13834
13835         Fix cross-compilation results.
13836         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13837         statement, as third argument of AC_TRY_RUN.
13838         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13839         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13840         Likewise.
13841         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13842         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13843         Likewise.
13844         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13845         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13846         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13847
13848 2009-04-20  Bruno Haible  <bruno@clisp.org>
13849
13850         Avoid test failure on mingw.
13851         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13852
13853 2009-04-20  Bruno Haible  <bruno@clisp.org>
13854
13855         Avoid compilation error on mingw.
13856         * modules/localename-tests (Depends-on): Add locale.
13857
13858 2009-04-19  Bruno Haible  <bruno@clisp.org>
13859
13860         Support for building a shared library on Windows platforms.
13861         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13862         (main): Test the presence of UNINORM_NFC here.
13863         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13864         (main): Test the presence of UNINORM_NFD here.
13865         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13866         (main): Test the presence of UNINORM_NFKC here.
13867         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13868         (main): Test the presence of UNINORM_NFKD here.
13869
13870 2009-04-19  Bruno Haible  <bruno@clisp.org>
13871
13872         Avoid a compiler warning.
13873         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13874         Change type of variable 'sequence'.
13875
13876 2009-04-19  Bruno Haible  <bruno@clisp.org>
13877
13878         * modules/configmake (Makefile.am): When the contents of configmake.h
13879         does not change, arrange to preserve its modification time.
13880
13881 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13882
13883         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13884         gettext domain.
13885
13886 2009-04-16  Jim Meyering  <meyering@redhat.com>
13887
13888         useless-if-before-free: improve conversion code
13889         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13890         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13891
13892 2009-04-14  Bruno Haible  <bruno@clisp.org>
13893
13894         * modules/fcntl (Depends-on): Add extensions.
13895         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13896
13897 2009-04-12  Ben Pfaff  <blp@gnu.org>
13898
13899         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13900         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13901
13902 2009-03-20  Ben Pfaff  <blp@gnu.org>
13903
13904         Make rename replace existing destinations on Windows.
13905         * m4/rename.m4: Add test for Mingw.
13906         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13907         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13908         * doc/posix-functions/rename.texi: Document.
13909
13910 2009-04-10  Bruno Haible  <bruno@clisp.org>
13911
13912         New include file "iconveh.h".
13913         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13914         * lib/striconveh.h: Include it.
13915         (enum iconv_ilseq_handler): Remove definition.
13916         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13917         striconveh.h.
13918         * lib/striconveha.c: Include striconveh.h.
13919         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13920         * modules/striconveh (Files): Add lib/iconveh.h.
13921         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13922         lib/striconveh.h.
13923
13924 2009-04-10  Bruno Haible  <bruno@clisp.org>
13925
13926         * lib/uniconv.h: Update comment.
13927
13928 2009-04-10  Bruno Haible  <bruno@clisp.org>
13929
13930         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13931         always.
13932         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13933         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13934         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13935         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13936         "unistring-notinline.h", so that the function gets defined always.
13937         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13938         * lib/unistr/u8-uctomb.c: Likewise.
13939         * lib/unistr/u16-mbtouc.c: Likewise.
13940         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13941         * lib/unistr/u16-uctomb.c: Likewise.
13942         * lib/unistr/u32-mbtouc.c: Likewise.
13943         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13944         * lib/unistr/u32-uctomb.c: Likewise.
13945
13946 2009-04-10  Bruno Haible  <bruno@clisp.org>
13947
13948         Mark 'utime' obsolete.
13949         * modules/utime (Status, Notice): New sections.
13950         Suggested by Jim Meyering.
13951
13952         Fix cross-compile guess for utime test.
13953         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13954         autoconf.
13955         * doc/posix-functions/utime.texi: Give more precisions.
13956         Reported by Jan <ipif@ymail.com>.
13957
13958 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13959
13960         filevercmp: correct today's change
13961         * lib/filevercmp.c: Also handle coreutils' test inputs.
13962         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13963
13964         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13965         for reporting it.
13966         * lib/filevercmp.c: Special handle for "", "." and "..".
13967         * tests/test-filevercmp.c: Enlarge the set suite.
13968
13969 2009-04-07  Jim Meyering  <meyering@redhat.com>
13970
13971         useless-if-before-free: show how to remove braced useless free, too
13972         * build-aux/useless-if-before-free: still only in a comment, though.
13973
13974 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13975
13976         maint.mk: import changes to syntax-check macros from coreutils
13977         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13978         Use them in the relevant macros.
13979
13980 2009-04-06  Bruno Haible  <bruno@clisp.org>
13981
13982         Fix unportable use of bit-fields.
13983         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13984         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13985         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13986
13987 2009-04-06  Bruno Haible  <bruno@clisp.org>
13988
13989         Avoid test failures on AIX and OSF/1.
13990         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13991         that malloc(0) = NULL.
13992         * tests/unicase/test-u8-tolower.c (check): Likewise.
13993         * tests/unicase/test-u8-totitle.c (check): Likewise.
13994         * tests/unicase/test-u8-toupper.c (check): Likewise.
13995         * tests/unicase/test-u16-casefold.c (check): Likewise.
13996         * tests/unicase/test-u16-tolower.c (check): Likewise.
13997         * tests/unicase/test-u16-totitle.c (check): Likewise.
13998         * tests/unicase/test-u16-toupper.c (check): Likewise.
13999         * tests/unicase/test-u32-casefold.c (check): Likewise.
14000         * tests/unicase/test-u32-tolower.c (check): Likewise.
14001         * tests/unicase/test-u32-totitle.c (check): Likewise.
14002         * tests/unicase/test-u32-toupper.c (check): Likewise.
14003         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14004         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14005         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14006         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14007         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14008         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14009         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14010         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14011         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14012         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14013         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14014         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14015
14016 2009-04-05  Bruno Haible  <bruno@clisp.org>
14017
14018         Work around an autoconf limitation.
14019         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14020         comment line if it would be longer than 3 KB.
14021
14022 2009-04-05  Bruno Haible  <bruno@clisp.org>
14023
14024         Avoid test failure with libiconv-1.13.
14025         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14026         of the expected test results.
14027
14028 2009-04-05  Bruno Haible  <bruno@clisp.org>
14029
14030         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14031         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14032         that it should be installed.
14033
14034 2009-04-05  Bruno Haible  <bruno@clisp.org>
14035
14036         * gnulib-tool: New option --copy-file.
14037         (func_usage): Document it.
14038         (func_dest_tmpfilename): Moved out of func_import.
14039         (func_add_file, func_update_file): New functions, extracted from
14040         func_import.
14041         (func_import): Update.
14042
14043 2009-04-05  Karl Berry  <karl@gnu.org>
14044
14045         * README: prominently mention gnulib-tool.
14046         Rearrange sections so getting the code is near the top.
14047
14048 2009-04-05  Bruno Haible  <bruno@clisp.org>
14049
14050         * lib/unicase.h: Mention u*_cmp2.
14051         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14052         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14053         * lib/unicase/ulc-casecmp.c: Likewise.
14054         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14055         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14056         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14057         unistr/u8-cmp.
14058         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14059         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14060         unistr/u16-cmp.
14061         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14062         unistr/u32-cmp.
14063
14064         * lib/uninorm.h: Mention u*_cmp2.
14065         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14066         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14067         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14068         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14069         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14070         unistr/u8-cmp.
14071         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14072         unistr/u16-cmp.
14073         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14074         unistr/u32-cmp.
14075
14076         New module 'unistr/u32-cmp2'.
14077         * lib/unistr/u32-cmp2.c: New file.
14078         * modules/unistr/u32-cmp2: New file.
14079
14080         New module 'unistr/u16-cmp2'.
14081         * lib/unistr/u16-cmp2.c: New file.
14082         * modules/unistr/u16-cmp2: New file.
14083
14084         New module 'unistr/u8-cmp2'.
14085         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14086         * lib/unistr/u8-cmp2.c: New file.
14087         * lib/unistr/u-cmp2.h: New file.
14088         * modules/unistr/u8-cmp2: New file.
14089
14090 2009-04-05  Bruno Haible  <bruno@clisp.org>
14091
14092         * lib/unictype.h (uc_property_is_valid): New macro.
14093         * tests/unictype/test-pr_byname.c (main): Use it.
14094
14095         * lib/unistr.h: Doc fixes.
14096         * lib/uniconv.h: Doc fixes.
14097         * lib/unictype.h: Doc fixes.
14098
14099 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14100
14101         Port coreutils 7.2 to Solaris 8.
14102
14103         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14104         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14105         for Solaris 8.  This is a bit of a hack, as it means it's the
14106         caller's responsibility to add -lnsl if needed, but most likely it
14107         won't be needed since only getaddrinfo uses this and getaddrinfo
14108         isn't needed on Solaris 8.
14109
14110         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14111         problem to Solaris 8 encountered with coreutils 7.2, which
14112         resulted in a message "fnmatch.c:292: warning: passing argument 4
14113         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14114         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14115
14116 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14117
14118         * m4/ld-version-script.m4: Add FIXME comment.
14119
14120 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14121
14122         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14123         SOVERSION variable.
14124
14125 2009-04-02  Bruno Haible  <bruno@clisp.org>
14126
14127         * Makefile (info, html, dvi, pdf): Combine the rules.
14128         Suggested by Jim Meyering.
14129
14130 2009-04-01  Bruno Haible  <bruno@clisp.org>
14131
14132         * Makefile (info, html, dvi, pdf): New targets.
14133         Reported by Reuben Thomas <rrt@sc3d.org>.
14134
14135 2009-04-01  Bruno Haible  <bruno@clisp.org>
14136
14137         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14138         can be put into PATH.
14139         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14140
14141 2009-04-01  Bruno Haible  <bruno@clisp.org>
14142
14143         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14144
14145 2009-04-01  Bruno Haible  <bruno@clisp.org>
14146
14147         Rename module 'visibility'.
14148         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14149         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14150         * doc/gnulib.texi: Update.
14151         * MODULES.html.sh (Misc): Update.
14152         * NEWS: Mention the change.
14153
14154 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14155
14156         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14157         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14158         Eric Blake <ebb9@byu.net> for review.
14159         * MODULES.html.sh: Add lib-msvc-compat.
14160         * doc/gnulib.texi: Link to new section.
14161         * m4/ld-output-def.m4: New file.
14162         * doc/ld-output-def.texi: New file.
14163
14164 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14165
14166         Rename ld-version-script to lib-symbol-versions.  Suggested by
14167         Bruno Haible <bruno@clisp.org>.
14168         * modules/ld-version-script: Renamed to lib-symbol-versions.
14169         * doc/ld-version-script.texi: Fix module name.
14170         * MODULES.html.sh: Add lib-symbol-versions.
14171
14172 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14173
14174         * modules/u64-tests: New file.
14175         * tests/test-u64.c: New file.
14176
14177 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14178
14179         * MODULES.html.sh: Mention u64.
14180         * modules/u64: New module.
14181         * modules/crypto/sha512: Depend on u64 module instead of providing
14182         u64.h.
14183
14184 2009-03-27  Eric Blake  <ebb9@byu.net>
14185
14186         test-strerror: make debugging EAI_SYSTEM easier
14187         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14188         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14189         failure was EAI_SYSTEM.
14190
14191 2009-03-25  Bruno Haible  <bruno@clisp.org>
14192
14193         Fix a problem with --enable-relocatable on Solaris 7.
14194         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14195         since 2008-02-24.
14196
14197 2009-03-25  Eric Blake  <ebb9@byu.net>
14198
14199         test-sockets: avoid gcc warning
14200         * tests/test-sockets.c (main): Silence compiler warning.
14201
14202 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14203
14204         New modules nproc, pthread, contributed by Glen Lenker.
14205
14206         * MODULES.html.sh: Add pthread, nproc.
14207         * lib/nproc.c: New file.
14208         * lib/nproc.h: New file.
14209         * lib/pthread.in.h: New file.
14210         * m4/pthread.m4: New file.
14211         * modules/nproc: New file.
14212         * modules/pthread: New file.
14213
14214 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14215
14216         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14217         New variable.
14218
14219 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14220
14221         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14222         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14223         * tests/test-filevercmp.c: Add tests for backup suffixes.
14224
14225 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14226
14227         * modules/stdlib (Depends-on): Add stdint, needed when defining
14228         struct random_data on, for example, HP-UX 10.20.  Reported by
14229         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14230
14231 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14232
14233         * lib/readline.c (readline): Call fflush on stdout after printing
14234         prompt.
14235
14236 2009-03-20  Bruno Haible  <bruno@clisp.org>
14237
14238         Remove dependency from 'close' module to -lws2_32 on native Windows.
14239         * lib/close-hook.h: New file.
14240         * lib/close-hook.c: New file.
14241         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14242         w32sock.h.
14243         (_gl_close_fd_maybe_socket): Remove function.
14244         (rpl_close): Invoke execute_all_close_hooks instead of
14245         _gl_close_fd_maybe_socket.
14246         * lib/sockets.c: Include close-hook.h, w32sock.h.
14247         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14248         (close_sockets_hook): New variable.
14249         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14250         (gl_sockets_cleanup): Unregister it.
14251         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14252         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14253         * modules/close-hook: New file.
14254         * modules/close (Files): Remove lib/w32sock.h.
14255         (Depends-on): Add close-hook.
14256         (Link): Remove section.
14257         * modules/sockets (Files): Add lib/w32sock.h.
14258         (Depends-on): Add close-hook.
14259         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14260         invocation.
14261         * NEWS: Mention that LIB_CLOSE is gone.
14262
14263 2009-03-23  Eric Blake  <ebb9@byu.net>
14264
14265         signal-tests: test previous patch
14266         * tests/test-signal.c: New file.
14267         * modules/signal-tests: Likewise.
14268
14269         signal.h: always support 'volatile sig_atomic_t'
14270         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14271         (gl_SIGNAL_H_DEFAULTS): Add a default.
14272         * modules/signal (Makefile.am): Substitute if needed.
14273         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14274         users can blindly add volatile.
14275         * doc/posix-headers/signal.texi (signal.h): Document it.
14276         Reported by Matthew Woehlke.
14277
14278 2009-03-23  Jim Meyering  <meyering@redhat.com>
14279
14280         pathmax: PATH_MAX: use pathconf only when available
14281         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14282         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14283         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14284         This avoids a link failure in a PSP cross-compilation environment
14285         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14286
14287         * lib/vasnprintf.c (divide): Fix typo in comment.
14288
14289 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14290
14291         * gnulib-tool (func_filter_filelist): Fix comment.
14292
14293 2009-03-20  Bruno Haible  <bruno@clisp.org>
14294
14295         Make sockets.h self-contained.
14296         * lib/sockets.c: Include sockets.h first.
14297         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14298
14299 2009-03-19  Eric Blake  <ebb9@byu.net>
14300
14301         doc: mention more functions added in cygwin 1.7.0
14302         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14303         addition.
14304         * doc/posix-functions/log2f.texi: Likewise.
14305
14306 2009-03-19  Jim Meyering  <meyering@redhat.com>
14307
14308         fsusage: avoid syntax error due to statement-before-declaration
14309         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14310         after all declarations.  Reported by Matthew Woehlke in
14311         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14312
14313 2009-03-18  Eric Blake  <ebb9@byu.net>
14314
14315         build-aux/compile: sync from automake
14316         * build-aux/compile: New file, from automake.
14317         * config/srclist.txt: Mention build-aux/compile.
14318
14319 2009-03-17  Bruno Haible  <bruno@clisp.org>
14320
14321         * lib/git-merge-changelog.c: Fix typo in comment.
14322         Reported by Reuben Thomas <rrt@sc3d.org>.
14323
14324 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14325
14326         * m4/regex.m4: update and improve help for
14327         --without-included-regex.
14328
14329 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14330
14331         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14332         failure on missing include files.
14333
14334 2009-03-17  Eric Blake  <ebb9@byu.net>
14335
14336         doc: mention more functions added in cygwin 1.7.0
14337         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14338         addition.
14339         * doc/posix-functions/fwscanf.texi: Likewise.
14340         * doc/posix-functions/swprintf.texi: Likewise.
14341         * doc/posix-functions/swscanf.texi: Likewise.
14342         * doc/posix-functions/vfwprintf.texi: Likewise.
14343         * doc/posix-functions/vfwscanf.texi: Likewise.
14344         * doc/posix-functions/vswprintf.texi: Likewise.
14345         * doc/posix-functions/vswscanf.texi: Likewise.
14346         * doc/posix-functions/vwprintf.texi: Likewise.
14347         * doc/posix-functions/vwscanf.texi: Likewise.
14348         * doc/posix-functions/wcscasecmp.texi: Likewise.
14349         * doc/posix-functions/wcsdup.texi: Likewise.
14350         * doc/posix-functions/wcsftime.texi: Likewise.
14351         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14352         * doc/posix-functions/wprintf.texi: Likewise.
14353         * doc/posix-functions/wscanf.texi: Likewise.
14354         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14355
14356 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14357
14358         maint.mk: really add $(AM_MAKEFLAGS)
14359         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14360         was inadvertently omitted in the last commit.
14361         Spotted by Bruno Haible.
14362
14363         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14364         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14365         $(AM_MAKEFLAGS)' rather than plain `make'.
14366
14367         gnulib-tool: execute $MAKE not make
14368         * gnulib-tool: Default $MAKE to 'make'.
14369         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14370         than make.  Initialize $MAKE in the do-autobuild script.
14371
14372         gnulib-tool: use $MAKE not make in generated files
14373         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14374         make, in generated files.  Initialize $MAKE in the do-autobuild
14375         script.
14376
14377         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14378
14379         GNUmakefile: disable parallelism only for multiple, recursive targets
14380         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14381         additions in the Makefile.
14382         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14383         by Automake.
14384         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14385         are listed on the command line and at least one of them is
14386         listed in $(ALL_RECURSIVE_TARGETS).
14387
14388 2009-03-14  Bruno Haible  <bruno@clisp.org>
14389
14390         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14391         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14392         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14393         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14394         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14395         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14396         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14397         unistr/u8-uctomb.
14398         * modules/unistr/u8-strchr (Depends-on): Likewise.
14399         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14400         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14401         unistr/u16-uctomb.
14402         * modules/unistr/u16-strchr (Depends-on): Likewise.
14403         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14404
14405 2009-03-12  Bruno Haible  <bruno@clisp.org>
14406
14407         Work around select() bug on Interix 3.5.
14408         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14409         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14410         * m4/select.m4: New file.
14411         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14412         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14413         * modules/select (Files): Add m4/select.m4.
14414         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14415         * modules/nanosleep (Depends-on): Add select.
14416         * modules/poll (Depends-on): Likewise.
14417         * doc/posix-functions/select.texi: Mention the Interix bug.
14418         Reported by Markus Duft <mduft@gentoo.org>.
14419
14420         * lib/select.c: Renamed from lib/winsock-select.c.
14421         * modules/select (Files): Add lib/select.c, remove
14422         lib/winsock-select.c.
14423         (configure.ac): Update.
14424
14425 2009-03-12  Jim Meyering  <meyering@redhat.com>
14426
14427         avoid gcc warnings about unused macro definitions
14428         * lib/readtokens.c (STREQ): Remove unused definition.
14429         * lib/xmalloc.c (SIZE_MAX): Likewise.
14430         * lib/openat-die.c (N_): Likewise.
14431         * lib/mountlist.c (SIZE_MAX): Remove definition.
14432         Instead, include <stdint.h>.
14433         * lib/readutmp.c: Likewise.
14434         * modules/readutmp (Depends-on): Add stdint.
14435         * modules/mountlist (Depends-on): Add stdint.
14436         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14437
14438 2009-03-10  Bruno Haible  <bruno@clisp.org>
14439
14440         Tests for module 'mbmemcasecoll'.
14441         * modules/mbmemcasecoll-tests: New file.
14442         * tests/test-mbmemcasecoll1.sh: New file.
14443         * tests/test-mbmemcasecoll2.sh: New file.
14444         * tests/test-mbmemcasecoll3.sh: New file.
14445         * tests/test-mbmemcasecoll.c: New file.
14446
14447         New module 'mbmemcasecoll'.
14448         * lib/mbmemcasecoll.h: New file.
14449         * lib/mbmemcasecoll.c: New file.
14450         * modules/mbmemcasecoll: New file.
14451
14452         * tests/test-mbmemcasecmp.h: New file, extracted from
14453         tests/test-mbmemcasecmp.c.
14454         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14455         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14456         (main): Update.
14457         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14458
14459 2009-03-09  Bruno Haible  <bruno@clisp.org>
14460
14461         Tests for module 'mbmemcasecmp'.
14462         * modules/mbmemcasecmp-tests: New file.
14463         * tests/test-mbmemcasecmp1.sh: New file.
14464         * tests/test-mbmemcasecmp2.sh: New file.
14465         * tests/test-mbmemcasecmp3.sh: New file.
14466         * tests/test-mbmemcasecmp.c: New file.
14467
14468         New module 'mbmemcasecmp'.
14469         * lib/mbmemcasecmp.h: New file.
14470         * lib/mbmemcasecmp.c: New file.
14471         * modules/mbmemcasecmp: New file.
14472
14473 2009-03-09  Bruno Haible  <bruno@clisp.org>
14474
14475         Tests for module 'unicase/ulc-casecoll'.
14476         * modules/unicase/ulc-casecoll-tests: New file.
14477         * tests/unicase/test-ulc-casecoll1.sh: New file.
14478         * tests/unicase/test-ulc-casecoll2.sh: New file.
14479         * tests/unicase/test-ulc-casecoll.c: New file.
14480
14481         New module 'unicase/ulc-casecoll'.
14482         * lib/unicase.h (ulc_casecoll): New declaration.
14483         * lib/unicase/ulc-casecoll.c: New file.
14484         * modules/unicase/ulc-casecoll: New file.
14485
14486         New module 'unicase/ulc-casexfrm'.
14487         * lib/unicase.h (ulc_casexfrm): New declaration.
14488         * lib/unicase/ulc-casexfrm.c: New file.
14489         * modules/unicase/ulc-casexfrm: New file.
14490
14491 2009-03-09  Bruno Haible  <bruno@clisp.org>
14492
14493         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14494         invocations.
14495
14496         * m4/mbscasecmp.m4: Remove file.
14497         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14498         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14499
14500         * m4/mbscasestr.m4: Remove file.
14501         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14502         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14503
14504         * m4/mbschr.m4: Remove file.
14505         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14506         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14507
14508         * m4/mbscspn.m4: Remove file.
14509         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14510         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14511
14512         * m4/mbslen.m4: Remove file.
14513         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14514         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14515
14516         * m4/mbsncasecmp.m4: Remove file.
14517         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14518         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14519
14520         * m4/mbsnlen.m4: Remove file.
14521         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14522         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14523
14524         * m4/mbspbrk.m4: Remove file.
14525         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14526         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14527
14528         * m4/mbspcasecmp.m4: Remove file.
14529         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14530         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14531
14532         * m4/mbsrchr.m4: Remove file.
14533         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14534         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14535
14536         * m4/mbssep.m4: Remove file.
14537         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14538         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14539
14540         * m4/mbsspn.m4: Remove file.
14541         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14542         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14543
14544         * m4/mbsstr.m4: Remove file.
14545         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14546         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14547
14548         * m4/mbstok_r.m4: Remove file.
14549         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14550         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14551
14552         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14553
14554         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14555         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14556
14557         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14558
14559 2009-03-08  Bruno Haible  <bruno@clisp.org>
14560
14561         Tests for module 'unicase/ulc-casecmp'.
14562         * modules/unicase/ulc-casecmp-tests: New file.
14563         * tests/unicase/test-ulc-casecmp1.sh: New file.
14564         * tests/unicase/test-ulc-casecmp2.sh: New file.
14565         * tests/unicase/test-ulc-casecmp.c: New file.
14566
14567         New module 'unicase/ulc-casecmp'.
14568         * lib/unicase.h (ulc_casecmp): New declaration.
14569         * lib/unicase/ulc-casecmp.c: New file.
14570         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14571         'const SRC_UNIT *'.
14572         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14573         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14574         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14575         * modules/unicase/ulc-casecmp: New file.
14576
14577         Tests for module 'unicase/u32-is-cased'.
14578         * modules/unicase/u32-is-cased-tests: New file.
14579         * tests/unicase/test-u32-is-cased.c: New file.
14580
14581         Tests for module 'unicase/u16-is-cased'.
14582         * modules/unicase/u16-is-cased-tests: New file.
14583         * tests/unicase/test-u16-is-cased.c: New file.
14584
14585         Tests for module 'unicase/u8-is-cased'.
14586         * modules/unicase/u8-is-cased-tests: New file.
14587         * tests/unicase/test-u8-is-cased.c: New file.
14588         * tests/unicase/test-is-cased.h: New file.
14589
14590         New module 'unicase/u32-is-cased'.
14591         * lib/unicase/u32-is-cased.c: New file.
14592         * modules/unicase/u32-is-cased: New file.
14593
14594         New module 'unicase/u16-is-cased'.
14595         * lib/unicase/u16-is-cased.c: New file.
14596         * modules/unicase/u16-is-cased: New file.
14597
14598         New module 'unicase/u8-is-cased'.
14599         * lib/unicase/u8-is-cased.c: New file.
14600         * lib/unicase/u-is-cased.h: New file.
14601         * modules/unicase/u8-is-cased: New file.
14602
14603         Tests for module 'unicase/u32-is-casefolded'.
14604         * modules/unicase/u32-is-casefolded-tests: New file.
14605         * tests/unicase/test-u32-is-casefolded.c: New file.
14606
14607         Tests for module 'unicase/u16-is-casefolded'.
14608         * modules/unicase/u16-is-casefolded-tests: New file.
14609         * tests/unicase/test-u16-is-casefolded.c: New file.
14610
14611         Tests for module 'unicase/u8-is-casefolded'.
14612         * modules/unicase/u8-is-casefolded-tests: New file.
14613         * tests/unicase/test-u8-is-casefolded.c: New file.
14614         * tests/unicase/test-is-casefolded.h: New file.
14615
14616         New module 'unicase/u32-is-casefolded'.
14617         * lib/unicase/u32-is-casefolded.c: New file.
14618         * modules/unicase/u32-is-casefolded: New file.
14619
14620         New module 'unicase/u16-is-casefolded'.
14621         * lib/unicase/u16-is-casefolded.c: New file.
14622         * modules/unicase/u16-is-casefolded: New file.
14623
14624         New module 'unicase/u8-is-casefolded'.
14625         * lib/unicase/u8-is-casefolded.c: New file.
14626         * modules/unicase/u8-is-casefolded: New file.
14627
14628         Tests for module 'unicase/u32-is-titlecase'.
14629         * modules/unicase/u32-is-titlecase-tests: New file.
14630         * tests/unicase/test-u32-is-titlecase.c: New file.
14631
14632         Tests for module 'unicase/u16-is-titlecase'.
14633         * modules/unicase/u16-is-titlecase-tests: New file.
14634         * tests/unicase/test-u16-is-titlecase.c: New file.
14635
14636         Tests for module 'unicase/u8-is-titlecase'.
14637         * modules/unicase/u8-is-titlecase-tests: New file.
14638         * tests/unicase/test-u8-is-titlecase.c: New file.
14639         * tests/unicase/test-is-titlecase.h: New file.
14640
14641         New module 'unicase/u32-is-titlecase'.
14642         * lib/unicase/u32-is-titlecase.c: New file.
14643         * modules/unicase/u32-is-titlecase: New file.
14644
14645         New module 'unicase/u16-is-titlecase'.
14646         * lib/unicase/u16-is-titlecase.c: New file.
14647         * modules/unicase/u16-is-titlecase: New file.
14648
14649         New module 'unicase/u8-is-titlecase'.
14650         * lib/unicase/u8-is-titlecase.c: New file.
14651         * modules/unicase/u8-is-titlecase: New file.
14652
14653         Tests for module 'unicase/u32-is-lowercase'.
14654         * modules/unicase/u32-is-lowercase-tests: New file.
14655         * tests/unicase/test-u32-is-lowercase.c: New file.
14656
14657         Tests for module 'unicase/u16-is-lowercase'.
14658         * modules/unicase/u16-is-lowercase-tests: New file.
14659         * tests/unicase/test-u16-is-lowercase.c: New file.
14660
14661         Tests for module 'unicase/u8-is-lowercase'.
14662         * modules/unicase/u8-is-lowercase-tests: New file.
14663         * tests/unicase/test-u8-is-lowercase.c: New file.
14664         * tests/unicase/test-is-lowercase.h: New file.
14665
14666         New module 'unicase/u32-is-lowercase'.
14667         * lib/unicase/u32-is-lowercase.c: New file.
14668         * modules/unicase/u32-is-lowercase: New file.
14669
14670         New module 'unicase/u16-is-lowercase'.
14671         * lib/unicase/u16-is-lowercase.c: New file.
14672         * modules/unicase/u16-is-lowercase: New file.
14673
14674         New module 'unicase/u8-is-lowercase'.
14675         * lib/unicase/u8-is-lowercase.c: New file.
14676         * modules/unicase/u8-is-lowercase: New file.
14677
14678         Tests for module 'unicase/u32-is-uppercase'.
14679         * modules/unicase/u32-is-uppercase-tests: New file.
14680         * tests/unicase/test-u32-is-uppercase.c: New file.
14681
14682         Tests for module 'unicase/u16-is-uppercase'.
14683         * modules/unicase/u16-is-uppercase-tests: New file.
14684         * tests/unicase/test-u16-is-uppercase.c: New file.
14685
14686         Tests for module 'unicase/u8-is-uppercase'.
14687         * modules/unicase/u8-is-uppercase-tests: New file.
14688         * tests/unicase/test-u8-is-uppercase.c: New file.
14689         * tests/unicase/test-is-uppercase.h: New file.
14690
14691         New module 'unicase/u32-is-uppercase'.
14692         * lib/unicase/u32-is-uppercase.c: New file.
14693         * modules/unicase/u32-is-uppercase: New file.
14694
14695         New module 'unicase/u16-is-uppercase'.
14696         * lib/unicase/u16-is-uppercase.c: New file.
14697         * modules/unicase/u16-is-uppercase: New file.
14698
14699         New module 'unicase/u8-is-uppercase'.
14700         * lib/unicase/u8-is-uppercase.c: New file.
14701         * modules/unicase/u8-is-uppercase: New file.
14702
14703         New module 'unicase/u32-is-invariant'.
14704         * lib/unicase/u32-is-invariant.c: New file.
14705         * modules/unicase/u32-is-invariant: New file.
14706
14707         New module 'unicase/u16-is-invariant'.
14708         * lib/unicase/u16-is-invariant.c: New file.
14709         * modules/unicase/u16-is-invariant: New file.
14710
14711         New module 'unicase/u8-is-invariant'.
14712         * lib/unicase/u8-is-invariant.c: New file.
14713         * lib/unicase/invariant.h: New file.
14714         * lib/unicase/u-is-invariant.h: New file.
14715         * modules/unicase/u8-is-invariant: New file.
14716
14717         Tests for module 'unicase/u32-casecoll'.
14718         * modules/unicase/u32-casecoll-tests: New file.
14719         * tests/unicase/test-u32-casecoll.c: New file.
14720
14721         Tests for module 'unicase/u16-casecoll'.
14722         * modules/unicase/u16-casecoll-tests: New file.
14723         * tests/unicase/test-u16-casecoll.c: New file.
14724
14725         Tests for module 'unicase/u8-casecoll'.
14726         * modules/unicase/u8-casecoll-tests: New file.
14727         * tests/unicase/test-u8-casecoll.c: New file.
14728
14729         New module 'unicase/u32-casecoll'.
14730         * lib/unicase/u32-casecoll.c: New file.
14731         * modules/unicase/u32-casecoll: New file.
14732
14733         New module 'unicase/u16-casecoll'.
14734         * lib/unicase/u16-casecoll.c: New file.
14735         * modules/unicase/u16-casecoll: New file.
14736
14737         New module 'unicase/u8-casecoll'.
14738         * lib/unicase/u8-casecoll.c: New file.
14739         * lib/unicase/u-casecoll.h: New file.
14740         * modules/unicase/u8-casecoll: New file.
14741
14742         New module 'unicase/u32-casexfrm'.
14743         * lib/unicase/u32-casexfrm.c: New file.
14744         * modules/unicase/u32-casexfrm: New file.
14745
14746         New module 'unicase/u16-casexfrm'.
14747         * lib/unicase/u16-casexfrm.c: New file.
14748         * modules/unicase/u16-casexfrm: New file.
14749
14750         New module 'unicase/u8-casexfrm'.
14751         * lib/unicase/u8-casexfrm.c: New file.
14752         * lib/unicase/u-casexfrm.h: New file.
14753         * modules/unicase/u8-casexfrm: New file.
14754
14755         Tests for module 'unicase/u32-casecmp'.
14756         * modules/unicase/u32-casecmp-tests: New file.
14757         * tests/unicase/test-u32-casecmp.c: New file.
14758
14759         Tests for module 'unicase/u16-casecmp'.
14760         * modules/unicase/u16-casecmp-tests: New file.
14761         * tests/unicase/test-u16-casecmp.c: New file.
14762
14763         Tests for module 'unicase/u8-casecmp'.
14764         * modules/unicase/u8-casecmp-tests: New file.
14765         * tests/unicase/test-u8-casecmp.c: New file.
14766         * tests/unicase/test-casecmp.h: New file.
14767
14768         New module 'unicase/u32-casecmp'.
14769         * lib/unicase/u32-casecmp.c: New file.
14770         * modules/unicase/u32-casecmp: New file.
14771
14772         New module 'unicase/u16-casecmp'.
14773         * lib/unicase/u16-casecmp.c: New file.
14774         * modules/unicase/u16-casecmp: New file.
14775
14776         New module 'unicase/u8-casecmp'.
14777         * lib/unicase/u8-casecmp.c: New file.
14778         * lib/unicase/u-casecmp.h: New file.
14779         * modules/unicase/u8-casecmp: New file.
14780
14781         Tests for module 'unicase/u32-casefold'.
14782         * modules/unicase/u32-casefold-tests: New file.
14783         * tests/unicase/test-u32-casefold.c: New file.
14784
14785         Tests for module 'unicase/u16-casefold'.
14786         * modules/unicase/u16-casefold-tests: New file.
14787         * tests/unicase/test-u16-casefold.c: New file.
14788
14789         Tests for module 'unicase/u8-casefold'.
14790         * modules/unicase/u8-casefold-tests: New file.
14791         * tests/unicase/test-u8-casefold.c: New file.
14792
14793         New module 'unicase/u32-casefold'.
14794         * lib/unicase/u32-casefold.c: New file.
14795         * modules/unicase/u32-casefold: New file.
14796
14797         New module 'unicase/u16-casefold'.
14798         * lib/unicase/u16-casefold.c: New file.
14799         * modules/unicase/u16-casefold: New file.
14800
14801         New module 'unicase/u8-casefold'.
14802         * lib/unicase/u8-casefold.c: New file.
14803         * lib/unicase/u-casefold.h: New file.
14804         * modules/unicase/u8-casefold: New file.
14805
14806         New module 'unicase/tocasefold'.
14807         * lib/unicase/casefold.h: New file.
14808         * lib/unicase/tocasefold.c: New file.
14809         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14810         * modules/unicase/tocasefold: New file.
14811
14812         Tests for module 'unicase/u32-totitle'.
14813         * modules/unicase/u32-totitle-tests: New file.
14814         * tests/unicase/test-u32-totitle.c: New file.
14815
14816         Tests for module 'unicase/u16-totitle'.
14817         * modules/unicase/u16-totitle-tests: New file.
14818         * tests/unicase/test-u16-totitle.c: New file.
14819
14820         Tests for module 'unicase/u8-totitle'.
14821         * modules/unicase/u8-totitle-tests: New file.
14822         * tests/unicase/test-u8-totitle.c: New file.
14823
14824         New module 'unicase/u32-totitle'.
14825         * lib/unicase/u32-totitle.c: New file.
14826         * modules/unicase/u32-totitle: New file.
14827
14828         New module 'unicase/u16-totitle'.
14829         * lib/unicase/u16-totitle.c: New file.
14830         * modules/unicase/u16-totitle: New file.
14831
14832         New module 'unicase/u8-totitle'.
14833         * lib/unicase/u8-totitle.c: New file.
14834         * lib/unicase/u-totitle.h: New file.
14835         * modules/unicase/u8-totitle: New file.
14836
14837         Tests for module 'unicase/u32-tolower'.
14838         * modules/unicase/u32-tolower-tests: New file.
14839         * tests/unicase/test-u32-tolower.c: New file.
14840
14841         Tests for module 'unicase/u16-tolower'.
14842         * modules/unicase/u16-tolower-tests: New file.
14843         * tests/unicase/test-u16-tolower.c: New file.
14844
14845         Tests for module 'unicase/u8-tolower'.
14846         * modules/unicase/u8-tolower-tests: New file.
14847         * tests/unicase/test-u8-tolower.c: New file.
14848
14849         New module 'unicase/u32-tolower'.
14850         * lib/unicase/u32-tolower.c: New file.
14851         * modules/unicase/u32-tolower: New file.
14852
14853         New module 'unicase/u16-tolower'.
14854         * lib/unicase/u16-tolower.c: New file.
14855         * modules/unicase/u16-tolower: New file.
14856
14857         New module 'unicase/u8-tolower'.
14858         * lib/unicase/u8-tolower.c: New file.
14859         * modules/unicase/u8-tolower: New file.
14860
14861         Tests for module 'unicase/u32-toupper'.
14862         * modules/unicase/u32-toupper-tests: New file.
14863         * tests/unicase/test-u32-toupper.c: New file.
14864
14865         Tests for module 'unicase/u16-toupper'.
14866         * modules/unicase/u16-toupper-tests: New file.
14867         * tests/unicase/test-u16-toupper.c: New file.
14868
14869         Tests for module 'unicase/u8-toupper'.
14870         * modules/unicase/u8-toupper-tests: New file.
14871         * tests/unicase/test-u8-toupper.c: New file.
14872
14873         New module 'unicase/u32-toupper'.
14874         * lib/unicase/u32-toupper.c: New file.
14875         * modules/unicase/u32-toupper: New file.
14876
14877         New module 'unicase/u16-toupper'.
14878         * lib/unicase/u16-toupper.c: New file.
14879         * modules/unicase/u16-toupper: New file.
14880
14881         New module 'unicase/u8-toupper'.
14882         * lib/unicase/u8-toupper.c: New file.
14883         * modules/unicase/u8-toupper: New file.
14884
14885         New module 'unicase/u32-casemap'.
14886         * lib/unicase/u32-casemap.c: New file.
14887         * modules/unicase/u32-casemap: New file.
14888
14889         New module 'unicase/u16-casemap'.
14890         * lib/unicase/u16-casemap.c: New file.
14891         * modules/unicase/u16-casemap: New file.
14892
14893         New module 'unicase/u8-casemap'.
14894         * lib/unicase/unicasemap.h: New file.
14895         * lib/unicase/u8-casemap.c: New file.
14896         * lib/unicase/u-casemap.h: New file.
14897         * modules/unicase/u8-casemap: New file.
14898
14899         New module 'unicase/special-casing'.
14900         * lib/unicase/special-casing.h: New file.
14901         * lib/unicase/special-casing.c: New file.
14902         * lib/unicase/special-casing-table.gperf: New file, generated by
14903         gen-uni-tables.c.
14904         * modules/unicase/special-casing: New file.
14905
14906         Tests for module 'unicase/locale-language'.
14907         * modules/unicase/locale-language-tests: New file.
14908         * tests/unicase/test-locale-language.sh: New file.
14909         * tests/unicase/test-locale-language.c: New file.
14910
14911         New module 'unicase/locale-language'.
14912         * lib/unicase/locale-language.c: New file.
14913         * lib/unicase/locale-languages.gperf: New file.
14914         * modules/unicase/locale-language: New file.
14915
14916         Generate more tables for case conversion and case folding.
14917         * lib/gen-uni-tables.c (SCC_*): New enum items.
14918         (struct special_casing_rule): New type.
14919         (casing_rules, num_casing_rules, allocated_casing_rules): New
14920         variables.
14921         (add_casing_rule, fill_casing_rules): New functions.
14922         (struct casefold_rule): New type.
14923         (casefolding_rules, num_casefolding_rules,
14924         allocated_casefolding_rules): New variables.
14925         (fill_casefolding_rules): New function.
14926         (unicode_casefold): New variable.
14927         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14928         sort_casing_rules, output_casing_rules): New functions.
14929         (main): Accept to more arguments: SpecialCasing.txt and
14930         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14931         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14932         Output mapping for casefolding.
14933
14934         * lib/unicase.h: Include stdbool.h, uninorm.h.
14935         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14936         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14937         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14938         arguments.
14939         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14940         resultp arguments.
14941         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14942         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14943         resultp arguments.
14944         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14945         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14946         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14947         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14948         declarations.
14949         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14950
14951 2009-03-08  Bruno Haible  <bruno@clisp.org>
14952
14953         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14954         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14955         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14956         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14957
14958 2009-03-07  Bruno Haible  <bruno@clisp.org>
14959
14960         Adjust u*_normcmp, u*_normcoll API.
14961         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14962         u16_normcoll, u32_normcoll): Change failure conventions.
14963         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14964         errno and return -1.
14965         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14966
14967 2009-03-07  Bruno Haible  <bruno@clisp.org>
14968
14969         Tests for module 'uninorm/u32-normcoll'.
14970         * modules/uninorm/u32-normcoll-tests: New file.
14971         * tests/uninorm/test-u32-normcoll.c: New file.
14972
14973         Tests for module 'uninorm/u16-normcoll'.
14974         * modules/uninorm/u16-normcoll-tests: New file.
14975         * tests/uninorm/test-u16-normcoll.c: New file.
14976
14977         Tests for module 'uninorm/u8-normcoll'.
14978         * modules/uninorm/u8-normcoll-tests: New file.
14979         * tests/uninorm/test-u8-normcoll.c: New file.
14980
14981 2009-03-07  Bruno Haible  <bruno@clisp.org>
14982
14983         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14984         tests/uninorm/test-u32-normcmp.c.
14985         * tests/uninorm/test-u32-normcmp.c: Include it.
14986         (test_nonascii): New function, extracted from main. Add some more
14987         tests.
14988         (main): Invoke test_ascii and test_nonascii.
14989         * modules/uninorm/u32-normcmp-tests (Files): Add
14990         tests/uninorm/test-u32-normcmp.h.
14991         (Depends-on): Remove uninorm/u32-normcmp.
14992
14993         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14994         tests/uninorm/test-u16-normcmp.c.
14995         * tests/uninorm/test-u16-normcmp.c: Include it.
14996         (test_nonascii): New function, extracted from main. Add some more
14997         tests.
14998         (main): Invoke test_ascii and test_nonascii.
14999         * modules/uninorm/u16-normcmp-tests (Files): Add
15000         tests/uninorm/test-u16-normcmp.h.
15001         (Depends-on): Remove uninorm/u16-normcmp.
15002
15003         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15004         tests/uninorm/test-u8-normcmp.c.
15005         * tests/uninorm/test-u8-normcmp.c: Include it.
15006         (test_nonascii): New function, extracted from main. Add some more
15007         tests.
15008         (main): Invoke test_ascii and test_nonascii.
15009         * modules/uninorm/u8-normcmp-tests (Files): Add
15010         tests/uninorm/test-u8-normcmp.h.
15011         (Depends-on): Remove uninorm/u8-normcmp.
15012
15013 2009-03-07  Bruno Haible  <bruno@clisp.org>
15014
15015         New module 'uninorm/u32-normcoll'.
15016         * lib/uninorm/u32-normcoll.c: New file.
15017         * modules/uninorm/u32-normcoll: New file.
15018
15019         New module 'uninorm/u16-normcoll'.
15020         * lib/uninorm/u16-normcoll.c: New file.
15021         * modules/uninorm/u16-normcoll: New file.
15022
15023         New module 'uninorm/u8-normcoll'.
15024         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15025         declarations.
15026         * lib/uninorm/u8-normcoll.c: New file.
15027         * lib/uninorm/u-normcoll.h: New file.
15028         * modules/uninorm/u8-normcoll: New file.
15029
15030         New module 'uninorm/u32-normxfrm'.
15031         * lib/uninorm/u32-normxfrm.c: New file.
15032         * modules/uninorm/u32-normxfrm: New file.
15033
15034         New module 'uninorm/u16-normxfrm'.
15035         * lib/uninorm/u16-normxfrm.c: New file.
15036         * modules/uninorm/u16-normxfrm: New file.
15037
15038         New module 'uninorm/u8-normxfrm'.
15039         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15040         declarations.
15041         * lib/uninorm/u8-normxfrm.c: New file.
15042         * lib/uninorm/u-normxfrm.h: New file.
15043         * modules/uninorm/u8-normxfrm: New file.
15044
15045 2009-03-07  Bruno Haible  <bruno@clisp.org>
15046
15047         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15048         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15049         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15050
15051 2009-03-07  Bruno Haible  <bruno@clisp.org>
15052
15053         New module 'memxfrm'.
15054         * lib/memxfrm.h: New file.
15055         * lib/memxfrm.c: New file.
15056         * modules/memxfrm: New file.
15057
15058 2009-03-07  Bruno Haible  <bruno@clisp.org>
15059
15060         New module 'memcmp2'.
15061         * lib/memcmp2.h: New file.
15062         * lib/memcmp2.c: New file.
15063         * modules/memcmp2: New file.
15064
15065 2009-03-07  Bruno Haible  <bruno@clisp.org>
15066
15067         Tests for module 'uninorm/decomposing-form'.
15068         * modules/uninorm/decomposing-form-tests: New file.
15069         * tests/uninorm/test-decomposing-form.c: New file.
15070
15071         New module 'uninorm/decomposing-form'.
15072         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15073         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15074         Add 'decomposing_variant' field.
15075         * lib/uninorm/decomposing-form.c: New file.
15076         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15077         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15078         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15079         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15080         * modules/uninorm/decomposing-form: New file.
15081         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15082         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15083
15084 2009-03-07  Bruno Haible  <bruno@clisp.org>
15085
15086         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15087         strings.
15088
15089 2009-03-06  Bruno Haible  <bruno@clisp.org>
15090
15091         Tests for module 'uninorm/u32-normcmp'.
15092         * tests/uninorm/test-u32-normcmp.c: New file.
15093         * modules/uninorm/u32-normcmp-tests: New file.
15094
15095         Tests for module 'uninorm/u16-normcmp'.
15096         * tests/uninorm/test-u16-normcmp.c: New file.
15097         * modules/uninorm/u16-normcmp-tests: New file.
15098
15099         Tests for module 'uninorm/u8-normcmp'.
15100         * tests/uninorm/test-u8-normcmp.c: New file.
15101         * modules/uninorm/u8-normcmp-tests: New file.
15102
15103         New module 'uninorm/u32-normcmp'.
15104         * lib/uninorm/u32-normcmp.c: New file.
15105         * modules/uninorm/u32-normcmp: New file.
15106
15107         New module 'uninorm/u16-normcmp'.
15108         * lib/uninorm/u16-normcmp.c: New file.
15109         * modules/uninorm/u16-normcmp: New file.
15110
15111         New module 'uninorm/u8-normcmp'.
15112         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15113         declarations.
15114         * lib/uninorm/u8-normcmp.c: New file.
15115         * lib/uninorm/u-normcmp.h: New file.
15116         * modules/uninorm/u8-normcmp: New file.
15117
15118 2009-03-06  Bruno Haible  <bruno@clisp.org>
15119
15120         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15121         Reported by Eric Blake.
15122
15123 2009-03-06  Eric Blake  <ebb9@byu.net>
15124             Bruno Haible  <bruno@clisp.org>
15125
15126         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15127         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15128         condition.
15129         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15130         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15131         condition.
15132         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15133
15134 2009-03-06  Eric Blake  <ebb9@byu.net>
15135
15136         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15137         to avoid compiler warnings.
15138         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15139
15140 2009-03-05  Bruno Haible  <bruno@clisp.org>
15141
15142         * tests/test-ftell.c (main): Disable test beyond end of file on
15143         FreeMiNT.
15144         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15145
15146 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15147
15148         * lib/filevercmp.c: Move hidden files up in ordering.
15149         * tests/test-filevercmp.c: Add tests for hidden files.
15150
15151 2009-03-04  Bruno Haible  <bruno@clisp.org>
15152
15153         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15154         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15155         AM_CFLAGS.
15156         Reported by Simon Josefsson.
15157
15158 2009-03-03  Bruno Haible  <bruno@clisp.org>
15159
15160         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15161         Reported by Simon Josefsson.
15162
15163         * doc/ld-version-script.texi: Update node reference.
15164
15165 2009-03-03  Bruno Haible  <bruno@clisp.org>
15166
15167         * modules/visibility (License): Change to 'unlimited'.
15168         Suggested by Simon Josefsson.
15169
15170 2009-03-03  Jim Meyering  <meyering@redhat.com>
15171
15172         unlinkdir: cannot_unlink_dir may modify process state
15173         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15174         it's neither thread-safe nor appropriate for use in a library.
15175
15176 2009-03-03  Eric Blake  <ebb9@byu.net>
15177
15178         test-closein: silence test under Darwin
15179         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15180         care if it dies from EPIPE or EBADF.
15181
15182 2009-03-03  Bruno Haible  <bruno@clisp.org>
15183
15184         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15185         earlier.
15186         * doc/visibility.texi: Fix @node and @section.
15187
15188 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15189
15190         * doc/gnulib.texi: Link to sections for ld version script and
15191         visibility.
15192         * doc/visibility.texi: Add @node and @section.
15193         * modules/ld-version-script: New module.
15194         * m4/ld-version-script.m4: New file.
15195         * doc/ld-version-script.texi: New file.
15196
15197 2009-03-02  David Lutterkort  <lutter@redhat.com>
15198
15199         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15201
15202 2009-03-02  Bruno Haible  <bruno@clisp.org>
15203
15204         * doc/visibility.texi: Mention libtool's -export-symbols option.
15205
15206 2009-03-02  Jim Meyering  <meyering@redhat.com>
15207
15208         announce-gen: new option: --no-print-checksums
15209         * build-aux/announce-gen (usage): Describe it.
15210         (print_checksums): Print a newline here, not in the [*] footnote.
15211         (main): Honor it.
15212
15213 2009-03-01  Bruno Haible  <bruno@clisp.org>
15214
15215         Use socklen_t in the native Windows replacements prototypes.
15216         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15217         instead of 'int'.
15218         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15219         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15220         * modules/getsockopt (Depends-on): Add socklen.
15221         * modules/setsockopt (Depends-on): Add socklen.
15222
15223 2009-03-01  Bruno Haible  <bruno@clisp.org>
15224
15225         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15226         least 4.2.
15227
15228 2009-03-01  Eric Blake  <ebb9@byu.net>
15229             Bruno Haible  <bruno@clisp.org>
15230
15231         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15232         error messages.
15233         * lib/wait-process.c (wait_subprocess): Omit error message about
15234         deadly signal sent to the child of termsigp != NULL.
15235
15236 2009-03-01  Eric Blake  <ebb9@byu.net>
15237
15238         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15239
15240 2009-03-01  Bruno Haible  <bruno@clisp.org>
15241
15242         Avoid a gcc warning.
15243         * tests/test-sched.c (b): Make global.
15244         Reported by Eric Blake.
15245
15246 2009-01-19  Martin Lambers  <marlam@marlam.de>
15247
15248         Provide POSIX semantics for socket timeout options on W32.
15249         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15250         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15251         * modules/setsockopt: Depend on sys_time module for struct timeval.
15252         * modules/getsockopt: Depend on sys_time module for struct timeval.
15253
15254 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15255
15256         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15257         __USE_GNU, for consistency with netdb.in.h.
15258         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15259
15260 2009-03-01  Bruno Haible  <bruno@clisp.org>
15261
15262         More support for FreeMiNT.
15263         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15264         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15265
15266 2009-03-01  Bruno Haible  <bruno@clisp.org>
15267
15268         More support for FreeMiNT.
15269         * lib/fpurge.c (fpurge): Correct last commit.
15270         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15271
15272 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15273
15274         Fix unportable awk script in vc-list-files.
15275         * build-aux/vc-list-files: In the replacement awk script, use
15276         substr with a second argument of 1, not zero.
15277         Report by Simon Josefsson.
15278
15279 2009-02-28  Bruno Haible  <bruno@clisp.org>
15280
15281         More support for FreeMiNT.
15282         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15283         to FreeMiNT today.
15284         * lib/fwriting.c (fwriting): Likewise.
15285         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15286
15287 2009-02-28  Bruno Haible  <bruno@clisp.org>
15288
15289         * tests/test-freadseek.c (main): Disable test beyond end of file on
15290         FreeMiNT.
15291         * tests/test-ftello.c (main): Likewise.
15292         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15293
15294 2009-02-28  Bruno Haible  <bruno@clisp.org>
15295
15296         Add tentative support for FreeMiNT.
15297         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15298         * lib/fpurge.c (fpurge): Likewise.
15299         * lib/freadable.c (freadable): Likewise.
15300         * lib/freading.c (freading): Likewise.
15301         * lib/freadptr.c (freadptr): Likewise.
15302         * lib/freadseek.c (freadptrinc): Likewise.
15303         * lib/fseeko.c (rpl_fseeko): Likewise.
15304         * lib/fseterr.c (fseterr): Likewise.
15305         * lib/fwritable.c (fwritable): Likewise.
15306         * lib/fwriting.c (fwriting): Likewise.
15307         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15308         Hourihane.
15309         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15310
15311 2009-02-28  Bruno Haible  <bruno@clisp.org>
15312
15313         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15314         SIGCHLD.
15315         Reported by Jim Meyering.
15316
15317 2009-02-28  Bruno Haible  <bruno@clisp.org>
15318
15319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15320         Mention the results of these tests on various platforms.
15321         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15322         order.
15323         * doc/posix-functions/printf.texi: Likewise.
15324         * doc/posix-functions/snprintf.texi: Likewise.
15325         * doc/posix-functions/sprintf.texi: Likewise.
15326         * doc/posix-functions/vfprintf.texi: Likewise.
15327         * doc/posix-functions/vprintf.texi: Likewise.
15328         * doc/posix-functions/vsnprintf.texi: Likewise.
15329         * doc/posix-functions/vsprintf.texi: Likewise.
15330         * doc/glibc-functions/obstack_printf.texi: Likewise.
15331         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15332
15333 2009-02-28  Bruno Haible  <bruno@clisp.org>
15334
15335         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15336         Reported by Loïc Minier <lool@dooz.org>.
15337
15338 2009-02-27  Bruno Haible  <bruno@clisp.org>
15339
15340         * gnulib-tool (func_import): Make the sed expression used to create the
15341         sed script for updating the .gitignore file POSIX compliant.
15342         Reported by Eric Blake.
15343
15344 2009-02-27  Bruno Haible  <bruno@clisp.org>
15345
15346         * gnulib-tool (sed): Don't alias as "sed --posix".
15347         Reported by Eric Blake.
15348
15349 2009-02-27  Bruno Haible  <bruno@clisp.org>
15350
15351         Avoid test link errors.
15352         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15353         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15354         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15355         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15357
15358 2009-02-27  Bruno Haible  <bruno@clisp.org>
15359
15360         Avoid spurious "(cached)" in configure output.
15361         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15362         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15363         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15364         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15365         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15366         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15367         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15368         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15369         Reported by Eric Blake.
15370
15371 2009-02-27  Eric Blake  <ebb9@byu.net>
15372
15373         printf: fix regression in previous patch
15374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15375
15376 2009-02-27  Bruno Haible  <bruno@clisp.org>
15377
15378         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15379         value.
15380         * lib/stdint.in.h: Likewise.
15381         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15382
15383 2009-02-27  Eric Blake  <ebb9@byu.net>
15384
15385         doc: mention more functions added in cygwin 1.7.0
15386         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15387         addition.
15388         * doc/posix-functions/open_wmemstream.texi: Likewise.
15389         * doc/posix-functions/wcsnlen.texi: Likewise.
15390         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15391         * doc/posix-functions/wcstod.texi: Likewise.
15392         * doc/posix-functions/wcstof.texi: Likewise.
15393         * doc/posix-functions/wcstoimax.texi: Likewise.
15394         * doc/posix-functions/wcstok.texi: Likewise.
15395         * doc/posix-functions/wcstoumax.texi: Likewise.
15396
15397         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15398         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15399         * doc/posix-functions/fprintf.texi: Update.
15400         * doc/posix-functions/printf.texi: Update.
15401         * doc/posix-functions/snprintf.texi: Update.
15402         * doc/posix-functions/sprintf.texi: Update.
15403         * doc/posix-functions/vfprintf.texi: Update.
15404         * doc/posix-functions/vprintf.texi: Update.
15405         * doc/posix-functions/vsnprintf.texi: Update.
15406         * doc/posix-functions/vsprintf.texi: Update.
15407         * doc/glibc-functions/obstack_printf.texi: Update.
15408         * doc/glibc-functions/obstack_vprintf.texi: Update.
15409
15410 2009-02-26  Eric Blake  <ebb9@byu.net>
15411
15412         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15413         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15414         compilation bug by using runtime conversion.
15415         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15416         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15417         * modules/ceill-tests (Files): Use nan.h.
15418         * modules/floorl-tests (Files): Likewise.
15419         * modules/frexpl-tests (Files): Likewise.
15420         * modules/isnanl-tests (Files): Likewise.
15421         * modules/ldexpl-tests (Files): Likewise.
15422         * modules/roundl-tests (Files): Likewise.
15423         * modules/truncl-tests (Files): Likewise.
15424         * tests/test-ceill.c (main): Use a working NaN.
15425         * tests/test-floorl.c (main): Likewise.
15426         * tests/test-frexpl.c (main): Likewise.
15427         * tests/test-isnan.c (test_long_double): Likewise.
15428         * tests/test-isnanl.h (main): Likewise.
15429         * tests/test-ldexpl.h (main): Likewise.
15430         * tests/test-roundl.h (main): Likewise.
15431         * tests/test-truncl.h (main): Likewise.
15432         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15433
15434 2009-02-26  Eric Blake  <ebb9@byu.net>
15435             Bruno Haible  <bruno@clisp.org>
15436
15437         Work around a *printf bug with %ls on Solaris.
15438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15439         precision is specified, sprintf stops converting the wide string
15440         argument when the number of bytes that have been produced by this
15441         conversion equals or exceeds the precision.
15442         * doc/posix-functions/fprintf.texi: Update.
15443         * doc/posix-functions/printf.texi: Update.
15444         * doc/posix-functions/snprintf.texi: Update.
15445         * doc/posix-functions/sprintf.texi: Update.
15446         * doc/posix-functions/vfprintf.texi: Update.
15447         * doc/posix-functions/vprintf.texi: Update.
15448         * doc/posix-functions/vsnprintf.texi: Update.
15449         * doc/posix-functions/vsprintf.texi: Update.
15450         * doc/glibc-functions/obstack_printf.texi: Update.
15451         * doc/glibc-functions/obstack_vprintf.texi: Update.
15452
15453 2009-02-26  Eric Blake  <ebb9@byu.net>
15454
15455         stdlib: favor compiler check of random.h
15456         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15457         to avoid an ObjC random.h installed by Swarm.
15458
15459 2009-02-26  Bruno Haible  <bruno@clisp.org>
15460
15461         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15462         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15463         Reported by Gary V. Vaughan <gary@gnu.org>.
15464
15465 2009-02-26  Bruno Haible  <bruno@clisp.org>
15466
15467         Fix *printf behaviour regarding the %ls directive.
15468         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15469         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15470         NEED_PRINTF_DIRECTIVE_LS.
15471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15472         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15473         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15474         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15475         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15476         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15477         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15478         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15481         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15482         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15486         * doc/posix-functions/fprintf.texi: Update.
15487         * doc/posix-functions/printf.texi: Update.
15488         * doc/posix-functions/snprintf.texi: Update.
15489         * doc/posix-functions/sprintf.texi: Update.
15490         * doc/posix-functions/vfprintf.texi: Update.
15491         * doc/posix-functions/vprintf.texi: Update.
15492         * doc/posix-functions/vsnprintf.texi: Update.
15493         * doc/posix-functions/vsprintf.texi: Update.
15494         * doc/glibc-functions/obstack_printf.texi: Update.
15495         * doc/glibc-functions/obstack_vprintf.texi: Update.
15496         Reported by Eric Blake.
15497
15498 2009-02-25  Bruno Haible  <bruno@clisp.org>
15499
15500         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15501         with known value.
15502         Reported by Gary V. Vaughan <gary@gnu.org>.
15503
15504 2009-02-25  Bruno Haible  <bruno@clisp.org>
15505
15506         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15507         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15508         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15509         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15510         Reported by Gary V. Vaughan <gary@gnu.org>.
15511
15512 2009-02-25  Bruno Haible  <bruno@clisp.org>
15513
15514         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15515         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15516         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15517         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15518         Reported by Gary V. Vaughan <gary@gnu.org>.
15519
15520 2009-02-25  Eric Blake  <ebb9@byu.net>
15521
15522         tests: skip fseek/ftell tests if ungetc is broken
15523         * m4/ungetc.m4: New file.
15524         * modules/fseek-tests: Split test, so ungetc dependency is
15525         separate from rest of test.
15526         * modules/fseeko-tests: Likewise.
15527         * modules/ftell-tests: Likewise.
15528         * modules/ftello-tests: Likewise.
15529         * tests/test-fseek.c (main): Isolate ungetc dependency.
15530         * tests/test-fseeko.c (main): Likewise.
15531         * tests/test-ftell.c (main): Likewise.
15532         * tests/test-ftello.c (main): Likewise.
15533         * tests/test-fseek2.sh: New file.
15534         * tests/test-fseeko2.sh: Likewise.
15535         * tests/test-ftell2.sh: Likewise.
15536         * tests/test-ftello2.sh: Likewise.
15537
15538 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
15539
15540         test-getaddrinfo: fix usage of skip return code 77
15541         * tests/test-gettaddrinfo.c: Return skip code 77 only
15542         for first occurance of skip (4x77 is not 77)
15543
15544 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15545
15546         strtod: avoid C99 decl-after-statement
15547         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15548
15549 2009-02-24  Eric Blake  <ebb9@byu.net>
15550
15551         strtod: detect HP-UX 11.31 bug
15552         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15553         Reported by Gary V. Vaughan.
15554
15555 2009-02-23  Bruno Haible  <bruno@clisp.org>
15556
15557         Fix invalid read past end of memory block.
15558         * lib/vasnprintf.c (DCHAR_SET): Define.
15559         (local_wcslen): Define only when needed.
15560         (local_strnlen, local_wcsnlen): New functions.
15561         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15562         directives that involve a conversion ourselves.
15563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15564         wcsnlen, mbrtowc, wcrtomb.
15565         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15566         * tests/test-vasprintf-posix.c (test_function): Likewise.
15567         * tests/test-snprintf-posix.h (test_function): Likewise.
15568         * tests/test-sprintf-posix.h (test_function): Likewise.
15569         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15570
15571 2009-02-22  Bruno Haible  <bruno@clisp.org>
15572
15573         Implement new clarified decomposition of Hangul syllables.
15574         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15575         of type LTV, return only a pairwise decomposition.
15576         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15577         Likewise.
15578         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15579         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15580         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15581
15582 2009-02-22  Bruno Haible  <bruno@clisp.org>
15583
15584         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15585         zero-length results and shrink excess allocated memory.
15586         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15587         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15588         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15589         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15590         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15591         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15592         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15593         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15594         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15595         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15596         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15597         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15598
15599 2009-02-21  Bruno Haible  <bruno@clisp.org>
15600
15601         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15602         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15603         spaces after a period. Put a space between a macro name and its
15604         argument list. Trivial rewordings.
15605         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15606         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15607         (main): Return 0 explicitly.
15608
15609 2009-02-21  Bruno Haible  <bruno@clisp.org>
15610
15611         Tests for module 'uninorm/filter'.
15612         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15613         * modules/uninorm/filter-tests: New file.
15614
15615         New module 'uninorm/filter'.
15616         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15617         uninorm_filter_flush, uninorm_filter_free): New declarations.
15618         * lib/uninorm/uninorm-filter.c: New file.
15619         * modules/uninorm/filter: New file.
15620
15621 2009-02-21  Bruno Haible  <bruno@clisp.org>
15622
15623         Tests for module 'uninorm/nfkc'.
15624         * tests/uninorm/test-nfkc.c: New file.
15625         * tests/uninorm/test-u8-nfkc.c: New file.
15626         * tests/uninorm/test-u16-nfkc.c: New file.
15627         * tests/uninorm/test-u32-nfkc.c: New file.
15628         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15629         * tests/uninorm/test-u32-nfkc-big.c: New file.
15630         * modules/uninorm/nfkc-tests: New file.
15631
15632         New module 'uninorm/nfkc'.
15633         * lib/uninorm/nfkc.c: New file.
15634         * modules/uninorm/nfkc: New file.
15635
15636         Tests for module 'uninorm/nfkd'.
15637         * tests/uninorm/test-nfkd.c: New file.
15638         * tests/uninorm/test-u8-nfkd.c: New file.
15639         * tests/uninorm/test-u16-nfkd.c: New file.
15640         * tests/uninorm/test-u32-nfkd.c: New file.
15641         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15642         * tests/uninorm/test-u32-nfkd-big.c: New file.
15643         * modules/uninorm/nfkd-tests: New file.
15644
15645         New module 'uninorm/nfkd'.
15646         * lib/uninorm/nfkd.c: New file.
15647         * modules/uninorm/nfkd: New file.
15648
15649         Tests for module 'uninorm/nfc'.
15650         * tests/uninorm/test-nfc.c: New file.
15651         * tests/uninorm/test-u8-nfc.c: New file.
15652         * tests/uninorm/test-u16-nfc.c: New file.
15653         * tests/uninorm/test-u32-nfc.c: New file.
15654         * tests/uninorm/test-u32-nfc-big.sh: New file.
15655         * tests/uninorm/test-u32-nfc-big.c: New file.
15656         * modules/uninorm/nfc-tests: New file.
15657
15658         New module 'uninorm/nfc'.
15659         * lib/uninorm/nfc.c: New file.
15660         * modules/uninorm/nfc: New file.
15661
15662         Tests for module 'uninorm/nfd'.
15663         * tests/uninorm/test-nfd.c: New file.
15664         * tests/uninorm/test-u8-nfd.c: New file.
15665         * tests/uninorm/test-u16-nfd.c: New file.
15666         * tests/uninorm/test-u32-nfd.c: New file.
15667         * tests/uninorm/test-u32-nfd-big.sh: New file.
15668         * tests/uninorm/test-u32-nfd-big.c: New file.
15669         * tests/uninorm/test-u32-normalize-big.h: New file.
15670         * tests/uninorm/test-u32-normalize-big.c: New file.
15671         * tests/uninorm/NormalizationTest.txt: New file, created from
15672         Unicode 5.1.0 NormalizationTest.txt.
15673         * modules/uninorm/nfd-tests: New file.
15674
15675         New module 'uninorm/nfd'.
15676         * lib/uninorm/nfd.c: New file.
15677         * modules/uninorm/nfd: New file.
15678
15679         New module 'uninorm/u32-normalize'.
15680         * lib/uninorm/u32-normalize.c: New file.
15681         * modules/uninorm/u32-normalize: New file.
15682
15683         New module 'uninorm/u16-normalize'.
15684         * lib/uninorm/u16-normalize.c: New file.
15685         * modules/uninorm/u16-normalize: New file.
15686
15687         New module 'uninorm/u8-normalize'.
15688         * lib/uninorm/u8-normalize.c: New file.
15689         * lib/uninorm/normalize-internal.h: New file.
15690         * lib/uninorm/u-normalize-internal.h: New file.
15691         * modules/uninorm/u8-normalize: New file.
15692
15693         New module 'uninorm/decompose-internal'.
15694         * lib/uninorm/decompose-internal.c: New file.
15695         * modules/uninorm/decompose-internal: New file.
15696
15697         Tests for module 'uninorm/composition'.
15698         * tests/uninorm/test-composition.c: New file.
15699         * modules/uninorm/composition-tests: New file.
15700
15701         New module 'uninorm/composition'.
15702         * lib/uninorm/composition.c: New file.
15703         * lib/uninorm/composition-table.gperf: New file, generated by
15704         gen-uni-tables.
15705         * modules/uninorm/composition: New file.
15706
15707         Tests for module 'uninorm/compat-decomposition'.
15708         * tests/uninorm/test-compat-decomposition.c: New file.
15709         * modules/uninorm/compat-decomposition-tests: New file.
15710
15711         New module 'uninorm/compat-decomposition'.
15712         * lib/uninorm/decompose-internal.h: New file.
15713         * lib/uninorm/compat-decomposition.c: New file.
15714         * modules/uninorm/compat-decomposition: New file.
15715
15716         Tests for module 'uninorm/canonical-decomposition'.
15717         * tests/uninorm/test-canonical-decomposition.c: New file.
15718         * modules/uninorm/canonical-decomposition-tests: New file.
15719
15720         New module 'uninorm/canonical-decomposition'.
15721         * lib/uninorm/canonical-decomposition.c: New file.
15722         * modules/uninorm/canonical-decomposition: New file.
15723
15724         Tests for module 'uninorm/decomposition'.
15725         * tests/uninorm/test-decomposition.c: New file.
15726         * modules/uninorm/decomposition-tests: New file.
15727
15728         New module 'uninorm/decomposition'.
15729         * lib/uninorm/decomposition.c: New file.
15730         * modules/uninorm/decomposition: New file.
15731
15732         New module 'uninorm/decomposition-table'.
15733         * lib/uninorm/decomposition-table.h: New file.
15734         * lib/uninorm/decomposition-table.c: New file.
15735         * lib/uninorm/decomposition-table1.h: New file, generated by
15736         gen-uni-tables.
15737         * lib/uninorm/decomposition-table2.h: New file, generated by
15738         gen-uni-tables.
15739         * modules/uninorm/decomposition-table: New file.
15740
15741         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15742         (UC_DECOMP_*): New enumeration items.
15743         (get_decomposition): New function.
15744         (struct decomp_table): New type.
15745         (output_decomposition, output_decomposition_tables): New functions.
15746         (unicode_composition_exclusions): New variable.
15747         (fill_composition_exclusions, debug_output_composition_tables): New
15748         functions.
15749         (main): Accept one more argument. Invoke fill_composition_exclusions.
15750         Output decomposition and composition tables.
15751
15752         New module 'uninorm/base'.
15753         * lib/uninorm.h: New file.
15754         * lib/unictype.h: Update comment.
15755         * modules/uninorm/base: New file.
15756
15757 2009-02-21  David Lutterkort  <lutter@redhat.com>
15758
15759         Tests for module 'safe-alloc'.
15760         * tests/test-safe-alloc.c: New file.
15761         * modules/safe-alloc-tests: New file.
15762
15763         New module 'safe-alloc'.
15764         * lib/safe-alloc.h: New file.
15765         * lib/safe-alloc.c: New file.
15766         * m4/safe-alloc.m4: New file.
15767         * modules/safe-alloc: New file.
15768         * doc/safe-alloc.texi: New file.
15769         * doc/gnulib.texi: Include it.
15770         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15771         safe-alloc.
15772
15773 2009-02-18  Bruno Haible  <bruno@clisp.org>
15774
15775         Fix link error on non-glibc systems.
15776         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15777         variable.
15778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15779
15780 2009-02-18  Jim Meyering  <meyering@redhat.com>
15781
15782         fts: avoid used-uninitialized error due to recent change
15783         * lib/fts.c (fts_read): Guard uses of the new member,
15784         parent->fts_n_dirs_remaining, since it's not relevant for
15785         the parent of a directory specified on the command-line.
15786
15787 2009-02-17  James Youngman  <jay@gnu.org>
15788             Bruno Haible  <bruno@clisp.org>
15789
15790         * m4/include_next.m4: Reformulate comment.
15791
15792 2009-02-16  Jim Meyering  <meyering@redhat.com>
15793
15794         fts: add #if guards so that the fts_lgpl module still builds
15795         * lib/fts.c: Guard just-added hash-table-using parts with
15796         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15797         Reported by Simon Josefsson.
15798
15799 2009-02-15  Bruno Haible  <bruno@clisp.org>
15800
15801         * modules/array-mergesort-tests: New file.
15802         * tests/test-array-mergesort.c: New file.
15803
15804         New module 'array-mergesort'.
15805         * modules/array-mergesort: New file.
15806         * lib/array-mergesort.h: New file.
15807
15808 2009-02-15  Bruno Haible  <bruno@clisp.org>
15809
15810         Fix 2009-02-07 commit.
15811         * lib/gen-uni-tables.c (output_predicate, output_category,
15812         output_combclass, output_bidi_category, output_decimal_digit,
15813         output_digit, output_numeric, output_mirror, output_scripts,
15814         output_ident_category, output_simple_mapping): Fix format directives.
15815         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15816
15817 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15818
15819         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15820         fixes are available from IBM.
15821
15822 2009-02-13  Jim Meyering  <meyering@redhat.com>
15823
15824         fts: arrange not to stat non-directories in more cases
15825         This makes GNU find (when it doesn't need to stat each file)
15826         *much* more efficient at traversing reiserfs file systems.
15827         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15828         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15829         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15830         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15831         (leaf_optimization_applies): New function.
15832         (LCO_hash, LCO_compare): New helper functions.
15833         (link_count_optimize_ok): New function.
15834         (fts_stat): Initialize new member (if dir).
15835         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15836         we've just stat'ed a directory.  Skip the stat call when possible.
15837         ---
15838         Note this AFS-related exchange:
15839         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15840         and note find's pioctl call in find/fstype.c.
15841         But that is necessary only if you want to enable the
15842         optimization for AFS, and for now, I don't.
15843
15844         fts: move a function definition "up" (no semantic change)
15845         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15846         "up" to precede upcoming use of a related function.
15847
15848 2009-02-11  Jim Meyering  <meyering@redhat.com>
15849
15850         fts: correct internal computation of nlinks (optimization-related)
15851         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15852         whether the current entry is a directory, so don't test it.
15853
15854 2009-02-10  Bruno Haible  <bruno@clisp.org>
15855
15856         Tests for module 'uniwbrk/ulc-wordbreaks'.
15857         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15858         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15859         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15860
15861         Tests for module 'uniwbrk/u32-wordbreaks'.
15862         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15863         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15864
15865         Tests for module 'uniwbrk/u16-wordbreaks'.
15866         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15867         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15868
15869         Tests for module 'uniwbrk/u8-wordbreaks'.
15870         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15871         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15872
15873 2009-02-10  Bruno Haible  <bruno@clisp.org>
15874
15875         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15876         property.
15877         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15878         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15879         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15880
15881 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15882
15883         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15884         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15885
15886 2009-02-10  Bruno Haible  <bruno@clisp.org>
15887
15888         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15889         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15890         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15891         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15892         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15893         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15894
15895 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15896
15897         * lib/sockets.h (gl_fd_to_handle): New function.
15898
15899         * tests/test-sockets.c: Call gl_fd_to_handle.
15900
15901 2009-02-09  Bruno Haible  <bruno@clisp.org>
15902
15903         * doc/havelib.texi: Document the conventions on bi-arch systems.
15904
15905 2009-02-08  Bruno Haible  <bruno@clisp.org>
15906
15907         Document the AC_LIB_LINKFLAGS macro.
15908         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15909         * doc/gnulib.texi: Include it.
15910
15911 2009-02-08  Bruno Haible  <bruno@clisp.org>
15912
15913         Fix wrong order of sections, compared to TOC.
15914         * doc/gnulib.texi: Include relocatable-maint.texi after the
15915         "Regular expressions" node, not before.
15916
15917 2009-02-08  Bruno Haible  <bruno@clisp.org>
15918
15919         Tests for module 'unicase/totitle'.
15920         * modules/unicase/totitle-tests: New file.
15921
15922         Tests for module 'unicase/tolower'.
15923         * modules/unicase/tolower-tests: New file.
15924
15925         Tests for module 'unicase/toupper'.
15926         * modules/unicase/toupper-tests: New file.
15927         * tests/unicase/test-mapping-part1.h: New file.
15928         * tests/unicase/test-mapping-part2.h: New file.
15929
15930         New module 'unicase/totitle'.
15931         * modules/unicase/totitle: New file.
15932         * lib/unicase/totitle.c: New file.
15933
15934         New module 'unicase/tolower'.
15935         * modules/unicase/tolower: New file.
15936         * lib/unicase/tolower.c: New file.
15937
15938         New module 'unicase/toupper'.
15939         * modules/unicase/toupper: New file.
15940         * lib/unicase/toupper.c: New file.
15941         * lib/unicase/simple-mapping.h: New file.
15942
15943         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15944         (mapping_table): New structure.
15945         (output_simple_mapping): New function.
15946         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15947         * modules/gen-uni-tables (Description): Update.
15948         * lib/unicase/toupper.h: New file, automatically generated by
15949         gen-uni-tables.
15950         * lib/unicase/tolower.h: New file, automatically generated by
15951         gen-uni-tables.
15952         * lib/unicase/totitle.h: New file, automatically generated by
15953         gen-uni-tables.
15954         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15955         gen-uni-tables.
15956         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15957         gen-uni-tables.
15958         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15959         gen-uni-tables.
15960
15961         New module 'unicase/base'.
15962         * modules/unicase/base: New file.
15963         * lib/unicase.h: New file.
15964
15965 2009-02-08  Bruno Haible  <bruno@clisp.org>
15966
15967         New module 'uniwbrk/ulc-wordbreaks'.
15968         * modules/uniwbrk/ulc-wordbreaks: New file.
15969         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15970
15971         New module 'uniwbrk/u32-wordbreaks'.
15972         * modules/uniwbrk/u32-wordbreaks: New file.
15973         * lib/uniwbrk/u32-wordbreaks.c: New file.
15974
15975         New module 'uniwbrk/u16-wordbreaks'.
15976         * modules/uniwbrk/u16-wordbreaks: New file.
15977         * lib/uniwbrk/u16-wordbreaks.c: New file.
15978
15979         New module 'uniwbrk/u8-wordbreaks'.
15980         * modules/uniwbrk/u8-wordbreaks: New file.
15981         * lib/uniwbrk/u8-wordbreaks.c: New file.
15982         * lib/uniwbrk/u-wordbreaks.h: New file.
15983
15984         New module 'uniwbrk/table'.
15985         * modules/uniwbrk/table: New file.
15986         * lib/uniwbrk/wbrktable.h: New file.
15987         * lib/uniwbrk/wbrktable.c: New file.
15988
15989         New module 'uniwbrk/wordbreak-property'.
15990         * modules/uniwbrk/wordbreak-property: New file.
15991         * lib/uniwbrk/wordbreak-property.c: New file.
15992
15993         * lib/gen-uni-tables.c (WBP_*): New enum items.
15994         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15995         (unicode_org_wbp): New variable.
15996         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15997         New functions.
15998         (wbp_table): New structure.
15999         (output_wbp, output_wbrk_tables): New functions.
16000         (main): Accept additional argument. Invoke fill_org_wbp,
16001         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16002         output_wbrk_tables.
16003         * modules/gen-uni-tables (Description): Update.
16004         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16005         gen-uni-tables.
16006
16007         New module 'uniwbrk/base'.
16008         * modules/uniwbrk/base: New file.
16009         * lib/uniwbrk.h: New file.
16010
16011 2009-02-08  Bruno Haible  <bruno@clisp.org>
16012
16013         Update to Unicode 5.1.0.
16014         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16015         U+2185..U+2188.
16016         (is_property_default_ignorable_code_point): Don't include characters
16017         of category Cc or Cs and not-a-characters.
16018         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16019         U+0D79, U+109E, U+109F, U+A60C.
16020         * lib/unictype/bidi_of.h: Regenerated.
16021         * lib/unictype/blocks.h: Regenerated.
16022         * lib/unictype/categ_C.h: Regenerated.
16023         * lib/unictype/categ_Cf.h: Regenerated.
16024         * lib/unictype/categ_Cn.h: Regenerated.
16025         * lib/unictype/categ_L.h: Regenerated.
16026         * lib/unictype/categ_Ll.h: Regenerated.
16027         * lib/unictype/categ_Lm.h: Regenerated.
16028         * lib/unictype/categ_Lo.h: Regenerated.
16029         * lib/unictype/categ_Lu.h: Regenerated.
16030         * lib/unictype/categ_M.h: Regenerated.
16031         * lib/unictype/categ_Mc.h: Regenerated.
16032         * lib/unictype/categ_Me.h: Regenerated.
16033         * lib/unictype/categ_Mn.h: Regenerated.
16034         * lib/unictype/categ_N.h: Regenerated.
16035         * lib/unictype/categ_Nd.h: Regenerated.
16036         * lib/unictype/categ_Nl.h: Regenerated.
16037         * lib/unictype/categ_No.h: Regenerated.
16038         * lib/unictype/categ_P.h: Regenerated.
16039         * lib/unictype/categ_Pd.h: Regenerated.
16040         * lib/unictype/categ_Pe.h: Regenerated.
16041         * lib/unictype/categ_Pf.h: Regenerated.
16042         * lib/unictype/categ_Pi.h: Regenerated.
16043         * lib/unictype/categ_Po.h: Regenerated.
16044         * lib/unictype/categ_Ps.h: Regenerated.
16045         * lib/unictype/categ_S.h: Regenerated.
16046         * lib/unictype/categ_Sk.h: Regenerated.
16047         * lib/unictype/categ_Sm.h: Regenerated.
16048         * lib/unictype/categ_So.h: Regenerated.
16049         * lib/unictype/categ_of.h: Regenerated.
16050         * lib/unictype/combining.h: Regenerated.
16051         * lib/unictype/ctype_alnum.h: Regenerated.
16052         * lib/unictype/ctype_alpha.h: Regenerated.
16053         * lib/unictype/ctype_graph.h: Regenerated.
16054         * lib/unictype/ctype_lower.h: Regenerated.
16055         * lib/unictype/ctype_print.h: Regenerated.
16056         * lib/unictype/ctype_punct.h: Regenerated.
16057         * lib/unictype/ctype_upper.h: Regenerated.
16058         * lib/unictype/decdigit.h: Regenerated.
16059         * lib/unictype/digit.h: Regenerated.
16060         * lib/unictype/mirror.h: Regenerated.
16061         * lib/unictype/numeric.h: Regenerated.
16062         * lib/unictype/pr_alphabetic.h: Regenerated.
16063         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16064         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16065         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16066         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16067         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16068         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16069         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16070         * lib/unictype/pr_combining.h: Regenerated.
16071         * lib/unictype/pr_dash.h: Regenerated.
16072         * lib/unictype/pr_decimal_digit.h: Regenerated.
16073         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16074         * lib/unictype/pr_deprecated.h: Regenerated.
16075         * lib/unictype/pr_diacritic.h: Regenerated.
16076         * lib/unictype/pr_extender.h: Regenerated.
16077         * lib/unictype/pr_format_control.h: Regenerated.
16078         * lib/unictype/pr_grapheme_base.h: Regenerated.
16079         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16080         * lib/unictype/pr_grapheme_link.h: Regenerated.
16081         * lib/unictype/pr_id_continue.h: Regenerated.
16082         * lib/unictype/pr_id_start.h: Regenerated.
16083         * lib/unictype/pr_ideographic.h: Regenerated.
16084         * lib/unictype/pr_ignorable_control.h: Regenerated.
16085         * lib/unictype/pr_lowercase.h: Regenerated.
16086         * lib/unictype/pr_math.h: Regenerated.
16087         * lib/unictype/pr_numeric.h: Regenerated.
16088         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16089         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16090         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16091         * lib/unictype/pr_other_id_continue.h: Regenerated.
16092         * lib/unictype/pr_other_lowercase.h: Regenerated.
16093         * lib/unictype/pr_other_math.h: Regenerated.
16094         * lib/unictype/pr_punctuation.h: Regenerated.
16095         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16096         * lib/unictype/pr_soft_dotted.h: Regenerated.
16097         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16098         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16099         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16100         * lib/unictype/pr_uppercase.h: Regenerated.
16101         * lib/unictype/pr_xid_continue.h: Regenerated.
16102         * lib/unictype/pr_xid_start.h: Regenerated.
16103         * lib/unictype/pr_zero_width.h: Regenerated.
16104         * lib/unictype/scripts.h: Regenerated.
16105         * lib/unictype/scripts_byname.gperf: Regenerated.
16106         * lib/unictype/sy_java_ident.h: Regenerated.
16107         * lib/unilbrk/lbrkprop1.h: Regenerated.
16108         * lib/unilbrk/lbrkprop2.h: Regenerated.
16109         * tests/unictype/test-categ_C.c: Regenerated.
16110         * tests/unictype/test-categ_Cf.c: Regenerated.
16111         * tests/unictype/test-categ_Cn.c: Regenerated.
16112         * tests/unictype/test-categ_L.c: Regenerated.
16113         * tests/unictype/test-categ_Ll.c: Regenerated.
16114         * tests/unictype/test-categ_Lm.c: Regenerated.
16115         * tests/unictype/test-categ_Lo.c: Regenerated.
16116         * tests/unictype/test-categ_Lu.c: Regenerated.
16117         * tests/unictype/test-categ_M.c: Regenerated.
16118         * tests/unictype/test-categ_Mc.c: Regenerated.
16119         * tests/unictype/test-categ_Me.c: Regenerated.
16120         * tests/unictype/test-categ_Mn.c: Regenerated.
16121         * tests/unictype/test-categ_N.c: Regenerated.
16122         * tests/unictype/test-categ_Nd.c: Regenerated.
16123         * tests/unictype/test-categ_Nl.c: Regenerated.
16124         * tests/unictype/test-categ_No.c: Regenerated.
16125         * tests/unictype/test-categ_P.c: Regenerated.
16126         * tests/unictype/test-categ_Pd.c: Regenerated.
16127         * tests/unictype/test-categ_Pe.c: Regenerated.
16128         * tests/unictype/test-categ_Pf.c: Regenerated.
16129         * tests/unictype/test-categ_Pi.c: Regenerated.
16130         * tests/unictype/test-categ_Po.c: Regenerated.
16131         * tests/unictype/test-categ_Ps.c: Regenerated.
16132         * tests/unictype/test-categ_S.c: Regenerated.
16133         * tests/unictype/test-categ_Sk.c: Regenerated.
16134         * tests/unictype/test-categ_Sm.c: Regenerated.
16135         * tests/unictype/test-categ_So.c: Regenerated.
16136         * tests/unictype/test-ctype_alnum.c: Regenerated.
16137         * tests/unictype/test-ctype_alpha.c: Regenerated.
16138         * tests/unictype/test-ctype_graph.c: Regenerated.
16139         * tests/unictype/test-ctype_lower.c: Regenerated.
16140         * tests/unictype/test-ctype_print.c: Regenerated.
16141         * tests/unictype/test-ctype_punct.c: Regenerated.
16142         * tests/unictype/test-ctype_upper.c: Regenerated.
16143         * tests/unictype/test-decdigit.h: Regenerated.
16144         * tests/unictype/test-digit.h: Regenerated.
16145         * tests/unictype/test-numeric.h: Regenerated.
16146         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16147         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16148         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16149         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16150         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16151         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16152         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16153         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16154         * tests/unictype/test-pr_combining.c: Regenerated.
16155         * tests/unictype/test-pr_dash.c: Regenerated.
16156         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16157         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16158         * tests/unictype/test-pr_deprecated.c: Regenerated.
16159         * tests/unictype/test-pr_diacritic.c: Regenerated.
16160         * tests/unictype/test-pr_extender.c: Regenerated.
16161         * tests/unictype/test-pr_format_control.c: Regenerated.
16162         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16163         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16164         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16165         * tests/unictype/test-pr_id_continue.c: Regenerated.
16166         * tests/unictype/test-pr_id_start.c: Regenerated.
16167         * tests/unictype/test-pr_ideographic.c: Regenerated.
16168         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16169         * tests/unictype/test-pr_lowercase.c: Regenerated.
16170         * tests/unictype/test-pr_math.c: Regenerated.
16171         * tests/unictype/test-pr_numeric.c: Regenerated.
16172         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16173         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16174         Regenerated.
16175         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16176         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16177         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16178         * tests/unictype/test-pr_other_math.c: Regenerated.
16179         * tests/unictype/test-pr_punctuation.c: Regenerated.
16180         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16181         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16182         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16183         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16184         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16185         * tests/unictype/test-pr_uppercase.c: Regenerated.
16186         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16187         * tests/unictype/test-pr_xid_start.c: Regenerated.
16188         * tests/unictype/test-pr_zero_width.c: Regenerated.
16189
16190         Update to Unicode 5.1.0.
16191         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16192         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16193         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16194         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16195         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16196         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16197         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16198         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16199         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16200         (nonspacing_table_ind): Update.
16201         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16202
16203         Update to Unicode 5.1.0.
16204         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16205         code transform.
16206         * lib/uniname/uniname.c (unicode_character_name,
16207         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16208         * lib/uniname/uninames.h: Regenerated.
16209         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16210
16211 2009-02-07  Bruno Haible  <bruno@clisp.org>
16212
16213         Merge gen-ctype and gen-lbrk into a single program.
16214         * lib/gen-uni-tables.c: New file, incorporating
16215         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16216         Add directory prefixes to the names of the generated files.
16217         * lib/unictype/gen-ctype.c: Remove file.
16218         * lib/unilbrk/gen-lbrk.c: Remove file.
16219         * modules/gen-uni-tables: New file.
16220         * modules/unictype/gen-ctype: Remove file.
16221         * modules/unilbrk/gen-lbrk: Remove file.
16222
16223 2009-02-07  Bruno Haible  <bruno@clisp.org>
16224
16225         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16226
16227         New module 'unistr/u32-strcoll'.
16228         * modules/unistr/u32-strcoll: New file.
16229         * lib/unistr/u32-strcoll.c: New file.
16230
16231         New module 'unistr/u16-strcoll'.
16232         * modules/unistr/u16-strcoll: New file.
16233         * lib/unistr/u16-strcoll.c: New file.
16234
16235         New module 'unistr/u8-strcoll'.
16236         * modules/unistr/u8-strcoll: New file.
16237         * lib/unistr/u8-strcoll.c: New file.
16238         * lib/unistr/u-strcoll.h: New file.
16239
16240 2009-02-07  Bruno Haible  <bruno@clisp.org>
16241
16242         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16243         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16244         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16245         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16246         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16247         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16248
16249 2009-02-07  Bruno Haible  <bruno@clisp.org>
16250
16251         Make 64-bit clean.
16252         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16253         output_combclass, output_bidi_category, output_decimal_digit,
16254         output_digit, output_numeric, output_mirror, output_scripts,
16255         output_ident_category): Use proper width specifier in format strings.
16256
16257 2009-02-07  Bruno Haible  <bruno@clisp.org>
16258
16259         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16260         failure behaviour.
16261
16262 2009-02-07  Jim Meyering  <meyering@redhat.com>
16263
16264         regex: avoid compilation failure with upcoming gcc-4.4
16265         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16266         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16267         "... error: integer overflow in preprocessor expression".
16268
16269 2009-02-05  Ben Pfaff  <blp@gnu.org>
16270
16271         Fix link errors on Windows when close module is used.
16272         * modules/close: Add $(LIB_CLOSE) to Link section.
16273         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16274         $(LIB_CLOSE) on Windows.
16275
16276 2009-02-05  Jim Meyering  <meyering@redhat.com>
16277
16278         still avoid unused-parameter warnings, but do it cleanly
16279         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16280         (get_fs_usage): Cast to void instead.
16281         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16282         (dev_from_mount_options, read_file_system_list): Cast to void.
16283         Prompted by Bruno Haible.
16284
16285 2009-02-04  Jim Meyering  <meyering@redhat.com>
16286
16287         fsusage.c: correct copyright year
16288         * lib/fsusage.c: Reflect year in which the change is pushed into
16289
16290         avoid misc. warnings
16291         * lib/fsusage.c (UNUSED_PARAM): Define.
16292         (get_fs_usage): Mark parameter "disk" as unused.
16293         * lib/getugroups.c (getgrent): Use "void" in prototype.
16294         * lib/mountlist.c: Mark unused parameters.
16295         (read_file_system_list): Declare a local with "const".
16296         * lib/nanosleep.c (getnow): Declare static.
16297         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16298
16299         dirfd: set errno upon failure
16300         * lib/dirfd.c: Include <errno.h>.
16301         Set errno to ENOTSUP when returning -1.
16302         * modules/dirfd (Depends-on): Add errno.
16303         Suggested by John Kodis <kodis@comcast.net>.
16304
16305 2009-02-01  Bruno Haible  <bruno@clisp.org>
16306
16307         Don't assume sizeof (long) >= sizeof (void *).
16308         * lib/memcmp.c: Include stdint.h.
16309         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16310         srcp2 to 'const byte *'.
16311         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16312         types to uintptr_t.
16313         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16314         * modules/memcmp (Depends-on): Add stdint.
16315         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16316
16317 2009-01-30  Eric Blake  <ebb9@byu.net>
16318
16319         fix more require-before-expand issues
16320         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16321         expand, AC_PROG_AWK.
16322         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16323
16324 2009-01-28  Eric Blake  <ebb9@byu.net>
16325
16326         version-etc: use consistent URL formatting
16327         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16328         Improve formatting.  Use fputs for string without %.
16329
16330 2009-01-28  Jim Meyering  <meyering@redhat.com>
16331
16332         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16333         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16334         "underquoted definition of NAME" from autoconf-2.59.
16335
16336 2009-01-28  Bruno Haible  <bruno@clisp.org>
16337
16338         * doc/gnulib.texi: Add "Obsolete modules" to index.
16339
16340 2009-01-28  Jim Meyering  <meyering@redhat.com>
16341
16342         useless-if-before-free: recognize more variants
16343         * build-aux/useless-if-before-free: Also recognize e.g.,
16344         if (NULL != p) free (p);
16345
16346 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16347
16348         test-getaddrinfo: skip (don't fail) this test when there's no network
16349         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16350         on the presumption that it means you lack network access.
16351
16352 2009-01-26  Jim Meyering  <meyering@redhat.com>
16353
16354         fflush: avoid warnings on modern systems
16355         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16356         pos and result, into scopes where they're used.
16357
16358 2009-01-26  Eric Blake  <ebb9@byu.net>
16359
16360         Silence warning reintroduced by recent extensions patch.
16361         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16362         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16363         autoconf.
16364
16365         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16366         * m4/00gnulib.m4: New file.
16367         * gnulib-tool (func_get_filelist): Always use it.
16368         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16369         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16370
16371 2009-01-25  Bruno Haible  <bruno@clisp.org>
16372
16373         Make test-quotearg work on MacOS X and AIX.
16374         * tests/test-quotearg.sh: New file.
16375         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16376         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16377         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16378         include <libintl.h>.
16379         (fake_locale): Remove variable.
16380         (gettext, dgettext, dcgettext): Remove functions.
16381         (main): Instead of setting a fake locale, set a real locale. Call
16382         textdomain and bindtextdomain.
16383         * modules/quotearg-tests (Files): Add the new files.
16384         (Depends-on): Add gettext, setenv, unsetenv.
16385         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16386         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16387         Augment TESTS_ENVIRONMENT.
16388
16389 2009-01-25  Bruno Haible  <bruno@clisp.org>
16390
16391         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16392         fr_FR.ISO8859-1 locale on MacOS X.
16393         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16394         ja_JP.eucJP locale on MacOS X.
16395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16396         zh_CN.GB18030 locale on MacOS X.
16397
16398 2009-01-25  Bruno Haible  <bruno@clisp.org>
16399
16400         Avoid link errors on MacOS X 10.3.
16401         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16402         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16403
16404 2009-01-25  Bruno Haible  <bruno@clisp.org>
16405
16406         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16407         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16408         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16409         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16410         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16411         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16412         posix_spawnattr_init, posix_spawnattr_setsigmask,
16413         posix_spawnattr_setflags, posix_spawnattr_destroy.
16414
16415         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16416         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16417         * modules/execute (Files): Remove m4/posix_spawn.m4.
16418         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16419         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16420         posix_spawnattr_init, posix_spawnattr_setsigmask,
16421         posix_spawnattr_setflags, posix_spawnattr_destroy.
16422
16423 2009-01-25  Bruno Haible  <bruno@clisp.org>
16424
16425         * lib/glthread/threadlib.c: Include <stdlib.h>.
16426
16427 2009-01-25  Bruno Haible  <bruno@clisp.org>
16428
16429         * lib/glthread/threadlib.c (dummy): New declaration.
16430
16431 2009-01-25  Bruno Haible  <bruno@clisp.org>
16432
16433         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16434         multibyte characters also for the GB18030 encoding. Don't crash when
16435         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16436
16437 2009-01-25  Bruno Haible  <bruno@clisp.org>
16438
16439         Avoid redefining 'struct random_data' on OSF/1 5.1.
16440         * lib/stdlib.in.h: Include <random.h> if it exists.
16441         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16442         HAVE_RANDOM_H. Include <random.h> when testing whether
16443         'struct random_data' exists.
16444         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16445
16446 2009-01-25  Bruno Haible  <bruno@clisp.org>
16447
16448         Don't install charset.alias on MacOS X >= 10.3.
16449         * lib/localcharset.c (DARWIN7): New macro.
16450         (get_charset_aliases): Hardcode the result for Darwin7.
16451         * modules/localcharset (install-exec-local): Don't install
16452         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16453
16454 2009-01-25  Bruno Haible  <bruno@clisp.org>
16455
16456         Don't install charset.alias on mingw and Cygwin.
16457         * modules/localcharset (install-exec-local): Don't install
16458         charset.alias on mingw and Cygwin, if the file does not yet exist.
16459         The result for these platforms is hardcoded in localcharset.c.
16460
16461 2009-01-25  Bruno Haible  <bruno@clisp.org>
16462
16463         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16464         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16465         before requiring AC_USE_SYSTEM_EXTENSIONS.
16466
16467 2009-01-25  Jim Meyering  <meyering@redhat.com>
16468
16469         c-strtod: avoid warnings
16470         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16471         "assignment discards qualifiers from pointer target type" warnings.
16472
16473 2009-01-24  Bruno Haible  <bruno@clisp.org>
16474
16475         Add support for non-UTF-8 locales on MacOS X.
16476         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16477         canonical encodings. For Darwin 7 and newer, don't map traditional
16478         encodings to UTF-8.
16479         Reported by Vincent Lefevre <vincent@vinc17.org>
16480         at <http://savannah.gnu.org/bugs/?25235>.
16481
16482 2009-01-24  Bruno Haible  <bruno@clisp.org>
16483
16484         * doc/gnulib.texi (Obsolete modules): New section.
16485         Reported by Mike Frysinger <vapier@gentoo.org>.
16486
16487 2009-01-24  Bruno Haible  <bruno@clisp.org>
16488
16489         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16490         (%.dvi): New rule.
16491
16492 2009-01-24  Bruno Haible  <bruno@clisp.org>
16493
16494         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16495         Reported by Eric Blake.
16496
16497 2009-01-24  Bruno Haible  <bruno@clisp.org>
16498
16499         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16500         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16501         Reported by Gary V. Vaughan <gary@gnu.org>.
16502
16503 2009-01-24  Bruno Haible  <bruno@clisp.org>
16504
16505         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16506
16507 2009-01-23  Bruno Haible  <bruno@clisp.org>
16508
16509         Make c-strtod, c-strtold usable in libraries.
16510         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16511         (C_STRTOD): Call strdup instead of xstrdup.
16512         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16513         * modules/c-strtold (Depends-on): Likewise.
16514         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16515         * NEWS: Mention the change.
16516         Reported by Michael Gold <mgold@ncf.ca>.
16517
16518 2009-01-23  Jim Meyering  <meyering@redhat.com>
16519
16520         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16521         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16522         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16523
16524 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16525
16526         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16527         GNU CoreUtils.
16528         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16529         * modules/version-etc (Description): Update.
16530
16531 2009-01-22  Bruno Haible  <bruno@clisp.org>
16532
16533         Cache the C locale object.
16534         * lib/c-strtod.c (c_locale_cache): New variable.
16535         (c_locale): New function.
16536         (C_STRTOD): Use it, and don't call freelocale.
16537         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16538         Suggested by Paolo Bonzini.
16539
16540 2009-01-21  Bruno Haible  <bruno@clisp.org>
16541
16542         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16543         conditions other than overflow.
16544
16545 2009-01-21  Bruno Haible  <bruno@clisp.org>
16546
16547         * lib/c-strtod.c: Include errno.h.
16548         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16549         value from STRTOD_L and STRTOD.
16550
16551 2009-01-21  Bruno Haible  <bruno@clisp.org>
16552         and Jim Meyering  <meyering@redhat.com>
16553
16554         nanosleep: skip configure test (fail it) for apple universal builds
16555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16556         universal builds, assume that nanosleep does not work.
16557         * modules/nanosleep (Depends-on): Add multiarch.
16558
16559         mktime: skip configure test (fail it) for apple universal builds
16560         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16561         universal builds, assume that mktime does not work.
16562         * modules/mktime (Depends-on): Add multiarch.
16563
16564 2009-01-21  Eric Blake  <ebb9@byu.net>
16565
16566         multiarch: avoid expand-before-require warning
16567         * modules/multiarch (configure.ac): Require, rather than expand,
16568         gl_MULTIARCH.
16569         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16570         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16571         enforce that all clients require it.  Partial reversion of
16572         2008-12-29 patch.
16573
16574         error: avoid expand-before-require warning
16575         * modules/errno (configure.ac): Require, rather than expand,
16576         gl_HEADER_ERRNO_H.
16577         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16578         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16579         enforce that all clients require it.
16580
16581         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16582         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16583         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16584         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16585
16586 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16587
16588         Revert:
16589         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16590
16591         regex: do not depend on obsolete modules.
16592         * modules/regex: Remove memcmp and memmove.
16593
16594 2009-01-20  Bruno Haible  <bruno@clisp.org>
16595
16596         Make the 'link' module link on Windows NT 4.
16597         * lib/link.c (_WIN32_WINNT): Don't define.
16598         (CreateHardLinkFuncType): New type.
16599         (CreateHardLinkFunc, initialized): New variables.
16600         (initialize): New function.
16601         (link): Invoke CreateHardLink indirectly through the function pointer.
16602
16603 2009-01-20  Bruno Haible  <bruno@clisp.org>
16604
16605         Fix compilation failure on mingw.
16606         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16607
16608 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16609
16610         * doc/c-strtod.texi: Mention a couple of restrictions.
16611
16612 2009-01-20  Jim Meyering  <meyering@redhat.com>
16613
16614         gettimeofday: move more declarations out of functions
16615         * lib/gettimeofday.c: Move extern declarations of tzset and
16616         gmtime out of containing functions.  Prompted by Bruno Haible.
16617
16618 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16619
16620         regex: do not depend on obsolete modules.
16621         * modules/regex: Remove memcmp and memmove.
16622
16623 2009-01-19  Bruno Haible  <bruno@clisp.org>
16624
16625         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16626         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16627         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16628         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16629         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16630
16631 2009-01-19  Bruno Haible  <bruno@clisp.org>
16632
16633         * tests/test-link.c: Include <errno.h>.
16634         (main): Exit with code 77 when a hard link cannot be created due to
16635         the file system.
16636         * tests/test-link.sh: Skip test when a hard link cannot be created due
16637         to the file system.
16638         Suggested by Eric Blake.
16639
16640 2009-01-19  Martin Lambers  <marlam@marlam.de>
16641
16642         * modules/link-tests: New file.
16643         * tests/test-link.sh: New file.
16644         * tests/test-link.c: New file.
16645
16646 2009-01-19  Eric Blake  <ebb9@byu.net>
16647
16648         doc: mention another function added in cygwin 1.7.0
16649         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16650         Another new function in cygwin 1.7.
16651
16652 2009-01-19  Bruno Haible  <bruno@clisp.org>
16653
16654         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16655         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16656         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16657         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16658         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16659         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16660         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16661         * m4/md4.m4 (gl_MD4): Likewise.
16662         * m4/md5.m4 (gl_MD5): Likewise.
16663         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16664         * m4/sha1.m4 (gl_SHA1): Likewise.
16665         * m4/sha256.m4 (gl_SHA256): Likewise.
16666         * m4/sha512.m4 (gl_SHA512): Likewise.
16667
16668 2009-01-19  Bruno Haible  <bruno@clisp.org>
16669
16670         * modules/uniname/uniname-tests (Depends-on): Add progname.
16671         * tests/uniname/test-uninames.c: Include progname.h.
16672         (main): Call set_program_name.
16673
16674         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16675         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16676         (main): Call set_program_name.
16677
16678         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16679         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16680         (main): Call set_program_name.
16681
16682         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16683         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16684         (main): Call set_program_name.
16685
16686         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16687         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16688         (main): Call set_program_name.
16689
16690         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16691         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16692         (main): Call set_program_name.
16693
16694         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16695         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16696         (main): Call set_program_name.
16697
16698         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16699         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16700         (main): Call set_program_name.
16701
16702         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16703         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16704         (main): Call set_program_name.
16705
16706 2009-01-19  Eric Blake  <ebb9@byu.net>
16707
16708         test-unistd: test previous patch
16709         * tests/test-unistd.c: Test *_FILENO macros.
16710
16711         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16712         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16713         Guarantee a definition.
16714         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16715         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16716         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16717         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16718         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16719         Likewise.
16720         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16721         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16722         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16723         Likewise.
16724         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16725         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16726         (STDERR_FILENO): Likewise.
16727         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16728         (STDERR_FILENO): Likewise.
16729         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16730         (STDERR_FILENO): Likewise.
16731         Reported by Elbert Pol.
16732
16733 2009-01-19  Eric Blake  <ebb9@byu.net>
16734
16735         doc: mention more functions added in cygwin 1.7.0
16736         * doc/posix-functions/abort.texi (abort): Update wording related
16737         to cygwin.
16738         * doc/posix-functions/daylight.texi (daylight): Likewise.
16739         * doc/posix-functions/optarg.texi (optarg): Likewise.
16740         * doc/posix-functions/optarg.texi (opterr): Likewise.
16741         * doc/posix-functions/optarg.texi (optind): Likewise.
16742         * doc/posix-functions/optarg.texi (optopt): Likewise.
16743         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16744         worked in 1.5.x, and was withdrawn in 1.7.
16745         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16746         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16747         cygwin versions.
16748         * doc/posix-functions/perror.texi (perror): Likewise.
16749         * doc/posix-functions/printf.texi (printf): Likewise.
16750         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16751         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16752         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16753         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16754         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16755         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16756         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16757         Likewise.
16758         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16759         Likewise.
16760         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16761         this function.
16762         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16763         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16764         Likewise.
16765         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16766         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16767         * doc/posix-functions/confstr.texi (confstr): Likewise.
16768         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16769         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16770         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16771         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16772         * doc/posix-functions/fputws.texi (fputws): Likewise.
16773         * doc/posix-functions/fwide.texi (fwide): Likewise.
16774         * doc/posix-functions/getwc.texi (getwc): Likewise.
16775         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16776         * doc/posix-functions/putwc.texi (putwc): Likewise.
16777         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16778         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16779         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16780         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16781         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16782         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16783         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16784         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16785         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16786         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16787         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16788
16789 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16790
16791         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16792         * lib/ioctl.c: Include <sys/ioctl.h>.
16793
16794 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16795
16796         * modules/getdate-tests (Depends-on): Add progname.
16797         * tests/test-getdate.c: Use progname module, to avoid link errors
16798         on non-glibc systems.
16799
16800 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16801
16802         * modules/filenamecat-tests (Depends-on): Add progname.
16803         * modules/fstrcmp-tests (Depends-on): Likewise.
16804
16805         * tests/test-filenamecat.c: Use progname module, to avoid link
16806         errors on non-glibc systems.
16807         * tests/test-fstrcmp.c: Likewise.
16808
16809 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16810
16811         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16812         * lib/gettimeofday.c: Move extern declaration out of function.
16813
16814 2009-01-18  Bruno Haible  <bruno@clisp.org>
16815
16816         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16817         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16818         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16819
16820 2009-01-18  Bruno Haible  <bruno@clisp.org>
16821
16822         * lib/strftime.c (MEMPCPY): Remove unused macro.
16823         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16824
16825 2009-01-18  Martin Lambers  <marlam@marlam.de>
16826
16827         New module 'link'.
16828         * lib/unistd.in.h (link): New declaration.
16829         * lib/link.c: New file.
16830         * m4/link.m4: New file.
16831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16832         HAVE_LINK.
16833         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16834         * modules/link: New file.
16835         * doc/posix-functions/link.texi: Mention the new module.
16836
16837 2009-01-18  Bruno Haible  <bruno@clisp.org>
16838
16839         * tests/test-avltree_list.c (main): Call set_program_name.
16840         * tests/test-avltree_oset.c (main): Likewise.
16841         * tests/test-obstack-printf.c: Include progname.h.
16842         (main): Call set_program_name.
16843         * tests/test-quotearg.c: Include progname.h.
16844         (main): Call set_program_name.
16845         * tests/test-xmemdup0.c: Include progname.h.
16846         (main): Call set_program_name.
16847
16848 2009-01-18  Bruno Haible  <bruno@clisp.org>
16849
16850         New module 'alphasort'.
16851         * lib/dirent.in.h (alphasort): New declaration.
16852         * lib/alphasort.c: New file, from glibc with modifications.
16853         * m4/alphasort.m4: New file.
16854         * modules/alphasort: New file.
16855         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16856         HAVE_ALPHASORT.
16857         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16858         HAVE_ALPHASORT.
16859         * doc/posix-functions/alphasort.texi: Mention the new module and the
16860         portability problems.
16861
16862 2009-01-18  Bruno Haible  <bruno@clisp.org>
16863
16864         New module 'scandir'.
16865         * lib/dirent.in.h (scandir): New declaration.
16866         * lib/scandir.c: New file, from glibc with modifications.
16867         * m4/scandir.m4: New file.
16868         * modules/scandir: New file.
16869         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16870         HAVE_SCANDIR.
16871         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16872         HAVE_SCANDIR.
16873         * doc/posix-functions/scandir.texi: Mention the new module and the
16874         portability problems.
16875
16876 2009-01-17  Bruno Haible  <bruno@clisp.org>
16877
16878         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16879         Update documentation.
16880         (func_remove_suffix): Escape all dots in the suffix. Update
16881         documentation.
16882         (func_filter_filelist): Update documentation.
16883         Reported by Ralf Wildenhues.
16884
16885 2009-01-17  Bruno Haible  <bruno@clisp.org>
16886
16887         * modules/dprintf-posix-tests: New file.
16888         * tests/test-dprintf-posix.sh: New file.
16889         * tests/test-dprintf-posix.c: New file.
16890
16891         New modules 'dprintf', 'dprintf-posix'.
16892         * lib/stdio.in.h (dprintf): New declaration.
16893         * lib/dprintf.c: New file.
16894         * m4/dprintf.m4: New file.
16895         * m4/dprintf-posix.m4: New file.
16896         * modules/dprintf: New file.
16897         * modules/dprintf-posix: New file.
16898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16899         HAVE_DPRINTF, REPLACE_DPRINTF.
16900         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16901         HAVE_DPRINTF, REPLACE_DPRINTF.
16902         * doc/posix-functions/dprintf.texi: Mention the new modules.
16903
16904 2009-01-17  Bruno Haible  <bruno@clisp.org>
16905
16906         * modules/vdprintf-posix-tests: New file.
16907         * tests/test-vdprintf-posix.sh: New file.
16908         * tests/test-vdprintf-posix.c: New file.
16909
16910         New modules 'vdprintf', 'vdprintf-posix'.
16911         * lib/stdio.in.h (vdprintf): New declaration.
16912         * lib/vdprintf.c: New file.
16913         * m4/vdprintf.m4: New file.
16914         * m4/vdprintf-posix.m4: New file.
16915         * modules/vdprintf: New file.
16916         * modules/vdprintf-posix: New file.
16917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16918         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16919         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16920         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16921         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16922
16923 2009-01-17  Bruno Haible  <bruno@clisp.org>
16924
16925         Fix replacement of fopen on mingw.
16926         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16927         mingw.
16928
16929 2009-01-17  Bruno Haible  <bruno@clisp.org>
16930
16931         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16932         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16933
16934 2009-01-17  Bruno Haible  <bruno@clisp.org>
16935
16936         Avoid test-fflush2.sh failure on mingw.
16937         * tests/test-fflush2.c: Include binary-io.h.
16938         (main): Put standard input into binary mode.
16939         * modules/fflush-tests (Depends-on): Add binary-io.
16940
16941 2009-01-17  Bruno Haible  <bruno@clisp.org>
16942
16943         * lib/wchar.in.h: In another particular situation, include only the
16944         system's <wchar.h> file.
16945         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16946         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16947         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16948
16949 2009-01-17  Bruno Haible  <bruno@clisp.org>
16950
16951         Support for stripping executables in --enable-relocatable.
16952         * build-aux/install-reloc: Expect one more argument, or an environment
16953         variable RELOC_STRIP_PROG. If set, strip the destination program and
16954         its wrapper.
16955         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16956         RELOC_STRIP_PROG.
16957         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16958         to set RELOCATABLE_STRIP.
16959         * NEWS: Mention the new Makefile requirement.
16960
16961 2009-01-17  Bruno Haible  <bruno@clisp.org>
16962
16963         * build-aux/install-reloc: Remove debugging information left over by
16964         C compiler on MacOS X.
16965
16966 2009-01-17  Bruno Haible  <bruno@clisp.org>
16967
16968         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16969         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16970         _NSGetExecutablePath.
16971
16972 2009-01-16  Jim Meyering  <meyering@redhat.com>
16973
16974         strerror: avoid warnings about discarding "const"
16975         * lib/strerror.c (rpl_strerror): Instead of returning a const
16976         string from each and every "case", use a variable, and add a single
16977         cast after the switch.
16978
16979 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16980
16981         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16982
16983 2009-01-16  Bruno Haible  <bruno@clisp.org>
16984
16985         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16986         array initializer syntax that also works in C++ mode.
16987         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16988
16989 2009-01-16  Jim Meyering  <meyering@redhat.com>
16990
16991         poll: suppress a warning
16992         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16993         to ignore "...unsigned expression < 0 is always false" warnings.
16994
16995 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16996
16997         poll: remove declarations of unused variables
16998         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16999         sockbuf and optlen.
17000
17001 2009-01-15  Bruno Haible  <bruno@clisp.org>
17002
17003         Make fflush-after-ungetc POSIX compliant on BSD systems.
17004         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17005         (clear_ungetc_buffer): Implement also for other systems.
17006         (rpl_fflush): On glibc systems, invoke
17007         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17008         clear_ungetc_buffer after fetching the stream's position, not before.
17009
17010 2009-01-15  Bruno Haible  <bruno@clisp.org>
17011
17012         Make fflush-after-ungetc POSIX compliant on glibc systems.
17013         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17014         after ungetc.
17015         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17016         (rpl_fflush): On glibc systems, simply call the system's fflush
17017         function after clearing the ungetc buffer.
17018         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17019         Instead, lseek only to the end of file, then use the system's fseeko
17020         for the rest. On glibc systems, reset the EOF indicator bit.
17021
17022 2009-01-15  Jim Meyering  <meyering@redhat.com>
17023
17024         openmp.m4: revert quote-adding change, for portability to older autoconf
17025         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17026         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17027         Simon Josefsson noticed the problem when using autoconf-2.61.
17028
17029 2009-01-15  Bruno Haible  <bruno@clisp.org>
17030
17031         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17032         * tests/test-fflush2.c (ASSERT): Always fail.
17033         (main): Add two tests for fflush() after ungetc(), taking into account
17034         the Austin Group's clarification.
17035         Suggested by Eric Blake.
17036
17037 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17038
17039         mktime.m4: remove K&R-style function prototypes
17040         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17041         for the Sun C++ compiler.
17042
17043 2009-01-14  Bruno Haible  <bruno@clisp.org>
17044
17045         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17046         while including <wchar.h>.
17047         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17048         the system's <wchar.h> file.
17049         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17050
17051 2009-01-14  Bruno Haible  <bruno@clisp.org>
17052
17053         * m4/csharp.m4: Don't mention gettext on the serial number line.
17054         * m4/csharpexec.m4: Likewise.
17055         * m4/eaccess.m4: Likewise.
17056         * m4/javaexec.m4: Likewise.
17057         * m4/sig_atomic_t.m4: Likewise.
17058         * m4/tmpdir.m4: Likewise.
17059         * m4/intldir.m4: Bump gettext version.
17060         * m4/lib-ld.m4: Likewise.
17061
17062 2009-01-14  Bruno Haible  <bruno@clisp.org>
17063
17064         * lib/progname.c (set_program_name): Add more comments.
17065         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17066
17067 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17068
17069         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17070         were sys/stat.h does not define it.
17071
17072 2009-01-14  Jim Meyering  <meyering@redhat.com>
17073
17074         many *.m4 files: improve m4 quoting
17075         99% of this change was performed by running the following commands:
17076         git ls-files | grep '\.m4$' | xargs perl -pi \
17077           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17078           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17079           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17080           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17081         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17082         The remainder were to add Copyright dates, increment serial numbers,
17083         undo some changes in comments, exclude m4/intl.m4, and add quotes
17084         around the "1" in ",1" where the unusual spacing prohibited the
17085         above regexps from doing the job.  For more details, see
17086         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17087         * m4/acl.m4: Modified.
17088         * m4/afs.m4: Likewise.
17089         * m4/alloca.m4: Likewise.
17090         * m4/argp.m4: Likewise.
17091         * m4/argz.m4: Likewise.
17092         * m4/atexit.m4: Likewise.
17093         * m4/bison-i18n.m4: Likewise.
17094         * m4/bison.m4: Likewise.
17095         * m4/byteswap.m4: Likewise.
17096         * m4/c-stack.m4: Likewise.
17097         * m4/c-strtod.m4: Likewise.
17098         * m4/calloc.m4: Likewise.
17099         * m4/canonicalize-lgpl.m4: Likewise.
17100         * m4/chown.m4: Likewise.
17101         * m4/clock_time.m4: Likewise.
17102         * m4/codeset.m4: Likewise.
17103         * m4/copy-file.m4: Likewise.
17104         * m4/csharp.m4: Likewise.
17105         * m4/csharpcomp.m4: Likewise.
17106         * m4/csharpexec.m4: Likewise.
17107         * m4/d-ino.m4: Likewise.
17108         * m4/d-type.m4: Likewise.
17109         * m4/dirfd.m4: Likewise.
17110         * m4/double-slash-root.m4: Likewise.
17111         * m4/eaccess.m4: Likewise.
17112         * m4/eealloc.m4: Likewise.
17113         * m4/environ.m4: Likewise.
17114         * m4/errno_h.m4: Likewise.
17115         * m4/euidaccess.m4: Likewise.
17116         * m4/execute.m4: Likewise.
17117         * m4/fatal-signal.m4: Likewise.
17118         * m4/fchdir.m4: Likewise.
17119         * m4/fcntl_h.m4: Likewise.
17120         * m4/fileblocks.m4: Likewise.
17121         * m4/filenamecat.m4: Likewise.
17122         * m4/findprog.m4: Likewise.
17123         * m4/flexmember.m4: Likewise.
17124         * m4/fnmatch.m4: Likewise.
17125         * m4/fopen.m4: Likewise.
17126         * m4/fpending.m4: Likewise.
17127         * m4/fprintf-posix.m4: Likewise.
17128         * m4/free.m4: Likewise.
17129         * m4/frexp.m4: Likewise.
17130         * m4/frexpl.m4: Likewise.
17131         * m4/fsusage.m4: Likewise.
17132         * m4/ftruncate.m4: Likewise.
17133         * m4/gc-camellia.m4: Likewise.
17134         * m4/gc-random.m4: Likewise.
17135         * m4/gc.m4: Likewise.
17136         * m4/getaddrinfo.m4: Likewise.
17137         * m4/getcwd-abort-bug.m4: Likewise.
17138         * m4/getcwd-path-max.m4: Likewise.
17139         * m4/getdate.m4: Likewise.
17140         * m4/getdomainname.m4: Likewise.
17141         * m4/getgroups.m4: Likewise.
17142         * m4/gethostname.m4: Likewise.
17143         * m4/gethrxtime.m4: Likewise.
17144         * m4/getline.m4: Likewise.
17145         * m4/getloadavg.m4: Likewise.
17146         * m4/getndelim2.m4: Likewise.
17147         * m4/getpass.m4: Likewise.
17148         * m4/gettext.m4: Likewise.
17149         * m4/gettime.m4: Likewise.
17150         * m4/gettimeofday.m4: Likewise.
17151         * m4/gnulib-common.m4: Likewise.
17152         * m4/group-member.m4: Likewise.
17153         * m4/host-os.m4: Likewise.
17154         * m4/iconv.m4: Likewise.
17155         * m4/iconv_open.m4: Likewise.
17156         * m4/inet_ntop.m4: Likewise.
17157         * m4/inet_pton.m4: Likewise.
17158         * m4/inline.m4: Likewise.
17159         * m4/intldir.m4: Likewise.
17160         * m4/intlmacosx.m4: Likewise.
17161         * m4/intmax.m4: Likewise.
17162         * m4/intmax_t.m4: Likewise.
17163         * m4/inttypes.m4: Likewise.
17164         * m4/inttypes_h.m4: Likewise.
17165         * m4/inttypes-pri.m4: Likewise.
17166         * m4/isapipe.m4: Likewise.
17167         * m4/isnand.m4: Likewise.
17168         * m4/isnanf.m4: Likewise.
17169         * m4/isnanl.m4: Likewise.
17170         * m4/javacomp.m4: Likewise.
17171         * m4/javaexec.m4: Likewise.
17172         * m4/jm-winsz1.m4: Likewise.
17173         * m4/jm-winsz2.m4: Likewise.
17174         * m4/lchown.m4: Likewise.
17175         * m4/lcmessage.m4: Likewise.
17176         * m4/ldexpl.m4: Likewise.
17177         * m4/lib-ld.m4: Likewise.
17178         * m4/lib-link.m4: Likewise.
17179         * m4/libsigsegv.m4: Likewise.
17180         * m4/link-follow.m4: Likewise.
17181         * m4/localcharset.m4: Likewise.
17182         * m4/locale-fr.m4: Likewise.
17183         * m4/locale-ja.m4: Likewise.
17184         * m4/locale-tr.m4: Likewise.
17185         * m4/locale-zh.m4: Likewise.
17186         * m4/lock.m4: Likewise.
17187         * m4/longlong.m4: Likewise.
17188         * m4/ls-mntd-fs.m4: Likewise.
17189         * m4/lstat.m4: Likewise.
17190         * m4/malloc.m4: Likewise.
17191         * m4/mathl.m4: Likewise.
17192         * m4/mbrtowc.m4: Likewise.
17193         * m4/mbstate_t.m4: Likewise.
17194         * m4/mbswidth.m4: Likewise.
17195         * m4/memchr.m4: Likewise.
17196         * m4/memcmp.m4: Likewise.
17197         * m4/memcpy.m4: Likewise.
17198         * m4/memmem.m4: Likewise.
17199         * m4/memmove.m4: Likewise.
17200         * m4/mempcpy.m4: Likewise.
17201         * m4/memrchr.m4: Likewise.
17202         * m4/memset.m4: Likewise.
17203         * m4/minmax.m4: Likewise.
17204         * m4/mkdir-slash.m4: Likewise.
17205         * m4/mkdtemp.m4: Likewise.
17206         * m4/mktime.m4: Likewise.
17207         * m4/mmap-anon.m4: Likewise.
17208         * m4/mountlist.m4: Likewise.
17209         * m4/nanosleep.m4: Likewise.
17210         * m4/nls.m4: Likewise.
17211         * m4/nocrash.m4: Likewise.
17212         * m4/open.m4: Likewise.
17213         * m4/openat.m4: Likewise.
17214         * m4/openmp.m4: Likewise.
17215         * m4/pathmax.m4: Likewise.
17216         * m4/perl.m4: Likewise.
17217         * m4/physmem.m4: Likewise.
17218         * m4/pipe.m4: Likewise.
17219         * m4/po.m4: Likewise.
17220         * m4/poll.m4: Likewise.
17221         * m4/posixtm.m4: Likewise.
17222         * m4/posixver.m4: Likewise.
17223         * m4/printf-frexp.m4: Likewise.
17224         * m4/printf-frexpl.m4: Likewise.
17225         * m4/printf-posix.m4: Likewise.
17226         * m4/printf-posix-rpl.m4: Likewise.
17227         * m4/printf.m4: Likewise.
17228         * m4/progtest.m4: Likewise.
17229         * m4/putenv.m4: Likewise.
17230         * m4/readline.m4: Likewise.
17231         * m4/readlink.m4: Likewise.
17232         * m4/readutmp.m4: Likewise.
17233         * m4/realloc.m4: Likewise.
17234         * m4/regex.m4: Likewise.
17235         * m4/relocatable.m4: Likewise.
17236         * m4/relocatable-lib.m4: Likewise.
17237         * m4/rename-dest-slash.m4: Likewise.
17238         * m4/rename.m4: Likewise.
17239         * m4/rmdir-errno.m4: Likewise.
17240         * m4/rmdir.m4: Likewise.
17241         * m4/roundf.m4: Likewise.
17242         * m4/roundl.m4: Likewise.
17243         * m4/rpmatch.m4: Likewise.
17244         * m4/save-cwd.m4: Likewise.
17245         * m4/selinux-selinux-h.m4: Likewise.
17246         * m4/setenv.m4: Likewise.
17247         * m4/settime.m4: Likewise.
17248         * m4/sig2str.m4: Likewise.
17249         * m4/sig_atomic_t.m4: Likewise.
17250         * m4/signalblocking.m4: Likewise.
17251         * m4/signbit.m4: Likewise.
17252         * m4/sigpipe.m4: Likewise.
17253         * m4/sockets.m4: Likewise.
17254         * m4/sockpfaf.m4: Likewise.
17255         * m4/st_dm_mode.m4: Likewise.
17256         * m4/stat-time.m4: Likewise.
17257         * m4/stdbool.m4: Likewise.
17258         * m4/stdint.m4: Likewise.
17259         * m4/stdint_h.m4: Likewise.
17260         * m4/stpcpy.m4: Likewise.
17261         * m4/stpncpy.m4: Likewise.
17262         * m4/strcase.m4: Likewise.
17263         * m4/strchrnul.m4: Likewise.
17264         * m4/strcspn.m4: Likewise.
17265         * m4/strdup.m4: Likewise.
17266         * m4/strftime.m4: Likewise.
17267         * m4/strndup.m4: Likewise.
17268         * m4/strnlen.m4: Likewise.
17269         * m4/strpbrk.m4: Likewise.
17270         * m4/strptime.m4: Likewise.
17271         * m4/strsep.m4: Likewise.
17272         * m4/strtod.m4: Likewise.
17273         * m4/strtoimax.m4: Likewise.
17274         * m4/strtok_r.m4: Likewise.
17275         * m4/strtol.m4: Likewise.
17276         * m4/strtoll.m4: Likewise.
17277         * m4/strtoul.m4: Likewise.
17278         * m4/strtoull.m4: Likewise.
17279         * m4/strtoumax.m4: Likewise.
17280         * m4/strverscmp.m4: Likewise.
17281         * m4/threadlib.m4: Likewise.
17282         * m4/timegm.m4: Likewise.
17283         * m4/tm_gmtoff.m4: Likewise.
17284         * m4/tmpdir.m4: Likewise.
17285         * m4/tmpfile.m4: Likewise.
17286         * m4/tzset.m4: Likewise.
17287         * m4/uintmax_t.m4: Likewise.
17288         * m4/unlinkdir.m4: Likewise.
17289         * m4/unlocked-io.m4: Likewise.
17290         * m4/uptime.m4: Likewise.
17291         * m4/userspec.m4: Likewise.
17292         * m4/utimbuf.m4: Likewise.
17293         * m4/utime.m4: Likewise.
17294         * m4/utimes-null.m4: Likewise.
17295         * m4/utimes.m4: Likewise.
17296         * m4/vararrays.m4: Likewise.
17297         * m4/vasnprintf.m4: Likewise.
17298         * m4/vfprintf-posix.m4: Likewise.
17299         * m4/vprintf-posix.m4: Likewise.
17300         * m4/wait-process.m4: Likewise.
17301         * m4/wchar_t.m4: Likewise.
17302         * m4/wint_t.m4: Likewise.
17303         * m4/write-any-file.m4: Likewise.
17304         * m4/yield.m4: Likewise.
17305
17306 2009-01-13  Bruno Haible  <bruno@clisp.org>
17307
17308         Avoid test-copy-file.sh failures when ACL support insufficient.
17309         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17310         TESTS_ENVIRONMENT.
17311         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17312         Reported by Jim Meyering.
17313
17314 2009-01-13  Bruno Haible  <bruno@clisp.org>
17315
17316         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17317         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17318         * modules/unistdio/u8-printf-parse (Files): Likewise.
17319         * modules/unistdio/u32-printf-parse (Files): Likewise.
17320         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17321
17322 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17323
17324         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17325         and m4/inttypes_h.m4 too.
17326
17327 2009-01-12  Eric Blake  <ebb9@byu.net>
17328
17329         tests: IRIX 6.2 cc can't compile -0.0 into .data
17330         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17331         rather than at compile-time.
17332         * tests/test-floorl.c (minus_zero): Likewise.
17333         * tests/test-frexpl.c (minus_zero): Likewise.
17334         * tests/test-isnan.c (minus_zerol): Likewise.
17335         * tests/test-isnanl.h (minus_zero): Likewise.
17336         * tests/test-ldexpl.c (minus_zero): Likewise.
17337         * tests/test-roundl.c (minus_zero): Likewise.
17338         * tests/test-signbit.c (minus_zerol): Likewise.
17339         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17340         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17341         * tests/test-truncl.c (minus_zero): Likewise.
17342         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17343         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17344         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17345
17346 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17347
17348         regex: fix glibc bug 9697
17349         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17350         handling.
17351
17352 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17353
17354         regex: fix glibc bug 697
17355         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17356         being NULL also if there are no backreferences.
17357
17358 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17359
17360         regex: merge glibc changes
17361         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17362         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17363         re_string_skip_chars, re_string_reconstruct): Likewise.
17364         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17365
17366 2009-01-07  Jim Meyering  <meyering@redhat.com>
17367
17368         poll: filter through cppi
17369         * lib/poll.c: Indent cpp directives to reflect nesting.
17370
17371 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17372
17373         poll: don't return uninitialized
17374         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17375
17376 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17377
17378         avoid compile failure on AIX 6.1
17379         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17380         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17381
17382 2009-01-04  Jim Meyering  <meyering@redhat.com>
17383
17384         remove duplicate inclusion of <stdio.h>
17385         * tests/test-fprintf-posix.c: Likewise.
17386         * tests/test-printf-posix.c: Likewise.
17387         * tests/test-snprintf-posix.c: Likewise.
17388         * tests/test-sprintf-posix.c: Likewise.
17389         * tests/test-vasprintf-posix.c: Likewise.
17390         * tests/test-vfprintf-posix.c: Likewise.
17391         * tests/test-vprintf-posix.c: Likewise.
17392         * tests/test-vsnprintf-posix.c: Likewise.
17393         * tests/test-vsprintf-posix.c: Likewise.
17394
17395 2009-01-03  Jim Meyering  <meyering@redhat.com>
17396
17397         gnulib-tool: fix sed-based filtering
17398         * gnulib-tool (func_filter_filelist): Remove extra backslash
17399         in sed_fff_filter definition.
17400
17401 2009-01-02  Jim Meyering  <meyering@redhat.com>
17402
17403         strftime: avoid compilation failure on Solaris 2.6
17404         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17405         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17406         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17407         be available.  Reported by Tom G. Christensen.  Details in
17408         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17409
17410 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17411             Bruno Haible  <bruno@clisp.org>
17412
17413         Speed up gnulib-tool by doing more string processing through shell
17414         built-ins.
17415         * gnulib-tool (fast_func_append): New variable.
17416         (func_remove_prefix, func_remove_suffix): New functions.
17417         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17418         (func_filter_filelist): New function.
17419         (func_get_dependencies): Use func_remove_suffix instead of sed.
17420         (func_get_automake_snippet): Use func_filter_filelist instead of a
17421         subshell and sed invocation.
17422
17423 2009-01-01  Bruno Haible  <bruno@clisp.org>
17424
17425         Fix a security bug.
17426         * gnulib-tool (func_import, import, update): Don't allow the characters
17427         '"', '$', '`', '\' in macro arguments that become part of commands that
17428         are evaluated.
17429
17430 2009-01-01  Bruno Haible  <bruno@clisp.org>
17431
17432         * gnulib-tool (func_reset_sigpipe): Add more comments.
17433
17434 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17435
17436         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17437         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17438         already know the answer.
17439
17440 2009-01-01  Jim Meyering  <meyering@redhat.com>
17441
17442         * lib/version-etc.c (version_etc_va): Update copyright year.
17443
17444 2008-12-30  Bruno Haible  <bruno@clisp.org>
17445
17446         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17447         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17448         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17449
17450 2008-12-29  Eric Blake  <ebb9@byu.net>
17451
17452         multiarch: avoid autoconf AC_REQUIRE bug
17453         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17454         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17455         2.63 and older.
17456         Reported by Bruno Haible, and analyzed in
17457         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17458
17459 2008-12-29  Bruno Haible  <bruno@clisp.org>
17460
17461         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17462         files in subdirectories correctly.
17463         Reported by Ralf Wildenhues.
17464
17465 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17466
17467         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17468         rather than 'join FILE -', for Solaris join.
17469
17470 2008-12-29  Bruno Haible  <bruno@clisp.org>
17471
17472         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17473         quoting.
17474         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17475         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17476         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17477         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17478         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17479         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17480         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17481         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17482         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17483         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17484         * m4/nls.m4 (AM_NLS): Likewise.
17485         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17486         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17487         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17488         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17489         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17490         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17491         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17492         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17493         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17494         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17495         * m4/xsize.m4 (gl_XSIZE): Likewise.
17496         Suggested by Jim Meyering.
17497
17498 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17499
17500         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17501         * lib/parse-duration.c: use a switch instead of cascading if's.
17502
17503 2008-12-29  Eric Blake  <ebb9@byu.net>
17504
17505         wchar.h: supply WEOF on Irix 5.3
17506         * lib/wchar.in.h (wint_t): Also supply WEOF.
17507         * lib/wctype.in.h (wint_t): Likewise.
17508         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17509         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17510         Reported by Tom G. Christensen.
17511
17512 2008-12-26  Bruno Haible  <bruno@clisp.org>
17513
17514         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17515         i486, i586, i686.
17516
17517 2008-12-26  Bruno Haible  <bruno@clisp.org>
17518
17519         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17520
17521 2008-12-26  Bruno Haible  <bruno@clisp.org>
17522
17523         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17524         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17525         not __STDC_CONSTANT_MACROS.
17526         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17527
17528 2008-12-25  Bruno Haible  <bruno@clisp.org>
17529
17530         Add support for universal builds to vasnprintf.
17531         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17532         universal builds, guess no.
17533         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17534         * modules/vasprintf-posix (Depends-on): Likewise.
17535         * modules/fprintf-posix (Depends-on): Likewise.
17536         * modules/vfprintf-posix (Depends-on): Likewise.
17537         * modules/snprintf-posix (Depends-on): Likewise.
17538         * modules/vsnprintf-posix (Depends-on): Likewise.
17539         * modules/sprintf-posix (Depends-on): Likewise.
17540         * modules/vsprintf-posix (Depends-on): Likewise.
17541         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17542         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17543         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17544         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17545         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17546         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17547         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17548
17549         Add support for universal builds to <inttypes.h>.
17550         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17551         _SCNu64_PREFIX): In Apple
17552         universal builds, define directly, using _LP64.
17553         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17554         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17555         * modules/inttypes (Depends-on): Add multiarch.
17556         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17557
17558         Add support for universal builds to <stdint.h>.
17559         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17560         universal builds, define directly, using _LP64.
17561         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17562         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17563         and size_t.
17564         * modules/stdint (Depends-on): Add multiarch.
17565         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17566
17567         New module 'multiarch'.
17568         * modules/multiarch: New file.
17569         * m4/multiarch.m4: New file.
17570
17571 2008-12-25  Bruno Haible  <bruno@clisp.org>
17572
17573         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17574
17575 2008-12-25  Bruno Haible  <bruno@clisp.org>
17576
17577         * modules/btowc (License): Relicense under LGPLv2+.
17578         * modules/mbsinit (License): Likewise.
17579         * modules/mbrtowc (License): Likewise.
17580         * modules/wcrtomb (License): Likewise.
17581         * modules/streq (License): Likewise.
17582         Reported by David Lutterkort <lutter@redhat.com>.
17583
17584 2008-12-23  Bruno Haible  <bruno@clisp.org>
17585
17586         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17587
17588 2008-12-23  Bruno Haible  <bruno@clisp.org>
17589
17590         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17591         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17592         GETADDRINFO_LIB, not in LIBS.
17593         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17594         * modules/canon-host (Link): Likewise.
17595         * NEWS: Mention the change.
17596         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17597         GETADDRINFO_LIB.
17598
17599 2008-12-22  Bruno Haible  <bruno@clisp.org>
17600
17601         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17602         * doc/posix-functions/iswalpha_l.texi: Likewise.
17603         * doc/posix-functions/iswblank_l.texi: Likewise.
17604         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17605         * doc/posix-functions/iswctype_l.texi: Likewise.
17606         * doc/posix-functions/iswdigit_l.texi: Likewise.
17607         * doc/posix-functions/iswgraph_l.texi: Likewise.
17608         * doc/posix-functions/iswlower_l.texi: Likewise.
17609         * doc/posix-functions/iswprint_l.texi: Likewise.
17610         * doc/posix-functions/iswpunct_l.texi: Likewise.
17611         * doc/posix-functions/iswspace_l.texi: Likewise.
17612         * doc/posix-functions/iswupper_l.texi: Likewise.
17613         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17614         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17615         * doc/posix-functions/open_wmemstream.texi: Likewise.
17616         * doc/posix-functions/swscanf.texi: Likewise.
17617         * doc/posix-functions/towctrans_l.texi: Likewise.
17618         * doc/posix-functions/towlower.texi: Likewise.
17619         * doc/posix-functions/towlower_l.texi: Likewise.
17620         * doc/posix-functions/towupper.texi: Likewise.
17621         * doc/posix-functions/towupper_l.texi: Likewise.
17622         * doc/posix-functions/vfwprintf.texi: Likewise.
17623         * doc/posix-functions/vfwscanf.texi: Likewise.
17624         * doc/posix-functions/vswscanf.texi: Likewise.
17625         * doc/posix-functions/vwprintf.texi: Likewise.
17626         * doc/posix-functions/vwscanf.texi: Likewise.
17627         * doc/posix-functions/wcpcpy.texi: Likewise.
17628         * doc/posix-functions/wcpncpy.texi: Likewise.
17629         * doc/posix-functions/wcscasecmp.texi: Likewise.
17630         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17631         * doc/posix-functions/wcscoll_l.texi: Likewise.
17632         * doc/posix-functions/wcsdup.texi: Likewise.
17633         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17634         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17635         * doc/posix-functions/wcsnlen.texi: Likewise.
17636         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17637         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17638         * doc/posix-functions/wctrans_l.texi: Likewise.
17639         * doc/posix-functions/wctype_l.texi: Likewise.
17640         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17641         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17642         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17643         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17644         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17645         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17646         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17647         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17648         * doc/glibc-functions/wcschrnul.texi: Likewise.
17649         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17650         * doc/glibc-functions/wcstod_l.texi: Likewise.
17651         * doc/glibc-functions/wcstof_l.texi: Likewise.
17652         * doc/glibc-functions/wcstol_l.texi: Likewise.
17653         * doc/glibc-functions/wcstold_l.texi: Likewise.
17654         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17655         * doc/glibc-functions/wcstoq.texi: Likewise.
17656         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17657         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17658         * doc/glibc-functions/wcstouq.texi: Likewise.
17659         * doc/glibc-functions/wmempcpy.texi: Likewise.
17660
17661 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17662             Eric Blake  <ebb9@byu.net>
17663             Paolo Bonzini  <bonzini@gnu.org>
17664             Bruno Haible  <bruno@clisp.org>
17665
17666         Make c-stack work on Haiku.
17667         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17668         (c_stack_action): Use SA_ONSTACK flag.
17669
17670 2008-12-22  Bruno Haible  <bruno@clisp.org>
17671
17672         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17673
17674 2008-12-22  Bruno Haible  <bruno@clisp.org>
17675
17676         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17677         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17678         being overridden.
17679         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17680         New macros.
17681         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17683         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17684         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17685
17686 2008-12-22  Bruno Haible  <bruno@clisp.org>
17687
17688         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17689         from test code.
17690
17691 2008-12-22  Eric Blake  <ebb9@byu.net>
17692
17693         Avoid gcc warnings on cygwin.
17694         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17695         Avoid unused variable.
17696         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17697         Likewise.
17698
17699 2008-12-22  Bruno Haible  <bruno@clisp.org>
17700
17701         Remove HAVE_MBRTOWC conditionals.
17702         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17703         (mbscasecmp): Assume mbrtowc function.
17704         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17705         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17706         * lib/mbschr.c: Include mbuiter.h unconditionally.
17707         (mbschr): Assume mbrtowc function.
17708         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17709         (mbscspn): Assume mbrtowc function.
17710         * lib/mbslen.c: Include mbuiter.h unconditionally.
17711         (mbslen): Assume mbrtowc function.
17712         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17713         (mbsncasecmp): Assume mbrtowc function.
17714         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17715         (mbsnlen): Assume mbrtowc function.
17716         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17717         (mbspbrk): Assume mbrtowc function.
17718         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17719         (mbspcasecmp): Assume mbrtowc function.
17720         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17721         (mbsrchr): Assume mbrtowc function.
17722         * lib/mbssep.c: Include mbuiter.h unconditionally.
17723         (mbssep): Assume mbrtowc function.
17724         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17725         (mbsspn): Assume mbrtowc function.
17726         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17727         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17728         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17729         (mbstok_r): Assume mbrtowc function.
17730         * lib/propername.c: Include mbuiter.h unconditionally.
17731         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17732         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17733         (trim2): Assume mbrtowc function.
17734         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17735         (mbsnwidth): Assume mbrtowc function.
17736         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17737         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17738         fallback definitions.
17739         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17740
17741 2008-12-22  Bruno Haible  <bruno@clisp.org>
17742
17743         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17744
17745 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17746
17747         * modules/regex: Request emulations for the mb*/wc* functions we need.
17748         * m4/regex.m4: Don't look for those functions here.
17749         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17750
17751 2008-12-22  Bruno Haible  <bruno@clisp.org>
17752
17753         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17754
17755 2008-12-21  Bruno Haible  <bruno@clisp.org>
17756
17757         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17758         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17759         (Include): Remove conditionalization.
17760         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17761         (Include): Remove conditionalization.
17762         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17763         (Include): Remove conditionalization.
17764         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17765         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17766         * NEWS: Mention the change.
17767         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17768         via Sergey Poznyakoff <gray@gnu.org.ua>.
17769
17770 2008-12-21  Bruno Haible  <bruno@clisp.org>
17771
17772         * MODULES.html.sh (Extended multibyte and wide character utilities
17773         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17774         wcrtomb, wcsrtombs.
17775         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17776         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17777         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17778         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17779
17780 2008-12-21  Bruno Haible  <bruno@clisp.org>
17781
17782         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17783
17784 2008-12-21  Bruno Haible  <bruno@clisp.org>
17785
17786         * modules/wcsnrtombs-tests: New file.
17787         * tests/test-wcsnrtombs1.sh: New file.
17788         * tests/test-wcsnrtombs2.sh: New file.
17789         * tests/test-wcsnrtombs3.sh: New file.
17790         * tests/test-wcsnrtombs4.sh: New file.
17791         * tests/test-wcsnrtombs.c: New file.
17792
17793         New module 'wcsnrtombs'.
17794         * lib/wchar.in.h (wcsnrtombs): New declaration.
17795         * lib/wcsnrtombs.c: New file.
17796         * lib/wcsrtombs-state.c: New file.
17797         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17798         (internal_state): Remove variable.
17799         * m4/wcsnrtombs.m4: New file.
17800         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17801         compilation units.
17802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17803         HAVE_WCSNRTOMBS.
17804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17805         HAVE_WCSNRTOMBS.
17806         * modules/wcsnrtombs: New file.
17807         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17808         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17809
17810 2008-12-21  Bruno Haible  <bruno@clisp.org>
17811
17812         * modules/wcsrtombs-tests: New file.
17813         * tests/test-wcsrtombs1.sh: New file.
17814         * tests/test-wcsrtombs2.sh: New file.
17815         * tests/test-wcsrtombs3.sh: New file.
17816         * tests/test-wcsrtombs4.sh: New file.
17817         * tests/test-wcsrtombs.c: New file.
17818
17819         New module 'wcsrtombs'.
17820         * lib/wchar.in.h (wcsrtombs): New declaration.
17821         * lib/wcsrtombs.c: New file.
17822         * m4/wcsrtombs.m4: New file.
17823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17824         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17826         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17827         * modules/wcsrtombs: New file.
17828         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17829         bugs.
17830
17831 2008-12-21  Bruno Haible  <bruno@clisp.org>
17832
17833         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17834         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17835         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17836         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17837         if not correct.
17838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17839         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17840         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17841         m4/locale-zh.m4, m4/codeset.m4.
17842         * doc/posix-functions/wcrtomb.texi: Document the bug.
17843
17844 2008-12-21  Bruno Haible  <bruno@clisp.org>
17845
17846         Work around a btowc() bug on IRIX 6.5.
17847         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17848         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17849         REPLACE_WTOBC if not.
17850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17851         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17852         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17853
17854 2008-12-21  Bruno Haible  <bruno@clisp.org>
17855
17856         * modules/wcrtomb-tests: New file.
17857         * tests/test-wcrtomb.sh: New file.
17858         * tests/test-wcrtomb.c: New file.
17859
17860         New module 'wcrtomb'.
17861         * lib/wchar.in.h (wcrtomb): New declaration.
17862         * lib/wcrtomb.c: New file.
17863         * m4/wcrtomb.m4: New file.
17864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17865         HAVE_WCRTOMB.
17866         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17867         HAVE_WCRTOMB.
17868         * modules/wcrtomb: New file.
17869         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17870
17871 2008-12-21  Bruno Haible  <bruno@clisp.org>
17872
17873         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17874         * modules/mbsrtowcs (Files): Likewise.
17875         * modules/wctob (Files): Likewise.
17876         * modules/c-strcase-tests (Files): Likewise.
17877         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17878         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17879         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17880         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17881         * modules/vasnprintf-posix-tests (Files): Likewise.
17882
17883 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17884
17885         gitlog-to-changelog: pass all command-line arguments to git-log
17886         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17887         it is sometimes convenient to filter the commits in various ways.
17888         gitlog-to-changelog only allows --since to specify a start date,
17889         but git-log itself supports many other filtering mechanisms.
17890         At the moment, I want to filter by branch name.  Rather than
17891         adding a --branch option to gitlog-to-changelog, it seems more
17892         flexible to simply pass all options directly to git-log and let
17893         git do the work.  Notice that this effectively makes --since a
17894         redundant option for gitlog-to-changelog, but removing it would
17895         require current usage to change since calls would then require
17896         an additional '--'.
17897
17898 2008-12-21  Bruno Haible  <bruno@clisp.org>
17899
17900         * modules/mbsnrtowcs-tests: New file.
17901         * tests/test-mbsnrtowcs1.sh: New file.
17902         * tests/test-mbsnrtowcs2.sh: New file.
17903         * tests/test-mbsnrtowcs3.sh: New file.
17904         * tests/test-mbsnrtowcs4.sh: New file.
17905         * tests/test-mbsnrtowcs.c: New file.
17906
17907         New module 'mbsnrtowcs'.
17908         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17909         * lib/mbsnrtowcs.c: New file.
17910         * lib/mbsrtowcs-state.c: New file.
17911         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17912         (internal_state): Remove variable.
17913         * m4/mbsnrtowcs.m4: New file.
17914         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17915         compilation units.
17916         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17917         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17918         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17919         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17920         * modules/mbsnrtowcs: New file.
17921         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17922         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17923         portability problem.
17924
17925 2008-12-21  Bruno Haible  <bruno@clisp.org>
17926
17927         Work around mbsrtowcs bug.
17928         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17929         (gl_FUNC_MBSRTOWCS): Invoke it.
17930         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17931         m4/locale-zh.m4.
17932         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17933
17934 2008-12-21  Bruno Haible  <bruno@clisp.org>
17935
17936         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17937
17938 2008-12-21  Bruno Haible  <bruno@clisp.org>
17939
17940         Update doc for AIX.
17941         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17942         16-bit wchar_t type.
17943         * doc/posix-functions/btowc.texi: Likewise.
17944         * doc/posix-functions/fgetwc.texi: Likewise.
17945         * doc/posix-functions/fgetws.texi: Likewise.
17946         * doc/posix-functions/fputwc.texi: Likewise.
17947         * doc/posix-functions/fputws.texi: Likewise.
17948         * doc/posix-functions/fwide.texi: Likewise.
17949         * doc/posix-functions/fwprintf.texi: Likewise.
17950         * doc/posix-functions/fwscanf.texi: Likewise.
17951         * doc/posix-functions/getwchar.texi: Likewise.
17952         * doc/posix-functions/getwc.texi: Likewise.
17953         * doc/posix-functions/iswalnum.texi: Likewise.
17954         * doc/posix-functions/iswalpha.texi: Likewise.
17955         * doc/posix-functions/iswblank.texi: Likewise.
17956         * doc/posix-functions/iswcntrl.texi: Likewise.
17957         * doc/posix-functions/iswctype.texi: Likewise.
17958         * doc/posix-functions/iswdigit.texi: Likewise.
17959         * doc/posix-functions/iswgraph.texi: Likewise.
17960         * doc/posix-functions/iswlower.texi: Likewise.
17961         * doc/posix-functions/iswprint.texi: Likewise.
17962         * doc/posix-functions/iswpunct.texi: Likewise.
17963         * doc/posix-functions/iswspace.texi: Likewise.
17964         * doc/posix-functions/iswupper.texi: Likewise.
17965         * doc/posix-functions/iswxdigit.texi: Likewise.
17966         * doc/posix-functions/mbrtowc.texi: Likewise.
17967         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17968         * doc/posix-functions/mbstowcs.texi: Likewise.
17969         * doc/posix-functions/mbtowc.texi: Likewise.
17970         * doc/posix-functions/putwchar.texi: Likewise.
17971         * doc/posix-functions/putwc.texi: Likewise.
17972         * doc/posix-functions/swprintf.texi: Likewise.
17973         * doc/posix-functions/tolower.texi: Likewise.
17974         * doc/posix-functions/toupper.texi: Likewise.
17975         * doc/posix-functions/towctrans.texi: Likewise.
17976         * doc/posix-functions/ungetwc.texi: Likewise.
17977         * doc/posix-functions/vswprintf.texi: Likewise.
17978         * doc/posix-functions/wcrtomb.texi: Likewise.
17979         * doc/posix-functions/wcscat.texi: Likewise.
17980         * doc/posix-functions/wcschr.texi: Likewise.
17981         * doc/posix-functions/wcscmp.texi: Likewise.
17982         * doc/posix-functions/wcscoll.texi: Likewise.
17983         * doc/posix-functions/wcscpy.texi: Likewise.
17984         * doc/posix-functions/wcscspn.texi: Likewise.
17985         * doc/posix-functions/wcsftime.texi: Likewise.
17986         * doc/posix-functions/wcslen.texi: Likewise.
17987         * doc/posix-functions/wcsncat.texi: Likewise.
17988         * doc/posix-functions/wcsncmp.texi: Likewise.
17989         * doc/posix-functions/wcsncpy.texi: Likewise.
17990         * doc/posix-functions/wcspbrk.texi: Likewise.
17991         * doc/posix-functions/wcsrchr.texi: Likewise.
17992         * doc/posix-functions/wcsrtombs.texi: Likewise.
17993         * doc/posix-functions/wcsspn.texi: Likewise.
17994         * doc/posix-functions/wcsstr.texi: Likewise.
17995         * doc/posix-functions/wcstod.texi: Likewise.
17996         * doc/posix-functions/wcstof.texi: Likewise.
17997         * doc/posix-functions/wcstoimax.texi: Likewise.
17998         * doc/posix-functions/wcstok.texi: Likewise.
17999         * doc/posix-functions/wcstold.texi: Likewise.
18000         * doc/posix-functions/wcstoll.texi: Likewise.
18001         * doc/posix-functions/wcstol.texi: Likewise.
18002         * doc/posix-functions/wcstombs.texi: Likewise.
18003         * doc/posix-functions/wcstoull.texi: Likewise.
18004         * doc/posix-functions/wcstoul.texi: Likewise.
18005         * doc/posix-functions/wcstoumax.texi: Likewise.
18006         * doc/posix-functions/wcswidth.texi: Likewise.
18007         * doc/posix-functions/wcsxfrm.texi: Likewise.
18008         * doc/posix-functions/wctob.texi: Likewise.
18009         * doc/posix-functions/wctomb.texi: Likewise.
18010         * doc/posix-functions/wctrans.texi: Likewise.
18011         * doc/posix-functions/wctype.texi: Likewise.
18012         * doc/posix-functions/wcwidth.texi: Likewise.
18013         * doc/posix-functions/wmemchr.texi: Likewise.
18014         * doc/posix-functions/wmemcmp.texi: Likewise.
18015         * doc/posix-functions/wmemcpy.texi: Likewise.
18016         * doc/posix-functions/wmemmove.texi: Likewise.
18017         * doc/posix-functions/wmemset.texi: Likewise.
18018         * doc/posix-functions/wprintf.texi: Likewise.
18019         * doc/posix-functions/wscanf.texi: Likewise.
18020
18021 2008-12-21  Bruno Haible  <bruno@clisp.org>
18022
18023         Update doc for HP-UX 11.11.
18024         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18025         in HP-UX version 11.00, not in all versions of HP-UX 11.
18026         * doc/posix-functions/fwide.texi: Likewise.
18027         * doc/posix-functions/fwprintf.texi: Likewise.
18028         * doc/posix-functions/fwscanf.texi: Likewise.
18029         * doc/posix-functions/inet_ntop.texi: Likewise.
18030         * doc/posix-functions/inet_pton.texi: Likewise.
18031         * doc/posix-functions/mbrlen.texi: Likewise.
18032         * doc/posix-functions/mbrtowc.texi: Likewise.
18033         * doc/posix-functions/mbsinit.texi: Likewise.
18034         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18035         * doc/posix-functions/swprintf.texi: Likewise.
18036         * doc/posix-functions/swscanf.texi: Likewise.
18037         * doc/posix-functions/towctrans.texi: Likewise.
18038         * doc/posix-functions/vfwprintf.texi: Likewise.
18039         * doc/posix-functions/vswprintf.texi: Likewise.
18040         * doc/posix-functions/vwprintf.texi: Likewise.
18041         * doc/posix-functions/wcrtomb.texi: Likewise.
18042         * doc/posix-functions/wcsrtombs.texi: Likewise.
18043         * doc/posix-functions/wcsstr.texi: Likewise.
18044         * doc/posix-functions/wctob.texi: Likewise.
18045         * doc/posix-functions/wctrans.texi: Likewise.
18046         * doc/posix-functions/wmemchr.texi: Likewise.
18047         * doc/posix-functions/wmemcmp.texi: Likewise.
18048         * doc/posix-functions/wmemcpy.texi: Likewise.
18049         * doc/posix-functions/wmemmove.texi: Likewise.
18050         * doc/posix-functions/wmemset.texi: Likewise.
18051         * doc/posix-functions/wprintf.texi: Likewise.
18052         * doc/posix-functions/wscanf.texi: Likewise.
18053
18054 2008-12-21  Bruno Haible  <bruno@clisp.org>
18055
18056         Work around a portability problem.
18057         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18058         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18059
18060 2008-12-20  Bruno Haible  <bruno@clisp.org>
18061
18062         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18063         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18064         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18066         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18067
18068         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18069         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18070         set.
18071         (GNULIB_defined_mbstate_t): New macro.
18072         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18073         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18074         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18075         reuses the system's mbrtowc function but works around the bugs.
18076         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18077         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18078         macros.
18079         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18080         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18081         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18082         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18083         REPLACE_MBSINIT if mbsinit needs to be overridden.
18084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18085         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18086         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18087         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18088         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18089         m4/locale-zh.m4.
18090         (Depends): Add mbsinit.
18091         * modules/mbsinit (Depends): Add mbrtowc.
18092         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18093
18094 2008-12-20  Bruno Haible  <bruno@clisp.org>
18095
18096         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18097         so that there are no conversion errors on AIX.
18098         * tests/test-mbsrtowcs.c (main): LIkewise.
18099
18100 2008-12-20  Bruno Haible  <bruno@clisp.org>
18101
18102         Work around wctob bug on Solaris <= 9.
18103         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18104         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18106         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18107         * modules/wctob (Files): Add m4/locale-fr.m4.
18108         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18109
18110 2008-12-20  Bruno Haible  <bruno@clisp.org>
18111
18112         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18113         /dev/null.
18114         * tests/test-select-in.sh: Likewise.
18115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18116
18117 2008-12-20  Bruno Haible  <bruno@clisp.org>
18118
18119         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18120         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18121         Cygwin 1.5.x.
18122
18123 2008-12-20  Bruno Haible  <bruno@clisp.org>
18124
18125         Ensure mbstate_t is defined on HP-UX 11.11.
18126         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18127         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18128         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18129         AC_USE_SYSTEM_EXTENSIONS.
18130         * modules/fnmatch (Depends-on): Add extensions.
18131         * modules/mbrlen (Depends-on): Likewise.
18132         * modules/mbrtowc (Depends-on): Likewise.
18133         * modules/mbsinit (Depends-on): Likewise.
18134         * modules/mbsrtowcs (Depends-on): Likewise.
18135         * modules/mbswidth (Depends-on): Likewise.
18136         * modules/quotearg (Depends-on): Likewise.
18137         * modules/strftime (Depends-on): Likewise.
18138
18139 2008-12-20  Bruno Haible  <bruno@clisp.org>
18140
18141         Ensure wctob is declared on IRIX 6.5.
18142         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18143         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18144         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18146         of HAVE_WCTOB.
18147         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18148         HAVE_WCTOB.
18149         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18150
18151 2008-12-19  Bruno Haible  <bruno@clisp.org>
18152
18153         * modules/mbsrtowcs-tests: New file.
18154         * tests/test-mbsrtowcs1.sh: New file.
18155         * tests/test-mbsrtowcs2.sh: New file.
18156         * tests/test-mbsrtowcs3.sh: New file.
18157         * tests/test-mbsrtowcs4.sh: New file.
18158         * tests/test-mbsrtowcs.c: New file.
18159
18160         New module 'mbsrtowcs'.
18161         * lib/wchar.in.h (mbsrtowcs): New declaration.
18162         * lib/mbsrtowcs.c: New file.
18163         * m4/mbsrtowcs.m4: New file.
18164         * modules/mbsrtowcs: New file.
18165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18166         HAVE_MBSRTOWCS.
18167         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18168         HAVE_MBSRTOWCS.
18169         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18170
18171 2008-12-19  Bruno Haible  <bruno@clisp.org>
18172
18173         New module 'mbrlen'.
18174         * lib/wchar.in.h (mbrlen): New declaration.
18175         * lib/mbrlen.c: New file.
18176         * m4/mbrlen.m4: New file.
18177         * modules/mbrlen: New file.
18178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18179         HAVE_MBRLEN.
18180         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18181         HAVE_MBRLEN.
18182         * doc/posix-functions/mbrlen.texi: Document the new module.
18183
18184 2008-12-19  Bruno Haible  <bruno@clisp.org>
18185
18186         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18187         * modules/mbrtowc (Depends-on): Add verify.
18188         Suggested by Paul Eggert.
18189
18190 2008-12-18  Bruno Haible  <bruno@clisp.org>
18191
18192         * modules/mbsinit-tests: New file.
18193         * tests/test-mbsinit.sh: New file.
18194         * tests/test-mbsinit.c: New file.
18195
18196 2008-12-18  Bruno Haible  <bruno@clisp.org>
18197
18198         * modules/mbrtowc-tests: New file.
18199         * tests/test-mbrtowc1.sh: New file.
18200         * tests/test-mbrtowc2.sh: New file.
18201         * tests/test-mbrtowc3.sh: New file.
18202         * tests/test-mbrtowc4.sh: New file.
18203         * tests/test-mbrtowc.c: New file.
18204
18205         New module 'mbrtowc'.
18206         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18207         mbsinit and mbrtowc.
18208         (mbrtowc): New declaration.
18209         * lib/mbrtowc.c: New file.
18210         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18211         * modules/mbrtowc: New file.
18212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18213         HAVE_MBRTOWC.
18214         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18215         HAVE_MBRTOWC.
18216         * doc/posix-functions/mbrtowc.texi: Document the new module.
18217
18218 2008-12-18  Bruno Haible  <bruno@clisp.org>
18219
18220         New module 'wctob'.
18221         * lib/wchar.in.h (wctob): New declaration.
18222         * lib/wctob.c: New file.
18223         * m4/wctob.m4: New file.
18224         * modules/wctob: New file.
18225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18226         HAVE_WCTOB.
18227         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18228         * doc/posix-functions/wctob.texi: Document the new module.
18229
18230 2008-12-18  Bruno Haible  <bruno@clisp.org>
18231
18232         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18233         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18234
18235 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18236
18237         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18238         G. Christensen" <tgc@jupiterrise.com>.
18239
18240         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18241         G. Christensen" <tgc@jupiterrise.com>.
18242
18243         * lib/flock.c: Need to include string.h.  Reported by "Tom
18244         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18245         <ebb9@byu.net>.
18246
18247 2008-12-18  Bruno Haible  <bruno@clisp.org>
18248
18249         * m4/locale-ja.m4: New file, from GNU gettext.
18250
18251 2008-12-17  Bruno Haible  <bruno@clisp.org>
18252
18253         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18254         Suggested by Eric Blake.
18255
18256 2008-12-17  Bruno Haible  <bruno@clisp.org>
18257
18258         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18259
18260 2008-12-17  Bruno Haible  <bruno@clisp.org>
18261
18262         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18263         * modules/mbsinit (Depends-on): Add verify.
18264         Suggested by Paul Eggert.
18265
18266 2008-12-17  Bruno Haible  <bruno@clisp.org>
18267
18268         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18269         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18270         gl_FUNC_MBRTOWC.
18271         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18272         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18273         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18274         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18275         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18276         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18277         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18278         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18279         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18280         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18281         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18282         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18283         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18284         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18285         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18286         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18287         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18288         * modules/trim (configure.ac): Likewise.
18289
18290 2008-12-17  Bruno Haible  <bruno@clisp.org>
18291
18292         * modules/btowc-tests: New file.
18293         * tests/test-btowc1.sh: New file.
18294         * tests/test-btowc2.sh: New file.
18295         * tests/test-btowc.c: New file.
18296
18297         New module 'btowc'.
18298         * lib/wchar.in.h (btowc): New declaration.
18299         * lib/btowc.c: New file.
18300         * m4/btowc.m4: New file.
18301         * modules/btowc: New file.
18302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18303         HAVE_BTOWC.
18304         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18305         * doc/posix-functions/btowc.texi: Document the new module.
18306
18307 2008-12-17  Bruno Haible  <bruno@clisp.org>
18308
18309         New module 'mbsinit'.
18310         * lib/wchar.in.h (mbsinit): New declaration.
18311         * lib/mbsinit.c: New file.
18312         * m4/mbsinit.m4: New file.
18313         * modules/mbsinit: New file.
18314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18315         HAVE_MBSINIT.
18316         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18317         HAVE_MBSINIT.
18318         * doc/posix-functions/mbsinit.texi: Document the new module.
18319
18320 2008-12-16  Bruno Haible  <bruno@clisp.org>
18321
18322         * lib/unistd.in.h: Add comment.
18323         * tests/test-environ.c: Don't include <stdlib.h>.
18324
18325 2008-12-16  Bruno Haible  <bruno@clisp.org>
18326
18327         * lib/parse-duration.h (parse_duration): Document return value
18328         convention.
18329         * lib/parse-duration.c: Include specification header first. Add
18330         comments.
18331         (_): Remove macro.
18332         (parse_year_month_day, parse_hour_minute_second): Move side effects
18333         outside of strchr call.
18334         (parse_non_iso8601): Move side effects outside of isspace call.
18335         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18336         call.
18337
18338 2008-12-16  Bruno Haible  <bruno@clisp.org>
18339
18340         * tests/test-parse-duration.sh: Produce no output when the test
18341         succeeds.
18342
18343 2008-12-16  Bruno Haible  <bruno@clisp.org>
18344
18345         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18346         expressions.
18347
18348 2008-12-15  Bruno Haible  <bruno@clisp.org>
18349
18350         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18351         * doc/glibc-functions/flistxattr.texi: Likewise.
18352         * doc/glibc-functions/fopencookie.texi: Likewise.
18353         * doc/glibc-functions/fremovexattr.texi: Likewise.
18354         * doc/glibc-functions/fsetxattr.texi: Likewise.
18355         * doc/glibc-functions/getxattr.texi: Likewise.
18356         * doc/glibc-functions/lgetxattr.texi: Likewise.
18357         * doc/glibc-functions/listxattr.texi: Likewise.
18358         * doc/glibc-functions/llistxattr.texi: Likewise.
18359         * doc/glibc-functions/lremovexattr.texi: Likewise.
18360         * doc/glibc-functions/lsetxattr.texi: Likewise.
18361         * doc/glibc-functions/removexattr.texi: Likewise.
18362         * doc/glibc-functions/setxattr.texi: Likewise.
18363         * doc/posix-functions/open_memstream.texi: Likewise.
18364
18365 2008-12-15  Eric Blake  <ebb9@byu.net>
18366
18367         Update doc for cygwin 1.7.
18368         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18369         functions.
18370         * doc/posix-functions/fchmodat.texi: Likewise.
18371         * doc/posix-functions/fchownat.texi: Likewise.
18372         * doc/posix-functions/fdopendir.texi: Likewise.
18373         * doc/posix-functions/fmemopen.texi: Likewise.
18374         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18375         * doc/posix-functions/fstatat.texi: Likewise.
18376         * doc/posix-functions/futimens.texi: Likewise.
18377         * doc/posix-functions/gai_strerror.texi: Likewise.
18378         * doc/posix-functions/getaddrinfo.texi: Likewise.
18379         * doc/posix-functions/getnameinfo.texi: Likewise.
18380         * doc/posix-functions/if_freenameindex.texi: Likewise.
18381         * doc/posix-functions/if_indextoname.texi: Likewise.
18382         * doc/posix-functions/if_nameindex.texi: Likewise.
18383         * doc/posix-functions/if_nametoindex.texi: Likewise.
18384         * doc/posix-functions/insque.texi: Likewise.
18385         * doc/posix-functions/linkat.texi: Likewise.
18386         * doc/posix-functions/llrint.texi: Likewise.
18387         * doc/posix-functions/llrintf.texi: Likewise.
18388         * doc/posix-functions/llrintl.texi: Likewise.
18389         * doc/posix-functions/lockf.texi: Likewise.
18390         * doc/posix-functions/lrintl.texi: Likewise.
18391         * doc/posix-functions/mkdirat.texi: Likewise.
18392         * doc/posix-functions/mkfifoat.texi: Likewise.
18393         * doc/posix-functions/mknodat.texi: Likewise.
18394         * doc/posix-functions/mq_close.texi: Likewise.
18395         * doc/posix-functions/mq_getattr.texi: Likewise.
18396         * doc/posix-functions/mq_notify.texi: Likewise.
18397         * doc/posix-functions/mq_open.texi: Likewise.
18398         * doc/posix-functions/mq_receive.texi: Likewise.
18399         * doc/posix-functions/mq_send.texi: Likewise.
18400         * doc/posix-functions/mq_setattr.texi: Likewise.
18401         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18402         * doc/posix-functions/mq_timedsend.texi: Likewise.
18403         * doc/posix-functions/mq_unlink.texi: Likewise.
18404         * doc/posix-functions/open_memstream.texi: Likewise.
18405         * doc/posix-functions/openat.texi: Likewise.
18406         * doc/posix-functions/posix_fadvise.texi: Likewise.
18407         * doc/posix-functions/posix_fallocate.texi: Likewise.
18408         * doc/posix-functions/posix_madvise.texi: Likewise.
18409         * doc/posix-functions/posix_memalign.texi: Likewise.
18410         * doc/posix-functions/posix_openpt.texi: Likewise.
18411         * doc/posix-functions/readlinkat.texi: Likewise.
18412         * doc/posix-functions/remque.texi: Likewise.
18413         * doc/posix-functions/renameat.texi: Likewise.
18414         * doc/posix-functions/rintl.texi: Likewise.
18415         * doc/posix-functions/sem_unlink.texi: Likewise.
18416         * doc/posix-functions/shm_open.texi: Likewise.
18417         * doc/posix-functions/shm_unlink.texi: Likewise.
18418         * doc/posix-functions/signgam.texi: Likewise.
18419         * doc/posix-functions/sigset.texi: Likewise.
18420         * doc/posix-functions/stpcpy.texi: Likewise.
18421         * doc/posix-functions/stpncpy.texi: Likewise.
18422         * doc/posix-functions/strerror.texi: Likewise.
18423         * doc/posix-functions/strtod.texi: Likewise.
18424         * doc/posix-functions/symlinkat.texi: Likewise.
18425         * doc/posix-functions/unlinkat.texi: Likewise.
18426         * doc/posix-functions/utimensat.texi: Likewise.
18427         * doc/glibc-functions/bindresvport.texi: Likewise.
18428         * doc/glibc-functions/dn_expand.texi: Likewise.
18429         * doc/glibc-functions/exp10.texi: Likewise.
18430         * doc/glibc-functions/exp10f.texi: Likewise.
18431         * doc/glibc-functions/fgetxattr.texi: Likewise.
18432         * doc/glibc-functions/flistxattr.texi: Likewise.
18433         * doc/glibc-functions/fopencookie.texi: Likewise.
18434         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18435         * doc/glibc-functions/fremovexattr.texi: Likewise.
18436         * doc/glibc-functions/fsetxattr.texi: Likewise.
18437         * doc/glibc-functions/getifaddrs.texi: Likewise.
18438         * doc/glibc-functions/getxattr.texi: Likewise.
18439         * doc/glibc-functions/lgetxattr.texi: Likewise.
18440         * doc/glibc-functions/listxattr.texi: Likewise.
18441         * doc/glibc-functions/llistxattr.texi: Likewise.
18442         * doc/glibc-functions/lremovexattr.texi: Likewise.
18443         * doc/glibc-functions/lsetxattr.texi: Likewise.
18444         * doc/glibc-functions/pow10.texi: Likewise.
18445         * doc/glibc-functions/pow10f.texi: Likewise.
18446         * doc/glibc-functions/rcmd_af.texi: Likewise.
18447         * doc/glibc-functions/removexattr.texi: Likewise.
18448         * doc/glibc-functions/res_init.texi: Likewise.
18449         * doc/glibc-functions/res_mkquery.texi: Likewise.
18450         * doc/glibc-functions/res_query.texi: Likewise.
18451         * doc/glibc-functions/res_querydomain.texi: Likewise.
18452         * doc/glibc-functions/res_send.texi: Likewise.
18453         * doc/glibc-functions/rresvport_af.texi: Likewise.
18454         * doc/glibc-functions/setxattr.texi: Likewise.
18455         * doc/glibc-functions/strcasestr.texi: Likewise.
18456
18457 2008-12-15  Bruno Haible  <bruno@clisp.org>
18458
18459         Fix compilation error on OSF/1 4.0.
18460         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18461         <sys/time.h>, simply delegate to the system header.
18462         Reported by Daniel Richard G. <oss@teragram.com>.
18463
18464 2008-12-15  Bruno Haible  <bruno@clisp.org>
18465
18466         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18467         * doc/posix-functions/fchmodat.texi: Likewise.
18468         * doc/posix-functions/fchownat.texi: Likewise.
18469         * doc/posix-functions/fdopendir.texi: Likewise.
18470         * doc/posix-functions/fstatat.texi: Likewise.
18471         * doc/posix-functions/mkdirat.texi: Likewise.
18472         * doc/posix-functions/unlinkat.texi: Likewise.
18473
18474 2008-12-14  Bruno Haible  <bruno@clisp.org>
18475
18476         Update doc for POSIX:2008.
18477         * doc/posix-functions/faccessat.texi: New file.
18478         * doc/posix-functions/fchmodat.texi: New file.
18479         * doc/posix-functions/fchownat.texi: New file.
18480         * doc/posix-functions/fdopendir.texi: New file.
18481         * doc/posix-functions/fstatat.texi: New file.
18482         * doc/posix-functions/futimens.texi: New file.
18483         * doc/posix-functions/linkat.texi: New file.
18484         * doc/posix-functions/mkdirat.texi: New file.
18485         * doc/posix-functions/mkfifoat.texi: New file.
18486         * doc/posix-functions/mknodat.texi: New file.
18487         * doc/posix-functions/open_wmemstream.texi: New file.
18488         * doc/posix-functions/openat.texi: New file.
18489         * doc/posix-functions/psiginfo.texi: New file.
18490         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18491         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18492         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18493         * doc/posix-functions/readlinkat.texi: New file.
18494         * doc/posix-functions/renameat.texi: New file.
18495         * doc/posix-functions/strerror_l.texi: New file.
18496         * doc/posix-functions/symlinkat.texi: New file.
18497         * doc/posix-functions/unlinkat.texi: New file.
18498         * doc/posix-functions/utimensat.texi: New file.
18499         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18500
18501 2008-12-14  Bruno Haible  <bruno@clisp.org>
18502
18503         Update doc for POSIX:2008.
18504         * doc/posix-functions/alphasort.texi: Renamed from
18505         doc/glibc-functions/alphasort.texi.
18506         * doc/posix-functions/dirfd.texi: Renamed from
18507         doc/glibc-functions/dirfd.texi.
18508         * doc/posix-functions/dprintf.texi: Renamed from
18509         doc/glibc-functions/dprintf.texi.
18510         * doc/posix-functions/duplocale.texi: Renamed from
18511         doc/glibc-functions/duplocale.texi.
18512         * doc/posix-functions/fexecve.texi: Renamed from
18513         doc/glibc-functions/fexecve.texi.
18514         * doc/posix-functions/fmemopen.texi: Renamed from
18515         doc/glibc-functions/fmemopen.texi.
18516         * doc/posix-functions/freelocale.texi: Renamed from
18517         doc/glibc-functions/freelocale.texi.
18518         * doc/posix-functions/getdate_err.texi: Renamed from
18519         doc/glibc-functions/getdate_err.texi.
18520         * doc/posix-functions/isalnum_l.texi: Renamed from
18521         doc/glibc-functions/isalnum_l.texi.
18522         * doc/posix-functions/isalpha_l.texi: Renamed from
18523         doc/glibc-functions/isalpha_l.texi.
18524         * doc/posix-functions/isblank_l.texi: Renamed from
18525         doc/glibc-functions/isblank_l.texi.
18526         * doc/posix-functions/iscntrl_l.texi: Renamed from
18527         doc/glibc-functions/iscntrl_l.texi.
18528         * doc/posix-functions/isdigit_l.texi: Renamed from
18529         doc/glibc-functions/isdigit_l.texi.
18530         * doc/posix-functions/isgraph_l.texi: Renamed from
18531         doc/glibc-functions/isgraph_l.texi.
18532         * doc/posix-functions/islower_l.texi: Renamed from
18533         doc/glibc-functions/islower_l.texi.
18534         * doc/posix-functions/isprint_l.texi: Renamed from
18535         doc/glibc-functions/isprint_l.texi.
18536         * doc/posix-functions/ispunct_l.texi: Renamed from
18537         doc/glibc-functions/ispunct_l.texi.
18538         * doc/posix-functions/isspace_l.texi: Renamed from
18539         doc/glibc-functions/isspace_l.texi.
18540         * doc/posix-functions/isupper_l.texi: Renamed from
18541         doc/glibc-functions/isupper_l.texi.
18542         * doc/posix-functions/iswalnum_l.texi: Renamed from
18543         doc/glibc-functions/iswalnum_l.texi.
18544         * doc/posix-functions/iswalpha_l.texi: Renamed from
18545         doc/glibc-functions/iswalpha_l.texi.
18546         * doc/posix-functions/iswblank_l.texi: Renamed from
18547         doc/glibc-functions/iswblank_l.texi.
18548         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18549         doc/glibc-functions/iswcntrl_l.texi.
18550         * doc/posix-functions/iswctype_l.texi: Renamed from
18551         doc/glibc-functions/iswctype_l.texi.
18552         * doc/posix-functions/iswdigit_l.texi: Renamed from
18553         doc/glibc-functions/iswdigit_l.texi.
18554         * doc/posix-functions/iswgraph_l.texi: Renamed from
18555         doc/glibc-functions/iswgraph_l.texi.
18556         * doc/posix-functions/iswlower_l.texi: Renamed from
18557         doc/glibc-functions/iswlower_l.texi.
18558         * doc/posix-functions/iswprint_l.texi: Renamed from
18559         doc/glibc-functions/iswprint_l.texi.
18560         * doc/posix-functions/iswpunct_l.texi: Renamed from
18561         doc/glibc-functions/iswpunct_l.texi.
18562         * doc/posix-functions/iswspace_l.texi: Renamed from
18563         doc/glibc-functions/iswspace_l.texi.
18564         * doc/posix-functions/iswupper_l.texi: Renamed from
18565         doc/glibc-functions/iswupper_l.texi.
18566         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18567         doc/glibc-functions/iswxdigit_l.texi.
18568         * doc/posix-functions/isxdigit_l.texi: Renamed from
18569         doc/glibc-functions/isxdigit_l.texi.
18570         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18571         doc/glibc-functions/mbsnrtowcs.texi.
18572         * doc/posix-functions/mkdtemp.texi: Renamed from
18573         doc/glibc-functions/mkdtemp.texi.
18574         * doc/posix-functions/newlocale.texi: Renamed from
18575         doc/glibc-functions/newlocale.texi.
18576         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18577         doc/glibc-functions/nl_langinfo_l.texi.
18578         * doc/posix-functions/open_memstream.texi: Renamed from
18579         doc/glibc-functions/open_memstream.texi.
18580         * doc/posix-functions/opterr.texi: Renamed from
18581         doc/glibc-functions/opterr.texi.
18582         * doc/posix-functions/optind.texi: Renamed from
18583         doc/glibc-functions/optind.texi.
18584         * doc/posix-functions/optopt.texi: Renamed from
18585         doc/glibc-functions/optopt.texi.
18586         * doc/posix-functions/psignal.texi: Renamed from
18587         doc/glibc-functions/psignal.texi.
18588         * doc/posix-functions/scandir.texi: Renamed from
18589         doc/glibc-functions/scandir.texi.
18590         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18591         doc/glibc-functions/sched_get_priority_min.texi.
18592         * doc/posix-functions/signgam.texi: Renamed from
18593         doc/glibc-functions/signgam.texi.
18594         * doc/posix-functions/stpcpy.texi: Renamed from
18595         doc/glibc-functions/stpcpy.texi.
18596         * doc/posix-functions/stpncpy.texi: Renamed from
18597         doc/glibc-functions/stpncpy.texi.
18598         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18599         doc/glibc-functions/strcasecmp_l.texi.
18600         * doc/posix-functions/strcoll_l.texi: Renamed from
18601         doc/glibc-functions/strcoll_l.texi.
18602         * doc/posix-functions/strfmon_l.texi: Renamed from
18603         doc/glibc-functions/strfmon_l.texi.
18604         * doc/posix-functions/strftime_l.texi: Renamed from
18605         doc/glibc-functions/strftime_l.texi.
18606         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18607         doc/glibc-functions/strncasecmp_l.texi.
18608         * doc/posix-functions/strndup.texi: Renamed from
18609         doc/glibc-functions/strndup.texi.
18610         * doc/posix-functions/strnlen.texi: Renamed from
18611         doc/glibc-functions/strnlen.texi.
18612         * doc/posix-functions/strsignal.texi: Renamed from
18613         doc/glibc-functions/strsignal.texi.
18614         * doc/posix-functions/strxfrm_l.texi: Renamed from
18615         doc/glibc-functions/strxfrm_l.texi.
18616         * doc/posix-functions/timer_gettime.texi: Renamed from
18617         doc/glibc-functions/timer_gettime.texi.
18618         * doc/posix-functions/tolower_l.texi: Renamed from
18619         doc/glibc-functions/tolower_l.texi.
18620         * doc/posix-functions/toupper_l.texi: Renamed from
18621         doc/glibc-functions/toupper_l.texi.
18622         * doc/posix-functions/towctrans_l.texi: Renamed from
18623         doc/glibc-functions/towctrans_l.texi.
18624         * doc/posix-functions/towlower_l.texi: Renamed from
18625         doc/glibc-functions/towlower_l.texi.
18626         * doc/posix-functions/towupper_l.texi: Renamed from
18627         doc/glibc-functions/towupper_l.texi.
18628         * doc/posix-functions/uselocale.texi: Renamed from
18629         doc/glibc-functions/uselocale.texi.
18630         * doc/posix-functions/vdprintf.texi: Renamed from
18631         doc/glibc-functions/vdprintf.texi.
18632         * doc/posix-functions/wcpcpy.texi:
18633         Renamed from doc/glibc-functions/wcpcpy.texi.
18634         * doc/posix-functions/wcpncpy.texi: Renamed from
18635         doc/glibc-functions/wcpncpy.texi.
18636         * doc/posix-functions/wcscasecmp.texi: Renamed from
18637         doc/glibc-functions/wcscasecmp.texi.
18638         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18639         doc/glibc-functions/wcscasecmp_l.texi.
18640         * doc/posix-functions/wcscoll_l.texi: Renamed from
18641         doc/glibc-functions/wcscoll_l.texi.
18642         * doc/posix-functions/wcsdup.texi: Renamed from
18643         doc/glibc-functions/wcsdup.texi.
18644         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18645         doc/glibc-functions/wcsncasecmp.texi.
18646         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18647         doc/glibc-functions/wcsncasecmp_l.texi.
18648         * doc/posix-functions/wcsnlen.texi: Renamed from
18649         doc/glibc-functions/wcsnlen.texi.
18650         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18651         doc/glibc-functions/wcsnrtombs.texi.
18652         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18653         doc/glibc-functions/wcsxfrm_l.texi.
18654         * doc/posix-functions/wctrans_l.texi: Renamed from
18655         doc/glibc-functions/wctrans_l.texi.
18656         * doc/posix-functions/wctype_l.texi: Renamed from
18657         doc/glibc-functions/wctype_l.texi.
18658         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18659         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18660         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18661         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18662         these subsections.
18663         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18664         Remove sections.
18665
18666 2008-12-14  Bruno Haible  <bruno@clisp.org>
18667
18668         Update doc for POSIX:2008.
18669         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18670
18671 2008-12-14  Bruno Haible  <bruno@clisp.org>
18672
18673         Update doc for POSIX:2008.
18674         * doc/pastposix-functions/bcmp.texi: Renamed from
18675         doc/posix-functions/bcmp.texi.
18676         * doc/pastposix-functions/bcopy.texi: Renamed from
18677         doc/posix-functions/bcopy.texi.
18678         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18679         doc/posix-functions/bsd_signal.texi.
18680         * doc/pastposix-functions/bzero.texi: Renamed from
18681         doc/posix-functions/bzero.texi.
18682         * doc/pastposix-functions/ecvt.texi: Renamed from
18683         doc/posix-functions/ecvt.texi.
18684         * doc/pastposix-functions/fcvt.texi: Renamed from
18685         doc/posix-functions/fcvt.texi.
18686         * doc/pastposix-functions/ftime.texi: Renamed from
18687         doc/posix-functions/ftime.texi.
18688         * doc/pastposix-functions/gcvt.texi: Renamed from
18689         doc/posix-functions/gcvt.texi.
18690         * doc/pastposix-functions/getcontext.texi: Renamed from
18691         doc/posix-functions/getcontext.texi.
18692         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18693         doc/posix-functions/gethostbyaddr.texi.
18694         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18695         doc/posix-functions/gethostbyname.texi.
18696         * doc/pastposix-functions/getwd.texi: Renamed from
18697         doc/posix-functions/getwd.texi.
18698         * doc/pastposix-functions/h_errno.texi: Renamed from
18699         doc/posix-functions/h_errno.texi.
18700         * doc/pastposix-functions/index.texi: Renamed from
18701         doc/posix-functions/index.texi.
18702         * doc/pastposix-functions/makecontext.texi: Renamed from
18703         doc/posix-functions/makecontext.texi.
18704         * doc/pastposix-functions/mktemp.texi: Renamed from
18705         doc/posix-functions/mktemp.texi.
18706         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18707         doc/posix-functions/pthread_attr_getstackaddr.texi.
18708         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18709         doc/posix-functions/pthread_attr_setstackaddr.texi.
18710         * doc/pastposix-functions/rindex.texi: Renamed from
18711         doc/posix-functions/rindex.texi.
18712         * doc/pastposix-functions/scalb.texi: Renamed from
18713         doc/posix-functions/scalb.texi.
18714         * doc/pastposix-functions/setcontext.texi: Renamed from
18715         doc/posix-functions/setcontext.texi.
18716         * doc/pastposix-functions/swapcontext.texi: Renamed from
18717         doc/posix-functions/swapcontext.texi.
18718         * doc/pastposix-functions/ualarm.texi: Renamed from
18719         doc/posix-functions/ualarm.texi.
18720         * doc/pastposix-functions/usleep.texi: Renamed from
18721         doc/posix-functions/usleep.texi.
18722         * doc/pastposix-functions/vfork.texi: Renamed from
18723         doc/posix-functions/vfork.texi.
18724         * doc/pastposix-functions/wcswcs.texi: Renamed from
18725         doc/posix-functions/wcswcs.texi.
18726         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18727         (Function Substitutes): Update.
18728
18729 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18730
18731         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18732         m4/strerror.m4.
18733
18734 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18735             Bruno Haible  <bruno@clisp.org>
18736
18737         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18738
18739 2008-12-13  Bruno Haible  <bruno@clisp.org>
18740
18741         * modules/strtoull (Depends-on): Remove unistd.
18742
18743 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18744
18745         * modules/strtoull (Depends-on): Add stdlib.
18746
18747 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18748
18749         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18750
18751 2008-12-10  Jim Meyering  <meyering@redhat.com>
18752
18753         gl_ASSERT: don't say assertions are disabled when they're not
18754         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18755         "checking whether to enable assertions... no", when they are in
18756         fact enabled.  This is solely a bug in the output of configure.
18757         In spite of saying "no", NDEBUG was not defined in that case.
18758         Also, as noted by Eric Blake, leave assertions enabled upon
18759         --enable-assert=INVALID.
18760
18761 2008-12-10  Bruno Haible  <bruno@clisp.org>
18762
18763         Change MODULES.html to refer to POSIX:2008 where possible.
18764         * MODULES.html.sh (POSIX2008_URL): New variable.
18765         (posix_headers): Remove sys/timeb, ucontext.
18766         (posix2001_headers): New variable.
18767         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18768         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18769         index, makecontext, mktemp, pthread_attr_getstackaddr,
18770         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18771         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18772         (posix2001_functions): New variable.
18773         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18774         otherwise.
18775
18776 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18777
18778         add missing include to parse-duration.c
18779         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18780         * modules/parse-duration (Depends-on): Add xalloc.
18781
18782         fix sed script reading maint.mk
18783         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18784         (syntax-check-rules): Use it.
18785
18786 2008-12-09  Bruno Haible  <bruno@clisp.org>
18787
18788         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18789         MacOS X 10.4/PowerPC.
18790         Reported by Simon Josefsson.
18791
18792 2008-12-08  Jim Meyering  <meyering@redhat.com>
18793
18794         work around mingw's lack of some S_IF definitions
18795         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18796         Reported by Simon Josefsson.
18797
18798 2008-12-08  Bruno Haible  <bruno@clisp.org>
18799
18800         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18801         applied to variables. Needed on MacOS X 10.4/PowerPC.
18802         Reported by Simon Josefsson.
18803
18804 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18805         and Eric Blake  <ebb9@byu.net>
18806
18807         assert: honor --enable-assert
18808         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18809         order to honor --enable-assert, rather than treating it as a
18810         synonym for --disable-assert.
18811
18812 2008-12-08  Jim Meyering  <meyering@redhat.com>
18813
18814         * lib/posixtm.c: Remove now-useless declaration of mktime.
18815
18816         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18817
18818 2008-12-07  Bruno Haible  <bruno@clisp.org>
18819
18820         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18821         test_once): Mark functions as static.
18822         * tests/test-tls.c (test_tls): Likewise.
18823
18824 2008-12-07  Bruno Haible  <bruno@clisp.org>
18825
18826         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18827         iconv_register_autodetect.
18828
18829 2008-12-07  Jim Meyering  <meyering@redhat.com>
18830
18831         posixtm.c: avoid a warning
18832         * lib/posixtm.c (posixtime): Don't initialize tm0.
18833         It's no longer needed to placate gcc4's -Wuninitialized,
18834         and the attempt to placate would elicit a new warning.
18835
18836         unicodeio.c: mark unused parameters
18837         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18838         (fallback_failure_callback): Likewise.
18839
18840 2008-12-07  Bruno Haible  <bruno@clisp.org>
18841
18842         * gnulib-tool (func_create_testdir): When building the tests
18843         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18844         Reported by Simon Josefsson.
18845
18846 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18847
18848         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18849
18850 2008-12-06  Bruno Haible  <bruno@clisp.org>
18851
18852         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18853         Suggested by Eric Blake.
18854
18855 2008-12-06  Bruno Haible  <bruno@clisp.org>
18856
18857         Fix a c-stack test failure on MacOS X.
18858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18859         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18860         handler for SIGBUS as well.
18861         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18862         install a signal handler for SIGBUS as well.
18863         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18864
18865 2008-12-06  Bruno Haible  <bruno@clisp.org>
18866
18867         Advocacy documentation.
18868         * doc/gnulib-intro.texi (Benefits): New section.
18869         * doc/gnulib.texi: Update.
18870
18871 2008-12-06  Bruno Haible  <bruno@clisp.org>
18872
18873         Document the 'manywarnings' module.
18874         * doc/manywarnings.texi: New file.
18875         * doc/gnulib.texi: Include it.
18876
18877 2008-12-05  Eric Blake  <ebb9@byu.net>
18878
18879         tests: silence some gcc warnings
18880         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18881         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18882         type mismatches.
18883
18884 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18885             Bruno Haible  <bruno@clisp.org>
18886
18887         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18888
18889 2008-11-29  Jim Meyering  <meyering@redhat.com>
18890
18891         unicodeio.c: mark unused parameters
18892         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18893         (fallback_failure_callback): Likewise.
18894
18895         fts: fix a thinko
18896         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18897         (set_stat_type): Return S_IF*-valued "type" directly.
18898         Prompted by James Youngman's spotting a related bug.
18899         Confirmed by further testing through find.
18900
18901         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18902         * lib/fts.c (D_TYPE): Define.
18903         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18904         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18905         (s_ifmt_shift_bits): New function.
18906         (set_stat_type): New function.
18907         (fts_build): When not calling fts_stat, call set_stat_type
18908         to propagate dirent.d_type info to fts_read caller.
18909         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18910         fts_statp->st_mode type information may be valid.
18911
18912 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18913
18914         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18915         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18916         <sds@gnu.org>.
18917
18918 2008-11-20  Bruno Haible  <bruno@clisp.org>
18919
18920         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18921         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18922         INCLUDE_NEXT.
18923         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18924         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18925         * modules/math (Makefile.am): Substitute
18926         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18927         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18928
18929 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18930             Bruno Haible  <bruno@clisp.org>
18931
18932         * lib/stdint.in.h: Define all type macros so that their expansion is
18933         a single typedef'ed token. Fixes a compilation failure in Boost which
18934         does "using ::int8_t;".
18935
18936 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18937
18938         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18939         gl_MANYWARN_ALL_GCC.
18940         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18941         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18942         * modules/manywarnings: New file.
18943         * MODULES.html.sh: Mention manywarnings module.
18944
18945 2008-11-18  Bruno Haible  <bruno@clisp.org>
18946
18947         * doc/gnulib-tool.texi (Unit tests): New section.
18948
18949 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18950
18951         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18952         paths like 'lib/po/foo.po'.
18953
18954 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18955
18956         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18957         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18958
18959 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18960
18961         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18962         parameter works.
18963
18964 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18965
18966         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18967
18968 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18969
18970         * modules/parse-duration-tests: New file.
18971         * tests/test-parse-duration.sh: New file.
18972         * tests/test-parse-duration.c: New file.
18973
18974         New module 'parse-duration'.
18975         * lib/parse-duration.h: New file.
18976         * lib/parse-duration.c: New file.
18977         * modules/parse-duration: New file.
18978
18979 2008-11-17  Bruno Haible  <bruno@clisp.org>
18980
18981         * tests/test-select-out.sh: Comment out the first pipe test.
18982         Reported by Simon Josefsson.
18983
18984 2008-11-17  Bruno Haible  <bruno@clisp.org>
18985
18986         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18987         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18988         gl_HOSTENT.
18989
18990 2008-11-17  Bruno Haible  <bruno@clisp.org>
18991
18992         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18993         -lnetwork and -lnet. Needed for Haiku and BeOS.
18994
18995 2008-11-16  Bruno Haible  <bruno@clisp.org>
18996
18997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18998
18999 2008-11-16  Bruno Haible  <bruno@clisp.org>
19000
19001         Avoid test failure on Haiku.
19002         * tests/test-fsync.c: Include <errno.h>.
19003         (main): Don't require that fsync (0) fails.
19004
19005 2008-11-15  Bruno Haible  <bruno@clisp.org>
19006
19007         New module 'hostent'.
19008         * modules/hostent: New file.
19009         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19010
19011 2008-11-15  Bruno Haible  <bruno@clisp.org>
19012
19013         New module 'servent'.
19014         * modules/servent: New file.
19015         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19016
19017 2008-11-15  Bruno Haible  <bruno@clisp.org>
19018
19019         Avoid generating same test program with two different rules.
19020         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19021         test-frexp to test-frexp-nolibm.
19022         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19023         test-frexpl to test-frexpl-nolibm.
19024
19025 2008-11-15  Bruno Haible  <bruno@clisp.org>
19026
19027         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19028         $(FREXPL_LIBM).
19029
19030 2008-11-15  Bruno Haible  <bruno@clisp.org>
19031
19032         * lib/netdb.in.h: Activate the definitions also when the system's
19033         <netdb.h> has 'struct addrinfo'.
19034         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19035         EAI_OVERFLOW or AI_NUMERICSERV.
19036         * doc/posix-headers/netdb.texi: Document the problem.
19037
19038 2008-11-15  Bruno Haible  <bruno@clisp.org>
19039
19040         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19041
19042         Make the 'sched' module work on platforms where <sched.h> exists but
19043         is incomplete (such as Haiku).
19044         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19045         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19046         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19047         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19048         HAVE_STRUCT_SCHED_PARAM.
19049         * modules/sched (Depends-on): Add include_next.
19050         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19051         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19052         * doc/posix-headers/sched.texi: Document the issue.
19053
19054 2008-11-13  Jim Meyering  <meyering@redhat.com>
19055
19056         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19057         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19058         test would fail due to the difference in the Report bugs to ...
19059         line.  The expected address is empty, "<>", while the actual
19060         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19061
19062 2008-11-12  Bruno Haible  <bruno@clisp.org>
19063
19064         lstat: don't compile lstat.c on systems lacking lstat
19065         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19066         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19067         Reported by Daniel P. Berrange via Jim Meyering.
19068
19069 2008-11-12  Jim Meyering  <meyering@redhat.com>
19070
19071         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19072
19073 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19074
19075         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19076         instead.
19077
19078 2008-11-12  Bruno Haible  <bruno@clisp.org>
19079
19080         * lib/unicodeio.c: Include unistr.h.
19081         (utf8_wctomb): Remove function.
19082         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19083
19084 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19085
19086         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19087         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19088         <bruno@clisp.org>.
19089         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19090
19091 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19092
19093         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19094         * doc/gnulib.texi: Add section for warnings.
19095
19096 2008-11-11  Bruno Haible  <bruno@clisp.org>
19097
19098         * lib/sockets.h: Add a comment.
19099
19100 2008-11-11  Karl Berry  <karl@gnu.org>
19101
19102         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19103
19104 2008-11-11  Eric Blake  <ebb9@byu.net>
19105
19106         fdl.texi: avoid git symlinks
19107         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19108
19109 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19110
19111         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19112
19113 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19114
19115         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19116         (gl_WARN_ADD): Substitute $2 if literal.
19117
19118 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19119
19120         * m4/warning.m4: Remove.
19121
19122 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19123
19124         * m4/warnings.m4: Almost complete rewrite. :-)
19125
19126 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19127
19128         * modules/warnings: New module.
19129         * m4/warnings.m4: New file.
19130         * MODULES.html.sh: Mention warnings module.
19131         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19132         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19133
19134 2008-11-10  Eric Blake  <ebb9@byu.net>
19135
19136         fdl.texi: make a symlink to the latest version
19137         * doc/standards.texi: Revert today's earlier change.
19138         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19139         * doc/fdl.texi: ...and replace this with a symlink to the newer
19140         fdl-1.3.texi.
19141
19142 2008-11-10  Bruno Haible  <bruno@clisp.org>
19143
19144         * tests/test-select-fd.c (main): Accept the result file name as fourth
19145         argument.
19146         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19147         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19148
19149 2008-11-10  Bruno Haible  <bruno@clisp.org>
19150
19151         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19152         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19153         as autoconf-substituted macros.
19154         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19155         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19156         gl_NETDB_H_DEFAULTS. Set these variables.
19157         * modules/netdb (Makefile.am): Substitute these variables.
19158
19159 2008-11-10  Eric Blake  <ebb9@byu.net>
19160
19161         standards.texi: include correct file for FDL 1.3
19162         * doc/standards.texi (GNU Free Documentation License): Change
19163         include file to pull in FDL 1.3, not 1.2.
19164
19165         fdl.texi: revert accidental change to license
19166         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19167
19168 2008-11-10  Bruno Haible  <bruno@clisp.org>
19169
19170         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19171         cross-compiling guesses also when the native compile gives no result.
19172
19173 2008-11-10  Bruno Haible  <bruno@clisp.org>
19174
19175         * lib/spawni.c (__spawni): Force variable into the stack.
19176
19177 2008-11-10  Bruno Haible  <bruno@clisp.org>
19178
19179         Add support for Haiku.
19180         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19181         glibc and BeOS, but also on Haiku.
19182         * lib/fpurge.c (fpurge): Likewise.
19183         * lib/freadable.c (freadable): Likewise.
19184         * lib/freadahead.c (freadahead): Likewise.
19185         * lib/freading.c (freading): Likewise.
19186         * lib/freadptr.c (freadptr): Likewise.
19187         * lib/freadseek.c (freadptrinc): Likewise.
19188         * lib/fseeko.c (rpl_fseeko): Likewise.
19189         * lib/fseterr.c (fseterr): Likewise.
19190         * lib/fwritable.c (fwritable): Likewise.
19191         * lib/fwriting.c (fwriting): Likewise.
19192         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19193
19194 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19195
19196         * lib/config.charset: Treat Haiku like BeOS.
19197
19198 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19199
19200         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19201         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19202
19203 2008-11-08  Bruno Haible  <bruno@clisp.org>
19204
19205         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19206         AC_CACHE_CHECK.
19207
19208 2008-11-08  Bruno Haible  <bruno@clisp.org>
19209
19210         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19211
19212 2008-11-08  Bruno Haible  <bruno@clisp.org>
19213
19214         * tests/test-select-fd.c: New file.
19215         * tests/test-select-in.sh: New file.
19216         * tests/test-select-out.sh: New file.
19217         * tests/test-select-stdin.c: New file.
19218         * modules/select-tests (Files): Add the new files.
19219         (Depends-on): Add gettimeofday.
19220         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19221         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19222         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19223
19224 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19225             Bruno Haible  <bruno@clisp.org>
19226
19227         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19228
19229 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19230
19231         * build-aux/pmccabe2html: Added support for C++ source files.
19232
19233 2008-11-05  Ben Pfaff  <blp@gnu.org>
19234
19235         Fix lib/close.c build on Windows.
19236         * modules/close (Files): Add lib/w32sock.h.
19237
19238 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19239
19240         Accept Bison's NEWS format.
19241         * build-aux/announce-gen (print_news_deltas): Tweak
19242         $re_prefix.
19243
19244 2008-11-04  Bruno Haible  <bruno@clisp.org>
19245
19246         * modules/random_r (Maintainer): Add glibc.
19247
19248 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19249
19250         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19251         by karl@freefriends.org (Karl Berry).
19252         * doc/alloca.texi: Likewise.
19253         * doc/c-ctype.texi: Likewise.
19254         * doc/c-strcase.texi: Likewise.
19255         * doc/c-strcaseeq.texi: Likewise.
19256         * doc/c-strcasestr.texi: Likewise.
19257         * doc/c-strstr.texi: Likewise.
19258         * doc/c-strtod.texi: Likewise.
19259         * doc/c-strtold.texi: Likewise.
19260         * doc/ctime.texi: Likewise.
19261         * doc/error.texi: Likewise.
19262         * doc/fdl.texi: Likewise.
19263         * doc/gcd.texi: Likewise.
19264         * doc/getdate.texi: Likewise.
19265         * doc/gnulib-intro.texi: Likewise.
19266         * doc/gnulib-tool.texi: Likewise.
19267         * doc/gnulib.texi: Likewise.
19268         * doc/inet_ntoa.texi: Likewise.
19269         * doc/maintain.texi: Likewise.
19270         * doc/make-stds.texi: Likewise.
19271         * doc/quote.texi: Likewise.
19272         * doc/regexprops-generic.texi: Likewise.
19273         * doc/standards.texi: Likewise.
19274         * doc/verify.texi: Likewise.
19275         * doc/visibility.texi: Likewise.
19276         * doc/gnulib.texi (GNU Free Documentation License): Include
19277         fdl-1.3.texi instead of fdl.texi.
19278
19279 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19280
19281         * doc/fdl-1.3.texi: New file, from
19282         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19283         * modules/fdl-1.3: Add.
19284         * MODULES.html.sh: Add fdl-1.3.
19285
19286 2008-11-03  Bruno Haible  <bruno@clisp.org>
19287
19288         Make determination of absolute name of header file work with AIX xlc.
19289         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19290         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19291         preprocessing.
19292         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19293         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19294
19295 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19296
19297         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19298         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19299         <ludo@gnu.org>.
19300
19301 2008-11-02  Bruno Haible  <bruno@clisp.org>
19302
19303         Mark 'strpbrk' obsolete.
19304         * modules/strpbrk (Status, Notice): New sections.
19305         * modules/strtok_r (Depends-on): Add strpbrk.
19306
19307 2008-11-02  Bruno Haible  <bruno@clisp.org>
19308
19309         Mark 'strdup' obsolete.
19310         * modules/strdup (Status, Notice): New sections.
19311         * modules/findprog (Depends-on): Add strdup.
19312         * modules/getaddrinfo (Depends-on): Likewise.
19313         * modules/localename (Depends-on): Likewise.
19314         * modules/relocatable-lib (Depends-on): Likewise.
19315         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19316         * modules/relocatable-prog (Depends-on): Likewise.
19317         * modules/trim (Depends-on): Likewise.
19318         * modules/unictype/gen-ctype (Depends-on): Likewise.
19319         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19320
19321 2008-11-02  Bruno Haible  <bruno@clisp.org>
19322
19323         Mark 'strcspn' obsolete.
19324         * modules/strcspn (Status, Notice): New sections.
19325
19326 2008-11-02  Bruno Haible  <bruno@clisp.org>
19327
19328         Mark 'rmdir' obsolete.
19329         * modules/rmdir (Status, Notice): New sections.
19330         * modules/clean-temp (Depends-on): Add rmdir.
19331         * modules/openat (Depends-on): Likewise.
19332
19333 2008-11-02  Bruno Haible  <bruno@clisp.org>
19334
19335         Mark 'raise' obsolete.
19336         * modules/raise (Status, Notice): New sections.
19337         (Include): Specify <signal.h>.
19338         * modules/stdio (Depends-on): Add raise.
19339         * modules/write (Depends-on): Likewise.
19340
19341 2008-11-02  Bruno Haible  <bruno@clisp.org>
19342
19343         Mark 'memset' obsolete.
19344         * modules/memset (Status, Notice): New sections.
19345
19346 2008-11-02  Bruno Haible  <bruno@clisp.org>
19347
19348         Mark 'memmove' obsolete.
19349         * modules/memmove (Status, Notice): New sections.
19350         * modules/argp (Depends-on): Add memmove.
19351         * modules/argz (Depends-on): Likewise.
19352         * modules/canonicalize (Depends-on): Likewise.
19353         * modules/canonicalize-lgpl (Depends-on): Likewise.
19354         * modules/fts (Depends-on): Likewise.
19355         * modules/getcwd (Depends-on): Likewise.
19356         * modules/human (Depends-on): Likewise.
19357         * modules/regex (Depends-on): Likewise.
19358         * modules/striconveh (Depends-on): Likewise.
19359         * modules/trim (Depends-on): Likewise.
19360         * modules/unistr/u8-move (Depends-on): Likewise.
19361         * modules/unistr/u16-move (Depends-on): Likewise.
19362         * modules/unistr/u32-move (Depends-on): Likewise.
19363
19364 2008-11-02  Bruno Haible  <bruno@clisp.org>
19365
19366         Mark 'memcpy' obsolete.
19367         * modules/memcpy (Status, Notice): New sections.
19368
19369 2008-11-02  Bruno Haible  <bruno@clisp.org>
19370
19371         Mark 'memcmp' obsolete.
19372         * modules/memcmp (Status, Notice): New sections.
19373         * modules/argmatch (Depends-on): Add memchr.
19374         * modules/backupfile (Depends-on): Likewise.
19375         * modules/c-strcasestr (Depends-on): Likewise.
19376         * modules/crypto/des (Depends-on): Likewise.
19377         * modules/csharpcomp (Depends-on): Likewise.
19378         * modules/fnmatch (Depends-on): Likewise.
19379         * modules/git-merge-changelog (Depends-on): Likewise.
19380         * modules/isnand (Depends-on): Likewise.
19381         * modules/isnand-nolibm (Depends-on): Likewise.
19382         * modules/isnanf (Depends-on): Likewise.
19383         * modules/isnanf-nolibm (Depends-on): Likewise.
19384         * modules/isnanl (Depends-on): Likewise.
19385         * modules/isnanl-nolibm (Depends-on): Likewise.
19386         * modules/mbchar (Depends-on): Likewise.
19387         * modules/memcoll (Depends-on): Likewise.
19388         * modules/quotearg (Depends-on): Likewise.
19389         * modules/regex (Depends-on): Likewise.
19390         * modules/relocatable-prog (Depends-on): Likewise.
19391         * modules/same (Depends-on): Likewise.
19392         * modules/signbit (Depends-on): Likewise.
19393         * modules/strcasestr-simple (Depends-on): Likewise.
19394         * modules/unictype/gen-ctype (Depends-on): Likewise.
19395         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19396         * modules/uniname/uniname (Depends-on): Likewise.
19397         * modules/unistr/u8-cmp (Depends-on): Likewise.
19398
19399 2008-11-02  Bruno Haible  <bruno@clisp.org>
19400
19401         Mark 'memchr' obsolete.
19402         * modules/memchr (Status, Notice): New sections.
19403         * modules/argp (Depends-on): Add memchr.
19404         * modules/base64 (Depends-on): Likewise.
19405         * modules/c-strcasestr (Depends-on): Likewise.
19406         * modules/chdir-long (Depends-on): Likewise.
19407         * modules/fnmatch (Depends-on): Likewise.
19408         * modules/getsubopt (Depends-on): Likewise.
19409         * modules/git-merge-changelog (Depends-on): Likewise.
19410         * modules/glob (Depends-on): Likewise.
19411         * modules/strcasestr-simple (Depends-on): Likewise.
19412         * modules/strnlen (Depends-on): Likewise.
19413
19414 2008-11-02  Bruno Haible  <bruno@clisp.org>
19415
19416         Mark 'atexit' obsolete.
19417         * modules/atexit (Status, Notice): New sections.
19418         * modules/chdir-long (Depends-on): Add atexit.
19419         * modules/wait-process (Depends-on): Likewise.
19420
19421 2008-11-02  Bruno Haible  <bruno@clisp.org>
19422
19423         * gnulib-tool: New option --with-obsolete.
19424         (func_usage): Document it.
19425         (func_modules_transitive_closure): Drop obsolete dependencies if
19426         incobsolete is not true.
19427         (func_import): Read and save the incobsolete variable to the cache.
19428
19429 2008-11-02  Bruno Haible  <bruno@clisp.org>
19430
19431         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19432         * gnulib-tool: New option --extract-status.
19433         (func_usage): Document it.
19434         (sed_extract_prog): Recognize it.
19435         (func_get_status): New function.
19436
19437 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19438
19439         * modules/sockets (License): Change from LGPL to LGPLv2+.
19440
19441 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19442
19443         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19444
19445 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19446
19447         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19448         Mention times and sys_times.
19449         * modules/sys_times, modules/sys_times-tests: New modules.
19450         * modules/times, modules/times-tests: Likewise
19451         * m4/sys_times_h.m4: New file.
19452         * lib/sys_times.in.h: Likewise
19453         * lib/times.c: Likewise.
19454         * tests/test-sys_times.c: Likewise.
19455         * tests/test-times.c: Likewise.
19456         * doc/posix-headers/sys_times.texi: Update.
19457         * doc/posix-functions/times.texi: Update.
19458
19459 2008-10-28  Jim Meyering  <meyering@redhat.com>
19460
19461         * modules/tempname (Depends-on): Add lstat.
19462
19463         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19464
19465 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19466
19467         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19468         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19469         using idiom used elsewhere in gnulib.
19470
19471 2008-10-27  Jim Meyering  <meyering@redhat.com>
19472
19473         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19474
19475 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19476
19477         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19478         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19479         programs.
19480         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19481
19482 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19483
19484         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19485
19486 2008-10-27  Bruno Haible  <bruno@clisp.org>
19487
19488         * tests/test-lstat.c: Include <stdio.h>.
19489
19490 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19491
19492         * modules/lstat-tests: New module.
19493         * tests/test-lstat.c: New file.
19494
19495 2008-10-26  Jim Meyering  <meyering@redhat.com>
19496
19497         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19498
19499 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19500             Bruno Haible  <bruno@clisp.org>
19501
19502         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19503         * modules/configmake (Include): Add a note that the include must come
19504         after all system headers.
19505         * lib/javaversion.c: Include configmake.h after all other includes.
19506
19507 2008-10-26  Bruno Haible  <bruno@clisp.org>
19508
19509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19510         HAVE_STRUCT_RANDOM_DATA to 1.
19511         (gl_STDLIB_H): Simplify.
19512
19513 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19514
19515         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19516         substitute HAVE_STRUCT_RANDOM_DATA.
19517         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19518         random_data.
19519         * modules/stdlib (Makefile.am): Substitute
19520         HAVE_STRUCT_RANDOM_DATA.
19521
19522 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19523
19524         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19525         * doc/gnulib-intro.texi (Copyright): Likewise.
19526
19527 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19528
19529         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19530         findings.
19531
19532 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19533             Bruno Haible  <bruno@clisp.org>
19534
19535         * lib/unistd.in.h: Include <winsock2.h>.
19536         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19537         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19538         Provide dummy declarations.
19539         (gethostname): Override.
19540         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19541         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19542         gl_PREREQ_SYS_H_WINSOCK2.
19543         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19544         * doc/posix-functions/gethostname.texi: More details.
19545
19546 2008-10-25  Bruno Haible  <bruno@clisp.org>
19547
19548         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19549         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19550         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19551
19552         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19553         here ...
19554         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19555         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19556         gl_UNISTD_H_DEFAULTS.
19557
19558 2008-10-25  Eric Blake  <ebb9@byu.net>
19559
19560         signbit: avoid spurious compiler failure
19561         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19562         declarations inside function.
19563
19564 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19565             Bruno Haible  <bruno@clisp.org>
19566
19567         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19568         * modules/random_r (Depends-on): Add stdint.
19569
19570 2008-10-24  Bruno Haible  <bruno@clisp.org>
19571
19572         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19573         Eggert.
19574         * modules/strerror (License): Likewise.
19575
19576 2008-10-24  Jim Meyering  <meyering@redhat.com>
19577
19578         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19579         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19580
19581 2008-10-24  Eric Blake  <ebb9@byu.net>
19582
19583         getgroups: fix compilation when getgroups is available
19584         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19585         but with <config.h> override of getgroups disabled.
19586
19587 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19588
19589         * doc/gnulib.texi (Header files): Add note about C++ problems.
19590         Explained by Bruno Haible <bruno@clisp.org>.
19591
19592 2008-10-23  Bruno Haible  <bruno@clisp.org>
19593
19594         Define a dummy SA_NODEFER macro on Interix.
19595         * lib/signal.in.h (SA_NODEFER): Define fallback.
19596         Reported by Aleksey Cheusov <cheusov@tut.by> via
19597         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19598
19599 2008-10-23  Bruno Haible  <bruno@clisp.org>
19600
19601         * modules/freadahead (License): Change to LGPLv2+.
19602         Suggested by Simon Josefsson.
19603
19604 2008-10-23  Jim Meyering  <meyering@redhat.com>
19605
19606         random_r: new module
19607         * modules/random_r: New file.
19608         * m4/random_r.m4: New file.
19609         * lib/random_r.c: New file, from glibc.
19610         * modules/random_r-tests: New file.
19611         * tests/test-random_r.c: New file.
19612         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19613          Declare.
19614         (RAND_MAX): Define.
19615         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19616         * modules/stdlib: Substitute them, too.
19617         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19618         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19619         * doc/glibc-functions/random_r.texi: Likewise.
19620         * doc/glibc-functions/setstate_r.texi: Likewise.
19621         * doc/glibc-functions/srandom_r.texi: Likewise.
19622         * config/srclist.txt: Mention it.
19623
19624 2008-10-23  David Lutterkort  <lutter@redhat.com>
19625
19626         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19627         link requirement
19628
19629 2008-10-23  Jim Meyering  <meyering@redhat.com>
19630
19631         selinux-h: mark parameters of stub functions as intentionally unused
19632         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19633         * lib/se-context.in.h: Likewise.
19634
19635 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19636
19637         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19638
19639 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19640
19641         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19642
19643 2008-10-22  Eric Blake  <ebb9@byu.net>
19644
19645         glthread/thread: avoid compiler warning
19646         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19647         Add unreachable abort to silence compiler.
19648
19649 2008-10-22  Eric Blake  <ebb9@byu.net>
19650
19651         netdb: also supply struct addrinfo for cygwin 1.5.x
19652         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19653         older cygwin.
19654         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19655         cygwin.
19656         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19657
19658 2008-10-22  Bruno Haible  <bruno@clisp.org>
19659
19660         * users.txt: Update entry about pspp.
19661
19662 2008-10-21  Bruno Haible  <bruno@clisp.org>
19663
19664         Simplification.
19665         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19666         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19667
19668         Simplification.
19669         * lib/ioctl.c (ioctl): Don't undefine.
19670         * lib/socket.c (socket): Don't undefine.
19671
19672         Remove unused module indicator macros.
19673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19674         GNULIB_$1 as a C macro.
19675
19676         * doc/posix-functions/close.texi: Undo last change.
19677         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19678         Windows platforms.
19679
19680 2008-10-21  Bruno Haible  <bruno@clisp.org>
19681
19682         Add gethostname() declaration to <unistd.h>.
19683         * lib/unistd.in.h (gethostname): New declaration.
19684         * lib/gethostname.c: Include <unistd.h>.
19685         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19686         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19688         and HAVE_GETHOSTNAME.
19689         * modules/gethostname (Depends-on): Add unistd.
19690         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19691         (Include): Specify <unistd.h>.
19692         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19693         HAVE_GETHOSTNAME.
19694         * tests/test-gethostname.c: Include <unistd.h> first.
19695
19696 2008-10-21  Bruno Haible  <bruno@clisp.org>
19697
19698         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19699         * modules/select-tests (Depends-on): Likewise.
19700         Reported by Simon Josefsson.
19701
19702 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19703
19704         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19705         * lib/accept.c: New file, based on winsock.c.
19706         * lib/bind.c: New file, based on winsock.c.
19707         * lib/connect.c: New file, based on winsock.c.
19708         * lib/getpeername.c: New file, based on winsock.c.
19709         * lib/getsockname.c: New file, based on winsock.c.
19710         * lib/getsockopt.c: New file, based on winsock.c.
19711         * lib/ioctl.c: New file, based on winsock.c.
19712         * lib/listen.c: New file, based on winsock.c.
19713         * lib/recv.c: New file, based on winsock.c.
19714         * lib/recvfrom.c: New file, based on winsock.c.
19715         * lib/send.c: New file, based on winsock.c.
19716         * lib/sendto.c: New file, based on winsock.c.
19717         * lib/setsockopt.c: New file, based on winsock.c.
19718         * lib/shutdown.c: New file, based on winsock.c.
19719         * lib/socket.c: New file, based on winsock.c.
19720         * lib/w32sock.h: New file, based on winsock.c.
19721         * lib/winsock.c: Remove file.
19722         * modules/accept: Likewise.
19723         * modules/bind: Likewise.
19724         * modules/connect: Likewise.
19725         * modules/getpeername: Likewise.
19726         * modules/getsockname: Likewise.
19727         * modules/getsockopt: Likewise.
19728         * modules/ioctl: Likewise.
19729         * modules/listen: Likewise.
19730         * modules/recv: Likewise.
19731         * modules/recvfrom: Likewise.
19732         * modules/send: Likewise.
19733         * modules/sendto: Likewise.
19734         * modules/setsockopt: Likewise.
19735         * modules/shutdown: Likewise.
19736         * modules/socket: Use socket.c instead of winsock.c.
19737         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19738         * doc/posix-functions/accept.texi: Doc fix.
19739         * doc/posix-functions/bind.texi: Doc fix.
19740         * doc/posix-functions/close.texi: Doc fix.
19741         * doc/posix-functions/connect.texi: Doc fix.
19742         * doc/posix-functions/getpeername.texi: Doc fix.
19743         * doc/posix-functions/getsockname.texi: Doc fix.
19744         * doc/posix-functions/getsockopt.texi: Doc fix.
19745         * doc/posix-functions/ioctl.texi: Doc fix.
19746         * doc/posix-functions/listen.texi: Doc fix.
19747         * doc/posix-functions/recv.texi: Doc fix.
19748         * doc/posix-functions/recvfrom.texi: Doc fix.
19749         * doc/posix-functions/send.texi: Doc fix.
19750         * doc/posix-functions/sendto.texi: Doc fix.
19751         * doc/posix-functions/setsockopt.texi: Doc fix.
19752         * doc/posix-functions/shutdown.texi: Doc fix.
19753         * doc/posix-functions/socket.texi: Doc fix.
19754
19755 2008-10-20  Bruno Haible  <bruno@clisp.org>
19756
19757         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19758         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19759         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19760         as an alias for SIGABRT.
19761         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19762         (sigaction): Map it to SIGABRT.
19763         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19764
19765 2008-10-20  Bruno Haible  <bruno@clisp.org>
19766
19767         * lib/fts.c: Don't include lstat.h.
19768         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19769
19770         Move the lstat() declaration to <sys/stat.h>.
19771         * lib/lstat.h: Remove file.
19772         * lib/sys_stat.in.h: Add special invocation convention.
19773         (lstat): New declaration.
19774         * lib/lstat.c (orig_lstat): New function.
19775         (rpl_lstat): Use orig_lstat instead of lstat.
19776         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19777         AC_C_INLINE. Set REPLACE_LSTAT.
19778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19779         and REPLACE_LSTAT.
19780         * modules/lstat (Files): Remove lib/lstat.h.
19781         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19782         (Include): Specify <sys/stat.h> instead of lstat.h.
19783         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19784         REPLACE_LSTAT.
19785         * NEWS: Mention the change.
19786
19787 2008-10-20  Bruno Haible  <bruno@clisp.org>
19788
19789         * modules/posix_spawn-tests: New file.
19790         * tests/test-posix_spawn3.c: New file.
19791
19792 2008-10-20  Bruno Haible  <bruno@clisp.org>
19793
19794         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19795         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19796         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19797         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19798         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19799
19800 2008-10-20  Bruno Haible  <bruno@clisp.org>
19801
19802         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19803         of posix_spawn on AIX 5.3.
19804
19805 2008-10-20  Bruno Haible  <bruno@clisp.org>
19806
19807         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19808
19809 2008-10-20  Bruno Haible  <bruno@clisp.org>
19810
19811         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19812         of AC_LANG_PROGRAM.
19813
19814 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19815
19816         * lib/netdb.in.h: Don't define GNU specific constants until they
19817         are supported or needed.  Reported by Bruno Haible
19818         <bruno@clisp.org>.
19819
19820 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19821
19822         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19823
19824 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19825
19826         * lib/getaddrinfo.h: Remove file.
19827         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19828         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19829         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19830         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19831         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19832         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19833         * tests/test-getaddrinfo.c: Likewise.
19834         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19835         * NEWS: Mention change.
19836
19837 2008-10-19  Bruno Haible  <bruno@clisp.org>
19838
19839         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19840
19841 2008-10-19  Bruno Haible  <bruno@clisp.org>
19842
19843         * lib/wait-process.c: Include simply <sys/wait.h>.
19844         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19845         WIFSTOPPED): Remove fallback definitions.
19846         * modules/wait-process (Depends-on): Add sys_wait.
19847
19848         New module 'sys_wait'.
19849         * modules/sys_wait: New file.
19850         * lib/sys_wait.in.h: New file, partially copied from
19851         lib/wait-process.c.
19852         * m4/sys_wait_h.m4: New file.
19853         * doc/posix-headers/sys_wait.texi: Mention the new module.
19854
19855 2008-10-19  Bruno Haible  <bruno@clisp.org>
19856
19857         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19858
19859 2008-10-19  Bruno Haible  <bruno@clisp.org>
19860
19861         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19862         * lib/wait-process.c (WAIT_T): Remove type.
19863         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19864         (wait_subprocess): Update.
19865
19866 2008-10-19  Bruno Haible  <bruno@clisp.org>
19867
19868         New module 'atoll'.
19869         * modules/atoll: New file.
19870         * lib/stdlib.in.h (atoll): New declaration.
19871         * lib/atoll.c: New file, from glibc with modifications.
19872         * m4/atoll.m4: New file.
19873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19874         HAVE_ATOLL.
19875         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19876         * doc/posix-functions/atoll.texi: Mention the new module.
19877
19878 2008-10-19  Bruno Haible  <bruno@clisp.org>
19879
19880         Add strtoull() declaration to <stdlib.h>.
19881         * lib/stdlib.in.h (strtoull): New declaration.
19882         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19883         Set HAVE_STRTOULL.
19884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19885         HAVE_STRTOULL.
19886         * modules/strtoull (Depends-on): Add stdlib.
19887         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19888         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19889         HAVE_STRTOULL.
19890
19891 2008-10-19  Bruno Haible  <bruno@clisp.org>
19892
19893         Add strtoll() declaration to <stdlib.h>.
19894         * lib/stdlib.in.h (strtoll): New declaration.
19895         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19896         Set HAVE_STRTOLL.
19897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19898         HAVE_STRTOLL.
19899         * modules/strtoll (Depends-on): Add stdlib.
19900         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19901         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19902
19903 2008-10-19  Bruno Haible  <bruno@clisp.org>
19904
19905         * modules/bcopy (Depends-on): Add strings.
19906         (Include): Specify <strings.h>.
19907
19908 2008-10-19  Bruno Haible  <bruno@clisp.org>
19909
19910         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19911
19912 2008-10-19  Bruno Haible  <bruno@clisp.org>
19913
19914         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19915         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19916         mingw.
19917
19918 2008-10-19  Bruno Haible  <bruno@clisp.org>
19919
19920         * lib/atanl.c: Don't include isnanl.h.
19921         * lib/cosl.c: Likewise.
19922         * lib/ldexpl.c: Likewise.
19923         * lib/logl.c: Likewise.
19924         * lib/sinl.c: Likewise.
19925         * lib/sqrtl.c: Likewise.
19926         * lib/tanl.c: Likewise.
19927
19928         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19929         * lib/isnanf.h: Remove file.
19930         * lib/isnand.h: Remove file.
19931         * lib/isnanl.h: Remove file.
19932         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19933         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19934         macros.
19935         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19936         HAVE_ISNANF, don't define it as a C macro.
19937         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19938         HAVE_ISNAND, don't define it as a C macro.
19939         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19940         HAVE_ISNANL, don't define it as a C macro.
19941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19942         HAVE_ISNAN[FDL].
19943         * modules/isnanf (Files): Remove lib/isnanf.h.
19944         (Depends-on): Add math.
19945         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19946         (Include): Specify <math.h> instead of isnanf.h.
19947         * modules/isnand (Files): Remove lib/isnand.h.
19948         (Depends-on): Add math.
19949         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19950         (Include): Specify <math.h> instead of isnand.h.
19951         * modules/isnanl (Files): Remove lib/isnanl.h.
19952         (Depends-on): Add math.
19953         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19954         (Include): Specify <math.h> instead of isnanl.h.
19955         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19956         HAVE_ISNAN[FDL].
19957         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19958         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19959         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19960         * NEWS: Mention the change.
19961
19962 2008-10-18  Bruno Haible  <bruno@clisp.org>
19963
19964         Add getusershell(), setusershell(), endusershell() declarations to
19965         <unistd.h>.
19966         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19967         declarations.
19968         * lib/getusershell.c: Include unistd.h.
19969         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19970         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19971         HAVE_GETUSERSHELL.
19972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19973         and HAVE_GETUSERSHELL.
19974         * modules/getusershell (Depends-on): Add unistd, extensions.
19975         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19976         (Include): Specify <unistd.h>.
19977         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19978         HAVE_GETUSERSHELL.
19979
19980 2008-10-18  Bruno Haible  <bruno@clisp.org>
19981
19982         Add a getloadavg() declaration to <stdlib.h>.
19983         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19984         getloadavg declaration.
19985         (getloadavg): New declaration.
19986         * lib/getloadavg.c: Include <stdlib.h> first.
19987         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19988         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19989         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19991         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19992         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19993         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19994         (Include): Specify <stdlib.h>.
19995         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19996         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19997
19998 2008-10-18  Bruno Haible  <bruno@clisp.org>
19999
20000         * lib/dirchownmod.c: Don't include lchmod.h.
20001
20002         Move the lchmod() declaration to <sys/stat.h>.
20003         * lib/lchmod.h: Remove file.
20004         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20005         (lchmod): New declaration, moved here from lib/lchown.h.
20006         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20007         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20008         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20009         and HAVE_LCHMOD.
20010         * modules/lchmod (Files): Remove lib/lchmod.h.
20011         (Depends-on): Add sys_stat, extensions.
20012         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20013         (Include): Specify <sys/stat.h> instead of lchmod.h.
20014         * modules/sys_stat (Depends-on): Add link-warning.
20015         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20016         definition of GL_LINK_WARNING.
20017         * NEWS: Mention the change.
20018
20019 2008-10-18  Bruno Haible  <bruno@clisp.org>
20020
20021         * lib/fchdir.c: Don't include dirfd.h.
20022         * lib/fts.c: Likewise.
20023         * lib/getcwd.c: Likewise.
20024         * lib/glob.c: Likewise.
20025
20026         Move the dirfd() declaration to <dirent.h>.
20027         * lib/dirfd.h: Remove file.
20028         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20029         (dirfd): New declaration.
20030         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20031         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20032         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20033         HAVE_DECL_DIRFD.
20034         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20035         HAVE_DECL_DIRFD.
20036         * modules/dirfd (Files): Remove lib/dirfd.h.
20037         (Depends-on): Add dirent, extensions.
20038         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20039         (Include): Specify <dirent.h> instead of dirfd.h.
20040         * modules/dirent (Depends-on): Add link-warning.
20041         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20042         definition of GL_LINK_WARNING.
20043         * NEWS: Mention the change.
20044
20045 2008-10-18  Bruno Haible  <bruno@clisp.org>
20046
20047         Move the euidaccess() declaration to <unistd.h>.
20048         * lib/euidaccess.h: Remove file.
20049         * lib/unistd.in.h (euidaccess): New declaration.
20050         * lib/euidaccess.c: Don't include euidaccess.h.
20051         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20052         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20054         and HAVE_EUIDACCESS.
20055         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20056         (Depends-on): Add unistd.
20057         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20058         (Include): Specify <unistd.h> instead of euidaccess.h.
20059         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20060         HAVE_EUIDACCESS.
20061         * NEWS: Mention the change.
20062
20063 2008-10-18  Bruno Haible  <bruno@clisp.org>
20064
20065         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20066
20067         Move the getdomainname() declaration to <unistd.h>.
20068         * lib/getdomainname.h: Remove file.
20069         * lib/unistd.in.h (getdomainname): New declaration.
20070         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20071         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20072         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20073         HAVE_GETDOMAINNAME.
20074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20075         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20076         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20077         (Depends-on): Add unistd, extensions.
20078         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20079         (Includes): Specify <unistd.h> instead of getdomainname.h.
20080         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20081         HAVE_GETDOMAINNAME.
20082         * NEWS: Mention the change.
20083
20084 2008-10-18  Bruno Haible  <bruno@clisp.org>
20085
20086         * modules/dirent: New file.
20087         * m4/dirent_h.m4: New file.
20088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20089         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20090         * modules/fchdir (Files): Remove lib/dirent.in.h.
20091         (Depends-on): Add dirent.
20092         (Makefile.am): Move rules to modules/dirent.
20093         * doc/posix-headers/dirent.texi: Mention the new module.
20094
20095 2008-10-18  Bruno Haible  <bruno@clisp.org>
20096
20097         Avoid -Wunused-parameter warnings in public gnulib header files.
20098         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20099         macro.
20100         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20101
20102 2008-10-18  Bruno Haible  <bruno@clisp.org>
20103
20104         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20105         * doc/glibc-functions/error.texi: Mention the module 'error'.
20106         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20107         * doc/glibc-functions/getdomainname.texi: Mention the module
20108         'getdomainname'.
20109         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20110         * doc/glibc-functions/getpagesize.texi: Mention the module
20111         'getpagesize'.
20112         * doc/glibc-functions/getusershell.texi: Mention the module
20113         'getusershell'.
20114         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20115         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20116         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20117         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20118         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20119         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20120         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20121         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20122         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20123         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20124         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20125         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20126         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20127         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20128
20129 2008-10-17  Bruno Haible  <bruno@clisp.org>
20130
20131         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20132         HP-UX and IRIX, use -0.0L.
20133         * tests/test-ceill.c (minus_zero): Likewise.
20134         * tests/test-floorl.c (minus_zero): Likewise.
20135         * tests/test-frexpl.c (minus_zero): Likewise.
20136         * tests/test-isnan.c (minus_zerol): Likewise.
20137         * tests/test-isnanl.h (minus_zero): Likewise.
20138         * tests/test-ldexpl.c (minus_zero): Likewise.
20139         * tests/test-roundl.c (minus_zero): Likewise.
20140         * tests/test-signbit.c (minus_zerol): Likewise.
20141         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20142         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20143         * tests/test-truncl.c (minus_zero): Likewise.
20144         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20145         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20146         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20147         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20148
20149 2008-10-17  Bruno Haible  <bruno@clisp.org>
20150
20151         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20152         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20153         that it gets activated only for gcc >= 3.0.
20154         * lib/dirent.in.h: Likewise.
20155         * lib/errno.in.h: Likewise.
20156         * lib/fcntl.in.h: Likewise.
20157         * lib/float.in.h: Likewise.
20158         * lib/iconv.in.h: Likewise.
20159         * lib/inttypes.in.h: Likewise.
20160         * lib/locale.in.h: Likewise.
20161         * lib/math.in.h: Likewise.
20162         * lib/netdb.in.h: Likewise.
20163         * lib/netinet_in.in.h: Likewise.
20164         * lib/search.in.h: Likewise.
20165         * lib/signal.in.h: Likewise.
20166         * lib/spawn.in.h: Likewise.
20167         * lib/stdarg.in.h: Likewise.
20168         * lib/stdint.in.h: Likewise.
20169         * lib/stdio.in.h: Likewise.
20170         * lib/stdlib.in.h: Likewise.
20171         * lib/string.in.h: Likewise.
20172         * lib/strings.in.h: Likewise.
20173         * lib/sys_file.in.h: Likewise.
20174         * lib/sys_ioctl.in.h: Likewise.
20175         * lib/sys_select.in.h: Likewise.
20176         * lib/sys_socket.in.h: Likewise.
20177         * lib/sys_stat.in.h: Likewise.
20178         * lib/sys_time.in.h: Likewise.
20179         * lib/sysexits.in.h: Likewise.
20180         * lib/time.in.h: Likewise.
20181         * lib/unistd.in.h: Likewise.
20182         * lib/wchar.in.h: Likewise.
20183         * lib/wctype.in.h: Likewise.
20184         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20185
20186 2008-10-17  Jim Meyering  <meyering@redhat.com>
20187
20188         ignore-value: don't depend on inline module
20189         * modules/ignore-value (Depends-on): Remove 'inline'.
20190         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20191         Suggestion from Bruno Haible.
20192
20193 2008-10-17  Bruno Haible  <bruno@clisp.org>
20194
20195         New implementation of condition variables for Win32.
20196         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20197         (gl_linked_waitqueue_t): New type.
20198         (gl_cond_t): Use it.
20199         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20200         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20201         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20202         (glthread_cond_init_func, glthread_cond_wait_func,
20203         glthread_cond_timedwait_func, glthread_cond_signal_func,
20204         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20205         Reimplemented on the basis of gl_linked_waitqueue_t.
20206         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20207         gl_waitqueue_t.
20208         (gl_rwlock_t): Update.
20209         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20210
20211 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20212
20213         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20214         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20215
20216 2008-10-17  Jim Meyering  <meyering@redhat.com>
20217
20218         ignore-value: new module
20219         * modules/ignore-value: New file.
20220         * lib/ignore-value.h: New file.
20221         * MODULES.html.sh (Compiler warning management): New section,
20222         just for this module.  More to come.
20223
20224 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20225
20226         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20227         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20228         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20229
20230 2008-10-16  Jim Meyering  <meyering@redhat.com>
20231
20232         openat-die.c: avoid 'no previous prototype' warning
20233         * lib/openat-die.c: Include "openat.h".
20234         Reported by Reuben Thomas <rrt@sc3d.org>.
20235
20236 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20237
20238         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20239         * lib/netdb.in.h: Fix typo.
20240         Reported by Bruno Haible  <bruno@clisp.org>
20241
20242         * lib/netdb.in.h: Include sys/socket.h for platforms without
20243         netdb.h, to get structures like hostent on MinGW.
20244         * modules/netdb (Depends-on): Add sys_socket.
20245
20246 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20247
20248         * modules/netdb, modules/netdb-tests: New file.
20249         * m4/netdb_h.m4: New file.
20250         * lib/netdb.in.h: Add, currently just an empty file pending
20251         definitions.
20252         * tests/test-netdb.c: New file.
20253         * doc/posix-headers/netdb.texi: Mention that we replace it if
20254         needed.
20255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20256         netdb.
20257
20258 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20259
20260         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20261         with code.
20262
20263 2008-10-13  Bruno Haible  <bruno@clisp.org>
20264
20265         * lib/glthread/cond.c (glthread_cond_wait_func,
20266         glthread_cond_timedwait_func): Add a comment.
20267
20268 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20269
20270         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20271         * tests/test-select.c: Likewise,
20272
20273 2008-10-13  Bruno Haible  <bruno@clisp.org>
20274
20275         * lib/glthread/cond.c (glthread_cond_wait_func,
20276         glthread_cond_timedwait_func): Fix variable name.
20277         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20278
20279 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20280
20281         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20282         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20283         struct sockaddr.sa_len.
20284         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20285
20286 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20287
20288         * build-aux/pmccabe2html: Add css and css_url parameters.
20289
20290 2008-10-12  Bruno Haible  <bruno@clisp.org>
20291
20292         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20293         calling aclx_get.
20294         Reported by Rainer Tammer <tammer@tammer.net>.
20295
20296 2008-10-12  Bruno Haible  <bruno@clisp.org>
20297
20298         Use msvcrt aware primitives for creation/termination of Win32 threads.
20299         * lib/glthread/thread.c: Include <process.h>.
20300         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20301         (wrapper_func): Update signature.
20302         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20303
20304 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20305             Bruno Haible  <bruno@clisp.org>
20306
20307         Provide a Win32 implementation of the 'cond' module.
20308         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20309         * lib/glthread/cond.c (glthread_cond_init_func,
20310         glthread_cond_wait_func, glthread_cond_timedwait_func,
20311         glthread_cond_signal_func, glthread_cond_broadcast_func,
20312         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20313         * modules/cond (Dependencies): Add gettimeofday.
20314
20315 2008-10-11  Bruno Haible  <bruno@clisp.org>
20316
20317         Make sleep work on older versions of mingw.
20318         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20319         only whether it exists.
20320         * doc/posix-functions/sleep.texi: Mention the problem with older
20321         versions of mingw.
20322
20323 2008-10-11  Bruno Haible  <bruno@clisp.org>
20324
20325         New module 'shutdown'.
20326         * modules/shutdown: New file.
20327         * lib/sys_socket.in.h (shutdown): New declaration.
20328         * lib/winsock.c (shutdown): New function.
20329         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20330         GNULIB_SHUTDOWN.
20331         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20332         * doc/posix-functions/shutdown.texi: Document the new module.
20333
20334 2008-10-11  Jim Meyering  <meyering@redhat.com>
20335
20336         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20337
20338 2008-10-11  Bruno Haible  <bruno@clisp.org>
20339
20340         New module 'fclose'.
20341         * modules/fclose: New file.
20342         * lib/stdio.in.h (fclose): New declaration.
20343         * lib/fclose.c: New file.
20344         * m4/fclose.m4: New file.
20345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20346         REPLACE_FCLOSE.
20347         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20348         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20349         REPLACE_FCLOSE.
20350         * modules/close (Depends-on): fclose.
20351         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20352
20353 2008-10-11  Bruno Haible  <bruno@clisp.org>
20354
20355         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20356         set errno and don't call _close.
20357
20358 2008-10-10  Bruno Haible  <bruno@clisp.org>
20359
20360         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20361         ACL, not afterwards. Fixes test failure on Cygwin.
20362
20363 2008-10-09  Ben Pfaff  <blp@gnu.org>
20364
20365         * build-aux/announce-gen: Fix gnulib version related part of usage
20366         message.  Die with a useful error message if no tarballs are
20367         found.
20368
20369 2008-10-10  Jim Meyering  <meyering@redhat.com>
20370
20371         bootstrap: use git's --depth=N option only if it's supported
20372         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20373         recognize the --depth option.  Reported by Pádraig Brady.
20374
20375 2008-10-09  Bruno Haible  <bruno@clisp.org>
20376
20377         New module 'ioctl'.
20378         * modules/ioctl: New file.
20379         * lib/sys_socket.in.h (ioctl): Remove declaration.
20380         * lib/winsock.c: Include <sys/ioctl.h>.
20381         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20382         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20383         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20384         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20385         * doc/posix-functions/ioctl.texi: Mention the new module.
20386
20387 2008-10-09  Bruno Haible  <bruno@clisp.org>
20388
20389         New module 'sys_ioctl'.
20390         * lib/sys_ioctl.in.h: New file.
20391         * m4/sys_ioctl_h.m4: New file.
20392         * modules/sys_ioctl: New file.
20393         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20394
20395 2008-10-09  Bruno Haible  <bruno@clisp.org>
20396
20397         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20398         * lib/winsock.c: Include <stdarg.h>.
20399         (rpl_ioctl): Change to second argument 'int' and then varargs.
20400
20401 2008-10-09  Bruno Haible  <bruno@clisp.org>
20402
20403         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20404         when the sys_socket module is present and the system has <winsock2.h>.
20405
20406 2008-10-09  Bruno Haible  <bruno@clisp.org>
20407
20408         * doc/posix-functions/close.texi: Mention module 'close' instead of
20409         module 'sys_socket'.
20410
20411 2008-10-09  Bruno Haible  <bruno@clisp.org>
20412
20413         * doc/glibc-headers/sys_ioctl.texi: New file.
20414         * doc/gnulib.texi: Include it.
20415
20416 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20417             Bruno Haible  <bruno@clisp.org>
20418
20419         Combine the two replacements of 'close'.
20420         * lib/sys_socket.in.h (close): Define to a reminder to include
20421         <unistd.h>.
20422         (_gl_close_fd_maybe_socket): New declaration.
20423         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20424         * lib/winsock.c (close): Remove undefinition.
20425         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20426         needed for the gnulib module 'close'.
20427         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20428         define to an error symbol or to a warning, if suitable.
20429         * lib/close.c: Include <sys/socket.h>.
20430         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20431         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20432         UNISTD_H_HAVE_WINSOCK2_H.
20433         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20435         UNISTD_H_HAVE_WINSOCK2_H.
20436         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20437         (configure.ac): Set a module indicator.
20438         (Makefile.am): Substitute GNULIB_CLOSE.
20439         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20440         * modules/poll-tests (Depends-on): Add close.
20441         * modules/select-tests (Depends-on): Likewise.
20442
20443 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20444             Bruno Haible  <bruno@clisp.org>
20445
20446         New module 'close'.
20447         * modules/close: New file.
20448         * lib/unistd.in.h (close): Move declaration out of the
20449         FCHDIR_REPLACEMENT scope.
20450         (_gl_unregister_fd): New declaration.
20451         * lib/close.c: New file.
20452         * lib/fchdir.c (rpl_close): Remove function.
20453         * m4/close.m4: New file.
20454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20455         close.
20456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20457         REPLACE_CLOSE.
20458         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20459         REPLACE_CLOSE.
20460         * modules/fchdir (Depends-on): Add close.
20461
20462 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20463             Bruno Haible  <bruno@clisp.org>
20464
20465         * lib/fcntl.in.h (open): Simplify conditionals.
20466         (_gl_register_fd): New declaration.
20467         * lib/fchdir.c (rpl_open): Remove function.
20468         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20469         also.
20470         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20472         open.
20473
20474 2008-10-09  Jim Meyering  <meyering@redhat.com>
20475
20476         GNUmakefile: use the more name-space-friendly "_version"
20477         * top/GNUmakefile (_dummy): Update.
20478         (_version): Rename from "version".
20479
20480 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20481             Bruno Haible  <bruno@clisp.org>
20482
20483         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20484         rpl_close.
20485         (_gl_register_fd): New function, extracted from rpl_open.
20486         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20487         (rpl_open, rpl_opendir): Use _gl_register_fd.
20488
20489 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20490
20491         Fix organization of 'open' replacement.
20492         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20493         (gl_FUNC_OPEN): Use it.
20494         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20495
20496 2008-10-08  Bruno Haible  <bruno@clisp.org>
20497
20498         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20499
20500 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20501
20502         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20503         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20504         listen).
20505
20506 2008-10-08  Eric Blake  <ebb9@byu.net>
20507
20508         GNUmakefile: add 'make version' target
20509         * top/GNUmakefile (_curr-ver): Split version update rules...
20510         (version): ...into a target.
20511
20512 2008-10-07  Bruno Haible  <bruno@clisp.org>
20513
20514         Use a more portable replacement expression for -0.0L.
20515         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20516         instead of -0.0L. Fix m4 quotation.
20517
20518         * tests/test-signbit.c: Include <float.h>.
20519         (minus_zero): New variable.
20520         (test_signbitl): Use minus_zero instead of -zero.
20521         * modules/signbit-tests (Depends-on): Add float.
20522
20523         * tests/test-ceill.c: Include <float.h>.
20524         (zero): Remove variable.
20525         (minus_zero): New variable.
20526         (main): Use minus_zero instead of -zero.
20527         * modules/ceill-tests (Depends-on): Add float.
20528
20529         * tests/test-floorl.c: Include <float.h>.
20530         (zero): Remove variable.
20531         (minus_zero): New variable.
20532         (main): Use minus_zero instead of -zero.
20533         * modules/floorl-tests (Depends-on): Add float.
20534
20535         * tests/test-roundl.c: Include <float.h>.
20536         (zero): Remove variable.
20537         (minus_zero): New variable.
20538         (main): Use minus_zero instead of -zero.
20539         * modules/roundl-tests (Depends-on): Add float.
20540
20541         * tests/test-truncl.c: Include <float.h>.
20542         (zero): Remove variable.
20543         (minus_zero): New variable.
20544         (main): Use minus_zero instead of -zero.
20545         * modules/truncl-tests (Depends-on): Add float.
20546
20547         * tests/test-frexpl.c (zero): Remove variable.
20548         (minus_zero): New variable.
20549         (main): Use minus_zero instead of -zero.
20550         * modules/frexpl-tests (Depends-on): Add float.
20551
20552         * tests/test-isnan.c (zerol): Remove variable.
20553         (minus_zerol): New variable.
20554         (test_long_double): Use minus_zerol instead of -zerol.
20555         * modules/isnan-tests (Depends-on): Add float.
20556
20557         * tests/test-isnanl.h (zero): Remove variable.
20558         (minus_zero): New variable.
20559         (main): Use minus_zero instead of -zero.
20560         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20561         * modules/isnanl-tests (Depends-on): Add float.
20562
20563         * tests/test-ldexpl.c (zero): Remove variable.
20564         (minus_zero): New variable.
20565         (main): Use minus_zero instead of -zero.
20566         * modules/ldexpl-tests (Depends-on): Add float.
20567
20568         * tests/test-snprintf-posix.h (zerol): Remove variable.
20569         (minus_zerol): New variable.
20570         (test_function): Use minus_zerol instead of -zerol.
20571         * modules/snprintf-posix-tests (Depends-on): Add float.
20572         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20573
20574         * tests/test-sprintf-posix.h (zerol): Remove variable.
20575         (minus_zerol): New variable.
20576         (test_function): Use minus_zerol instead of -zerol.
20577         * modules/sprintf-posix-tests (Depends-on): Add float.
20578         * modules/vsprintf-posix-tests (Depends-on): Add float.
20579
20580         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20581         (minus_zerol): New variable.
20582         (test_function): Use minus_zerol instead of -zerol.
20583         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20584
20585         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20586         (minus_zerol): New variable.
20587         (test_function): Use minus_zerol instead of -zerol.
20588         * modules/vasprintf-posix-tests (Depends-on): Add float.
20589
20590 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20591
20592         * MODULES.html.sh (Support for building documentation): Mention
20593         pmccabe2html.  Sort entries.
20594
20595         Add pmccabe2html module, from gnupdf.
20596         * build-aux/pmccabe.css: New file.
20597         * build-aux/pmccabe2html: New file.
20598         * m4/pmccabe2html.m4: New file.
20599         * modules/pmccabe2html: New file.
20600
20601 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20602
20603         flock: new module
20604         * MODULES.html.sh: Add to list of modules.
20605         * lib/flock.c: flock implementation for Windows and Unix systems
20606         which have fcntl.
20607         * doc/glibc-functions/flock.texi: Update documentation.
20608         * lib/sys_file.in.h: <sys/file.h> header file.
20609         * m4/flock.m4: M4 macros.
20610         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20611         * modules/flock: flock module.
20612         * modules/flock-tests: flock tests module.
20613         * modules/sys_file: sys/file.h module.
20614         * tests/test-flock.c: test suite for flock.
20615
20616 2008-10-06  Jim Meyering  <meyering@redhat.com>
20617
20618         bootstrap: check for LT_INIT more portably still ;-)
20619         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20620         Spotted by Bruno Haible.
20621
20622 2008-10-06  Eric Blake  <ebb9@byu.net>
20623
20624         test-signbit: avoid tripping Irix cc bug on -0.0L
20625         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20626         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20627         entire testsuite consistent and avoids an Irix 6.2 bug.
20628
20629 2008-10-05  Bruno Haible  <bruno@clisp.org>
20630             Jim Meyering  <jim@meyering.net>
20631
20632         Add an option for ignoring EPIPE during close_stdout.
20633         * lib/closeout.h: Include <stdbool.h>.
20634         (close_stdout_set_ignore_EPIPE): New declaration.
20635         * lib/closeout.c: Include <stdbool.h>.
20636         (ignore_EPIPE): New variable.
20637         (close_stdout_set_ignore_EPIPE): New function.
20638         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20639         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20640         failure.
20641         * modules/closeout (Depends-on): Add stdbool.
20642
20643 2008-10-05  Bruno Haible  <bruno@clisp.org>
20644
20645         * modules/accept: New file.
20646         * modules/bind: New file.
20647         * modules/connect: New file.
20648         * modules/getpeername: New file.
20649         * modules/getsockname: New file.
20650         * modules/getsockopt: New file.
20651         * modules/listen: New file.
20652         * modules/recv: New file.
20653         * modules/recvfrom: New file.
20654         * modules/send: New file.
20655         * modules/sendto: New file.
20656         * modules/setsockopt: New file.
20657         * modules/socket: New file.
20658         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20659         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20660         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20661         the particular module is requested. Add a link warning when the
20662         particular module is not requested.
20663         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20664         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20665         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20666         the particular module is requested.
20667         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20668         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20669         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20670         * modules/sys_socket (Depends-on): Add link-warning.
20671         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20672         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20673         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20674         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20675         GL_LINK_WARNING.
20676         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20677         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20678         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20679         * doc/posix-functions/getpeername.texi: Mention the new module
20680         'getpeername'.
20681         * doc/posix-functions/getsockname.texi: Mention the new module
20682         'getsockname'.
20683         * doc/posix-functions/getsockopt.texi: Mention the new module
20684         'getsockopt'.
20685         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20686         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20687         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20688         * doc/posix-functions/send.texi: Mention the new module 'send'.
20689         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20690         * doc/posix-functions/setsockopt.texi: Mention the new module
20691         'setsockopt'.
20692         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20693         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20694         listen, connect, accept.
20695         * modules/select-tests (Depends-on): Likewise.
20696
20697 2008-10-05  Bruno Haible  <bruno@clisp.org>
20698
20699         * lib/winsock.c (strerror): Remove unused #undef.
20700         (rpl_close): Remove unused local variable.
20701
20702         * modules/sys_socket (Depends-on); Add errno.
20703
20704 2008-10-05  Bruno Haible  <bruno@clisp.org>
20705
20706         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20707         (select): Add a link warning when the 'select' module is not used.
20708         * modules/sys_select (Depends-on): Add link-warning.
20709         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20710         Suggested by Paolo Bonzini.
20711
20712 2008-10-05  Jim Meyering  <meyering@redhat.com>
20713
20714         bootstrap: check for LT_INIT more portably
20715         * build-aux/bootstrap: Avoid using grep -E, since it's not
20716         portable enough.  Suggestion from Bruno Haible.
20717
20718 2008-10-05  Bruno Haible  <bruno@clisp.org>
20719
20720         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20721         as being fixed by gnulib.
20722
20723 2008-10-05  Bruno Haible  <bruno@clisp.org>
20724
20725         * modules/select-tests: New file, mostly copied from
20726         modules/sys_select-tests.
20727         * tests/test-select.c: New file, mostly copied from
20728         tests/test-sys_select.c.
20729         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20730         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20731         (Makefile.am): Remove test_sys_select_LDADD.
20732
20733         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20734         to an undefined symbol, for an error message.
20735         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20736         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20737         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20738         winsock-select.c here.
20739         * modules/sys_select (Files): Remove lib/winsock-select.c.
20740         (Depends-on): Remove alloca.
20741         (Makefile.am): Substitute GNULIB_SELECT.
20742         * modules/select: New file.
20743         * doc/posix-functions/select.texi: Update.
20744
20745 2008-10-05  Bruno Haible  <bruno@clisp.org>
20746
20747         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20748         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20749         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20750         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20751         getdtablesize.
20752         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20753         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20754
20755 2008-10-05  Bruno Haible  <bruno@clisp.org>
20756
20757         * modules/getdtablesize-tests: New file.
20758         * tests/test-getdtablesize.c: New file.
20759
20760         New module 'getdtablesize'.
20761         * lib/unistd.in.h (getdtablesize): New declaration.
20762         * lib/getdtablesize.c: New file.
20763         * m4/getdtablesize.m4: New file.
20764         * modules/getdtablesize: New file.
20765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20766         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20767         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20768         HAVE_GETDTABLESIZE.
20769         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20770
20771 2008-10-05  Bruno Haible  <bruno@clisp.org>
20772
20773         * modules/sched (Makefile.am): Fix typo.
20774         Reported by Simon Josefsson.
20775
20776 2008-10-05  Jim Meyering  <meyering@redhat.com>
20777
20778         bootstrap: check for LT_INIT, too
20779         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20780         are deprecated.  Suggestion from Ralf Wildenhues.
20781
20782 2008-10-05  Bruno Haible  <bruno@clisp.org>
20783
20784         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20785         overriding them by ours.
20786         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20787
20788 2008-10-05  Jim Meyering  <meyering@redhat.com>
20789
20790         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20791         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20792         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20793
20794 2008-10-04  Bruno Haible  <bruno@clisp.org>
20795
20796         * modules/dup2 (License): Change to LGPLv2+.
20797         * modules/sleep (License): Likewise.
20798         * modules/perror (License): Likewise.
20799         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20800         Blake.
20801         * modules/signal (License): Likewise.
20802         * modules/sigprocmask (License): Likewise.
20803         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20804         Meyering.
20805
20806 2008-10-04  Bruno Haible  <bruno@clisp.org>
20807
20808         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20809         Reported by Rainer Tammer <tammer@tammer.net>.
20810
20811 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20812             Bruno Haible  <bruno@clisp.org>
20813
20814         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20815         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20816         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20817
20818 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20819
20820         filevercmp: new module
20821         * lib/filevercmp.h: New function filevercmp comparing version strings.
20822         * lib/filevercmp.c: Implementation of filevercmp function.
20823         * modules/filevercmp: Module metadata.
20824         * tests/test-filevercmp.c: Unit test for new module.
20825         * modules/filevercmp-tests: Unit test metadata.
20826         * MODULES.html.sh: Add filevercmp module.
20827
20828 2008-10-03  Bruno Haible  <bruno@clisp.org>
20829
20830         * lib/c-ctype.h: Add comment.
20831         Reported by Jim Meyering.
20832
20833 2008-10-02  Bruno Haible  <bruno@clisp.org>
20834
20835         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20836
20837 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20838
20839         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20840         name of bootstrap.conf accordingly.
20841
20842 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20843
20844         * build-aux/bootstrap: Install git-merge-changelog configuration
20845         items into .gitconfig if needed.
20846
20847 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20848
20849         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20850         git repository, and initialize/update it accordingly.
20851
20852 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20853
20854         * modules/fsync-tests: New file.
20855         * tests/test-fsync.c: New file.
20856
20857         New module 'fsync'.
20858         * lib/fsync.c: New file.
20859         * m4/fsync.m4: New file.
20860         * modules/fsync: New file.
20861         * lib/unistd.in.h (fsync): New declaration.
20862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20863         GNULIB_FSYNC and HAVE_FSYNC.
20864         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20865         * MODULES.html.sh (posix_functions): Add fsync.
20866         * doc/posix-functions/fsync.texi: Mention the new module.
20867
20868 2008-10-02  Jim Meyering  <meyering@redhat.com>
20869
20870         fts.c: sync with similar code from coreutils' remove.c
20871         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20872         Guard also with "#if defined __linux__", since for now at least,
20873         this code is Linux-kernel-specific.
20874
20875 2008-10-02  Jim Meyering  <meyering@redhat.com>
20876
20877         fts: bug fixes
20878         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20879         Include <sys/vfs.h>, not <sys/statfs.h>.
20880
20881         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20882         Include <sys/vfs.h>, not <sys/statfs.h>.
20883
20884 2008-10-01  Bruno Haible  <bruno@clisp.org>
20885
20886         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20887         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20888         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20889         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20890         * doc/posix-functions/posix_spawnp.texi: Likewise.
20891         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20892         whether posix_spawn actually works.
20893         * m4/pipe.m4 (gl_PIPE): Likewise.
20894         * modules/execute (Files): Add m4/posix_spawn.m4.
20895         * modules/pipe (Files): Add m4/posix_spawn.m4.
20896         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20897
20898 2008-10-01  Jim Meyering  <meyering@redhat.com>
20899
20900         remove trailing spaces
20901         * NEWS: Likewise.
20902         * lib/poll.c (poll): Likewise.
20903         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20904         * lib/winsock.c (rpl_close): Likewise.
20905         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20906         * modules/yield: Likewise.
20907         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20908         * tests/test-sys_select.c (connect_to_socket): Likewise.
20909
20910         fts.c: adjust a new interface to be more generally useful
20911         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20912         (fts_build): Adjust caller.
20913
20914 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20915
20916         * modules/cond-tests: New file.
20917         * tests/test-cond.c: New file.
20918
20919 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20920             Bruno Haible  <bruno@clisp.org>
20921
20922         * modules/cond (Dependencies): Add errno, time.
20923         * lib/glthread/cond.h: Include <time.h>.
20924         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20925         across platforms.
20926
20927 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20928             Bruno Haible  <bruno@clisp.org>
20929
20930         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20931
20932 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20933             Bruno Haible  <bruno@clisp.org>
20934
20935         * modules/tls-tests (Depends-on): Add thread, yield.
20936         (configure.ac): Remove all checks.
20937         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20938         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20939         gl_thread_self): Remove definitions. Include glthread/thread.h and
20940         glthread/yield.h instead.
20941         (test_tls): Pass an additional NULL argument to gl_thread_join.
20942
20943 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20944             Bruno Haible  <bruno@clisp.org>
20945
20946         * modules/lock-tests (Depends-on): Add thread, yield.
20947         (configure.ac): Remove all checks.
20948         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20949         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20950         gl_thread_self): Remove definitions. Include glthread/thread.h and
20951         glthread/yield.h instead.
20952         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20953         additional NULL argument to gl_thread_join.
20954
20955 2008-09-30  Bruno Haible  <bruno@clisp.org>
20956
20957         Fix the Win32 implementation of the 'thread' module.
20958         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20959         pointer type.
20960         (gl_thread_self): Invoke gl_thread_self_func.
20961         (gl_thread_self_func): New declaration.
20962         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20963         (do_init_self_key, init_self_key): New functions.
20964         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20965         Remove some fields.
20966         (running_threads, running_lock): Remove variables.
20967         (get_current_thread_handle): New function.
20968         (gl_thread_self_func, wrapper_func, glthread_create_func,
20969         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20970         simplified.
20971
20972 2008-09-30  Bruno Haible  <bruno@clisp.org>
20973
20974         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20975         files.
20976
20977 2008-09-30  Jim Meyering  <meyering@redhat.com>
20978
20979         fts.m4: correct the test for statfs.f_type
20980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20981         when checking for statfs.f_type.
20982
20983 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20984
20985         tests: avoid some compiler warnings
20986         * tests/test-memchr.c (main): Pass NULL indirectly.
20987         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20988
20989 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
20990
20991         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20992         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20993         exactly specified dayshifts.
20994         (dayshift): New rule.
20995         (rel): Add dayshift.
20996         (relative_time_table) [tomorrow, yesterday, today, now]:
20997         Use tDAY_SHIFT in place of tDAY_UNIT.
20998         * tests/test-getdate.c: Add tests for now-disallowed countable
20999         dayshifts, e.g., "4 yesterday ago".
21000
21001 2008-09-29  Bruno Haible  <bruno@clisp.org>
21002
21003         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21004         * tests/test-posix_spawn1.in.sh: Renamed from
21005         tests/test-posix_spawn.in.sh.
21006         * tests/test-posix_spawn2.c: New file.
21007         * tests/test-posix_spawn2.in.sh: New file.
21008         * modules/posix_spawnp-tests (Files): Update.
21009         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21010
21011 2008-09-29  Bruno Haible  <bruno@clisp.org>
21012
21013         Propagate effects of putenv/setenv/unsetenv to child processes.
21014         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21015         * lib/pipe.c (create_pipe): Likewise.
21016
21017 2008-09-29  Bruno Haible  <bruno@clisp.org>
21018
21019         Enable use of shell scripts as executables in mingw.
21020         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21021         run the program as a shell script.
21022         * lib/pipe.c (create_pipe): Likewise.
21023         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21024         resulting array.
21025
21026 2008-09-29  Eric Blake  <ebb9@byu.net>
21027
21028         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21029
21030 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21031
21032         * doc/posix-functions/accept.texi: Update mingw problems.
21033         * doc/posix-functions/bind.texi: Update mingw problems.
21034         * doc/posix-functions/close.texi: Update mingw problems.
21035         * doc/posix-functions/connect.texi: Update mingw problems.
21036         * doc/posix-functions/getpeername.texi: Update mingw problems.
21037         * doc/posix-functions/getsockname.texi: Update mingw problems.
21038         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21039         * doc/posix-functions/ioctl.texi: Update mingw problems.
21040         * doc/posix-functions/listen.texi: Update mingw problems.
21041         * doc/posix-functions/recv.texi: Update mingw problems.
21042         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21043         * doc/posix-functions/select.texi: Update mingw problems.
21044         * doc/posix-functions/send.texi: Update mingw problems.
21045         * doc/posix-functions/sendto.texi: Update mingw problems.
21046         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21047         * doc/posix-functions/socket.texi: Update mingw problems.
21048
21049 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21050             Bruno Haible  <bruno@clisp.org>
21051
21052         * lib/sys_select.in.h: Include sys/time.h.
21053         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21054         * modules/sys_select: Depend on sys_time.
21055         * tests/test-sys_select.c: Test that sys/select.h defines struct
21056         timeval fully.
21057
21058 2008-09-29  Bruno Haible  <bruno@clisp.org>
21059
21060         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21061         * lib/sys_select.in.h: Likewise.
21062
21063 2008-09-29  Bruno Haible  <bruno@clisp.org>
21064
21065         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21066
21067 2008-09-29  Bruno Haible  <bruno@clisp.org>
21068
21069         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21070         Set LIBSOCKET instead of augmenting LIBS.
21071         * modules/sockets (Link): New section.
21072         * modules/sockets-tests (test_sockets_LDADD): New variable.
21073         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21074         * modules/poll-tests (test_poll_LDADD): New variable.
21075         * NEWS: Document the change.
21076
21077 2008-09-29  Bruno Haible  <bruno@clisp.org>
21078
21079         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21080         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21081         ARPA_INET_H directly.
21082         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21083
21084 2008-09-28  Bruno Haible  <bruno@clisp.org>
21085
21086         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21087         from gl_HEADER_SYS_SOCKET.
21088         (gl_HEADER_SYS_SOCKET): Invoke it.
21089         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21090
21091 2008-09-28  Bruno Haible  <bruno@clisp.org>
21092
21093         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21094         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21095         Needed on OSF/1 4.0.
21096
21097 2008-09-28  Bruno Haible  <bruno@clisp.org>
21098
21099         Override open more carefully.
21100         * lib/open.c (orig_open): New function.
21101         (rpl_open): Use orig_open instead of open.
21102         * lib/fcntl.in.h: Add special invocation convention.
21103         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21104         (gl_FUNC_OPEN): Invoke it.
21105
21106         Override freopen more carefully.
21107         * lib/freopen.c (orig_freopen): New function.
21108         (rpl_freopen): Use orig_freopen instead of freopen.
21109         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21110         (gl_FUNC_FREOPEN): Invoke it.
21111
21112         Override fopen more carefully.
21113         * lib/fopen.c (orig_fopen): New function.
21114         (rpl_fopen): Use orig_fopen instead of fopen.
21115         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21116         (gl_FUNC_FOPEN): Invoke it.
21117         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21118
21119 2008-09-28  Bruno Haible  <bruno@clisp.org>
21120
21121         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21122         SIGPIPE.
21123
21124 2008-09-28  Bruno Haible  <bruno@clisp.org>
21125
21126         * tests/test-sigaction.c (handler, main): Disable the check whether
21127         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21128         glibc systems with LinuxThreads.
21129
21130 2008-09-28  Bruno Haible  <bruno@clisp.org>
21131
21132         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21133
21134         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21135         with AIX xlc.
21136         * lib/fcntl.in.h (open): Likewise.
21137         Reported by Rainer Tammer <tammer@tammer.net>.
21138
21139 2008-09-28  Bruno Haible  <bruno@clisp.org>
21140
21141         * modules/posix_spawnp-tests: New file.
21142         * tests/test-posix_spawn.c: New file.
21143         * tests/test-posix_spawn.in.sh: New file.
21144
21145         New module 'posix_spawnp'.
21146         * modules/posix_spawnp: New file.
21147         * lib/spawnp.c: New file, from GNU libc with modifications.
21148         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21149
21150         New module 'posix_spawn'.
21151         * modules/posix_spawn: New file.
21152         * lib/spawn.c: New file, from GNU libc with modifications.
21153         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21154
21155         New module 'posix_spawnattr_destroy'.
21156         * modules/posix_spawnattr_destroy: New file.
21157         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21158         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21159         module.
21160
21161         New module 'posix_spawnattr_setsigmask'.
21162         * modules/posix_spawnattr_setsigmask: New file.
21163         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21164         modifications.
21165         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21166         new module.
21167
21168         New module 'posix_spawnattr_getsigmask'.
21169         * modules/posix_spawnattr_getsigmask: New file.
21170         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21171         modifications.
21172         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21173         new module.
21174
21175         New module 'posix_spawnattr_setsigdefault'.
21176         * modules/posix_spawnattr_setsigdefault: New file.
21177         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21178         modifications.
21179         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21180         new module.
21181
21182         New module 'posix_spawnattr_getsigdefault'.
21183         * modules/posix_spawnattr_getsigdefault: New file.
21184         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21185         modifications.
21186         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21187         new module.
21188
21189         New module 'posix_spawnattr_setschedpolicy'.
21190         * modules/posix_spawnattr_setschedpolicy: New file.
21191         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21192         modifications.
21193         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21194         new module.
21195
21196         New module 'posix_spawnattr_getschedpolicy'.
21197         * modules/posix_spawnattr_getschedpolicy: New file.
21198         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21199         modifications.
21200         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21201         new module.
21202
21203         New module 'posix_spawnattr_setschedparam'.
21204         * modules/posix_spawnattr_setschedparam: New file.
21205         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21206         modifications.
21207         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21208         new module.
21209
21210         New module 'posix_spawnattr_getschedparam'.
21211         * modules/posix_spawnattr_getschedparam: New file.
21212         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21213         modifications.
21214         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21215         new module.
21216
21217         New module 'posix_spawnattr_setpgroup'.
21218         * modules/posix_spawnattr_setpgroup: New file.
21219         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21220         modifications.
21221         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21222         module.
21223
21224         New module 'posix_spawnattr_getpgroup'.
21225         * modules/posix_spawnattr_getpgroup: New file.
21226         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21227         modifications.
21228         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21229         module.
21230
21231         New module 'posix_spawnattr_setflags'.
21232         * modules/posix_spawnattr_setflags: New file.
21233         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21234         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21235         module.
21236
21237         New module 'posix_spawnattr_getflags'.
21238         * modules/posix_spawnattr_getflags: New file.
21239         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21240         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21241         module.
21242
21243         New module 'posix_spawnattr_init'.
21244         * modules/posix_spawnattr_init: New file.
21245         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21246         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21247         module.
21248
21249         New module 'posix_spawn_file_actions_destroy'.
21250         * modules/posix_spawn_file_actions_destroy: New file.
21251         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21252         modifications.
21253         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21254         the new module.
21255
21256         New module 'posix_spawn_file_actions_addopen'.
21257         * modules/posix_spawn_file_actions_addopen: New file.
21258         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21259         modifications.
21260         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21261         the new module.
21262
21263         New module 'posix_spawn_file_actions_adddup2'.
21264         * modules/posix_spawn_file_actions_adddup2: New file.
21265         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21266         modifications.
21267         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21268         the new module.
21269
21270         New module 'posix_spawn_file_actions_addclose'.
21271         * modules/posix_spawn_file_actions_addclose: New file.
21272         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21273         modifications.
21274         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21275         the new module.
21276
21277         New module 'posix_spawn_file_actions_init'.
21278         * modules/posix_spawn_file_actions_init: New file.
21279         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21280         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21281         new module.
21282
21283         New module 'posix_spawn-internal'.
21284         * modules/posix_spawn-internal: New file.
21285         * lib/spawn_int.h: New file, from GNU libc with modifications.
21286         * lib/spawni.c: New file, from GNU libc with modifications.
21287         * m4/posix_spawn.m4: New file.
21288
21289         New module 'spawn'.
21290         * modules/spawn: New file.
21291         * lib/spawn.in.h: New file, from GNU libc with modifications.
21292         * m4/spawn_h.m4: New file.
21293         * doc/posix-headers/spawn.texi: Mention the new module.
21294
21295 2008-09-28  Bruno Haible  <bruno@clisp.org>
21296
21297         * modules/sched-tests: New file.
21298         * tests/test-sched.c: New file.
21299
21300         New module 'sched'.
21301         * modules/sched: New file.
21302         * lib/sched.in.h: New file.
21303         * m4/sched_h.m4: New file.
21304         * doc/posix-headers/sched.texi: Mention the new module.
21305
21306 2008-09-27  Eric Blake  <ebb9@byu.net>
21307
21308         Fix previous patch, and tweak references to $0.
21309         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21310         (func_version, func_gnulib_dir): Don't call this program
21311         gnulib-tool.
21312         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21313         with using $0 in function.
21314         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21315         (func_fatal_error): Reuse the name the user invoked us with.
21316
21317 2008-09-27  Bruno Haible  <bruno@clisp.org>
21318
21319         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21320         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21321         (gl_ICONV_H): Not here.
21322         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21323         instead of assigning ICONV_H directly.
21324
21325         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21327         WCHAR_H directly.
21328
21329 2008-09-27  Bruno Haible  <bruno@clisp.org>
21330
21331         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21332         * modules/arpa_inet (Depends-on): Add link-warning.
21333         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21334         * modules/unistd (Makefile.am): Likewise.
21335
21336 2008-09-26  Bruno Haible  <bruno@clisp.org>
21337
21338         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21339         variables.
21340         (func_version): Essentially copied from gnulib-tool.
21341         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21342         func_readlink): Copied from gnulib-tool.
21343
21344 2008-09-26  Bruno Haible  <bruno@clisp.org>
21345
21346         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21347         invoking git-version-gen.
21348
21349 2008-09-26  Bruno Haible  <bruno@clisp.org>
21350
21351         * posix-modules: Update to directory names changed on 2008-01-19.
21352         Remove commas in output before splitting into words. No more need to
21353         avoid 'ftruncate' since 2007-02-19.
21354
21355 2008-09-26  Bruno Haible  <bruno@clisp.org>
21356
21357         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21358
21359 2008-09-26  Bruno Haible  <bruno@clisp.org>
21360
21361         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21362         * modules/fwriteerror (Depends-on): Add errno.
21363
21364 2008-09-26  Bruno Haible  <bruno@clisp.org>
21365
21366         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21367         * tests/test-vc-list-files-cvs.sh: Likewise.
21368
21369 2008-09-26  Bruno Haible  <bruno@clisp.org>
21370
21371         * doc/posix-headers/sys_resource.texi: Reorder items.
21372
21373 2008-09-26  Jim Meyering  <meyering@redhat.com>
21374
21375         fts: tweak inode comparison function
21376         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21377         inode numbers, as documented.
21378
21379         fts: sort dirent entries on inode number before traversing
21380         This avoids a quadratic, seek-related performance penalty when
21381         operating on a directory containing many entries (measurable at 10k;
21382         3.5 hours at 2 million entries with a cold cache) on certain types
21383         of file systems, including ext3 and ext4, but not tmpfs.
21384         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21385         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21386         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21387         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21388         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21389         (fts_build): Set the stat.st_ino member from D_INO.
21390         If it is likely to be useful, sort dirent entries on inode number.
21391
21392         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21393         and the struct statfs.f_type member.
21394         * modules/fts (Depends-on): Add d-ino.
21395
21396 2008-09-26  Bruno Haible  <bruno@clisp.org>
21397
21398         * modules/sigpipe-die (Depends-on): Add sigpipe.
21399
21400         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21401         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21402         and GNULIB_STDIO_H_SIGPIPE are set.
21403         * lib/stdio-write.c: New file.
21404         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21405         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21406         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21407         REPLACE_STDIO_WRITE_FUNCS.
21408         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21409         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21410         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21411         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21412         * modules/stdio (Files): Add lib/stdio-write.c.
21413         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21414         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21415         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21416         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21417         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21418         REPLACE_FPRINTF_POSIX.
21419         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21420         REPLACE_PRINTF_POSIX.
21421         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21422         REPLACE_VFPRINTF_POSIX.
21423         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21424         REPLACE_VPRINTF_POSIX.
21425         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21426         SIGPIPE issue.
21427         * doc/posix-functions/fputc.texi: Likewise.
21428         * doc/posix-functions/fputs.texi: Likewise.
21429         * doc/posix-functions/fwrite.texi: Likewise.
21430         * doc/posix-functions/printf.texi: Likewise.
21431         * doc/posix-functions/putc.texi: Likewise.
21432         * doc/posix-functions/putchar.texi: Likewise.
21433         * doc/posix-functions/puts.texi: Likewise.
21434         * doc/posix-functions/vfprintf.texi: Likewise.
21435         * doc/posix-functions/vprintf.texi: Likewise.
21436
21437         * modules/safe-write (Depends-on): Add write.
21438
21439         * modules/sigpipe-tests: New file.
21440         * tests/test-sigpipe.c: New file.
21441         * tests/test-sigpipe.sh: New file.
21442
21443         * modules/write: New file.
21444         * lib/unistd.in.h: Include <sys/types.h>.
21445         (write): New declaration.
21446         * lib/write.c: New file.
21447         * m4/write.m4: New file.
21448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21449         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21450         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21451         GNULIB_WRITE, REPLACE_WRITE.
21452         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21453         and the SIGPIPE issue.
21454
21455         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21456         (raise): New declaration.
21457         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21458         (ext_signal): New function.
21459         (rpl_raise): New function.
21460         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21461         GNULIB_SIGNAL_H_SIGPIPE.
21462         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21463         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21464
21465         * modules/sigpipe: New file.
21466         * m4/sigpipe.m4: New file.
21467
21468 2008-09-25  Derek Price  <derek@ximbiot.com>
21469             Bruno Haible  <bruno@clisp.org>
21470
21471         * gnulib-tool (func_import): Report all license incompatibilities, not
21472         just the first one.
21473
21474 2008-09-25  Bruno Haible  <bruno@clisp.org>
21475
21476         * gnulib-tool (func_import): When computing the edits, consider not
21477         only the Makefile.ams that exist but also those that will be generated.
21478
21479 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21480
21481         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21482         fixes gnulib-tool --test warning about duplicate dependency.
21483
21484 2008-09-25  Bruno Haible  <bruno@clisp.org>
21485
21486         * gnulib-tool: Don't ask the user to perform edits in the generated
21487         Makefile.ams.
21488         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21489         apply to the Makefile.am being generated.
21490         (func_emit_tests_Makefile_am): Execute edits that apply to the
21491         Makefile.am being generated.
21492         (func_import): Setup list of Makefile.am edits before emitting the
21493         Makefile.ams, not at the end.
21494         (func_create_testdir): Update.
21495         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21496
21497 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21498
21499         * gnulib-tool (func_import): Store the --tests-base option in the
21500         comment in gnulib-cache.m4.
21501
21502 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21503
21504         * NEWS: Document increased portability that sys_select now provides.
21505
21506         * lib/sys_select.in.h: Install select wrapper.
21507         * lib/sys_socket.in.h: Use more descriptive name when there is no
21508         select wrapper.
21509         * lib/winsock-select.c: New.
21510         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21511         Require gl_HEADER_SYS_SOCKET.
21512         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21513         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21514         * tests/test-sys_select.c: Add functional tests.
21515
21516 2008-09-24  Eric Blake  <ebb9@byu.net>
21517
21518         open, fopen: close fd leak in last patch
21519         * lib/open.c (rpl_open): Close fd before returning error.
21520         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21521         * doc/posix-functions/open.texi (open): Document that Irix also
21522         has the bug.
21523         * doc/posix-functions/fopen.texi (fopen): Likewise.
21524         Reported by Paolo Bonzini.
21525
21526 2008-09-24  Bruno Haible  <bruno@clisp.org>
21527
21528         Ensure that a filename ending in a slash cannot be used to access a
21529         non-directory.
21530         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21531         to check whether it's really a directory.
21532         * lib/fopen.c: Include fcntl.h, unistd.h.
21533         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21534         and fdopen().
21535         * modules/fopen (Depends-on): Add unistd.
21536         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21537         * tests/test-fopen.c (main): Likewise.
21538         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21539         * doc/posix-functions/fopen.texi: Likewise.
21540         Reported by Eric Blake.
21541
21542 2008-09-23  Eric Blake  <ebb9@byu.net>
21543
21544         c-stack: avoid compiler optimizations when provoking overflow
21545         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21546         recursion harder to optimize, to ensure a stack overflow occurs.
21547         * tests/test-c-stack.c (recurse): Likewise.
21548         Borrowed from libsigsegv.
21549
21550         c-stack: work around Irix sigaltstack bug
21551         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21552         whether sigaltstack uses wrong end of stack_t (copied in part from
21553         libsigsegv).
21554         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21555         Irix bug, without requiring an over-allocation.
21556         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21557         bug.
21558
21559         fopen: document mingw bug on directories
21560         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21561         not allowing a stream visiting a directory, even though reading
21562         from such a stream is not portable.
21563
21564 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21565
21566         * lib/poll.c: Rewrite.
21567         * modules/poll: Depend on alloca.
21568
21569 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21570
21571         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21572         instead define prototypes for a full set of wrappers.  Ensure
21573         that Cygwin does not use the compatibility code, which is only
21574         for MinGW.
21575         * lib/winsock.c: New.
21576         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21577         * modules/sys_socket: Add lib/winsock.c.
21578
21579         * modules/poll-tests: Add errno and perror.
21580         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21581
21582 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21583
21584         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21585
21586 2008-09-23  Bruno Haible  <bruno@clisp.org>
21587
21588         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21589         * doc/glibc-functions/*: Likewise.
21590
21591 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21592
21593         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21594         success.
21595
21596 2008-09-22  Eric Blake  <ebb9@byu.net>
21597             Bruno Haible  <bruno@clisp.org>
21598
21599         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21600         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21601         supply %A but mishandle pseudo-NaN.
21602         Reported by Simon Josefsson.
21603
21604 2008-09-21  Bruno Haible  <bruno@clisp.org>
21605
21606         * tests/test-lock.c (main): Tweak skip message.
21607         * tests/test-tls.c (main): Likewise.
21608
21609 2008-09-21  Bruno Haible  <bruno@clisp.org>
21610
21611         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21612         whether 'struct sigaction' has sa_sigaction here...
21613         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21614         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21615
21616 2008-09-21  Bruno Haible  <bruno@clisp.org>
21617
21618         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21619         section.
21620         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21621         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21622         the new section.
21623         (Support for obsolete systems lacking POSIX:2001): New section.
21624         (String handling <string.h>): Move strdup to the new section.
21625         Suggested by Simon Josefsson and Paolo Bonzini.
21626
21627 2008-09-21  Bruno Haible  <bruno@clisp.org>
21628
21629         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21630         exponents in %e and %g results on 'long double'. Needed for mingw's
21631         improved *printf functions.
21632         * tests/test-vasprintf-posix.c (test_function): Likewise.
21633         * tests/test-snprintf-posix.h (test_function): Likewise.
21634         * tests/test-sprintf-posix.h (test_function): Likewise.
21635         Reported by Eric Blake.
21636
21637 2008-09-21  Bruno Haible  <bruno@clisp.org>
21638
21639         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21640         * tests/test-sprintf-posix.h (test_function): Likewise.
21641
21642 2008-09-21  Bruno Haible  <bruno@clisp.org>
21643
21644         * modules/getpass (Depends-on): Add strdup-posix.
21645
21646         New module 'strdup-posix'.
21647         * modules/strdup-posix: New file.
21648         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21649         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21651         REPLACE_STRDUP.
21652         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21653         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21654         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21655         strdup-posix.
21656
21657         * modules/strdup (Depends-on): Remove malloc-posix.
21658
21659 2008-09-20  Bruno Haible  <bruno@clisp.org>
21660
21661         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21662         Wildenhues.
21663
21664 2008-09-20  Bruno Haible  <bruno@clisp.org>
21665
21666         Ensure that wint_t gets defined on IRIX 5.3.
21667         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21668         * lib/wctype.in.h (wint_t): Likewise.
21669         (__wctype_wint_t): Remove type.
21670         (isw*): Use wint_t instead of __wctype_wint_t.
21671         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21672         * modules/wchar (Files): Add m4/wint_t.m4.
21673         (Makefile.am): Substitute HAVE_WINT_T.
21674         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21675         * tests/test-wctype.c: Check that wint_t is defined.
21676         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21677         * doc/posix-headers/wctype.texi: Likewise.
21678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21679
21680 2008-09-18  Bruno Haible  <bruno@clisp.org>
21681
21682         * gnulib-tool (func_exit): Update comment.
21683
21684 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21685
21686         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21687         assumes strdup exists and does not depend on strdup to return
21688         ENOMEM on out of memory conditions.
21689
21690 2008-09-18  Bruno Haible  <bruno@clisp.org>
21691
21692         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
21693         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21694         digits for the exponent.
21695
21696 2008-09-18  Jim Meyering  <meyering@redhat.com>
21697             Bruno Haible  <bruno@clisp.org>
21698
21699         * lib/vasnprintf.c (decimal_point_char): Define also if
21700         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21701
21702 2008-09-16  Bruno Haible  <bruno@clisp.org>
21703         and Eric Blake  <ebb9@byu.net>
21704
21705         vasnprintf: support Irix 5.3
21706         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21707         that mishandle long double infinity.
21708         Reported by Tom G. Christensen.
21709
21710 2008-09-16  Bruno Haible  <bruno@clisp.org>
21711
21712         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21713         Solaris 9.
21714         * doc/glibc-functions/alphasort.texi: Likewise.
21715         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21716
21717 2008-09-16  Jim Meyering  <meyering@redhat.com>
21718
21719         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21720         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21721         a umask modification leak out of a subshell.  Otherwise, the
21722         opensolaris /bin/sh would be accepted and thus cause unwarranted
21723         failures in the coreutils test suite.
21724
21725 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21726
21727         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21728         to succeed.
21729
21730 2008-09-16  Jim Meyering  <meyering@redhat.com>
21731
21732         avoid spurious test failure when library is built without ACL support
21733         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21734         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21735         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21736         * tests/test-copy-acl.sh: Likewise.
21737
21738 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21739
21740         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21741         based on character occurrence counts.
21742
21743 2008-09-15  Eric Blake  <ebb9@byu.net>
21744
21745         tests: avoid some compiler warnings
21746         * tests/test-memchr.c (main): Pass NULL indirectly.
21747         * tests/test-closein.c (main): Avoid unused variable.
21748
21749 2008-09-15  Bruno Haible  <bruno@clisp.org>
21750
21751         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21752         are missing on OpenBSD 4.0 individually.
21753         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21754
21755 2008-09-15  Bruno Haible  <bruno@clisp.org>
21756
21757         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21758         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21759         * doc/posix-functions/perror.texi: Likewise.
21760         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21761         is missing.
21762         Reported by Eric Blake.
21763
21764         * lib/errno.in.h: Use replacement values >= 2000.
21765         Reported by Eric Blake.
21766
21767 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21768
21769         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21770         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21771         limit.
21772         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21773         compareseq was aborted.
21774
21775 2008-09-14  Bruno Haible  <bruno@clisp.org>
21776
21777         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21778         yvec_edit_count.
21779         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21780         (fstrcmp_bounded): Simplify result computation accordingly.
21781
21782 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21783
21784         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21785         (fstrcmp): Define in terms of fstrcmp_bounded.
21786         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21787         lower_bound argument.
21788         Return quickly if the result is certainly < lower_bound.
21789         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21790
21791 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21792
21793         * lib/diffseq.h (EARLY_ABORT): New macro.
21794         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21795         evaluates to true.
21796
21797 2008-09-14  Bruno Haible  <bruno@clisp.org>
21798
21799         * modules/perror-tests: New file.
21800         * tests/test-perror.sh: New file.
21801         * tests/test-perror.c: New file.
21802
21803         New module 'perror'.
21804         * lib/stdio.in.h (perror): New declaration.
21805         * lib/perror.c: New file.
21806         * m4/perror.m4: New file.
21807         * modules/perror: New file.
21808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21809         * doc/posix-functions/perror.texi: Mention the perror module.
21810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21811         REPLACE_PERROR.
21812         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21813         REPLACE_PERROR.
21814
21815 2008-09-14  Bruno Haible  <bruno@clisp.org>
21816
21817         * modules/stdio (Makefile.am): Reorder to match the order in
21818         lib/stdio.in.h.
21819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21820
21821 2008-09-13  Bruno Haible  <bruno@clisp.org>
21822
21823         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21824
21825 2008-09-13  Bruno Haible  <bruno@clisp.org>
21826
21827         Extend strerror to cover the added errno values.
21828         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21829         (rpl_strerror): Provide error messages for the added errno values and
21830         for the WSA* values.
21831         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21832         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21833         strerror.
21834         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21835         * modules/strerror (Depends-on): Add errno.
21836         * doc/posix-functions/strerror.texi: Document the change.
21837         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21838         and EOVERFLOW.
21839
21840 2008-09-13  Bruno Haible  <bruno@clisp.org>
21841
21842         * modules/EOVERFLOW: Remove file.
21843         * m4/eoverflow.m4: Remove file.
21844         * modules/EOVERFLOW-tests: Remove file.
21845         * tests/test-EOVERFLOW.c: Remove file.
21846         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21847         * modules/ftell (Depends-on): Likewise.
21848         * modules/getdelim (Depends-on): Likewise.
21849         * modules/getugroups (Depends-on): Likewise.
21850         * modules/poll (Depends-on): Likewise.
21851         * modules/snprintf (Depends-on): Likewise.
21852         * modules/sprintf-posix (Depends-on): Likewise.
21853         * modules/vasnprintf (Depends-on): Likewise.
21854         * modules/vasprintf (Depends-on): Likewise.
21855         * modules/vfprintf-posix (Depends-on): Likewise.
21856         * modules/vsnprintf (Depends-on): Likewise.
21857         * modules/vsprintf-posix (Depends-on): Likewise.
21858         * modules/xvasprintf (Depends-on): Likewise.
21859         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21860         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21861         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21862         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21863         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21864         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21865         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21866         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21867         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21868         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21869         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21870         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21871         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21872         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21873         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21874         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21875         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21876         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21877         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21878         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21879         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21880         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21881         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21882         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21883         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21884         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21885         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21886         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21887         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21888         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21889         * MODULES.html.sh: Remove EOVERFLOW.
21890         * NEWS: Mention the change.
21891
21892 2008-09-13  Bruno Haible  <bruno@clisp.org>
21893
21894         * modules/errno-tests: New file.
21895         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21896
21897         * lib/errno.in.h: New file.
21898         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21899         * modules/errno: New file.
21900         * doc/posix-headers/errno.texi: Update documentation.
21901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21902
21903 2008-09-13  Bruno Haible  <bruno@clisp.org>
21904
21905         * tests/test-poll.c: Use #if for native Windows, rather than testing
21906         __MSVCRT__.
21907
21908 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21909             Bruno Haible  <bruno@clisp.org>
21910
21911         * lib/glob.c: Don't include <pwd.h> on native Windows.
21912         (WINDOWS32): New macro.
21913         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21914
21915 2008-09-13  Bruno Haible  <bruno@clisp.org>
21916
21917         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21918         (ETIMEDOUT): Remove macro.
21919         (glthread_cond_timedwait_multithreaded): New declaration.
21920         (glthread_cond_timedwait): Use it.
21921         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21922         (glthread_cond_timedwait_multithreaded): New function.
21923
21924 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21925
21926         * modules/poll-tests: Do not check for io.h.
21927         * tests/test-poll.c: Check for __MSVCRT__ instead.
21928
21929 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21930
21931         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21932         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21933         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21934
21935 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21936
21937         * modules/poll-tests: New.
21938         * tests/test-poll.c: New.
21939
21940 2008-09-12  Eric Blake  <ebb9@byu.net>
21941
21942         frexp: test for NetBSD failure on -0.0
21943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21944         not all, bugs from NetBSD 3.0 have been fixed.
21945         * doc/posix-functions/frexp.texi (frexp): Document bug.
21946         Reported by Thomas Klausner.
21947
21948         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21949         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21950         literal -0.0.
21951         Reported by Jonathan C. Patschke <jp@centtech.com>.
21952
21953 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21954
21955         * lib/glthread/cond.h: Use dummy implementation also if
21956         USE_WIN32_THREADS.
21957
21958 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21959
21960         * modules/fnmatch-posix (License): Change to LGPLv2+.
21961         * modules/fnmatch-gnu (License): Likewise.
21962
21963 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21964
21965         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21966
21967 2008-09-11  Jim Meyering  <meyering@redhat.com>
21968
21969         * users.txt: Add gtk-vnc.
21970
21971 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21972
21973         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21974         rotate amounts.
21975
21976         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21977         required for 16-bit and 8-bit rotates.
21978         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21979         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21980         UINT8_MAX instead of hard-coded constants.
21981         Suggested by Paul Eggert.
21982
21983 2008-09-07  Bruno Haible  <bruno@clisp.org>
21984
21985         * tests/test-striconveh.c (main): Check behaviour when converting from
21986         UTF-7.
21987
21988         Make striconveh work better with stateful encodings.
21989         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21990         that iconv does not increment the inptr when returning -1/EINVAL.
21991
21992 2008-09-07  Bruno Haible  <bruno@clisp.org>
21993
21994         * build-aux/config.rpath: Update according to libtool-2.2.6.
21995         * build-aux/config.libpath: Likewise.
21996
21997 2008-09-06  Bruno Haible  <bruno@clisp.org>
21998
21999         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22000         * lib/freadptr.c (freadptr): Likewise.
22001         * lib/freadseek.c (freadptrinc): Likewise.
22002         Reported by Simon Josefsson.
22003
22004 2008-09-06  Bruno Haible  <bruno@clisp.org>
22005
22006         * modules/freadptr (License): Change to LGPLv2+.
22007         * modules/freadseek (License): Likewise.
22008         Suggested by Eric Blake.
22009
22010         * modules/memchr2 (License): Change to LGPLv2+.
22011         Approved by Eric Blake.
22012
22013 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22014             Bruno Haible  <bruno@clisp.org>
22015
22016         Make gnulib-tool work with native 'sed' on AIX.
22017         * gnulib-tool (sed_noop): New variable.
22018         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22019         func_add_or_update, func_create_testdir): Use it to initialize sed
22020         script variables.
22021         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22022
22023 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22024             Bruno Haible  <bruno@clisp.org>
22025
22026         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22027         also works after #include directives.
22028
22029 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22030
22031         getdate.y: reject an out-of-range timezone value
22032         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22033         the range [-24...+24].  When specified with only one or two digits,
22034         * tests/test-getdate.c: Tests for the fix.
22035         * doc/getdate.texi: Document this change.
22036
22037 2008-09-03  Bruno Haible  <bruno@clisp.org>
22038
22039         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22040
22041 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22042
22043         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22044         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22045         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22046         Blake <ebb9@byu.net>.
22047
22048         * tests/test-bitrotate.c: Add more test vectors.
22049
22050 2008-09-02  Eric Blake  <ebb9@byu.net>
22051
22052         vasnprintf-posix: handle large precision via %.*d
22053         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22054         when handling it ourselves.
22055         * tests/test-vasnprintf-posix.c (test_function): Add test.
22056         * tests/test-snprintf-posix.h (test_function): Likewise.
22057         * tests/test-sprintf-posix.h (test_function): Likewise.
22058         * tests/test-vasprintf-posix.c (test_function): Likewise.
22059         Reported by Alain Guibert.
22060
22061 2008-09-01  Eric Blake  <ebb9@byu.net>
22062
22063         c-stack: make configure-time check more robust
22064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22065         successful sigaction call.
22066         Reported by Tom G. Christensen.
22067
22068 2008-09-01  Bruno Haible  <bruno@clisp.org>
22069
22070         New module 'findprog-lgpl'.
22071         * modules/findprog-lgpl: New file.
22072         * lib/findprog-lgpl.c: New file.
22073         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22074         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22075         to decide whether to use strdup or xstrdup, concatenated_filename or
22076         xconcatenated_filename.
22077
22078 2008-09-01  Bruno Haible  <bruno@clisp.org>
22079
22080         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22081         'xconcat-filename' (GPL).
22082         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22083         (License): Change to LGPLv2+.
22084         * modules/xconcat-filename: New file.
22085         * lib/concat-filename.h (concatenated_filename): Change specification.
22086         (xconcatenated_filename): New declaration.
22087         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22088         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22089         memory situations.
22090         * lib/xconcat-filename.c: New file.
22091         * NEWS: Mention the change.
22092         * lib/findprog.c: Include concat-filename.h, not filename.h.
22093         (find_in_path): Use xconcatenated_filename instead of
22094         concatenated_filename.
22095         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22096         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22097         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22098         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22099         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22100         instead of concatenated_filename.
22101         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22102         (execute_java_class): Use xconcatenated_filename instead of
22103         concatenated_filename.
22104         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22105         * modules/javacomp (Depends-on): Likewise.
22106         * modules/javaexec (Depends-on): Likewise.
22107
22108 2008-09-01  Bruno Haible  <bruno@clisp.org>
22109
22110         Split module 'filename' into 'filename' and 'concat-filename'.
22111         * modules/filename: Keep only lib/filename.h.
22112         (License): Change to LGPLv2+.
22113         * modules/concat-filename: New file, extracted from modules/filename.
22114         * lib/filename.h (concatenated_filename): Remove declaration.
22115         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22116         * lib/concat-filename.c: Include concat-filename.h.
22117         * NEWS: Mention the change.
22118
22119 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22120
22121         * lib/bitrotate.h (rotl8, rotr8): Add.
22122
22123         * modules/bitrotate (configure.ac): Need
22124         AC_REQUIRE([AC_C_INLINE]).
22125         (Description): Mention stdint.h.  Reported by Bruno Haible
22126         <bruno@clisp.org>.
22127
22128         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22129         Paolo Bonzini <bonzini@gnu.org>.
22130
22131 2008-08-31  Bruno Haible  <bruno@clisp.org>
22132
22133         Assume Solaris specific bi-arch conventions on Solaris systems.
22134         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22135         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22136         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22137         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22138         like acl_libdirstem.
22139         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22140         acl_libdirstem.
22141         * NEWS: Mention the change.
22142         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22143
22144 2008-08-31  Jim Meyering  <meyering@redhat.com>
22145
22146         * lib/strftime.h: Add comments describing the two added arguments.
22147
22148         remove duplicate #include directives
22149         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22150         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22151
22152 2008-08-31  Bruno Haible  <bruno@clisp.org>
22153
22154         New module 'sigpipe-die'.
22155         * modules/sigpipe-die: New file.
22156         * lib/sigpipe-die.h: New file.
22157         * lib/sigpipe-die.c: New file.
22158         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22159
22160 2008-08-31  Bruno Haible  <bruno@clisp.org>
22161
22162         Don't override previously installed signal handlers.
22163         * lib/fatal-signal.c (saved_sigactions): New variable.
22164         (uninstall_handlers): Reset the signal to the saved handler, not
22165         to SIG_DFL (except when ignored).
22166         (install_handlers): Save the previous handlers.
22167
22168 2008-08-30  Bruno Haible  <bruno@clisp.org>
22169
22170         * gnulib-tool (func_reset_sigpipe): New function.
22171         (func_get_automake_snippet, func_modules_transitive_closure,
22172         func_import): Invoke it before a join command that reads from stdin,
22173         to avoid "echo: write error: Broken pipe" error messages on stderr.
22174         Reported by Sam Steingold <sds@gnu.org>.
22175
22176 2008-08-30  Bruno Haible  <bruno@clisp.org>
22177
22178         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22179         Code copied from m4/open.m4.
22180         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22181         access and the filename ends in a slash. Code copied from lib/open.c.
22182         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22183         * tests/test-fopen.c (main): Check against bug with trailing slash.
22184
22185 2008-08-29  Bruno Haible  <bruno@clisp.org>
22186
22187         Avoid some "gcc -pedantic" warnings.
22188         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22189         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22190         * lib/dirent.in.h: Likewise.
22191         * lib/fcntl.in.h: Likewise.
22192         * lib/float.in.h: Likewise.
22193         * lib/iconv.in.h: Likewise.
22194         * lib/inttypes.in.h: Likewise.
22195         * lib/locale.in.h: Likewise.
22196         * lib/math.in.h: Likewise.
22197         * lib/netinet_in.in.h: Likewise.
22198         * lib/search.in.h: Likewise.
22199         * lib/signal.in.h: Likewise.
22200         * lib/stdarg.in.h: Likewise.
22201         * lib/stdint.in.h: Likewise.
22202         * lib/stdio.in.h: Likewise.
22203         * lib/stdlib.in.h: Likewise.
22204         * lib/string.in.h: Likewise.
22205         * lib/strings.in.h: Likewise.
22206         * lib/sys_select.in.h: Likewise.
22207         * lib/sys_socket.in.h: Likewise.
22208         * lib/sys_stat.in.h: Likewise.
22209         * lib/sys_time.in.h: Likewise.
22210         * lib/sysexits.in.h: Likewise.
22211         * lib/time.in.h: Likewise.
22212         * lib/unistd.in.h: Likewise.
22213         * lib/wchar.in.h: Likewise.
22214         * lib/wctype.in.h: Likewise.
22215         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22216         * modules/fchdir (Makefile.am): Likewise.
22217         * modules/fcntl (Makefile.am): Likewise.
22218         * modules/float (Makefile.am): Likewise.
22219         * modules/iconv_open (Makefile.am): Likewise.
22220         * modules/inttypes (Makefile.am): Likewise.
22221         * modules/locale (Makefile.am): Likewise.
22222         * modules/math (Makefile.am): Likewise.
22223         * modules/netinet_in (Makefile.am): Likewise.
22224         * modules/search (Makefile.am): Likewise.
22225         * modules/signal (Makefile.am): Likewise.
22226         * modules/stdarg (Makefile.am): Likewise.
22227         * modules/stdint (Makefile.am): Likewise.
22228         * modules/stdio (Makefile.am): Likewise.
22229         * modules/stdlib (Makefile.am): Likewise.
22230         * modules/string (Makefile.am): Likewise.
22231         * modules/strings (Makefile.am): Likewise.
22232         * modules/sys_select (Makefile.am): Likewise.
22233         * modules/sys_socket (Makefile.am): Likewise.
22234         * modules/sys_stat (Makefile.am): Likewise.
22235         * modules/sys_time (Makefile.am): Likewise.
22236         * modules/sysexits (Makefile.am): Likewise.
22237         * modules/time (Makefile.am): Likewise.
22238         * modules/unistd (Makefile.am): Likewise.
22239         * modules/wchar (Makefile.am): Likewise.
22240         * modules/wctype (Makefile.am): Likewise.
22241         Reported by Reuben Thomas <rrt@sc3d.org>.
22242
22243 2008-08-29  Bruno Haible  <bruno@clisp.org>
22244
22245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22246         any more.
22247
22248 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22249
22250         * MODULES.html.sh (Misc): Add bitrotate.
22251
22252         * modules/bitrotate: New file.
22253
22254         * lib/bitrotate.h: New file.
22255
22256         * modules/bitrotate-tests: New file.
22257
22258         * tests/test-bitrotate.c: New file.
22259
22260         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22261         on the bitrotate module.
22262
22263         * lib/arctwo.c: Use new bitrotate module.
22264
22265 2008-08-29  Jim Meyering  <meyering@redhat.com>
22266
22267         bootstrap: merge changes from coreutils
22268         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22269         of copied files.  Remove a kludge, now that this is fixed.
22270         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22271         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22272         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22273
22274 2008-08-29  Bruno Haible  <bruno@clisp.org>
22275
22276         * MODULES.html.sh: Remove --cvs-urls option.
22277
22278 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22279
22280         maint.mk: adjust to file name change
22281         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22282
22283 2008-08-28  Jim Meyering  <meyering@redhat.com>
22284
22285         * modules/getndelim2 (License): Relicense to LGPLv2+.
22286         Approved by Richard Stallman for the version of 1995, and by
22287         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22288
22289 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22290
22291         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22292         dummy if one is not available.  Do not touch them if
22293         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22294         (getc_maybe_unlocked): New.
22295         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22296
22297 2008-08-26  Eric Blake  <ebb9@byu.net>
22298
22299         doc/INSTALL: resync from autoconf
22300         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22301         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22302         moving...
22303         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22304         * INSTALL: Regenerate.
22305         * INSTALL.ISO: New file.
22306         * INSTALL.UTF-8: Likewise.
22307
22308 2008-08-26  Jim Meyering  <meyering@redhat.com>
22309
22310         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22311         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22312         these definitions conditional, so that they may be overridden, too.
22313
22314 2008-08-26  Bruno Haible  <bruno@clisp.org>
22315
22316         Generate INSTALL file variants with prettier quotes.
22317         * doc/Makefile (INSTALL_PRELUDE): New macro.
22318         (INSTALL): Use it.
22319         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22320
22321 2008-08-26  Bruno Haible  <bruno@clisp.org>
22322
22323         Run makeinfo in an English locale.
22324         * doc/Makefile (MAKEINFO): New variable.
22325
22326 2008-08-26  Bruno Haible  <bruno@clisp.org>
22327
22328         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22329         Suggested by Eric Blake.
22330
22331 2008-08-25  Bruno Haible  <bruno@clisp.org>
22332
22333         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22334
22335 2008-08-25  Eric Blake  <ebb9@byu.net>
22336
22337         c-stack: test that stack overflow can be caught
22338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22339         that platform allows handling stack overflow; at least OS/2 EMX
22340         has sigaltstack, but crashes before transferring control to
22341         handler on stack overflow.
22342         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22343         check for HAVE_STACK_OVERFLOW_HANDLING.
22344         Reported by Elbert Pol.
22345
22346 2008-08-25  Bruno Haible  <bruno@clisp.org>
22347
22348         * doc/posix-functions/strftime.texi: Fix description of strftime
22349         module.
22350
22351 2008-08-24  Bruno Haible  <bruno@clisp.org>
22352
22353         * tests/uniwidth/test-uc_width2.c: New file.
22354         * tests/uniwidth/test-uc_width2.sh: New file.
22355         * modules/uniwidth/width-tests (Files): Add the new files.
22356         (TESTS): Add uniwidth/test-uc_width2.sh.
22357         (TESTS_ENVIRONMENT): New variable.
22358         (check_PROGRAMS): Add test-uc_width2.
22359         (test_uc_width2_SOURCES): New variable.
22360
22361         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22362         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22363         not 0x00AB.
22364         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22365
22366 2008-08-22  Eric Blake  <ebb9@byu.net>
22367
22368         test-lock, test-tls: mention why a test is skipped
22369         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22370         skipped.
22371         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22372
22373         count-one-bits: relax license
22374         * modules/count-one-bits (License): Relicense to LGPLv2+.
22375         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22376
22377 2008-08-22  Andreas Schwab  <schwab@suse.de>
22378
22379         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22380         Remove spurious space in assignment.
22381
22382 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22383
22384         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22385         Paul Eggert <eggert@CS.UCLA.EDU>.
22386
22387 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22388
22389         * modules/gettext: Add m4/threadlib.m4.
22390
22391 2008-08-19  Eric Blake  <ebb9@byu.net>
22392
22393         test-c-stack: fix compilation failure on FreeBSD 5.0
22394         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22395         headers before <sys/resource.h>.
22396         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22397         the bug.
22398         Reported by Nelson H. F. Beebe.
22399
22400         strverscmp: migrate from "strverscmp.h" to <string.h>
22401         * modules/string (Makefile.am): Add new hooks.
22402         * modules/strverscmp (Files): Remove strverscmp.h.
22403         (Depends-on): Add string.
22404         (configure.ac): Add indicator.
22405         (Include): Mention new header.
22406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22407         defaults.
22408         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22409         results.
22410         * lib/strverscmp.h: Delete.
22411         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22412         * tests/test-strverscmp.c (includes): Adjust client.
22413         * lib/check-version.c (includes): Likewise.
22414         * NEWS: Document the change.
22415
22416         strverscmp: add unit test
22417         * modules/strverscmp-tests: New file.
22418         * tests/test-strverscmp.c: Likewise.
22419
22420 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22421
22422         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22423         regarding Windows crypto stuff, from Mono.
22424
22425 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22426
22427         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22428         if present, for intel RND.  Return error on failures.
22429
22430 2008-08-18  Ben Pfaff  <blp@gnu.org>
22431
22432         gitlog-to-changelog: give better diagnostic for failed pipe-open
22433         * build-aux/gitlog-to-changelog: Improve error message: suggest
22434         that the version of Git may be too old.
22435
22436 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22437
22438         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22439         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22440
22441 2008-08-18  Bruno Haible  <bruno@clisp.org>
22442
22443         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22444         pthread_in_use().
22445
22446 2008-08-18  Bruno Haible  <bruno@clisp.org>
22447
22448         * lib/glthread/threadlib.c: Include <pthread.h>.
22449
22450 2008-08-18  Bruno Haible  <bruno@clisp.org>
22451
22452         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22453         glthread_recursive_lock_* macros.
22454         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22455         Fix syntax error.
22456
22457 2008-08-18  Bruno Haible  <bruno@clisp.org>
22458
22459         * lib/glthread/thread.c: Avoid forcing a context switch right after
22460         thread creation.
22461
22462 2008-08-17  Bruno Haible  <bruno@clisp.org>
22463
22464         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22465         * lib/glthread/thread.h: Provide Win32 specific implementation.
22466         * modules/thread (Files): Add lib/glthread/thread.c.
22467         (Depends-on): Add lock.
22468         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22469
22470 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22471
22472         New module 'yield'.
22473         * modules/yield: New file.
22474         * lib/glthread/yield.h: New file.
22475         * m4/yield.m4: New file.
22476         * MODULES.html.sh (Multithreading): Add yield.
22477
22478 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22479
22480         New module 'thread'.
22481         * modules/thread: New file.
22482         * lib/glthread/thread.h: New file.
22483         * m4/thread.m4: New file.
22484         * MODULES.html.sh (Multithreading): Add thread.
22485
22486 2008-08-17  Bruno Haible  <bruno@clisp.org>
22487
22488         * lib/glthread/lock.h: Include <stdlib.h> always.
22489         * lib/glthread/tls.h: Likewise.
22490         * lib/glthread/cond.h: Likewise.
22491
22492 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22493
22494         New module 'cond'.
22495         * modules/cond: New file.
22496         * lib/glthread/cond.h: New file.
22497         * lib/glthread/cond.c: New file.
22498         * m4/cond.m4: New file.
22499         * MODULES.html.sh (Multithreading): Add cond.
22500
22501 2008-08-16  Eric Blake  <ebb9@byu.net>
22502
22503         c-stack: fix regression on Irix 5.3 from 2008-06-21
22504         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22505         sa_sigaction...
22506         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22507         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22508         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22509         * modules/signal (Makefile.am): Use the value.
22510         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22511         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22512         * doc/posix-headers/signal.texi (signal.h): Document this
22513         portability issue.
22514         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22515         Reported by Tom G. Christensen.
22516
22517 2008-08-17  Bruno Haible  <bruno@clisp.org>
22518
22519         New module 'threadlib'.
22520         * modules/threadlib: New file.
22521         * lib/glthread/threadlib.c: New file, extracted from
22522         lib/glthread/lock.c.
22523         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22524         functions.
22525         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22526         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22527         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22528         macros.
22529         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22530         (gl_DISABLE_THREADS): Remove macro.
22531         * modules/lock (Files): Remove build-aux/config.rpath.
22532         (Depends-on): Remove havelib. Add threadlib.
22533         (configure.ac-early): Remove section.
22534         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22535         * modules/tls (Depends-on): Remove lock. Add threadlib.
22536         (Link): New section, copied from threadlib.
22537         * MODULES.html.sh (Multithreading): Add threadlib.
22538
22539 2008-08-14  Bruno Haible  <bruno@clisp.org>
22540
22541         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22542         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22543         glthread_rwlock_unlock, glthread_rwlock_destroy,
22544         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22545         glthread_recursive_lock_destroy): Define as macros always.
22546         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22547         glthread_lock_lock.
22548         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22549         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22550         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22551         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22552         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22553         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22554         (glthread_recursive_lock_lock_func): Renamed from
22555         glthread_recursive_lock_lock.
22556         (glthread_recursive_lock_unlock_func): Renamed from
22557         glthread_recursive_lock_unlock.
22558         (glthread_recursive_lock_destroy_func): Renamed from
22559         glthread_recursive_lock_destroy.
22560
22561 2008-08-14  Bruno Haible  <bruno@clisp.org>
22562
22563         * lib/glthread/lock.h: Renamed from lib/lock.h.
22564         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22565         * lib/glthread/tls.h: Renamed from lib/tls.h.
22566         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22567         * lib/fstrcmp.c: Update includes.
22568         * lib/strsignal.c: Update includes.
22569         * modules/lock (Files, Makefile.am): Update.
22570         (Include): Change to "glthread/lock.h".
22571         * modules/tls (Files, Makefile.am): Update.
22572         (Include): Change to "glthread/tls.h".
22573         * tests/test-lock.c: Update includes.
22574         * tests/test-tls.c: Update includes.
22575         * NEWS: Mention the renamed header files.
22576
22577 2008-08-11  Jim Meyering  <meyering@redhat.com>
22578
22579         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22580
22581 2008-08-11  Eric Blake  <ebb9@byu.net>
22582
22583         test-c-stack: avoid C99-ism
22584         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22585         before statement.
22586         Reported by Alain Guibert.
22587
22588 2008-08-10  Jim Meyering  <meyering@redhat.com>
22589
22590         ensure that return value of uinttostr et al are not ignored
22591         * lib/inttostr.h (__GNUC_PREREQ): Define.
22592         (__attribute_warn_unused_result__): Define.
22593         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22594
22595 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22596
22597         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22598         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22599
22600 2008-08-07  Jim Meyering  <meyering@redhat.com>
22601
22602         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22603
22604         * modules/mkstemp (License): Relicense under LGPLv2+.
22605         * modules/tempname (License): Likewise.
22606
22607 2008-08-06  Bruno Haible  <bruno@clisp.org>
22608
22609         * lib/poll.c (poll): Further micro-optimization.
22610
22611 2008-08-06  Jim Meyering  <meyering@redhat.com>
22612
22613         inet_pton.c: use locale-independent tolower
22614         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22615         (inet_pton6): Use c_tolower rather than tolower.
22616         * modules/inet_pton (Depends-on): Add c-ctype.
22617
22618 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22619
22620         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22621         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22622
22623 2008-08-06  Jim Meyering  <meyering@redhat.com>
22624
22625         * modules/inet_pton (License): Relicense under LGPLv2+.
22626
22627 2008-08-03  Bruno Haible  <bruno@clisp.org>
22628
22629         Additional non-aborting API for lock and tls.
22630         * lib/lock.h: Include <errno.h>.
22631         (glthread_lock_init): New macro/function.
22632         (gl_lock_init): Define as wrapper around glthread_lock_init.
22633         (glthread_lock_lock): New macro/function.
22634         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22635         (glthread_lock_unlock): New macro/function.
22636         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22637         (glthread_lock_destroy): New macro/function.
22638         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22639         (glthread_rwlock_init): New macro/function.
22640         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22641         (glthread_rwlock_rdlock): New macro/function.
22642         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22643         (glthread_rwlock_wrlock): New macro/function.
22644         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22645         (glthread_rwlock_unlock): New macro/function.
22646         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22647         (glthread_rwlock_destroy): New macro/function.
22648         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22649         (glthread_recursive_lock_init): New macro/function.
22650         (gl_recursive_lock_init): Define as wrapper around
22651         glthread_recursive_lock_init.
22652         (glthread_recursive_lock_lock): New macro/function.
22653         (gl_recursive_lock_lock): Define as wrapper around
22654         glthread_recursive_lock_lock.
22655         (glthread_recursive_lock_unlock): New macro/function.
22656         (gl_recursive_lock_unlock): Define as wrapper around
22657         glthread_recursive_lock_unlock.
22658         (glthread_recursive_lock_destroy): New macro/function.
22659         (gl_recursive_lock_destroy): Define as wrapper around
22660         glthread_recursive_lock_destroy.
22661         (glthread_once): New macro/function.
22662         (gl_once): Define as wrapper around glthread_once.
22663         Update function declarations.
22664         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22665         glthread_rwlock_init. Return error code.
22666         (glthread_rwlock_rdlock_multithreaded): Renamed from
22667         glthread_rwlock_rdlock. Return error code.
22668         (glthread_rwlock_wrlock_multithreaded): Renamed from
22669         glthread_rwlock_wrlock. Return error code.
22670         (glthread_rwlock_unlock_multithreaded): Renamed from
22671         glthread_rwlock_unlock. Return error code.
22672         (glthread_rwlock_destroy_multithreaded): Renamed from
22673         glthread_rwlock_destroy. Return error code.
22674         (glthread_recursive_lock_init_multithreaded): Renamed from
22675         glthread_recursive_lock_init. Return error code.
22676         (glthread_recursive_lock_lock_multithreaded): Renamed from
22677         glthread_recursive_lock_lock. Return error code.
22678         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22679         glthread_recursive_lock_unlock. Return error code.
22680         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22681         glthread_recursive_lock_destroy. Return error code.
22682         (glthread_once_call): Make static.
22683         (glthread_once_multithreaded): Renamed from glthread_once.
22684         * lib/tls.h: Include <errno.h>.
22685         (glthread_tls_key_init): New macro/function.
22686         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22687         (glthread_tls_set): New macro/function.
22688         (gl_tls_set): Define as wrapper around glthread_tls_set.
22689         (glthread_tls_key_destroy): New macro/function.
22690         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22691         Update function declarations.
22692         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22693         glthread_tls_get.
22694         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22695
22696 2008-08-04  Eric Blake  <ebb9@byu.net>
22697
22698         gnumakefile: use space, not TAB, outside of targets
22699         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22700
22701 2008-08-02  Jim Meyering  <meyering@redhat.com>
22702
22703         getdate.y: avoid locale-dependent date parsing failure
22704         In Turkish locales, getdate would fail to recognize keywords
22705         containing a lowercase "i".  The solution is not to rely on
22706         locale-sensitive case-conversion.
22707         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22708         (lookup_word): Use c_toupper in place of toupper.
22709         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22710         Reported by Vefa Bicakci <bicave@superonline.com> in
22711         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22712         * modules/getdate (Depends-on): Add c-ctype.
22713
22714 2008-08-02  Bruno Haible  <bruno@clisp.org>
22715
22716         * gnulib-tool (func_import): When updating or creating a .gitignore
22717         file, prepend each added line with a slash, and ignore leading slashes
22718         from the existing lines.
22719         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22720
22721 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22722
22723         Portability fix for GNU make 3.79.1.
22724         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22725         versions do not understand.
22726
22727 2008-08-01  Bruno Haible  <bruno@clisp.org>
22728
22729         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22730         * tests/test-isnanf.h (zero): New variable.
22731         (main): Avoid literal -0.0f.
22732         * tests/test-isnand.h (zero): New variable.
22733         (main): Avoid literal -0.0.
22734         * tests/test-isnanl.h (zero): New variable.
22735         (main): Avoid literal -0.0L.
22736         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22737         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22738         -0.0, -0.0L.
22739         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22740         (test_signbitd): Avoid literal -0.0.
22741         (test_signbitl): Avoid literal -0.0L.
22742         * tests/test-ceilf1.c (zero): New variable.
22743         (main): Avoid literal -0.0f.
22744         * tests/test-ceill.c (zero): New variable.
22745         (main): Avoid literal -0.0L.
22746         * tests/test-floorf1.c (zero): New variable.
22747         (main): Avoid literal -0.0f.
22748         * tests/test-floorl.c (zero): New variable.
22749         (main): Avoid literal -0.0L.
22750         * tests/test-roundf1.c (zero): New variable.
22751         (main): Avoid literal -0.0f.
22752         * tests/test-round1.c (zero): New variable.
22753         (main): Avoid literal -0.0.
22754         * tests/test-roundl.c (zero): New variable.
22755         (main): Avoid literal -0.0L.
22756         * tests/test-truncf1.c (zero): New variable.
22757         (main): Avoid literal -0.0f.
22758         * tests/test-trunc1.c (zero): New variable.
22759         (main): Avoid literal -0.0.
22760         * tests/test-truncl.c (zero): New variable.
22761         (main): Avoid literal -0.0L.
22762         * tests/test-frexp.c (zero): New variable.
22763         (main): Avoid literal -0.0.
22764         * tests/test-frexpl.c (zero): New variable.
22765         (main): Avoid literal -0.0L.
22766         * tests/test-ldexpl.c (zero): New variable.
22767         (main): Avoid literal -0.0L.
22768         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22769         (zerod, zerol): New variables.
22770         (test_function): Avoid literals -0.0, -0.0L.
22771         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22772         (zerod, zerol): New variables.
22773         (test_function): Avoid literals -0.0, -0.0L.
22774         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22775         (zerod, zerol): New variables.
22776         (test_function): Avoid literals -0.0, -0.0L.
22777         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22778         (zerod, zerol): New variables.
22779         (test_function): Avoid literals -0.0, -0.0L.
22780         * tests/test-strtod.c (zero): New variable.
22781         (main): Avoid literal -0.0.
22782         Reported by Jonathan C. Patschke <jp@centtech.com>.
22783
22784 2008-07-31  Jim Meyering  <meyering@redhat.com>
22785
22786         sha256.h: correct definition of SHA224_DIGEST_SIZE
22787         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22788         Reported by Paulie Pena IV <paulie4@gmail.com>.
22789         Define as 224 / 8, rather than as a literal.
22790         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22791         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22792         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22793
22794 2008-07-31  Bruno Haible  <bruno@clisp.org>
22795
22796         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22797         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22798         Reported by Jonathan Patschke <jp@centtech.com>.
22799
22800 2008-07-31  Bruno Haible  <bruno@clisp.org>
22801
22802         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22803         Reported by Paolo Bonzini <bonzini@gnu.org>.
22804
22805 2008-07-30  Eric Blake  <ebb9@byu.net>
22806
22807         test-strtod: allow compilation without -lm
22808         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22809         Reported by Dennis Clarke <blastwave@gmail.com>.
22810
22811 2008-07-28  Jim Meyering  <meyering@redhat.com>
22812
22813         bootstrap: work also when there are no .po files in po/
22814         * build-aux/bootstrap (update_po_files): Complete the change
22815         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22816
22817 2008-07-27  Jim Meyering  <meyering@redhat.com>
22818
22819         * users.txt: Add zile.
22820
22821 2008-07-26  Ben Pfaff  <blp@gnu.org>
22822
22823         Add missing dependencies on new m4/exponent[fdl].m4 files.
22824         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22825         * modules/isnand-nolibm: Add m4/exponentd.m4.
22826         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22827         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22828         m4/isnan[fdl].m4, because the macros actually used moved.
22829         Reported by Jim Meyering.
22830
22831 2008-07-14  Ben Pfaff  <blp@gnu.org>
22832
22833         Add isinf module.
22834         * lib/isinf.c: New file.
22835         * lib/math.in.h: Define isinf macro if we have decided to replace
22836         it.
22837         * m4/isinf.m4: New file.
22838         * m4/math_h.m4: Initialize and substitute variables for isinf
22839         module.
22840         * modules/isinf: New file.
22841         * modules/isinf-tests: New file.
22842         * modules/math: Add substitutions for new module.
22843         * tests/test-isinf.c: New file.
22844         * doc/posix-functions/isinf.texi: Mention new module.
22845         * MODULES.html.sh: Mention new module.
22846
22847 2008-07-14  Ben Pfaff  <blp@gnu.org>
22848
22849         Factor out some macros for use by additional modules.
22850         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22851         exponentf.m4.
22852         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22853         exponentd.m4.
22854         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22855         file exponentl.m4.
22856         * m4/exponentf.m4: New file.
22857         * m4/exponentd.m4: New file.
22858         * m4/exponentl.m4: New file.
22859         * modules/isnanf: Use new file m4/exponentf.m4.
22860         * modules/isnand: Use new file m4/exponentd.m4.
22861         * modules/isnanl: Use new file m4/exponentl.m4.
22862
22863 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22864
22865         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22866         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22867         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22868         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22869
22870         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22871         readlink on platforms without PATH_MAX.
22872
22873 2008-07-21  Eric Blake  <ebb9@byu.net>
22874
22875         Warn, not fail, on stale version.
22876         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22877
22878         Don't allow installation with stale devel version number.
22879         * top/GNUmakefile (_is-install-target): New macro.
22880         (_curr-ver): Forbid installation with stale version number.
22881
22882 2008-07-20  Bruno Haible  <bruno@clisp.org>
22883
22884         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22885         TESTS_ENVIRONMENT.
22886         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22887
22888 2008-07-20  Bruno Haible  <bruno@clisp.org>
22889
22890         * lib/c-stack.h (c_stack_action): Add documentation.
22891         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22892
22893 2008-07-20  Bruno Haible  <bruno@clisp.org>
22894
22895         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22896         * modules/readlink (License): Likewise.
22897
22898 2008-07-17  Eric Blake  <ebb9@byu.net>
22899
22900         * modules/c-stack (Link): Fix typo.
22901
22902         Make c-stack use libsigsegv, when available.
22903         * modules/c-stack (Depends-on): Add libsigsegv.
22904         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22905         needed.
22906         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22907         (segv_handler, overflow_handler, c_stack_action)
22908         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22909         implementation when libsigsegv is available, but only when using
22910         the library is necessary.
22911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22912         comment, explaining why XSI check fails on Linux.
22913         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22914         * tests/test-c-stack2.sh: Tweak skip message.
22915         * NEWS: Document new link-time requirements.
22916
22917 2008-07-16  Eric Blake  <ebb9@byu.net>
22918
22919         c-stack: Expose false positives when not using libsigsegv.
22920         * modules/c-stack-tests (Files): Expand test.
22921         * tests/test-c-stack.c (main): Add means to conditionally trigger
22922         non-overflow SIGSEGV.
22923         * tests/test-c-stack2.sh: New file.
22924
22925 2008-07-14  Bruno Haible  <bruno@clisp.org>
22926
22927         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22928         Reported by Eric Blake.
22929
22930 2008-07-14  Sam Steingold  <sds@gnu.org>
22931             Bruno Haible  <bruno@clisp.org>
22932
22933         New module libsigsegv.
22934         * modules/libsigsegv: New file.
22935         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22936         modifications.
22937         * MODULES.html.sh (Signal handling): New section.
22938
22939 2008-07-14  Bruno Haible  <bruno@clisp.org>
22940
22941         * modules/unictype/ctype-* (Description): Add the word "function".
22942         Improves the resulting doc in MODULES.html.
22943
22944 2008-07-12  Ben Pfaff  <blp@gnu.org>
22945
22946         Add longlong module.
22947         * modules/longlong: New file.
22948
22949 2008-07-12  Bruno Haible  <bruno@clisp.org>
22950
22951         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22952         to empty.
22953
22954 2008-07-10  Ben Pfaff  <blp@gnu.org>
22955
22956         Add isnan module.
22957         * doc/posix-functions/isnan.texi: Mention new module.
22958         * lib/math.in.h: Define isnan macro if we have decided to replace
22959         it.
22960         * m4/isnan.m4: New file.
22961         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22962         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22963         also.
22964         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22965         redundancy.
22966         * m4/math_h.m4: Initialize and substitute variables for isnan
22967         module.
22968         * modules/isnan: New file.
22969         * modules/isnan-tests: New file.
22970         * modules/math: Add substitutions for new module.
22971         * tests/test-isnan.c: New file.
22972         * MODULES.html.sh: Mention new module.
22973
22974 2008-07-10  Ben Pfaff  <blp@gnu.org>
22975
22976         Add isnanf module.
22977         * lib/isnanf.m4: New file.
22978         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22979         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22980         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22981         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22982         * modules/isnanf: New file.
22983         * modules/isnanf-tests: New file.
22984         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22985         files.
22986         * tests/test-isnanf-nolibm.c: factored most of its contents into
22987         new file tests/test-isnanf.h.
22988         * tests/test-isnanf.h: New file.
22989         * tests/test-isnanf.c: New file.
22990         * MODULES.html.sh: Mention new module.
22991         * doc/glibc-functions/isnanf.texi: Mention new module.
22992
22993 2008-07-10  Ben Pfaff  <blp@gnu.org>
22994
22995         Add isnand module.
22996         * lib/isnand.h: New file.
22997         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22998         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22999         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23000         functionality also.
23001         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23002         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23003         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23004         * modules/isnand: New file.
23005         * modules/isnand-tests: New file.
23006         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23007         files.
23008         * tests/test-isnand-nolibm.c: factored most of its contents into
23009         new file tests/test-isnand.h.
23010         * tests/test-isnand.h: New file.
23011         * tests/test-isnand.c: New file.
23012         * MODULES.html.sh: Mention new module.
23013
23014 2008-07-10  Ben Pfaff  <blp@gnu.org>
23015
23016         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23017         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23018         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23019         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23020         * modules/isnanf-nolibm: Update references to renamed files.
23021         * modules/isnand-nolibm: Likewise.
23022         * modules/isnanf-nolibm-tests: Likewise.
23023         * modules/isnand-nolibm-tests: Likewise.
23024         * lib/frexp.c: Likewise.
23025         * lib/isfinite.c: Likewise.
23026         * lib/signbitd.c: Likewise.
23027         * lib/signbitf.c: Likewise.
23028         * lib/vasnprintf.c: Likewise.
23029         * tests/test-ceilf1.c: Likewise.
23030         * tests/test-ceilf2.c: Likewise.
23031         * tests/test-floorf1.c: Likewise.
23032         * tests/test-floorf2.c: Likewise.
23033         * tests/test-frexp.c: Likewise.
23034         * tests/test-round1.c: Likewise.
23035         * tests/test-round2.c: Likewise.
23036         * tests/test-roundf1.c: Likewise.
23037         * tests/test-strtod.c: Likewise.
23038         * tests/test-trunc1.c: Likewise.
23039         * tests/test-trunc2.c: Likewise.
23040         * tests/test-truncf1.c: Likewise.
23041         * tests/test-truncf2.c: Likewise.
23042         * NEWS: Mention the renamed header files.
23043
23044 2008-07-11  Jim Meyering  <meyering@redhat.com>
23045
23046         vc-list-files: make the last-resort awk code more portable
23047         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23048         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23049         does not support it.
23050
23051 2008-07-10  Eric Blake  <ebb9@byu.net>
23052
23053         Work with tar's bootstrap.
23054         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23055         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23056         an m4 comment.
23057
23058 2008-07-09  Jim Meyering  <meyering@redhat.com>
23059
23060         posix-shell.m4: fix typo that made this test malfunction
23061         * m4/posix-shell.m4: Remove capitalization in variable name.
23062
23063 2008-07-08  Bruno Haible  <bruno@clisp.org>
23064
23065         * m4/onceonly.m4: Update comments.
23066         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23067
23068 2008-07-04  Jim Meyering  <meyering@redhat.com>
23069
23070         * users.txt: Add vc-dwim.
23071         (bison, coreutils): Use the gitweb URL.
23072
23073 2008-07-03  Jim Meyering  <meyering@redhat.com>
23074
23075         * users.txt: Add libffcall.  From Sam Steingold.
23076
23077 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23078
23079         getdate.y: do not ignore TZ with relative day, month or year offset
23080         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23081         relative-date-handling, since otherwise, the latter would clobber the
23082         sole output (an updated Start value) of the tz-handling block.
23083         * tests/test-getdate.c: Tests for the fix
23084
23085 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23086
23087         Recognize 'foo_LIBRARIES += libgnu.a'.
23088         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23089         makefile snippet has already specified an installation location,
23090         also using '+='.
23091
23092 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23093
23094         getdate.y: factor out common actions
23095         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23096         Use them in place of open-coded actions.
23097
23098 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23099
23100         Add self-test for getdate module.
23101         * modules/getdate-tests: New file.
23102         * tests/test-getdate.c: New file.
23103
23104 2008-06-29  Bruno Haible  <bruno@clisp.org>
23105
23106         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23107         .gitignore.
23108         Reported by Sylvain Beucler <beuc@beuc.net>.
23109
23110 2008-06-29  Bruno Haible  <bruno@clisp.org>
23111
23112         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23113         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23114
23115 2008-06-29  Bruno Haible  <bruno@clisp.org>
23116
23117         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23118         EXTRA_DIST.
23119         Reported by Sylvain Beucler <beuc@beuc.net>.
23120
23121 2008-06-26  Jim Meyering  <meyering@redhat.com>
23122
23123         make several modules depend on the "open" module
23124         This provides slightly increased consistency when opening-for-write
23125         the name of a non-directory spelled with a trailing slash.
23126         * modules/chdir-safer: Likewise.
23127         * modules/chown: Likewise.
23128         * modules/clean-temp: Likewise.
23129         * modules/copy-file: Likewise.
23130         * modules/fchdir: Likewise.
23131         * modules/fcntl-safer: Likewise.
23132         * modules/pipe: Likewise.
23133         * modules/utime: Likewise.
23134         Prompted by Eric Blake and Bruno Haible.
23135
23136 2008-06-24  Andreas Schwab  <schwab@suse.de>
23137
23138         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23139         literals can be used as initializers for global variables.
23140
23141 2008-06-23  Eric Blake  <ebb9@byu.net>
23142
23143         Make gnulib-cache.m4 easier to diff.
23144         * gnulib-tool (func_import): Allow newlines when reading cached
23145         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23146
23147 2008-06-23  Bruno Haible  <bruno@clisp.org>
23148
23149         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23150         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23151         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23152         m4/signalblocking.m4.
23153         (gl_PREREQ_SIGACTION): Don't invoke it.
23154         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23155         gl_PREREQ_SIG_HANDLER_H.
23156         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23157         Don't check for sigaction here.
23158
23159 2008-06-23  Bruno Haible  <bruno@clisp.org>
23160
23161         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23162         (install_handlers): Don't set the SA_RESETHAND flag.
23163
23164 2008-06-23  Bruno Haible  <bruno@clisp.org>
23165
23166         * m4/sigaction.m4: Comment fixes.
23167         * lib/signal.in.h: Likewise.
23168
23169 2008-06-23  Eric Blake  <ebb9@byu.net>
23170
23171         Fix typo.
23172         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23173
23174         Avoid SA_ namespace.
23175         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23176         Reported by Ralf Wildenhues.
23177
23178         Avoid test failure due to SA_RESTORER.
23179         * tests/test-sigaction.c (SA_MASK): New macro.
23180         (main): Avoid failing due to extension flags being set.
23181         Reported by Jim Meyering.
23182
23183         Revert use of sig-handler.h in sigprocmask.c.
23184         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23185         it requires the existence of struct sigaction.
23186         * lib/sigprocmask.c (handler_t): Restore typedef.
23187         (rpl_signal, old_handlers): Use local type.
23188
23189 2008-06-22  Bruno Haible  <bruno@clisp.org>
23190
23191         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23192         conditionally.
23193         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23194
23195 2008-06-22  Bruno Haible  <bruno@clisp.org>
23196
23197         * doc/posix-functions/siginterrupt.texi: Move note.
23198
23199         * lib/signal.in.h (SA_RESTART): New macro.
23200         * lib/sigaction.c: Update comment.
23201
23202         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23203
23204         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23205         (gl_PREREQ_SIGPROCMASK): Invoke it.
23206         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23207
23208         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23209
23210         * lib/sigprocmask.c: Update a comment.
23211
23212 2008-06-21  Eric Blake  <ebb9@byu.net>
23213
23214         Use sigaction module rather than signal().
23215         * modules/c-stack (Depends-on): Add sigaction.
23216         * modules/fatal-signal (Depends-on): Likewise.
23217         * modules/nanosleep (Depends-on): Likewise.
23218         * modules/sigprocmask (Files): Add sig-handler.h.
23219         * modules/sigaction (Files): Likewise.
23220         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23221         Eggert.
23222         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23223         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23224         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23225         (init_fatal_signals): Likewise.
23226         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23227         (siginterrupt): Delete fallback.
23228         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23229         instead.
23230         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23231         siginterrupt.
23232
23233         New module sigaction, for mingw.
23234         * modules/sigaction: New module...
23235         * modules/sigaction-tests: ...and its test.
23236         * m4/sigaction.m4: New file.
23237         * lib/sigaction.c: Likewise.
23238         * tests/test-sigaction.c: Likewise.
23239         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23240         * modules/signal (Makefile.am): Likewise.
23241         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23242         needed.
23243         * doc/posix-headers/signal.texi (signal.h): Mention provided
23244         types.
23245         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23246         that sigaction is preferable.
23247         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23248         module.
23249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23250         sigaction.
23251
23252         Improve robustness of sigprocmask by overriding signal.
23253         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23254         is in use.
23255         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23256         (SIGKILL, SIGSTOP): Provide fallbacks.
23257         (rpl_signal): Implement.
23258         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23259         signal can be called inside handlers.
23260
23261         Fix nanosleep module on mingw.
23262         * modules/nanosleep (Depends-on): Add sys_select.
23263         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23264
23265         Fix licensing of sigprocmask.
23266         * modules/raise (License): Relicense as LGPL.
23267
23268 2008-06-21  Bruno Haible  <bruno@clisp.org>
23269
23270         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23271         result if it contains question marks.
23272         Reported by Michael Geng <linux@michaelgeng.de>.
23273
23274 2008-06-19  Bruno Haible  <bruno@clisp.org>
23275
23276         Fix CVS-ism.
23277         * doc/gnulib.texi: Include updated-stamp.texi.
23278         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23279         (updated-stamp.texi): New rule.
23280         (gnulib.info): Depend on it.
23281         * doc/.gitignore: Add updated-stamp.texi.
23282         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23283
23284 2008-06-19  Bruno Haible  <bruno@clisp.org>
23285
23286         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23287         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23288
23289 2008-06-19  Eric Blake  <ebb9@byu.net>
23290
23291         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23292         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23293         Reported by Stepan Kasal.
23294
23295 2008-06-18  Bruno Haible  <bruno@clisp.org>
23296
23297         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23298         Reported by Eric Blake.
23299
23300 2008-06-18  Eric Blake  <ebb9@byu.net>
23301
23302         Work around cygwin 1.5.25 strsignal bug.
23303         * tests/test-strsignal.c: Allow for const char *.
23304         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23305
23306 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23307
23308         * users.txt: Update URL to article and add author/date
23309         information.
23310
23311 2008-06-17  Bruno Haible  <bruno@clisp.org>
23312
23313         New macro gl_DISABLE_THREADS.
23314         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23315         if the user did not pass --enable-threads or --disable-threads option.
23316         (gl_DISABLE_THREADS): New macro.
23317         Reported by Eric Blake <ebb9@byu.net>.
23318
23319 2008-06-17  Bruno Haible  <bruno@clisp.org>
23320
23321         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23322         when the macro ignores it.
23323         Based on a patch by Eric Blake <ebb9@byu.net>.
23324
23325 2008-06-17  Bruno Haible  <bruno@clisp.org>
23326
23327         * modules/tls (License): Change to LGPLv2+.
23328         Reported by Eric Blake.
23329
23330 2008-06-17  Eric Blake  <ebb9@byu.net>
23331
23332         Simplify c-stack prerequisites.
23333         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23334         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23335         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23336         check.
23337         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23338         <sys/resource.h>.
23339
23340         Move c-stack test into testsuite.
23341         * modules/c-stack-tests: New file.
23342         * lib/c-stack.c [DEBUG]: Move test program...
23343         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23344         fail test if sigaltstack is lacking.
23345         * tests/test-c-stack.sh: New driver file.
23346
23347 2008-06-16  Eric Blake  <ebb9@byu.net>
23348
23349         Use raise module consistently.
23350         * modules/fatal-signal (Depends-on): Add raise.
23351         * modules/sigprocmask (Depends-on): Likewise.
23352         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23353         * lib/sigprocmask.c (sigprocmask): Likewise.
23354         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23355         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23356
23357         Fix compliance bug in sigpending.
23358         * lib/sigprocmask.c (sigpending): Return pending array via
23359         parameter, not return value.
23360
23361 2008-06-14  Eric Blake  <ebb9@byu.net>
23362
23363         Improve obstack-printf test code.
23364         * tests/test-obstack-printf.c (test_function): Fix comment, and
23365         simplify usage of obstack_* in macros.  Add a test for coverage.
23366         Reported by Bruno Haible.
23367
23368 2008-06-14  Bruno Haible  <bruno@clisp.org>
23369
23370         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23371         array size as a constant, not as a const variable.
23372         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23373         AC_USE_SYSTEM_EXTENSIONS.
23374         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23375         Test whether the obstack_printf function actually exists.
23376         * modules/obstack-printf (Depends-on): Add extensions.
23377         (Include): Remove obstack.h.
23378         * modules/obstack-printf-posix (Depends-on): Add extensions.
23379         (Include): Remove obstack.h.
23380
23381 2008-06-13  Eric Blake  <ebb9@byu.net>
23382
23383         Add obstack-printf and obstack-printf-posix modules.
23384         * modules/obstack-printf: New file.
23385         * modules/obstack-printf-posix: Likewise.
23386         * MODULES.html.sh (Misc): Mention them.
23387         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23388         Likewise.
23389         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23390         Likewise.
23391         * modules/stdio (Makefile.am): Accomodate new modules.
23392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23393         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23394         Declare.
23395         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23396         functions.
23397         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23398         (gl_REPLACE_OBSTACK_PRINTF): New macros
23399         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23400         * tests/test-obstack-printf.c: New file.
23401         * modules/obstack-printf-tests: Likewise.
23402         * modules/obstack-printf-posix-tests: Likewise.
23403
23404 2008-06-11  Bruno Haible  <bruno@clisp.org>
23405
23406         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23407         * lib/open.c: Include errno.h.
23408         (open): Fail when attempting to write to a file that has a trailing
23409         slash.
23410         * tests/test-open.c (main): Test against trailing slash bug.
23411         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23412
23413 2008-06-10  Bruno Haible  <bruno@clisp.org>
23414
23415         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23416         for $? to work inside the trap command, with various /bin/sh-s.
23417         * tests/test-vc-list-files-cvs.sh: Likewise.
23418
23419 2008-06-10  Bruno Haible  <bruno@clisp.org>
23420
23421         * lib/acl-internal.h: Don't include gettext.h here.
23422         * lib/set-mode-acl.c: Include gettext.h here.
23423         * lib/copy-acl.c: Likewise.
23424
23425 2008-06-10  Bruno Haible  <bruno@clisp.org>
23426
23427         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23428         * lib/wait-process.c (wait_subprocess): Likewise.
23429         * lib/execute.h (execute): Add termsigp argument.
23430         * lib/execute.c (execute): Likewise.
23431         * lib/csharpcomp.c (compile_csharp_using_pnet,
23432         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23433         * lib/csharpexec.c (execute_csharp_using_pnet,
23434         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23435         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23436         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23437         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23438         is_jikes_present): Update.
23439         * lib/javaexec.c (execute_java_class): Update.
23440         * lib/javaversion.c (execute_and_read_line): Update.
23441         * NEWS: Document the changes.
23442         Reported by Eric Blake.
23443
23444 2008-06-10  Eric Blake  <ebb9@byu.net>
23445
23446         Add missing include.
23447         * tests/test-strstr.c (includes): Add <signal.h>.
23448         * tests/test-strcasestr.c (includes): Likewise.
23449         * tests/test-memmem.c (includes): Likewise.
23450
23451 2008-06-10  Bruno Haible  <bruno@clisp.org>
23452
23453         * lib/wait-process.c (wait_subprocess): Add an assertion.
23454
23455 2008-06-10  Bruno Haible  <bruno@clisp.org>
23456
23457         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23458
23459 2008-06-10  Bruno Haible  <bruno@clisp.org>
23460
23461         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23462         using alarm().
23463         * tests/test-strcasestr.c (main): Likewise.
23464         * tests/test-strstr.c (main): Likewise.
23465
23466 2008-06-09  Bruno Haible  <bruno@clisp.org>
23467
23468         Work around the Solaris 10 ACE ACLs ABI change.
23469         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23470         declare if ACL_NO_TRIVIAL is present.
23471         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23472         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23473         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23474         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23475         define if ACL_NO_TRIVIAL is present.
23476         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23477         and use the current ABI.
23478         (file_has_acl): Use same #if condition as elsewhere.
23479         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23480         in use, and use the current ABI.
23481         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23482         Reported by Jim Meyering.
23483
23484 2008-06-09  Eric Blake  <ebb9@byu.net>
23485
23486         Work around environments that (stupidly) ignore SIGALRM.
23487         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23488         before using alarm().
23489         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23490         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23491         Reported by Ian Beckwith <ianb@erislabs.net>.
23492
23493         Produce autobuild blurb earlier in log.
23494         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23495
23496 2008-06-09  Jim Meyering  <meyering@redhat.com>
23497         and OndÅ™ej Vašík  <ovasik@redhat.com>
23498
23499         utimens.c: correct kernel bug work-around
23500         OndÅ™ej Vašík found that the invalid return value of 280 indicates
23501         failure, not success, and the kernel bug we're trying to work
23502         around affects not just the utimensat call, but also the fallback
23503         futimens call.
23504         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23505         not success.
23506         [HAVE_FUTIMENS]: Use the same work-around, here.
23507
23508 2008-06-09  Jim Meyering  <meyering@redhat.com>
23509
23510         add more guards around definition of ACE_-related code
23511         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23512         ALLOW and ACE_OWNER are also defined.
23513
23514 2008-06-08  Bruno Haible  <bruno@clisp.org>
23515
23516         * lib/acl-internal.h: Add me as co-author.
23517         * lib/file-has-acl.c: Likewise.
23518         * lib/set-mode-acl.c: Likewise.
23519         * lib/copy-acl.c: Likewise.
23520
23521 2008-06-08  Bruno Haible  <bruno@clisp.org>
23522
23523         Add support for AIX ACLs.
23524         * lib/acl-internal.h (acl_nontrivial): New declaration.
23525         * lib/file-has-acl.c (acl_nontrivial): New function.
23526         (file_has_acl): Add implementation using AIX 4 ACL API.
23527         * lib/set-mode-acl.c (qset_acl): Likewise.
23528         * lib/copy-acl.c (qcopy_acl): Likewise.
23529
23530 2008-06-08  Bruno Haible  <bruno@clisp.org>
23531
23532         Add support for HP-UX ACLs.
23533         * lib/acl-internal.h (acl_nontrivial): New declaration.
23534         * lib/file-has-acl.c (acl_nontrivial): New function.
23535         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23536         * lib/set-mode-acl.c (qset_acl): Likewise.
23537         * lib/copy-acl.c (qcopy_acl): Likewise.
23538
23539 2008-06-08  Bruno Haible  <bruno@clisp.org>
23540
23541         Add support for Cygwin ACLs.
23542         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23543         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23544         the chmod_or_fchmod call.
23545         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23546
23547 2008-06-08  Bruno Haible  <bruno@clisp.org>
23548
23549         Fix bug with setuid modes in Solaris 10+ code.
23550         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23551         succeeded, when the mode contains some special bits.
23552
23553 2008-06-08  Bruno Haible  <bruno@clisp.org>
23554
23555         Add support for Solaris 7..10 ACLs.
23556         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23557         declarations.
23558         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23559         functions.
23560         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23561         * lib/set-mode-acl.c (qset_acl): Likewise.
23562         * lib/copy-acl.c (qcopy_acl): Likewise.
23563
23564 2008-06-08  Bruno Haible  <bruno@clisp.org>
23565
23566         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23567         declaration.
23568         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23569         (acl_access_nontrivial): Remove MacOS X case.
23570         (file_has_acl): Use acl_extended_nontrivial.
23571         * lib/copy-acl.c (qcopy_acl): Likewise.
23572
23573 2008-06-08  Bruno Haible  <bruno@clisp.org>
23574
23575         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23576
23577 2008-06-08  Jim Meyering  <meyering@redhat.com>
23578
23579         * modules/acl (Maintainer): Add Bruno Haible.
23580
23581 2008-06-07  Bruno Haible  <bruno@clisp.org>
23582
23583         Improve support for Tru64 ACLs.
23584         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23585         ACL on OSF/1.
23586
23587 2008-06-07  Bruno Haible  <bruno@clisp.org>
23588
23589         Add support for MacOS X ACLs.
23590         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23591         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23592         * lib/set-mode-acl.c (qset_acl): Likewise.
23593         * lib/copy-acl.c (qcopy_acl): Likewise.
23594
23595 2008-06-07  Bruno Haible  <bruno@clisp.org>
23596
23597         Fix memory leak introduced on 2008-05-22.
23598         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23599         use.
23600
23601 2008-06-07  Bruno Haible  <bruno@clisp.org>
23602
23603         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23604         to construct an empty ACL.
23605
23606 2008-06-07  Bruno Haible  <bruno@clisp.org>
23607
23608         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23609         precisely.
23610         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23611
23612 2008-06-07  Bruno Haible  <bruno@clisp.org>
23613
23614         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23615         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23616
23617 2008-06-07  Bruno Haible  <bruno@clisp.org>
23618
23619         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23620         regardless of POSIX.
23621         * doc/posix-functions/_longjmp.texi: Likewise.
23622         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23623         SystemV platform in this case.
23624
23625 2008-06-06  Eric Blake  <ebb9@byu.net>
23626
23627         Document abort() bugs.
23628         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23629
23630         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23631         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23632         sigsetjmp.
23633         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23634         siglongjmp, but only as a macro.
23635         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23636         is obsolete.
23637         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23638
23639         Tweak documentation to cover cygwin argz bugs.
23640         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23641         argz bug fix; no code change needed since no cygwin releases
23642         occurred between the last fix and the bug being tested.
23643         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23644         module and recently fixed cygwin bugs.
23645         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23646         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23647         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23648         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23649         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23650         Likewise.
23651         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23652         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23653         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23654         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23655         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23656         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23657         Likewise.
23658
23659         Avoid gcc warning on cygwin.
23660         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23661         !ACL_NO_TRIVIAL]: Avoid unused variable.
23662
23663 2008-06-05  Eric Blake  <ebb9@byu.net>
23664
23665         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23666         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23667         git-version-gen fails to come up with a version.
23668         Reported by Simon Josefsson.
23669
23670 2008-06-05  Jim Meyering  <meyering@redhat.com>
23671             Paul Eggert  <eggert@cs.ucla.edu>
23672
23673         utimens.c: work around a probable Linux kernel bug
23674         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23675         appears to be a kernel bug that causes utimensat to return 280
23676         instead of 0, indicating success.
23677
23678 2008-06-04  Bruno Haible  <bruno@clisp.org>
23679
23680         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23681         2008-06-01 commit.
23682
23683 2008-06-04  Bruno Haible  <bruno@clisp.org>
23684
23685         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23686         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23687         (file_has_acl): Use it. Save errno afterwards.
23688         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23689
23690 2008-06-03  Bruno Haible  <bruno@clisp.org>
23691
23692         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23693         draft code. Simplify #ifs.
23694         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23695         Put Solaris code after POSIX-draft code. Fix comments regarding
23696         Solaris 10, HP-UX. Mention Cygwin.
23697         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23698
23699 2008-06-03  Eric Blake  <ebb9@byu.net>
23700
23701         Provide fallback for older kernels.
23702         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23703         Provide runtime fallback if kernel lacks support.
23704         Reported by Mike Frysinger.
23705
23706 2008-06-02  Bruno Haible  <bruno@clisp.org>
23707
23708         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23709         it exists.
23710
23711 2008-06-02  Bruno Haible  <bruno@clisp.org>
23712
23713         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23714         * lib/copy-acl.c (qcopy_acl): Update comment.
23715
23716 2008-06-02  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23719         like ACL APIs.
23720
23721 2008-06-02  Bruno Haible  <bruno@clisp.org>
23722
23723         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23724         * tests/test-set-mode-acl.sh: Likewise.
23725         * tests/test-copy-acl.sh: Likewise.
23726         * tests/test-copy-file.sh: Likewise.
23727
23728 2008-06-02  Bruno Haible  <bruno@clisp.org>
23729
23730         * tests/test-file-has-acl.sh: Remove unused code.
23731
23732 2008-06-01  Bruno Haible  <bruno@clisp.org>
23733
23734         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23735         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23736         messages.
23737         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23738
23739 2008-06-01  Bruno Haible  <bruno@clisp.org>
23740
23741         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23742         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23743         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23744         APIs.
23745         * modules/acl-tests (configure.ac): Remove tests now contained in
23746         m4/acl.m4.
23747
23748 2008-06-02  Jim Meyering  <meyering@redhat.com>
23749
23750         announce-gen: use a better key-server host name
23751         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23752         it may be more consistently reliable.  Suggested by Werner Koch
23753         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23754
23755 2008-06-01  Bruno Haible  <bruno@clisp.org>
23756
23757         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23758         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23759
23760 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23761
23762         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23763
23764 2008-06-01  Bruno Haible  <bruno@clisp.org>
23765
23766         New ACL tests.
23767         * tests/test-file-has-acl.sh: New file.
23768         * tests/test-file-has-acl.c: New file.
23769         * tests/test-set-mode-acl.sh: New file.
23770         * tests/test-set-mode-acl.c: New file.
23771         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23772         * tests/test-copy-acl.c: New file.
23773         * modules/acl-tests: New file, based on modules/copy-file-tests.
23774         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23775         (Depends-on): Add acl-tests.
23776         (configure.ac): Remove checks.
23777         (Makefile.am): Don't create test-sameacls program here any more.
23778
23779 2008-06-01  Bruno Haible  <bruno@clisp.org>
23780
23781         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23782         * tests/test-sameacls.c: Include progname.h.
23783         (main): Invoke set_program_name. Portability fixes for MacOS X,
23784         Solaris, HP-UX.
23785
23786 2008-06-01  Bruno Haible  <bruno@clisp.org>
23787
23788         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23789         function.
23790         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23791
23792 2008-06-01  Bruno Haible  <bruno@clisp.org>
23793
23794         * modules/rpmatch (Depends-on): Add strdup.
23795
23796 2008-06-01  Bruno Haible  <bruno@clisp.org>
23797
23798         * lib/pipe.c: Include unistd-safer.h.
23799         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23800         * modules/pipe (Depends-on): Add unistd-safer.
23801
23802 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23803
23804         * modules/autobuild (configure.ac): Call AB_INIT.
23805
23806 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23807
23808         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23809         Suggested by Bruno Haible <bruno@clisp.org>.
23810
23811 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23812
23813         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23814         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23815         <bruno@clisp.org>.
23816
23817 2008-05-29  Eric Blake  <ebb9@byu.net>
23818
23819         Prefer new POSIX 200x interfaces over futimesat.
23820         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23821         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23822         when available.
23823         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23824
23825 2008-05-28  Bruno Haible  <bruno@clisp.org>
23826
23827         * modules/stpcpy (License): Change to LGPLv2+.
23828         Requested by David Lutterkort <dlutter@redhat.com>.
23829
23830 2008-05-27  Bruno Haible  <bruno@clisp.org>
23831
23832         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23833         current mingw.
23834         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23835
23836 2008-05-27  Bruno Haible  <bruno@clisp.org>
23837
23838         * modules/iconv_open (Link): New section, from module 'iconv'.
23839         * modules/striconv (Link): Likewise.
23840         * modules/striconveh (Link): Likewise.
23841         * modules/xstriconv (Link): Likewise.
23842         * modules/unicodeio (Link): Likewise.
23843         * modules/propername (Link): Likewise.
23844         Reported by Jim Meyering.
23845
23846 2008-05-26  Jim Meyering  <meyering@redhat.com>
23847
23848         sha256: do not artificially restrict buffer length to be < 2^32
23849         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23850         uint32_t to size_t.
23851         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23852         to match.
23853
23854         avoid unaligned access errors, e.g., on sparc
23855         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23856         direct access through a possibly-unaligned uint64* pointer.
23857         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23858         direct access through a possibly-unaligned uint32* pointer.
23859         Prompted by this patch from Tom "spot" Callaway:
23860         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23861
23862         sha512.c: fix typo in comment
23863         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23864
23865 2008-05-25  Bruno Haible  <bruno@clisp.org>
23866
23867         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23868         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23869         (Makefile.am): Update lib_SOURCES.
23870
23871 2008-05-25  Bruno Haible  <bruno@clisp.org>
23872
23873         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23874
23875 2008-05-25  Jim Meyering  <meyering@redhat.com>
23876
23877         useless-if-before-free: freed expr may have white-space differences
23878         * build-aux/useless-if-before-free: Recognize cases in which the
23879         freed expression differs from the tested one in embedded white
23880         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23881         $1 was used, so we can't make any regexp shy.  Improved tests now
23882         detect this.
23883
23884         useless-if-before-free: accept white space in the expression.
23885         * build-aux/useless-if-before-free: For now, any white space
23886         in the expression must be identical in the free argument.
23887
23888         useless-if-before-free: efficiency tweak
23889         * build-aux/useless-if-before-free: Make the expression-matching
23890         regexp "shy".
23891         Make the *outer* regexp shy, not the expr-matching one.
23892
23893         update code-in-comment to accept cast of free arg
23894         * build-aux/useless-if-before-free: Update regexp.
23895
23896 2008-05-25  Bruno Haible  <bruno@clisp.org>
23897
23898         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23899         * modules/copy-file-tests (Files, Makefile.am): Update.
23900         * tests/test-copy-file.c (func_test_copy): Update.
23901
23902 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23903
23904         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23905
23906 2008-05-23  Bruno Haible  <bruno@clisp.org>
23907
23908         Improve support for ACLs on OSF/1.
23909         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23910         Remove fallback for unknown flavors of ACLs.
23911
23912 2008-05-22  Bruno Haible  <bruno@clisp.org>
23913
23914         Add support for ACLs on OSF/1.
23915         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23916         replacements.
23917         (acl_free_text): New macro fallback.
23918         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23919         acl_free.
23920         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23921         acl_free_text function. Require AC_C_INLINE.
23922
23923 2008-05-22  Bruno Haible  <bruno@clisp.org>
23924
23925         Make copy_acl work on MacOS X 10.5.
23926         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23927         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23928         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23929         If MODE_INSIDE_ACL, don't assume that every system has the same text
23930         representation for ACLs as FreeBSD.
23931         * lib/copy-acl.c (copy_acl): Add support for platforms with
23932         !MODE_INSIDE_ACL.
23933         * lib/file-has-acl.c (file_has_acl): Likewise.
23934         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23935         FreeBSD, MacOS X, or IRIX, respectively.
23936
23937 2008-05-22  Bruno Haible  <bruno@clisp.org>
23938
23939         * lib/acl.h: Don't include <sys/acl.h>.
23940         (GETACLCNT): Move fallback to lib/acl-internal.h.
23941         * lib/acl-internal.h: Include <sys/acl.h> here.
23942         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23943
23944 2008-05-22  Bruno Haible  <bruno@clisp.org>
23945
23946         Split off copy_acl function to separate file.
23947         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23948         * lib/acl.c (copy_acl): Moved function to separate file.
23949         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23950         * modules/acl (Files): Add lib/copy-acl.c.
23951         (Makefiles.am): Augment lib_SOURCES.
23952
23953 2008-05-22  Bruno Haible  <bruno@clisp.org>
23954
23955         * modules/copy-file-tests: New file.
23956         * tests/test-copy-file.sh: New file.
23957         * tests/test-copy-file.c: New file.
23958         * tests/test-copy-file-sameacls.c: New file.
23959
23960 2008-05-22  Eric Blake  <ebb9@byu.net>
23961
23962         Avoid gcc warning.
23963         * tests/test-memcmp.c (main): Pass NULL indirectly.
23964
23965 2008-05-21  Bruno Haible  <bruno@clisp.org>
23966
23967         Add reference doc about ACLs.
23968         * doc/acl-resources.txt: New file.
23969         * doc/acl-cygwin.txt: New file.
23970
23971 2008-05-21  Bruno Haible  <bruno@clisp.org>
23972
23973         Avoid one more warning from gcc.
23974         * lib/vasnprintf.c (IF_LINT): Update comments.
23975         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23976
23977 2008-05-21  Jim Meyering  <meyering@redhat.com>
23978
23979         avoid a warning from gcc
23980         * lib/vasnprintf.c (IF_LINT): Define.
23981         (scale10_round_decimal_long_double):
23982         Use it to avoid a "may be used uninitialized" warning.
23983         (scale10_round_decimal_double): Likewise.
23984
23985 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23986
23987         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23988         declared.
23989
23990 2008-05-20  Bruno Haible  <bruno@clisp.org>
23991
23992         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23993         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23994
23995 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23996
23997         * modules/memcmp-tests: New file.
23998         * tests/test-memcmp.c: New file.
23999
24000 2008-05-19  Bruno Haible  <bruno@clisp.org>
24001
24002         * modules/propername (Notice, configure.ac): Put quoted "..." into
24003         --keyword option.
24004         * lib/propername.h: Update comments accordingly.
24005         Reported by Eric Blake.
24006
24007 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24008
24009         * modules/getpass-gnu (Depends-on): Add fseeko.
24010
24011 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24012
24013         * modules/base64-tests: New file.
24014
24015 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24016
24017         * lib/base64.c (base64_decode_ctx): If a decode context structure
24018         was passed in use it to ignore newlines.  If a context structure
24019         was _not_ passed in, continue to treat newlines as garbage (this
24020         is the historical behavior).  Formerly base64_decode.
24021         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24022         takes a decode context structure.
24023         * lib/base64.h (base64_decode): Macro for four-argument calls.
24024         (base64_decode_alloc): Likewise.
24025         * lib/base64.c (base64_decode_ctx): If a decode context structure
24026         was passed in use it to ignore newlines.  If a context structure
24027         was _not_ passed in, continue to treat newlines as garbage (this
24028         is the historical behavior).  Formerly base64_decode.
24029         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24030         takes a decode context structure.
24031         * lib/base64.h (base64_decode): Macro for four-argument calls.
24032         (base64_decode_alloc): Likewise.
24033
24034 2008-05-19  Jim Meyering  <meyering@redhat.com>
24035
24036         avoid a warning from gcc
24037         * lib/trim.c (IF_LINT): Define.
24038         (trim2): Use it to avoid a "may be used uninitialized" warning.
24039
24040         Fix doc typo.
24041         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24042
24043 2008-05-19  Bruno Haible  <bruno@clisp.org>
24044
24045         * doc/glibc-functions/getpass.texi: Document limits of other
24046         implementations.
24047
24048 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24049             Bruno Haible <bruno@clisp.org>
24050
24051         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24052
24053 2008-05-18  Bruno Haible  <bruno@clisp.org>
24054
24055         * modules/propername: New file, from GNU gettext.
24056         * lib/propername.h: New file, from GNU gettext.
24057         * lib/propername.c: New file, from GNU gettext.
24058         * MODULES.html.sh (Internationalization functions): Add propername.
24059
24060 2008-05-16  Jim Meyering  <meyering@redhat.com>
24061             Bruno Haible  <bruno@clisp.org>
24062
24063         Avoid some warnings from "gcc -Wshadow".
24064         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24065
24066 2008-05-15  Eric Blake  <ebb9@byu.net>
24067
24068         Extend previous patch to cygwin 1.7.0.
24069         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24070         fast implementation in cygwin >= 1.7.0.
24071         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24072         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24073
24074 2008-05-15  Bruno Haible  <bruno@clisp.org>
24075
24076         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24077         implementation in glibc >= 2.9.
24078         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24080
24081 2008-05-15  Bruno Haible  <bruno@clisp.org>
24082
24083         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24084         (Unicode string functions): Add unilbrk/*.
24085         Reported by Karl Berry.
24086
24087 2008-05-15  Eric Blake  <ebb9@byu.net>
24088
24089         Fix violation of <stdbool.h> replacement in regex.
24090         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24091         * lib/regexec.c (re_search_internal): Likewise.
24092         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24093
24094 2008-05-15  Jim Meyering  <meyering@redhat.com>
24095
24096         avoid distracting test output when git or cvs is not found
24097         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24098         * tests/test-vc-list-files-git.sh: Likewise.
24099
24100 2008-05-15  Eric Blake  <ebb9@byu.net>
24101
24102         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24103         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24104         glibc version.
24105         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24106         * doc/posix-functions/strstr.texi (strstr): Likewise.
24107         * lib/str-two-way.h (MAX): Sychronize with glibc.
24108
24109 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24110
24111         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24112         opr.ctx_type.
24113         (calc_first): Initialize constraint field.
24114         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24115         Fix grammar.
24116         (duplicate_node): Merge constraint field for all node types.
24117         (calc_eclosure_iter): Look at constraint field for all node types.
24118         * lib/regex_internal.c (create_cd_newstate): Don't look at
24119         opr.ctx_type.
24120
24121 2008-05-14  Bruno Haible  <bruno@clisp.org>
24122
24123         Help GCC to do better code generation.
24124         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24125         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24126         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24127         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24128         Declare with attribute 'malloc' if supported.
24129
24130 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24131
24132         use "echo STR|wc -c" rather than unportable "expr length STR"
24133         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24134         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24135
24136 2008-05-14  Jim Meyering  <meyering@redhat.com>
24137
24138         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24139         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24140         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24141         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24142         via Collin Lasse.
24143
24144 2008-05-14  Eric Blake  <ebb9@byu.net>
24145
24146         Avoid quadratic growth in gl_LIBSOURCES.
24147         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24148         Suggested by Bruno Haible.
24149
24150         Test xmemdup0.
24151         * modules/xmemdup0-tests: New file.
24152         * tests/test-xmemdup0.c: Likewise.
24153
24154 2008-05-13  Eric Blake  <ebb9@byu.net>
24155
24156         Split xmemdup0 into its own module.
24157         * modules/xmemdup0: New file.
24158         * lib/xmemdup0.h: Likewise.
24159         * lib/xmemdup0.c: Likewise.
24160         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24161         * lib/xalloc.h (xmemdup0): Remove.
24162         * lib/xmalloc.c (xmemdup0): Likewise.
24163
24164 2008-05-13  Eric Blake  <ebb9@byu.net>
24165             Bruno Haible  <bruno@clisp.org>
24166
24167         Reduce number of forks required during autoconf.
24168         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24169         and gl_LIBSOURCES_DIR.
24170         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24171         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24172         m4_syscmd per file.
24173         <m4_foreach_w>: Move...
24174         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24175
24176 2008-05-13  Eric Blake  <ebb9@byu.net>
24177
24178         * gnulib-tool: Fix various comment typos.
24179
24180 2008-05-12  Bruno Haible  <bruno@clisp.org>
24181
24182         Tailor the linebreaking algorithm.
24183         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24184
24185 2008-05-12  Bruno Haible  <bruno@clisp.org>
24186
24187         Update to Unicode 5.0.0.
24188         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24189         LBP_JV, LBP_JT. Redistribute values.
24190         (unilbrk_table): Change size.
24191         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24192         Unicode TR#14 rev. 22.
24193         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24194         LBP_JV, LBP_JT. Redistribute values.
24195         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24196         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24197         Update.
24198         * lib/unilbrk/lbrkprop1.h: Regenerated.
24199         * lib/unilbrk/lbrkprop2.h: Regenerated.
24200         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24201         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24202         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24203         Likewise.
24204         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24205         Likewise.
24206         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24207         result.
24208         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24209         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24210         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24211         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24212         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24213         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24214
24215 2008-05-11  Bruno Haible  <bruno@clisp.org>
24216
24217         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24218
24219 2008-05-11  Bruno Haible  <bruno@clisp.org>
24220
24221         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24222         * modules/unilbrk/gen-lbrk: New file.
24223
24224 2008-05-11  Bruno Haible  <bruno@clisp.org>
24225
24226         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24227         * m4/sha512.m4 (gl_SHA512): Likewise.
24228
24229 2008-05-11  Jim Meyering  <meyering@redhat.com>
24230
24231         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24232         * modules/crypto/sha256: New file.
24233         * modules/crypto/sha512: Likewise.
24234         * lib/sha256.c: Likewise.
24235         * lib/sha256.h: Likewise.
24236         * lib/sha512.c: Likewise.
24237         * lib/sha512.h: Likewise.
24238         * lib/u64.h: Likewise.
24239         * m4/sha256.m4: Likewise.
24240         * m4/sha512.m4: Likewise.
24241         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24242
24243 2008-05-10  Bruno Haible  <bruno@clisp.org>
24244
24245         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24246         (Input/Output <stdio.h>): Add xprintf.
24247         (Signal handling <signal.h>): Add strsignal.
24248         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24249         (Core language properties): Add func.
24250         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24251         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24252         strings.
24253         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24254         (Input/output): New section.
24255         (File system functions): Add openat-die, stat-macros.
24256         (Networking functions): Add sockets.
24257         (Unicode string functions): Add unictype/*.
24258         (Support for building libraries and executables): Add gperf.
24259         (Support for building documentation): Add agpl-3.0.
24260         (Misc): Add nocrash.
24261
24262 2008-05-10  Bruno Haible  <bruno@clisp.org>
24263
24264         * modules/unictype/gen-ctype: New file.
24265
24266 2008-05-10  Jim Meyering  <meyering@redhat.com>
24267
24268         Make chdir-safer.c more efficient on a system with no symlinks.
24269         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24270         also if ELOOP is zero.  Suggested by Bruno Haible.
24271
24272         Make chdir-safer.c slightly safer.
24273         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24274         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24275
24276         Avoid compile failure on systems without ELOOP (like mingw).
24277         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24278         Reported by Bruno Haible.
24279
24280 2008-05-10  Bruno Haible  <bruno@clisp.org>
24281
24282         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24283         (is_utf8_encoding): Use a case-insensitive comparison.
24284         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24285         streq.
24286
24287 2008-05-10  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24290         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24291         * lib/unilbrk/ulc-common.h (iconv_string_length,
24292         iconv_string_keeping_offsets): Remove declarations.
24293         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24294         Don't include <iconv.h>, streq.h, xsize.h.
24295         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24296         conversion.
24297         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24298         <iconv.h>, streq.h, xsize.h.
24299         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24300         conversion.
24301         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24302         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24303         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24304         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24305
24306 2008-05-10  Bruno Haible  <bruno@clisp.org>
24307
24308         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24309         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24310
24311         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24312         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24313
24314         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24315         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24316
24317         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24318         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24319
24320         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24321         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24322
24323         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24324         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24325
24326         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24327         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24328
24329         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24330         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24331
24332 2008-05-10  Bruno Haible  <bruno@clisp.org>
24333
24334         Split up 'linebreak' module.
24335         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24336         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24337         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24338         modifications.
24339         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24340         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24341         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24342         lib/linebreak.c.
24343         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24344         lib/linebreak.c.
24345         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24346         lib/linebreak.c.
24347         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24348         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24349         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24350         lib/linebreak.c.
24351         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24352         lib/linebreak.c.
24353         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24354         lib/linebreak.c.
24355         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24356         lib/linebreak.c.
24357         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24358         lib/linebreak.c.
24359         * modules/unilbrk/base: New file.
24360         * modules/unilbrk/tables: New file.
24361         * modules/unilbrk/u8-possible-linebreaks: New file.
24362         * modules/unilbrk/u16-possible-linebreaks: New file.
24363         * modules/unilbrk/u32-possible-linebreaks: New file.
24364         * modules/unilbrk/ulc-common: New file.
24365         * modules/unilbrk/ulc-possible-linebreaks: New file.
24366         * modules/unilbrk/u8-width-linebreaks: New file.
24367         * modules/unilbrk/u16-width-linebreaks: New file.
24368         * modules/unilbrk/u32-width-linebreaks: New file.
24369         * modules/unilbrk/ulc-width-linebreaks: New file.
24370         * lib/linebreak.h: Remove file.
24371         * lib/linebreak.c: Remove file.
24372         * m4/linebreak.m4: Remove file.
24373         * modules/linebreak: Remove file.
24374         * NEWS: Mention the changes.
24375
24376 2008-05-09  Eric Blake  <ebb9@byu.net>
24377
24378         Add xmemdup0.
24379         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24380         implementation.
24381         * lib/xmalloc.c (xmemdup0): New C implementation.
24382
24383 2008-05-08  Bruno Haible  <bruno@clisp.org>
24384
24385         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24386
24387 2008-05-07  Eric Blake  <ebb9@byu.net>
24388
24389         Support cross-compilation of <wctype.h>.
24390         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24391         AC_CACHE_CHECK.
24392
24393 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24394
24395         * build-aux/vc-list-files: Add support for bzr.
24396
24397 2008-05-03  Jim Meyering  <meyering@redhat.com>
24398
24399         avoid failed assertion with tight malloc
24400         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24401
24402 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24403
24404         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24405         are needed from arpa/inet.h.
24406         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24407         Reported by Bruno Haible.
24408
24409 2008-05-02  Jim Meyering  <meyering@redhat.com>
24410
24411         avoid compilation error on FreeBSD 6
24412         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24413
24414 2008-05-01  Jim Meyering  <meyering@redhat.com>
24415
24416         useless-if-before-free: correct --help's exit status description
24417         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24418         for one or more matches, etc.  Reported by Bruno Haible.
24419
24420         vc-list-files: make the stand-alone gnulib test work
24421         * modules/vc-list-files-tests (configure.ac):
24422         Define and AC_SUBST abs_aux_dir.
24423         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24424         $(abs_top_srcdir) to each script and having each of them
24425         duplicate the work of setting PATH, set PATH here, using
24426         the new variable, abs_aux_dir instead.
24427         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24428         * tests/test-vc-list-files-git.sh: Likewise.
24429         Reported by Bruno Haible.
24430
24431 2008-05-01  Bruno Haible  <bruno@clisp.org>
24432
24433         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24434         reallocation. Rename 'done' to 'found_delimiter'.
24435
24436 2008-05-01  Jim Meyering  <meyering@redhat.com>
24437
24438         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24439         * build-aux/vc-list-files: Use `...`, not $(...).
24440
24441 2008-04-30  Jim Meyering  <meyering@redhat.com>
24442
24443         add tests for vc-list-files
24444         * modules/vc-list-files-tests: New module.
24445         * tests/test-vc-list-files-cvs.sh: New file.
24446         * tests/test-vc-list-files-git.sh: New file.
24447
24448         avoid a warning from gcc
24449         * lib/getndelim2.c (IF_LINT): Define.
24450         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24451
24452         vc-list-files: work properly with build-aux/cvsu, too
24453         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24454         to all cvs-based clauses.
24455
24456         vc-list-files: work properly in the CVS+awk case, too
24457         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24458
24459         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24460         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24461         take more than one file argument, so .  Add quotes, just in case $dir
24462         ever contains a shell meta-character.  Prompted by Soren Hansen in
24463         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24464
24465 2008-04-29  Eric Blake  <ebb9@byu.net>
24466
24467         Optimize getndelim2 to use block operations when possible.
24468         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24469         freadseek, and memchr2.
24470         * lib/getndelim2.c (getndelim2): Use them for block reads.
24471
24472 2008-04-29  Bruno Haible  <bruno@clisp.org>
24473
24474         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24475         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24476         * modules/inet_ntop (Depends-on): Add extensions.
24477         * modules/inet_pton (Depends-on): Likewise.
24478         Reported by Simon Josefsson.
24479
24480 2008-04-29  Jim Meyering  <meyering@redhat.com>
24481
24482         When the is more than one match in a block, match all of them.
24483         * build-aux/useless-if-before-free: Iterate through each block
24484         until there are no more matches.
24485
24486         Fix broken useless-if-before-free script.
24487         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24488         the expression to match cast of argument to free-like function.
24489
24490 2008-04-29  Eric Blake  <ebb9@byu.net>
24491
24492         Use new header.
24493         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24494
24495 2008-04-29  Jim Meyering  <meyering@redhat.com>
24496
24497         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24498         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24499         by gnulib to exist and to declare e.g., inet_ntop.
24500         Don't include "inet_ntop.h", now removed.
24501
24502         * m4/arpa_inet_h.m4: Remove trailing blanks.
24503
24504 2008-04-29  Eric Blake  <ebb9@byu.net>
24505
24506         Silence valgrind on safe reads beyond potential array bounds.
24507         * lib/rawmemchr.valgrind: New file.
24508         * lib/strchrnul.valgrind: Likewise.
24509         * modules/rawmemchr (Files): Distribute new file.
24510         * modules/strchrnul (Files): Likewise.
24511         Suggested by Bruno Haible.
24512
24513 2008-04-29  Bruno Haible  <bruno@clisp.org>
24514
24515         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24516         (inet_ntop, inet_pton): Change portability warning's wording.
24517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24518         Invoke gl_CHECK_NEXT_HEADERS.
24519         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24520         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24521         set ARPA_INET_H.
24522         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24523         * modules/arpa_inet (Description): No longer only for systems that
24524         lack it.
24525         (Depends-on): Add include_next.
24526         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24527         HAVE_ARPA_INET_H.
24528
24529 2008-04-29  Jim Meyering  <meyering@redhat.com>
24530
24531         * modules/mkdir (License): Re-license as LGPLv2+.
24532
24533 2008-04-29  Bruno Haible  <bruno@clisp.org>
24534
24535         * modules/rawmemchr (Maintainer): Set to Eric.
24536         * modules/strchrnul (Maintainer): Likewise.
24537
24538 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24539
24540         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24541         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24542
24543         * modules/arpa_inet (arpa/inet.h): Use them.
24544
24545 2008-04-28  Eric Blake  <ebb9@byu.net>
24546
24547         Test getndelim2.
24548         * modules/getndelim2-tests: New file.
24549         * tests/test-getndelim2.c: Likewise.
24550         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24551         stream.
24552         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24553
24554         * MODULES.html.sh: Document new module.
24555
24556 2008-04-20  Bruno Haible  <bruno@clisp.org>
24557
24558         * lib/c-stack.c (die): Use raise.
24559         * modules/c-stack (Depends-on): Add raise.
24560
24561 2008-04-28  Bruno Haible  <bruno@clisp.org>
24562
24563         Expect rpmatch to be declared.
24564         * lib/yesno.c (rpmatch): Remove declaration.
24565
24566         Declare rpmatch.
24567         * lib/stdlib.in.h (rpmatch): New declaration.
24568         * lib/rpmatch.c: Include <stdlib.h> first.
24569         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24570         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24572         HAVE_RPMATCH.
24573         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24574         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24575         (Include): Set to <stdlib.h>.
24576         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24577         HAVE_RPMATCH.
24578         * NEWS: Document the change.
24579
24580 2008-04-28  Bruno Haible  <bruno@clisp.org>
24581
24582         Change rpmatch to use nl_langinfo when appropriate.
24583         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24584         (N_): New macro.
24585         (localized_pattern): New function/macro.
24586         (try): Remove match, nomatch arguments. Copy the pattern into safe
24587         memory before caching it.
24588         (rpmatch): Use localized_pattern. Add translator comments.
24589         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24590         Suggested by Eric Blake.
24591         * modules/rpmatch (Depends-on): Add stdbool.
24592
24593 2008-04-28  Eric Blake  <ebb9@byu.net>
24594
24595         Add rawmemchr module, matching glibc.
24596         * modules/string (Makefile.am): New indicator.
24597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24598         * lib/string.in.h (rawmemchr): Declare when appropriate.
24599         * modules/rawmemchr: New file.
24600         * m4/rawmemchr.m4: Likewise.
24601         * lib/rawmemchr.c: Likewise.
24602         * modules/rawmemchr-tests: Likewise.
24603         * tests/test-rawmemchr.c: Likewise.
24604         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24605         module.
24606         * modules/strchrnul (Depends-on): Add rawmemchr.
24607         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24608
24609         Whitespace cleanup.
24610         * tests/test-strchrnul.c: Reindent.
24611         * lib/strchrnul.c: Likewise.
24612
24613         Optimize and test strchrnul.
24614         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24615         * modules/strchrnul-tests: New file.
24616         * tests/test-strchrnul.c: Likewise.
24617
24618         Remove intprops dependency.
24619         * modules/memchr (Depends-on): Remove intprops.
24620         * modules/memrchr (Depends-on): Likewise.
24621         * modules/memchr2 (Depends-on): Likewise.
24622         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24623         * lib/memrchr.c (__memrchr): Likewise.
24624         * lib/memrchr2.c (memchr2): Likewise.
24625         Reported by Simon Josefsson.
24626
24627 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24628
24629         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24630         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24631
24632 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24633
24634         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24635
24636         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24637
24638         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24639
24640         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24641         declarations.
24642         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24643
24644         * m4/inet_pton.m4: Don't check for header files.
24645
24646         * m4/inet_ntop.m4: Don't check for header files.
24647
24648 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24649
24650         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24651         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24652         trigger for cygwin).
24653         Reported by Bruno Haible  <bruno@clisp.org>.
24654
24655 2008-04-28  Bruno Haible  <bruno@clisp.org>
24656
24657         * doc/posix-functions/strdup.texi: Mention mingw problem.
24658
24659 2008-04-27  Bruno Haible  <bruno@clisp.org>
24660
24661         * modules/stat-time-tests (Depends-on): Add sleep.
24662         * tests/test-stat-time.c (force_unlink): New function.
24663         (cleanup): Use it.
24664         (test_mtime): Remove the ctime related tests.
24665         (test_ctime): New function, containing the ctime related tests.
24666         (main): Call test_ctime, except on native Windows platforms.
24667
24668 2008-04-27  Bruno Haible  <bruno@clisp.org>
24669
24670         * lib/rpmatch.c (rpmatch): Add some comments.
24671         Reported by James Youngman <jay@gnu.org>.
24672
24673 2008-04-27  Bruno Haible  <bruno@clisp.org>
24674
24675         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24676         quiet NaNs.
24677
24678 2008-04-27  Bruno Haible  <bruno@clisp.org>
24679
24680         Make test-yesno.sh work on mingw.
24681         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24682         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24683         (main): Set stdin to binary mode.
24684         * modules/yesno-tests (Depends-on): Add binary-io.
24685
24686 2008-04-27  Bruno Haible  <bruno@clisp.org>
24687
24688         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24689         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24690         argument that lie outside the IEEE 854 domain.
24691         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24692         (gl_ISFINITE): Use it.
24693         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24694
24695 2008-04-27  Bruno Haible  <bruno@clisp.org>
24696
24697         Allow local renaming in config.h.
24698         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24699
24700 2008-04-27  Bruno Haible  <bruno@clisp.org>
24701
24702         * lib/memchr.c (__memchr): Change type of 'i'.
24703         * lib/memchr2.c (memchr2): Likewise.
24704
24705 2008-04-26  Eric Blake  <ebb9@byu.net>
24706         and Bruno Haible  <bruno@clisp.org>
24707
24708         Optimize and test memrchr.
24709         * modules/memrchr (Depends-on): Add intprops.
24710         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24711         * modules/memrchr-tests: New file.
24712         * tests/test-memrchr.c: New file.
24713
24714 2008-04-26  Bruno Haible  <bruno@clisp.org>
24715
24716         Add tentative support for DragonFly BSD.
24717         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24718         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24719         fp.
24720         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24721         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24722         * lib/fpurge.c (fpurge): Likewise.
24723         * lib/freadable.c (freaadable): Likewise.
24724         * lib/freadahead.c (freadahead): Likewise.
24725         * lib/freading.c (freading): Likewise.
24726         * lib/freadptr.c (freadptr): Likewise.
24727         * lib/freadseek.c (freadptrinc): Likewise.
24728         * lib/fseeko.c (fseeko): Likewise.
24729         * lib/fseterr.c (fseterr): Likewise.
24730         * lib/fwritable.c (fwritable): Likewise.
24731         * lib/fwriting.c (fwriting): Likewise.
24732
24733 2008-04-26  Bruno Haible  <bruno@clisp.org>
24734
24735         * lib/stdio-impl.h: New file.
24736         * lib/fbufmode.c: Include stdio-impl.h.
24737         (fbufmode): Use fp_, remove redundant #defines.
24738         * lib/fflush.c: Include stdio-impl.h.
24739         (clear_ungetc_buffer): Remove redundant #defines.
24740         * lib/fpurge.c: Include stdio-impl.h.
24741         (fpurge): Remove redundant #defines.
24742         * lib/freadable.c: Include stdio-impl.h.
24743         (freadable): Remove redundant #defines.
24744         * lib/freadahead.c: Include stdio-impl.h.
24745         (freadahead): Remove redundant #defines.
24746         * lib/freading.c: Include stdio-impl.h.
24747         (freading): Remove redundant #defines.
24748         * lib/freadptr.c: Include stdio-impl.h.
24749         (freadptr): Remove redundant #defines.
24750         * lib/freadseek.c: Include stdio-impl.h.
24751         (freadptrinc): Remove redundant #defines.
24752         * lib/fseeko.c: Include stdio-impl.h.
24753         (rpl_fseeko): Remove redundant #defines.
24754         * lib/fseterr.c: Include stdio-impl.h.
24755         (fseterr): Remove redundant #defines.
24756         * lib/fwritable.c: Include stdio-impl.h.
24757         (fwritable: Remove redundant #defines.
24758         * lib/fwriting.c: Include stdio-impl.h.
24759         (fwriting): Remove redundant #defines.
24760         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24761         * modules/fflush (Files): Likewise.
24762         * modules/fpurge (Files): Likewise.
24763         * modules/freadable (Files): Likewise.
24764         * modules/freadahead (Files): Likewise.
24765         * modules/freading (Files): Likewise.
24766         * modules/freadptr (Files): Likewise.
24767         * modules/freadseek (Files): Likewise.
24768         * modules/fseeko (Files): Likewise.
24769         * modules/fseterr (Files): Likewise.
24770         * modules/fwritable (Files): Likewise.
24771         * modules/fwriting (Files): Likewise.
24772
24773 2008-04-26  Bruno Haible  <bruno@clisp.org>
24774
24775         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24776         restore_seek_optimization, update_fpos_cache): New functions, extracted
24777         from rpl_fflush.
24778         (rpl_fflush): Use them.
24779         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24780         (gl_REPLACE_FFLUSH): Use it.
24781
24782 2008-04-26  Bruno Haible  <bruno@clisp.org>
24783
24784         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24785         on Solaris.
24786         * tests/test-xstrtoimax.sh: Likewise.
24787         * tests/test-xstrtoumax.sh: Likewise.
24788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24789
24790 2008-04-26  Bruno Haible  <bruno@clisp.org>
24791
24792         * modules/memchr-tests: New file.
24793         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24794
24795 2008-04-26  Eric Blake  <ebb9@byu.net>
24796             Bruno Haible  <bruno@clisp.org>
24797
24798         * lib/memchr.c: Include intprops.h.
24799         (__memchr): Optimize parallel detection of matching bytes. Rename local
24800         variables. Add explanatory comments.
24801
24802 2008-04-26  Bruno Haible  <bruno@clisp.org>
24803
24804         Fix module 'memchr', broken since 2000-10-28.
24805         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24806
24807 2008-04-26  Bruno Haible  <bruno@clisp.org>
24808
24809         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24810         comments.
24811
24812 2008-04-25  Eric Blake  <ebb9@byu.net>
24813
24814         Use native fstatat on cygwin 1.7.0.
24815         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24816         first.
24817
24818 2008-04-23  Eric Blake  <ebb9@byu.net>
24819
24820         Improve memchr2 performance.
24821         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24822         NUL bytes.
24823         * modules/memchr2 (Depends-on): Use intprops.h.
24824
24825 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24826
24827         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24828         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24829         <blp@cs.stanford.edu>.
24830
24831 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24832
24833         * lib/arpa_inet.in.h: New file.
24834
24835         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24836         (Makefile.am): Sed in substitute header file.
24837
24838         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24839         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24840
24841         * modules/inet_ntop (configure.ac): Use
24842         gl_ARPA_INET_MODULE_INDICATOR.
24843
24844         * modules/inet_pton (configure.ac): Use
24845         gl_ARPA_INET_MODULE_INDICATOR.
24846
24847 2008-04-22  Jim Meyering  <meyering@redhat.com>
24848
24849         * modules/verify (License): Re-license as LGPLv2+.
24850
24851 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24852
24853         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24854         parameter to void* as per POSIX standard (MinGW uses char*).
24855
24856 2008-04-21  Bruno Haible  <bruno@clisp.org>
24857
24858         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24859         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24860         Define to replacements if REPLACE_ISWCNTRL is 1.
24861         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24862         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24863         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24864         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24865         what it fixes.
24866         * doc/posix-functions/iswalpha.texi: Likewise.
24867         * doc/posix-functions/iswblank.texi: Likewise.
24868         * doc/posix-functions/iswcntrl.texi: Likewise.
24869         * doc/posix-functions/iswdigit.texi: Likewise.
24870         * doc/posix-functions/iswgraph.texi: Likewise.
24871         * doc/posix-functions/iswlower.texi: Likewise.
24872         * doc/posix-functions/iswprint.texi: Likewise.
24873         * doc/posix-functions/iswpunct.texi: Likewise.
24874         * doc/posix-functions/iswspace.texi: Likewise.
24875         * doc/posix-functions/iswupper.texi: Likewise.
24876         * doc/posix-functions/iswxdigit.texi: Likewise.
24877         Reported by Alain Guibert.
24878
24879 2008-04-21  Bruno Haible  <bruno@clisp.org>
24880
24881         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24882         Patch by Alain Guibert.
24883
24884 2008-04-21  Bruno Haible  <bruno@clisp.org>
24885
24886         Fix test failures on mingw.
24887         * tests/test-xstrtol.c (print_no_progname): New function.
24888         (main): Install it in error_print_progname hook.
24889         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24890         * tests/test-xstrtoimax.sh: Likewise.
24891         * tests/test-xstrtoumax.sh: Likewise.
24892
24893 2008-04-21  Bruno Haible  <bruno@clisp.org>
24894
24895         Fix test failure on mingw.
24896         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24897
24898 2008-04-21  Bruno Haible  <bruno@clisp.org>
24899
24900         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24901         Actually assign a value.
24902
24903 2008-04-20  Bruno Haible  <bruno@clisp.org>
24904
24905         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24906         take 2.
24907         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24908         'canonicalize-lgpl' module is also used.
24909         * lib/canonicalize-lgpl.c: Undo last change.
24910         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24911
24912 2008-04-20  Bruno Haible  <bruno@clisp.org>
24913
24914         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24915         config.h. Provide _mkdir based fallback for mingw.
24916         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24917         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24918         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24919         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24920         rather than defining mkdir in config.h.
24921         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24922         (gl_SYS_STAT_H_DEFAULTS): New macro.
24923         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24924         HAVE_IO_H any more.
24925         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24926         HAVE_DECL_MKDIR and HAVE_IO_H.
24927
24928 2008-04-20  Bruno Haible  <bruno@clisp.org>
24929
24930         * lib/isapipe.c: Port to native Windows platforms.
24931
24932 2008-04-20  Bruno Haible  <bruno@clisp.org>
24933
24934         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24935
24936 2008-04-21  Eric Blake  <ebb9@byu.net>
24937
24938         Work around preprocessors that don't handle UINTMAX_MAX.
24939         * lib/memchr2.c (memchr2): Avoid embedded #if.
24940         Reported by Alain Guibert, fix suggested by Bruno Haible.
24941
24942 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24943
24944         * doc/posix-functions/strftime.texi (strftime): Explain better
24945         Windows incompatibility.  Suggested by Micah Cowan
24946         <micah@cowan.name>.
24947
24948 2008-04-20  Bruno Haible  <bruno@clisp.org>
24949
24950         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24951         unistr/u8-mblen.
24952
24953 2008-04-20  Bruno Haible  <bruno@clisp.org>
24954
24955         Fix test failure on platforms with non-GNU iconv.
24956         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24957         (U_TO_U8): Use it, rather than u16_to_u8.
24958         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24959         units at the end of the input string.
24960         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24961
24962 2008-04-20  Bruno Haible  <bruno@clisp.org>
24963
24964         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24965         when the resulting length is 0.
24966         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24967
24968 2008-04-20  Bruno Haible  <bruno@clisp.org>
24969
24970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24971         works.
24972         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24973
24974 2008-04-20  Bruno Haible  <bruno@clisp.org>
24975
24976         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24977         * modules/tsearch-tests (configure.ac): Test for initstate function.
24978
24979 2008-04-20  Bruno Haible  <bruno@clisp.org>
24980
24981         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24982         for nlink_t if missing.
24983         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24984
24985 2008-04-19  Bruno Haible  <bruno@clisp.org>
24986
24987         Work around snprintf bug on Linux libc5.
24988         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24989         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24990         gl_SNPRINTF_SIZE1.
24991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24992         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24993         that test failed.
24994         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24995         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24996         * modules/snprintf (Files): Add m4/printf.m4.
24997         * modules/vsnprintf (Files): Likewise.
24998         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24999         * doc/posix-functions/vsnprintf.texi: Likewise.
25000
25001 2008-04-19  Bruno Haible  <bruno@clisp.org>
25002
25003         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25004         from 0.0058 to less than 10^-7.
25005
25006 2008-04-19  Bruno Haible  <bruno@clisp.org>
25007
25008         Fix rounding when a precision is given.
25009         * lib/vasnprintf.c (is_borderline): New function.
25010         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25011         9...9x.
25012         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25013         %e, %g.
25014         * tests/test-vasprintf-posix.c (test_function): Likewise.
25015         * tests/test-snprintf-posix.h (test_function): Likewise.
25016         * tests/test-sprintf-posix.h (test_function): Likewise.
25017         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25018         * tests/test-printf-posix.h (test_function): Likewise.
25019         * tests/test-printf-posix.output: Update.
25020         Reported by John Darrington <john@darrington.wattle.id.au> via
25021         Ben Pfaff <blp@cs.stanford.edu>.
25022
25023 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25024
25025         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25026         Suggested by Bruno Haible <bruno@clisp.org>.
25027
25028 2008-04-17  Bruno Haible  <bruno@clisp.org>
25029
25030         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25031         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25032         implementation.
25033         Patch by Bruce Merry <bmerry@gmail.com>.
25034
25035 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25036
25037         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25038         doesn't work under Windows.
25039
25040 2008-04-16  Bruno Haible  <bruno@clisp.org>
25041
25042         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25043         New macros.
25044         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25045         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25046         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25047         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25048         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25049         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25050         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25051         macros.
25052         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25053         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25054         Northern Sotho, Uighur.
25055
25056 2008-04-16  Bruno Haible  <bruno@clisp.org>
25057
25058         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25059         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25060         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25061         Reported by Daniel Bergström <daniel@octocode.com>.
25062
25063 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25064             Bruno Haible  <bruno@clisp.org>
25065
25066         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25067         function.
25068         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25069         New functions, mostly extracted from gl_locale_name_default.
25070         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25071
25072 2008-04-16  Eric Blake  <ebb9@byu.net>
25073
25074         Adjust strtod detection to catch glibc 2.7 bug.
25075         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25076         Reported by John Gatewood Ham.
25077
25078 2008-04-16  Bruno Haible  <bruno@clisp.org>
25079
25080         Add tentative support for Linux libc5.
25081         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25082         * lib/fpurge.c (fpurge): Likewise.
25083         * lib/freadable.c (freadable): Likewise.
25084         * lib/freadahead.c (freadahead): Likewise.
25085         * lib/freading.c (freading): Likewise.
25086         * lib/freadptr.c (freadptr): Likewise.
25087         * lib/freadseek.c (freadptrinc): Likewise.
25088         * lib/fseeko.c (rpl_fseeko): Likewise.
25089         * lib/fseterr.c (fseterr): Likewise.
25090         * lib/fwritable.c (fwritable): Likewise.
25091         * lib/fwriting.c (fwriting): Likewise.
25092         Reported by Alain Guibert <alguibert+bts@free.fr>.
25093
25094 2008-04-15  Bruno Haible  <bruno@clisp.org>
25095
25096         * modules/mathl (configure.ac): Define module indicator.
25097
25098 2008-04-15  Bruno Haible  <bruno@clisp.org>
25099
25100         * lib/logl.c (logl): Remove unused variables.
25101
25102 2008-04-15  Bruno Haible  <bruno@clisp.org>
25103
25104         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25105         fails.
25106
25107 2008-04-15  Bruno Haible  <bruno@clisp.org>
25108
25109         * lib/trim.c (trim2): Fix argument of isspace() macro.
25110
25111 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25112
25113         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25114         to 0.
25115         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25116
25117 2008-04-14  Bruno Haible  <bruno@clisp.org>
25118
25119         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25120         AC_LANG_PROGRAM argument.
25121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25122         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25124         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25125         * m4/math_h.m4 (gl_MATH_H): Likewise.
25126         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25127         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25128         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25129         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25130         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25131         * m4/regex.m4 (gl_REGEX): Likewise.
25132         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25133         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25135         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25136         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25137         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25138         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25139         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25140
25141 2008-04-14  Jim Meyering  <meyering@redhat.com>
25142
25143         test-strtod: fix typos: s/abs/fabs/
25144         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25145
25146 2008-04-13  Bruno Haible  <bruno@clisp.org>
25147
25148         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25149         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25150         module is also used and while not building the reloc-wrapper.
25151
25152 2008-04-13  Bruno Haible  <bruno@clisp.org>
25153
25154         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25155
25156 2008-04-13  Bruno Haible  <bruno@clisp.org>
25157
25158         Fix AIX compilation failure introduced on 2008-04-02.
25159         * tests/test-frexp.c (exp): Undefine before redefining.
25160         * tests/test-frexpl.c (exp): Likewise.
25161
25162 2008-04-13  Bruno Haible  <bruno@clisp.org>
25163
25164         Work around a HP-UX stdio bug.
25165         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25166         * tests/test-ftello.c (main): Likewise.
25167         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25168         * doc/posix-functions/ftello.texi: Likewise.
25169
25170 2008-04-13  Bruno Haible  <bruno@clisp.org>
25171
25172         Make test-signbit pass on HP-UX/hppa.
25173         * tests/test-signbit.c (minus_zerol): New variable.
25174         (test_signbitl): Use it.
25175
25176 2008-04-13  Bruno Haible  <bruno@clisp.org>
25177
25178         Make truncl work on OSF/1 4.0.
25179         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25180         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25181         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25183         HAVE_DECL_TRUNCL.
25184         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25185         HAVE_DECL_TRUNCL.
25186         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25187
25188 2008-04-13  Bruno Haible  <bruno@clisp.org>
25189
25190         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25191
25192 2008-04-13  Bruno Haible  <bruno@clisp.org>
25193
25194         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25195         expression, so as to avoid HP-UX 11 cc compiler bug.
25196
25197 2008-04-13  Bruno Haible  <bruno@clisp.org>
25198
25199         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25200
25201 2008-04-13  Bruno Haible  <bruno@clisp.org>
25202
25203         * lib/git-merge-changelog.c: Remove empty declaration outside of
25204         functions.
25205
25206 2008-04-13  Bruno Haible  <bruno@clisp.org>
25207
25208         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25209
25210 2008-04-13  Bruno Haible  <bruno@clisp.org>
25211
25212         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25213         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25214         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25215         also if it exists but lacks definitions of the SHUT_* macros.
25216         * modules/sys_socket (Description): Update.
25217         Reported by Elbert Pol <e.pol@chello.nl>.
25218
25219 2008-04-13  Bruno Haible  <bruno@clisp.org>
25220
25221         * lib/localcharset.c (OS2): Don't redefine if already defined.
25222         Reported by Elbert Pol <e.pol@chello.nl>.
25223
25224 2008-04-13  Bruno Haible  <bruno@clisp.org>
25225
25226         * lib/binary-io.h [__EMX__]: Include <io.h>.
25227         Reported by Elbert Pol <e.pol@chello.nl>.
25228
25229 2008-04-12  Bruno Haible  <bruno@clisp.org>
25230
25231         * lib/fpucw.h: Enable the definitions also for x86_64.
25232         Needed for NetBSD/x86_64.
25233         Reported by Thomas Klausner <tk@giga.or.at>.
25234
25235 2008-04-12  Bruno Haible  <bruno@clisp.org>
25236
25237         * tests/test-strtod.c: Include isnand.h.
25238         (main): Use isnand instead of isnan.
25239         Reported by Jim Meyering.
25240
25241 2008-04-12  Bruno Haible  <bruno@clisp.org>
25242
25243         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25244         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25245
25246 2008-04-12  Jim Meyering  <meyering@redhat.com>
25247
25248         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25249
25250 2008-04-12  Bruno Haible  <bruno@clisp.org>
25251
25252         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25253         Reported by Elbert Pol <e.pol@chello.nl>.
25254
25255 2008-04-12  Eric Blake  <ebb9@byu.net>
25256
25257         Work around Solaris 10 math.h bug.
25258         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25259         (gl_MATH_H_DEFAULTS): Set up default.
25260         * modules/math (Makefile.am): Replace new indicators.
25261         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25262         * tests/test-math.c (main): Test this.
25263         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25264         * doc/posix-headers/math.texi (math.h): Mention bug.
25265         Reported by Nelson H. F. Beebe and Jim Meyering.
25266
25267 2008-04-11  Bruno Haible  <bruno@clisp.org>
25268
25269         Adapt to future versions of Apple GCC.
25270         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25271         Reported by Peter O'Gorman <peter@pogma.com>.
25272
25273 2008-04-11  Bruno Haible  <bruno@clisp.org>
25274
25275         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25276
25277 2008-04-11  Bruno Haible  <bruno@clisp.org>
25278
25279         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25280
25281         * modules/getaddrinfo-tests (Makefile.am): Define
25282         test_getaddrinfo_LDADD.
25283
25284 2008-04-11  Bruno Haible  <bruno@clisp.org>
25285
25286         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25287         (init): Fix syntax error.
25288         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25289         is declared.
25290
25291 2008-04-11  Bruno Haible  <bruno@clisp.org>
25292
25293         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25294         * modules/glob (Depends-on): Add stdbool.
25295
25296 2008-04-11  Bruno Haible  <bruno@clisp.org>
25297
25298         * lib/trim.c: Include <string.h>.
25299
25300 2008-04-11  Eric Blake  <ebb9@byu.net>
25301
25302         Avoid compile failure on OS/2.
25303         * lib/regex_internal.h (internal_function): Disable optimization
25304         on OS/2 (__EMX__), where it caused compiler error.
25305         Reported by Elbert Pol.
25306
25307 2008-04-11  Bruno Haible  <bruno@clisp.org>
25308
25309         Flush the standard error stream before aborting. Needed on mingw.
25310         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25311         * tests/test-array_list.c (ASSERT): Likewise.
25312         * tests/test-array_oset.c (ASSERT): Likewise.
25313         * tests/test-avltree_list.c (ASSERT): Likewise.
25314         * tests/test-avltree_oset.c (ASSERT): Likewise.
25315         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25316         * tests/test-binary-io.c (ASSERT): Likewise.
25317         * tests/test-byteswap.c (ASSERT): Likewise.
25318         * tests/test-c-ctype.c (ASSERT): Likewise.
25319         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25320         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25321         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25322         * tests/test-c-strstr.c (ASSERT): Likewise.
25323         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25324         * tests/test-canonicalize.c (ASSERT): Likewise.
25325         * tests/test-carray_list.c (ASSERT): Likewise.
25326         * tests/test-ceilf1.c (ASSERT): Likewise.
25327         * tests/test-ceilf2.c (ASSERT): Likewise.
25328         * tests/test-ceill.c (ASSERT): Likewise.
25329         * tests/test-count-one-bits.c (ASSERT): Likewise.
25330         * tests/test-fbufmode.c (ASSERT): Likewise.
25331         * tests/test-fflush2.c (ASSERT): Likewise.
25332         * tests/test-floorf1.c (ASSERT): Likewise.
25333         * tests/test-floorf2.c (ASSERT): Likewise.
25334         * tests/test-floorl.c (ASSERT): Likewise.
25335         * tests/test-fopen.c (ASSERT): Likewise.
25336         * tests/test-fpending.c (ASSERT): Likewise.
25337         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25338         * tests/test-fpurge.c (ASSERT): Likewise.
25339         * tests/test-freadable.c (ASSERT): Likewise.
25340         * tests/test-freadahead.c (ASSERT): Likewise.
25341         * tests/test-freading.c (ASSERT): Likewise.
25342         * tests/test-freadptr.c (ASSERT): Likewise.
25343         * tests/test-freadptr2.c (ASSERT): Likewise.
25344         * tests/test-freadseek.c (ASSERT): Likewise.
25345         * tests/test-freopen.c (ASSERT): Likewise.
25346         * tests/test-frexp.c (ASSERT): Likewise.
25347         * tests/test-frexpl.c (ASSERT): Likewise.
25348         * tests/test-fseek.c (ASSERT): Likewise.
25349         * tests/test-fseeko.c (ASSERT): Likewise.
25350         * tests/test-fstrcmp.c (ASSERT): Likewise.
25351         * tests/test-ftell.c (ASSERT): Likewise.
25352         * tests/test-ftello.c (ASSERT): Likewise.
25353         * tests/test-func.c (ASSERT): Likewise.
25354         * tests/test-fwritable.c (ASSERT): Likewise.
25355         * tests/test-fwriting.c (ASSERT): Likewise.
25356         * tests/test-getdelim.c (ASSERT): Likewise.
25357         * tests/test-getline.c (ASSERT): Likewise.
25358         * tests/test-i-ring.c (ASSERT): Likewise.
25359         * tests/test-iconv-utf.c (ASSERT): Likewise.
25360         * tests/test-iconv.c (ASSERT): Likewise.
25361         * tests/test-isfinite.c (ASSERT): Likewise.
25362         * tests/test-isnand.c (ASSERT): Likewise.
25363         * tests/test-isnanf.c (ASSERT): Likewise.
25364         * tests/test-isnanl.h (ASSERT): Likewise.
25365         * tests/test-ldexpl.c (ASSERT): Likewise.
25366         * tests/test-linked_list.c (ASSERT): Likewise.
25367         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25368         * tests/test-localename.c (ASSERT): Likewise.
25369         * tests/test-lseek.c (ASSERT): Likewise.
25370         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25371         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25372         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25373         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25374         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25375         * tests/test-mbschr.c (ASSERT): Likewise.
25376         * tests/test-mbscspn.c (ASSERT): Likewise.
25377         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25378         * tests/test-mbspbrk.c (ASSERT): Likewise.
25379         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25380         * tests/test-mbsrchr.c (ASSERT): Likewise.
25381         * tests/test-mbsspn.c (ASSERT): Likewise.
25382         * tests/test-mbsstr1.c (ASSERT): Likewise.
25383         * tests/test-mbsstr2.c (ASSERT): Likewise.
25384         * tests/test-mbsstr3.c (ASSERT): Likewise.
25385         * tests/test-memchr2.c (ASSERT): Likewise.
25386         * tests/test-memmem.c (ASSERT): Likewise.
25387         * tests/test-open.c (ASSERT): Likewise.
25388         * tests/test-printf-frexp.c (ASSERT): Likewise.
25389         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25390         * tests/test-printf-posix.c (ASSERT): Likewise.
25391         * tests/test-quotearg.c (ASSERT): Likewise.
25392         * tests/test-rbtree_list.c (ASSERT): Likewise.
25393         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25394         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25395         * tests/test-round1.c (ASSERT): Likewise.
25396         * tests/test-roundf1.c (ASSERT): Likewise.
25397         * tests/test-roundl.c (ASSERT): Likewise.
25398         * tests/test-signbit.c (ASSERT): Likewise.
25399         * tests/test-sleep.c (ASSERT): Likewise.
25400         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25401         * tests/test-snprintf.c (ASSERT): Likewise.
25402         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25403         * tests/test-stat-time.c (ASSERT): Likewise.
25404         * tests/test-strcasestr.c (ASSERT): Likewise.
25405         * tests/test-strerror.c (ASSERT): Likewise.
25406         * tests/test-striconv.c (ASSERT): Likewise.
25407         * tests/test-striconveh.c (ASSERT): Likewise.
25408         * tests/test-striconveha.c (ASSERT): Likewise.
25409         * tests/test-strsignal.c (ASSERT): Likewise.
25410         * tests/test-strstr.c (ASSERT): Likewise.
25411         * tests/test-strtod.c (ASSERT): Likewise.
25412         * tests/test-trunc1.c (ASSERT): Likewise.
25413         * tests/test-trunc2.c (ASSERT): Likewise.
25414         * tests/test-truncf1.c (ASSERT): Likewise.
25415         * tests/test-truncf2.c (ASSERT): Likewise.
25416         * tests/test-truncl.c (ASSERT): Likewise.
25417         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25418         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25419         * tests/test-vasnprintf.c (ASSERT): Likewise.
25420         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25421         * tests/test-vasprintf.c (ASSERT): Likewise.
25422         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25423         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25424         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25425         * tests/test-vsnprintf.c (ASSERT): Likewise.
25426         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25427         * tests/test-wcwidth.c (ASSERT): Likewise.
25428         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25429         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25430         * tests/test-xvasprintf.c (ASSERT): Likewise.
25431         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25432         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25433         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25434         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25435         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25436         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25437         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25438         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25439         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25440         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25441         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25442         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25443         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25444         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25445         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25446         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25447         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25448         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25449         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25450         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25451         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25452         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25453         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25454         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25455         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25456         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25457         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25458         * tests/unictype/test-combining.c (ASSERT): Likewise.
25459         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25460         * tests/unictype/test-digit.c (ASSERT): Likewise.
25461         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25462         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25463         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25464         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25465         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25466         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25467         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25468         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25469         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25470         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25471         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25472         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25473         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25474         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25475         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25476         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25477         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25478         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25479         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25480         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25481         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25482         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25483         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25484         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25485         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25486         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25487         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25488         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25489         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25490         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25491         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25492         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25493         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25494         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25495         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25496         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25497         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25498         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25499         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25500         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25501         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25502         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25503         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25504         Reported by Eric Blake.
25505
25506 2008-04-11  Bruno Haible  <bruno@clisp.org>
25507
25508         * lib/wchar.in.h: Tweak comment.
25509
25510 2008-04-11  Bruno Haible  <bruno@clisp.org>
25511
25512         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25513         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25514         gl_COMMON.
25515         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25516
25517 2008-04-11  Bruno Haible  <bruno@clisp.org>
25518
25519         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25520
25521 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25522
25523         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25524         of attempting to use non-existing /dev/*random.  Based on patch
25525         from Adam Strzelecki <ono@java.pl> in
25526         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25527
25528 2008-04-08  Bruno Haible  <bruno@clisp.org>
25529
25530         Add tentative support for emx+gcc.
25531         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25532         * lib/fpurge.c (fpurge): Likewise.
25533         * lib/freadable.c (freadable): Likewise.
25534         * lib/freadahead.c (freadahead): Likewise.
25535         * lib/freading.c (freading): Likewise.
25536         * lib/freadptr.c (freadptr): Likewise.
25537         * lib/freadseek.c (freadptrinc): Likewise.
25538         * lib/fseeko.c (rpl_fseeko): Likewise.
25539         * lib/fseterr.c (fseterr): Likewise.
25540         * lib/fwritable.c (fwritable): Likewise.
25541         * lib/fwriting.c (fwriting): Likewise.
25542         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25543
25544 2008-04-09  Eric Blake  <ebb9@byu.net>
25545
25546         Avoid some autoconf warnings.
25547         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25548         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25549         * m4/afs.m4 (gl_AFS): Likewise.
25550         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25551         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25552         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25553         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25554         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25555         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25556         (AC_CHECK_DECLS_ONCE): Likewise.
25557         Rename file...
25558         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25559         gnulib-tool requires autoconf 2.59 or better.
25560         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25561
25562 2008-04-08  Eric Blake  <ebb9@byu.net>
25563
25564         Use 'git describe --match' if present (added in git 1.5.5).
25565         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25566         if possible.
25567
25568 2008-04-08  Bruno Haible  <bruno@clisp.org>
25569
25570         Add tentative support for OpenServer.
25571         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25572         _ptr, _cnt.
25573         * lib/fpurge.c (fpurge): Likewise.
25574         * lib/freadable.c (freadable): Likewise.
25575         * lib/freadahead.c (freadahead): Likewise.
25576         * lib/freading.c (freading): Likewise.
25577         * lib/freadptr.c (freadptr): Likewise.
25578         * lib/freadseek.c (freadptrinc): Likewise.
25579         * lib/fseeko.c (rpl_fseeko): Likewise.
25580         * lib/fseterr.c (fseterr): Likewise.
25581         * lib/fwritable.c (fwritable): Likewise.
25582         * lib/fwriting.c (fwriting): Likewise.
25583         Reported by Roger Cornelius <rac@tenzing.org> and
25584         Brian K. White <brian@aljex.com>.
25585
25586 2008-04-06  Jim Meyering  <meyering@redhat.com>
25587
25588         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25589
25590 2008-04-06  Bruno Haible  <bruno@clisp.org>
25591
25592         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25593         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25594         * tests/test-printf-posix.sh: Likewise.
25595         * tests/test-vfprintf-posix.sh: Likewise.
25596         * tests/test-vprintf-posix.sh: Likewise.
25597         * tests/test-xprintf-posix.sh: Likewise.
25598
25599 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25600
25601         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25602         hide error from 'ls', needed on OS/2.
25603         Report by Elbert Pol <elbert.pol@gmail.com>.
25604
25605 2008-04-04  Eric Blake  <ebb9@byu.net>
25606
25607         Make test-fseeko.c failures meaningful.
25608         * tests/test-fseeko.c: Print line number on failure.
25609         * tests/test-fseek.c: Likewise.
25610         Reported by Nelson H. F. Beebe.
25611
25612         Improve strtod bug detection check.
25613         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25614         required for Solaris 10.
25615         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25616
25617 2008-04-04  Bruno Haible  <bruno@clisp.org>
25618
25619         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25620         by m4/setenv.m4.
25621
25622 2008-04-03  Eric Blake  <ebb9@byu.net>
25623
25624         Ensure sane .version contents.
25625         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25626         version string.
25627         * build-aux/git-version-gen: Improve documentation.
25628
25629         Make GNU make output nicer.
25630         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25631         MAKECMDGOALS to enforce message for all command line targets.  Set
25632         srcdir for use in maint.mk.
25633
25634         Another maintainer tweak.
25635         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25636         a target that regenerates version.
25637
25638 2008-04-03  Jim Meyering  <meyering@redhat.com>
25639
25640         vc-list-files: don't cause coreutils "make po-check" failure
25641         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25642
25643 2008-04-03  Eric Blake  <ebb9@byu.net>
25644
25645         Allow VPATH usage of vc-list-files.
25646         * build-aux/vc-list-files (scriptversion): Add timestamp.
25647         (options): Add --help, --version, -C.
25648         (CVS): Support installed cvsu.
25649
25650 2008-04-02  Bruno Haible  <bruno@clisp.org>
25651
25652         Avoid some "statement with no effect" warnings from gcc.
25653         * tests/test-wctype.c (main): Explicitly ignore unused values.
25654         Reported by Jim Meyering.
25655
25656 2008-04-02  Jim Meyering  <meyering@redhat.com>
25657
25658         Avoid some warnings from "gcc -Wshadow".
25659         * tests/test-frexp.c (exp): Define to a different identifier.
25660         * tests/test-frexpl.c (exp): Likewise.
25661
25662 2008-04-03  Jim Meyering  <meyering@redhat.com>
25663
25664         bootstrap: remove dangling *.[ch] symlinks from lib
25665         * build-aux/bootstrap [dangling symlink removal]: Move find's
25666         -depth option to precede all others, to avoid a warning.
25667         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25668
25669 2008-04-02  Bruno Haible  <bruno@clisp.org>
25670
25671         Avoid some warnings from "gcc -Wshadow".
25672         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25673         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25674         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25675         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25676         Reported by Jim Meyering.
25677
25678 2008-04-01  Bruno Haible  <bruno@clisp.org>
25679
25680         Fix test to work on IRIX 6.5 with cc.
25681         * tests/test-math.c (numeric_equal): New function.
25682         (main): Use it.
25683
25684 2008-04-01  Bruno Haible  <bruno@clisp.org>
25685
25686         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25687
25688 2008-04-01  Bruno Haible  <bruno@clisp.org>
25689
25690         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25691         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25692         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25693         (Depends-on): Remove math.
25694
25695         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25696         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25697         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25698         (Depends-on): Remove math.
25699
25700         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25701         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25702         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25703         (Depends-on): Remove math.
25704         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25705         (Depends-on): Remove math.
25706
25707         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25708         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25709         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25710         (Depends-on): Remove math.
25711         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25712         (Depends-on): Remove math.
25713
25714         * tests/test-round1.c: Include nan.h.
25715         (main): Use NaNd instead of NAN.
25716         * modules/round-tests (Files): Add tests/nan.h.
25717
25718         * tests/test-trunc1.c: Include nan.h.
25719         (main): Use NaNd instead of NAN.
25720         * modules/trunc-tests (Files): Add tests/nan.h.
25721
25722         * tests/test-roundf1.c: Include nan.h.
25723         (main): Use NaNf instead of NAN.
25724         * modules/roundf-tests (Files): Add tests/nan.h.
25725
25726         * tests/test-truncf1.c: Include nan.h.
25727         (main): Use NaNf instead of NAN.
25728         * modules/truncf-tests (Files): Add tests/nan.h.
25729
25730         * tests/test-ceilf1.c: Include nan.h.
25731         (main): Use NaNf instead of NAN.
25732         * modules/ceilf-tests (Files): Add tests/nan.h.
25733
25734         * tests/test-floorf1.c: Include nan.h.
25735         (main): Use NaNf instead of NAN.
25736         * modules/floorf-tests (Files): Add tests/nan.h.
25737
25738         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25739         (main): Use NaNf instead of NAN.
25740         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25741
25742         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25743         (main): Use NaNd instead of NAN.
25744         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25745
25746         * tests/test-frexp.c: Include nan.h.
25747         (main): Use NaNd instead of NAN.
25748         * modules/frexp-tests (Files): Add tests/nan.h.
25749
25750         * lib/isnan.c: Don't include <math.h>.
25751         (FUNC): Don't use NAN macro.
25752         * modules/isnand-nolibm (Depends-on): Remove math.
25753         * modules/isnanf-nolibm (Depends-on): Remove math.
25754         * modules/isnanl (Depends-on): Remove math.
25755         * modules/isnanl-nolibm (Depends-on): Remove math.
25756
25757         * tests/nan.h: New file.
25758
25759 2008-04-01  Eric Blake  <ebb9@byu.net>
25760
25761         Fix typos.
25762         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25763         values to be the right type.
25764
25765         For now, cater to gnulib strtod inaccuracies.
25766         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25767         fractional results.  While not as nice from a QoI perspective, it
25768         is a quicker patch than correctly implementing decimal to binary
25769         rounding.
25770
25771 2008-03-31  Eric Blake  <ebb9@byu.net>
25772
25773         Guarantee a definition of NAN.
25774         * lib/math.in.h (NAN): Define if missing.
25775         * tests/test-math.c (main): Test it.
25776         * doc/posix-headers/math.texi (math.h): Document this.
25777         * lib/isnan.c (rpl_isnand): Use it.
25778         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25779         * tests/test-floorf1.c (NaN): Likewise.
25780         * tests/test-frexp.c (NaN): Likewise.
25781         * tests/test-isnand.c (NaN): Likewise.
25782         * tests/test-isnanf.c (NaN): Likewise.
25783         * tests/test-round1.c (NaN): Likewise.
25784         * tests/test-roundf1.c (NaN): Likewise.
25785         * tests/test-snprintf-posix.h (NaN): Likewise.
25786         * tests/test-sprintf-posix.h (NaN): Likewise.
25787         * tests/test-trunc1.c (NaN): Likewise.
25788         * tests/test-truncf1.c (NaN): Likewise.
25789         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25790         * tests/test-vasprintf-posix.c (NaN): Likewise.
25791         * modules/isnand-nolibm (Depends-on): Add math.
25792         * modules/isnanf-nolibm (Depends-on): Likewise.
25793         * modules/isnanl (Depends-on): Likewise.
25794         * modules/isnanl-nolibm (Depends-on): Likewise.
25795         * modules/snprintf-posix-tests (Depends-on): Likewise.
25796         * modules/sprintf-posix-tests (Depends-on): Likewise.
25797         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25798         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25799         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25800         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25801
25802 2008-03-31  Bruno Haible  <bruno@clisp.org>
25803
25804         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25805         * doc/posix-functions/strtod.texi: Likewise.
25806
25807 2008-03-31  Bruno Haible  <bruno@clisp.org>
25808
25809         * tests/test-strtod.c (main): Don't use C99 syntax.
25810
25811 2008-03-31  Bruno Haible  <bruno@clisp.org>
25812
25813         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25814         Reported by Eric Blake.
25815
25816 2008-03-31  Jim Meyering  <meyering@redhat.com>
25817
25818         Don't compare actual signbit return values.
25819         * tests/test-strtod.c (main): Rather, compare only their
25820         zero/non-zero nature.
25821
25822 2008-03-31  Eric Blake  <ebb9@byu.net>
25823
25824         More strtod documentation.
25825         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25826         failures as distinct bugs.
25827
25828 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25829
25830         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25831         Problem reported by Erik Benada in
25832         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25833
25834 2008-03-30  Bruno Haible  <bruno@clisp.org>
25835
25836         * tests/test-strtod.c: Add comments about which assertion fails on which
25837         platform.
25838         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25839
25840 2008-03-30  Eric Blake  <ebb9@byu.net>
25841
25842         Test signbit behavior on zeros.
25843         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25844         (test_signbitd, test_signbitl): Likewise.
25845
25846         More strtod touchups.
25847         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25848         sign of negative underflow, for now.  Use .5, not .1.
25849         * doc/posix-functions/strtod.texi (strtod): Mention these
25850         limitations.
25851         Reported by Jim Meyering.
25852
25853 2008-03-30  Bruno Haible  <bruno@clisp.org>
25854
25855         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25856         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25857
25858 2008-03-30  Bruno Haible  <bruno@clisp.org>
25859
25860         Avoid failure when attempting to return empty iconv results on some
25861         platforms.
25862         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25863         allocation, don't report ENOMEM when the resulting string is empty.
25864
25865 2008-03-30  Bruno Haible  <bruno@clisp.org>
25866
25867         Fix buffer overrun.
25868         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25869         Don't consider the width for tmp_length. Check count against tmp_length
25870         before doing the padding. Ensure enough allocation during padding.
25871
25872 2008-03-30  Eric Blake  <ebb9@byu.net>
25873
25874         strtod touchups.
25875         * lib/strtod.c (strtod): Avoid compiler warnings.
25876         Reported by Jim Meyering.
25877
25878 2008-03-30  Bruno Haible  <bruno@clisp.org>
25879
25880         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25881         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25882         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25883         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25884         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25885         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25886         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25887         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25888
25889         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25890         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25891         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25892         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25893         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25894         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25895         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25896         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25897
25898         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25899         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25900         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25901         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25902         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25903         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25904         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25905         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25906
25907         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25908         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25909
25910         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25911         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25912
25913         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25914         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25915
25916         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25918         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25919
25920         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25922         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25923
25924         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25926         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25927
25928         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25929         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25930         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25931
25932         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25933         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25934         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25935         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25936         (Depends-on): Add EOVERFLOW.
25937         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25938         (Depends-on): Add EOVERFLOW.
25939         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25940         (Depends-on): Add EOVERFLOW.
25941         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25942         (Depends-on): Add EOVERFLOW.
25943         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25944         (Depends-on): Add EOVERFLOW.
25945         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25946         (Depends-on): Add EOVERFLOW.
25947         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25948         (Depends-on): Add EOVERFLOW.
25949         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25950         (Depends-on): Add EOVERFLOW.
25951
25952         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25954         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25955
25956         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25958         * modules/snprintf (Depends-on): Add EOVERFLOW.
25959
25960         * lib/poll.c (EOVERFLOW): Remove fallback.
25961         * modules/poll (Depends-on): Add EOVERFLOW.
25962
25963         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25964         * modules/getugroups (Depends-on): Add EOVERFLOW.
25965
25966         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25967         * modules/getdelim (Depends-on): Add EOVERFLOW.
25968
25969         * lib/ftell.c (EOVERFLOW): Remove fallback.
25970         * modules/ftell (Depends-on): Add EOVERFLOW.
25971
25972         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25973         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25974         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25975
25976         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25977
25978         * modules/EOVERFLOW-tests: New file.
25979         * tests/test-EOVERFLOW.c: New file.
25980
25981         * modules/EOVERFLOW: New file.
25982         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25983
25984 2008-03-30  Bruno Haible  <bruno@clisp.org>
25985
25986         Fix bug introduced on 2007-06-10.
25987         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25988         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25989
25990 2008-03-30  Bruno Haible  <bruno@clisp.org>
25991
25992         Improve freadseek's efficiency after ungetc.
25993         * lib/freadseek.c: Include freadahead.h.
25994         (freadptrinc): New function, extracted from freadseek.
25995         (freadseek): Use it in a loop. Use freadahead to determine the number
25996         of loop iterations.
25997         * modules/freadseek (Depends-on): Add freadahead.
25998         (configure.ac): Require AC_C_INLINE.
25999
26000 2008-03-30  Bruno Haible  <bruno@clisp.org>
26001
26002         * lib/freadseek.c (freadseek): Don't ignore the return value of
26003         freadptr.
26004
26005 2008-03-29  Eric Blake  <ebb9@byu.net>
26006
26007         Add hex float support.
26008         * modules/strtod (Depends-on): Add c-ctype.
26009         (Link): Mention POW_LIB.
26010         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26011         whitespace between 'e' and exponent.
26012         * tests/test-strtod.c (main): Enable hex float tests.
26013         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26014         now provides.
26015
26016         Document various strtod bugs, with some fixes.
26017         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26018         "-0x", "inf", "nan", and hex constants.
26019         * doc/posix-functions/atof.texi (atof): Likewise.
26020         * modules/stdlib (Makefile.am): Support strtod.
26021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26022         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26023         detect additional strtod bugs.
26024         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26025         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26026         bool where appropriate.  Parse 'inf' and 'nan'.
26027         * tests/test-strtod.c: New file.
26028         * modules/strtod (Depends-on): Add stdbool, stdlib.
26029         (configure.ac): Turn on module indicator.
26030         * modules/strtod-tests: New module.
26031
26032 2008-03-29  Eric Blake  <ebb9@byu.net>
26033
26034         Fix ftell on mingw.
26035         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26036         * modules/ftell-tests (Depends-on): Add binary-io.
26037         * modules/ftello-tests (Depends-on): Likewise.
26038         * tests/test-ftell.c (main): Enhance test to cover behavior after
26039         ungetc.  Enforce binary mode.
26040         * tests/test-ftello.c (main): Likewise.
26041
26042         Pass test-freadseek on cygwin.
26043         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26044         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26045         ungetc buffer.
26046
26047         * tests/test-fflush2.c (main): Fix typo.
26048
26049 2008-03-29  Bruno Haible  <bruno@clisp.org>
26050
26051         * tests/test-fflush2.c (main): Temporarily disable the contents of
26052         this test.
26053         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26054         Reported by Eric Blake.
26055
26056 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26057
26058         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26059         (GC_SHA224_DIGEST_SIZE): Add.
26060
26061         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26062         (gc_hash_digest_length): Likewise.
26063         (gc_hash_buffer): Likewise.
26064
26065 2008-03-25  Bruno Haible  <bruno@clisp.org>
26066
26067         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26068         detail which gettext release to use.
26069         Reported by Simon Josefsson.
26070
26071 2008-03-26  Jim Meyering  <meyering@redhat.com>
26072
26073         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26074         * modules/gnumakefile (clean-GNUmakefile): Also, use
26075         test ... && ... || : syntax rather than if-then ... fi.
26076
26077         gnumakefile: Don't double-quote-expand $(VPATH) value.
26078         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26079
26080 2008-03-24  Eric Blake  <ebb9@byu.net>
26081
26082         Alter GNUmakefile to install into top directory.
26083         * modules/maintainer-makefile: Split, and add dependency...
26084         * modules/gnumakefile: to this new module.
26085         * build-aux/GNUmakefile: Move...
26086         * top/GNUmakefile: ...here.
26087         * build-aux/maint.mk: Move...
26088         * top/maint.mk: ...here.
26089         * MODULES.html.sh (Support for maintaining...): Document new
26090         module.
26091
26092 2008-03-23  Bruno Haible  <bruno@clisp.org>
26093
26094         * gnulib-tool: New options --vc-files, --no-vc-files.
26095         (func_usage): Document them.
26096         (vc_files): New variable.
26097         (func_import): Consider vc_files.
26098         (func_create_testdir): Set vc_files to empty.
26099         Suggested by Jim Meyering and Karl Berry.
26100
26101 2008-03-23  Bruno Haible  <bruno@clisp.org>
26102
26103         Fix regex compilation error on HP-UX 11.
26104         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26105         * modules/regex (Files): Add m4/mbstate_t.m4.
26106         Reported by Ton Voon <ton.voon@altinity.com>.
26107
26108 2008-03-23  Bruno Haible  <bruno@clisp.org>
26109
26110         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26111
26112 2008-03-23  Eric Blake  <ebb9@byu.net>
26113             Bruno Haible  <bruno@clisp.org>
26114
26115         Install files from top/ in the destination directory.
26116         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26117         augmentation also for the files from top/.
26118         (func_import, func_create_testdir): Rewrite file names:
26119         top/filename -> filename.
26120
26121 2008-03-23  Bruno Haible  <bruno@clisp.org>
26122
26123         Tweak "gnulib --version" output.
26124         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26125
26126 2008-03-23  Bruno Haible  <bruno@clisp.org>
26127
26128         Tweak "gnulib --version" output.
26129         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26130         rather than contents of ChangeLog, when possible.
26131
26132 2008-03-21  Eric Blake  <ebb9@byu.net>
26133
26134         More --version tweaks.
26135         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26136         date of last ChangeLog entry.
26137
26138 2008-03-21  Jim Meyering  <meyering@redhat.com>
26139
26140         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26141
26142 2008-03-20  Eric Blake  <ebb9@byu.net>
26143
26144         VPATH fix.
26145         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26146
26147 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26148
26149         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26150         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26151
26152 2008-03-20  Eric Blake  <ebb9@byu.net>
26153
26154         Sync GNUmakefile with coreutils.
26155         * build-aux/GNUmakefile (have-Makefile): Rename...
26156         (_have-Makefile): ...to this, for namespace consideration.
26157         (GNUmakefile.cfg): Include, if present.
26158         (_autoreconf): Define a default.
26159         (_is-dist-target): New rule for rebuilds to pick up intra-release
26160         version.
26161         (maint-cfg.mk): Rename...
26162         (cfg.mk): ...to this.
26163
26164 2008-03-18  Jim Meyering  <meyering@redhat.com>
26165
26166         New script and module: mktempd
26167         * MODULES.html.sh (maint+release support): Add mktempd.
26168         * build-aux/mktempd: New file.
26169         * modules/mktempd: New file.
26170
26171 2008-03-15  Jim Meyering  <meyering@redhat.com>
26172
26173         Undo last change.
26174         * lib/sha1.c, lib/md5.c: 63 != ~63.
26175         Reported by Andreas Schwab.
26176
26177         sha1.c, md5.c: Hoist a redundant expression.
26178         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26179         "ctx->buflen" only once, before calling *_process_block.
26180         * lib/md5.c (md5_process_bytes): Likewise.
26181
26182 2008-03-14  Eric Blake  <ebb9@byu.net>
26183
26184         Bump copyright year in files generated by gnulib-tool.
26185         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26186         gnulib-tool, rather than hard-coding it.
26187
26188         Fix 'gnulib-tool --version' output to work with git.
26189         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26190         (startup): ...here.
26191         (func_version): Use it to invoke git-version-gen, rather than
26192         relying on CVS keyword expansion.  Modernize wording.
26193         (cvsdatestamp, last_checkin_date, version): Kill unused
26194         variables.
26195
26196 2008-03-12  Jim Meyering  <meyering@redhat.com>
26197
26198         Recognize optional cast of the argument to free.
26199         * build-aux/useless-if-before-free: Update regexps.
26200
26201         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26202
26203 2008-03-11  Bruno Haible  <bruno@clisp.org>
26204
26205         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26206         by a single package.
26207         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26208         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26209         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26210         Reported by Sam Steingold <sds@gnu.org>.
26211
26212 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26213
26214         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26215         repositories.
26216
26217 2008-03-11  Bruno Haible  <bruno@clisp.org>
26218
26219         Avoid conflicts between local macro definitions.
26220         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26221         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26222
26223 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26224             Bruno Haible  <bruno@clisp.org>
26225
26226         Make va_copy work with some version of xlc on AIX 5.1.
26227         * lib/stdarg.in.h: New file.
26228         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26229         On AIX, use a <stdarg.h> file substitute.
26230         * modules/stdarg (Files): Add lib/stdarg.in.h.
26231         (Depends-on): Add include_next.
26232         (Makefile.am): Build a stdarg.h substitute if requested.
26233         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26234
26235 2008-03-10  Bruno Haible  <bruno@clisp.org>
26236
26237         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26239         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26240
26241 2008-03-10  Bruno Haible  <bruno@clisp.org>
26242
26243         * modules/stdlib (Depends-on): Add include_next, remove
26244         absolute-header.
26245
26246 2008-03-09  Bruno Haible  <bruno@clisp.org>
26247
26248         * lib/freadahead.h (freadahead): Document more precisely.
26249         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26250         the sum of both buffer sizes.
26251         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26252         * NEWS: Document the change.
26253
26254 2008-03-09  Bruno Haible  <bruno@clisp.org>
26255
26256         Extend freadptr to return also the buffer size.
26257         * lib/freadptr.h (freadptr): Add sizep argument.
26258         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26259         (freadptr): Add sizep argument. Determine buffer size like freadahead
26260         does.
26261         * tests/test-freadptr.c: Don't include freadahead.h.
26262         (main): Adapt for new calling convention of freadptr.
26263         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26264         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26265         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26266         tests/test-freadptr2.sh.
26267         (Depends): Remove freadahead.
26268         (TESTS): Add test-freadptr2.sh.
26269         (check_PROGRAMS): Add test-freadptr2.
26270
26271 2008-03-09  Bruno Haible  <bruno@clisp.org>
26272
26273         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26274         Report and solution by Simon Josefsson.
26275
26276 2008-03-06  Bruno Haible  <bruno@clisp.org>
26277
26278         Make fflush after ungetc work on BSD platforms.
26279         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26280         * tests/test-fflush2.c: New file.
26281         * tests/test-fflush2.sh: New file.
26282         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26283         tests/test-fflush2.c.
26284         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26285         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26286
26287 2008-03-06  Eric Blake  <ebb9@byu.net>
26288
26289         Likewise for ftello.
26290         * modules/ftello (Dependencies): Add extensions.
26291         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26292
26293 2008-03-06  Bruno Haible  <bruno@clisp.org>
26294
26295         * modules/fseeko (Dependencies): Add extensions.
26296         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26297         Needed on glibc systems.
26298
26299 2008-03-06  Bruno Haible  <bruno@clisp.org>
26300
26301         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26302         email address.
26303         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26304
26305 2008-03-06  Bruno Haible  <bruno@clisp.org>
26306
26307         * users.txt: Add libgnupdf.
26308
26309 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26310
26311         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26312         (Header File Substitutes, Function Substitutes,
26313         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26314         (Build robot for gnulib): Fix typo.
26315
26316 2008-03-06  Bruno Haible  <bruno@clisp.org>
26317
26318         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26319         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26320
26321 2008-03-06  Bruno Haible  <bruno@clisp.org>
26322
26323         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26324         * doc/gnulib.texi: Include it.
26325
26326 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26327
26328         * modules/func (License): Change license to unlimited; there was
26329         no LGPL parts in the module anyway.
26330
26331 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26332
26333         * modules/__func__: Renamed to modules/func.
26334         * modules/__func__-tests: Renamed to modules/func-tests.
26335         * tests/test-__func__.c: Renamed to tests/test-func.c.
26336         * m4/__func__.m4: Renamed to m4/func.m4.
26337         * doc/gnulib.texi (__func__): Section renamed to func.
26338         Suggested by Eric Blake <ebb9@byu.net>.
26339
26340 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26341
26342         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26343         about __func__.  Make example self-contained.  Suggested by Eric
26344         Blake <ebb9@byu.net>.
26345
26346         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26347         Suggested by Eric Blake <ebb9@byu.net>.
26348
26349 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26350
26351         * modules/__func__: New file.
26352         * modules/__func__-tests: New file.
26353         * tests/test-__func__.c: New file.
26354         * m4/__func__.m4: New file.
26355         * doc/gnulib.texi (__func__): Document __func__ module.
26356
26357 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26358
26359         * modules/byteswap (License): Re-license as LGPLv2+.
26360
26361 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26362
26363         * doc/Makefile: Add pdf target.
26364
26365 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26366
26367         * modules/inline (License): Use 'unlimited', since there are only
26368         *.m4 files in this module.
26369
26370 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26371             Bruno Haible  <bruno@clisp.org>
26372
26373         Add support for HP C 7.1 on OpenVMS 8.3.
26374         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26375
26376 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26377
26378         Update VMS specifics.
26379         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26380
26381 2008-03-02  Jim Meyering  <meyering@redhat.com>
26382
26383         Remove the last dependency on the "free" module.
26384         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26385         Reported by Bob Proulx.
26386
26387         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26388
26389         Remove useless "if" tests before free.  Deprecate "free" module.
26390         * doc/posix-functions/free.texi: Mention that this
26391         module is no longer useful.
26392         * modules/free (Notice): Say this module is obsolete.
26393         * modules/readutmp (Depends-on): Remove free.
26394         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26395         * lib/putenv.c (putenv): Likewise.
26396         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26397         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26398         * tests/test-c-strcasestr.c (main): Likewise.
26399         * tests/test-c-strstr.c (main): Likewise.
26400         * tests/test-mbscasestr1.c (main): Likewise.
26401         * tests/test-mbscasestr2.c (main): Likewise.
26402         * tests/test-mbsstr1.c (main): Likewise.
26403         * tests/test-mbsstr2.c (main): Likewise.
26404         * tests/test-memmem.c (main): Likewise.
26405         * tests/test-strcasestr.c (main): Likewise.
26406         * tests/test-striconv.c (main): Likewise.
26407         * tests/test-striconveh.c (main): Likewise.
26408         * tests/test-striconveha.c (main): Likewise.
26409         * tests/test-strstr.c (main): Likewise.
26410
26411         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26412
26413         bootstrap: sync from coreutils again
26414         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26415
26416 2008-03-01  Jim Meyering  <meyering@redhat.com>
26417
26418         bootstrap: sync from coreutils
26419         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26420         also when the target doesn't exist.
26421
26422 2008-03-01  Eric Blake  <ebb9@byu.net>
26423
26424         Fix bugs in last patch.
26425         * lib/memchr2.c (memchr2): Fix typo.
26426         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26427         extension.
26428         Reported by Bruce Korb.
26429
26430         New module 'memchr2'.
26431         * modules/memchr2: New file.
26432         * modules/memchr2-tests: Likewise.
26433         * lib/memchr2.h: Likewise.
26434         * lib/memchr2.c: Likewise, based on memchr.c.
26435         * tests/test-memchr2.c: New test.
26436         * MODULES.html.sh (String handling): Add memchr2.
26437
26438 2008-02-29  Bruno Haible  <bruno@clisp.org>
26439
26440         * modules/freadseek-tests: New file.
26441         * tests/test-freadseek.sh: New file.
26442         * tests/test-freadseek.c: New file.
26443
26444         New module 'freadseek'.
26445         * modules/freadseek: New file.
26446         * lib/freadseek.h: New file.
26447         * lib/freadseek.c: New file.
26448         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26449
26450 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26451
26452         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26453         wydawca.
26454
26455         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26456         program_invocation_name and program_invocation_short_name are
26457         present.
26458
26459 2008-02-28  Bruno Haible  <bruno@clisp.org>
26460
26461         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26462         * tests/test-freadptr.sh: Also test non-seekable stdin.
26463
26464 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26465
26466         * build-aux/bootstrap (source_base, m4_base)
26467         (doc_base, tests_base): New variables.
26468         (gnulib_tool_options): Do not hardcode base directories, use
26469         the above variables instead.
26470
26471 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26472
26473         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26474
26475 2008-02-28  Bruno Haible  <bruno@clisp.org>
26476
26477         * modules/freadptr-tests: New file.
26478         * tests/test-freadptr.sh: New file.
26479         * tests/test-freadptr.c: New file.
26480
26481         New module 'freadptr'.
26482         * modules/freadptr: New file.
26483         * lib/freadptr.h: New file.
26484         * lib/freadptr.c: New file.
26485         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26486
26487 2008-02-26  Karl Berry  <karl@freefriends.org>
26488
26489         Sync from Libtool:
26490         * libltdl/argz.c (argz_add, argz_count): New functions.
26491         * libltdl/argz.in.h: Declare them.
26492         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26493
26494 2008-02-22  Bruno Haible  <bruno@clisp.org>
26495
26496         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26497         is a pointer type.  Needed for HP-UX 10.
26498         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26499         * doc/posix-functions/gmtime_r.texi: Likewise.
26500         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26501
26502 2008-02-24  Bruno Haible  <bruno@clisp.org>
26503
26504         * modules/environ-tests: New file.
26505         * tests/test-environ.c: New file.
26506
26507         New module 'environ'.
26508         * modules/environ: New file.
26509         * lib/unistd.in.h (environ): New declaration.
26510         * m4/environ.m4: New file.
26511         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26512         after use.
26513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26514         HAVE_DECL_ENVIRON.
26515         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26516         HAVE_DECL_ENVIRON.
26517         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26518         wrong claim that 'environ' is missing on some systems.
26519         * modules/execute (Depends-on): Add environ.
26520         * lib/execute.c (environ): Remove fallback declaration.
26521         * modules/pipe (Depends-on): Add environ.
26522         * lib/pipe.c (environ): Remove fallback declaration.
26523         * modules/setenv (Depends-on): Add environ.
26524         * lib/setenv.c (environ): Remove fallback declaration.
26525         * modules/unsetenv (Depends-on): Add environ.
26526         * lib/unsetenv.c (environ): Remove fallback declaration.
26527         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26528         m4/environ.m4.
26529         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26530         (gl_PREREQ_UNSETENV): Likewise.
26531
26532 2008-02-24  Bruno Haible  <bruno@clisp.org>
26533
26534         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26535
26536 2008-02-20  Bob Proulx  <bob@proulx.com>
26537
26538         Enable use of older two part flavor 'git describe'.
26539         * build-aux/git-version-gen: If using the older two part flavor of
26540         git version then recreate the third part now present in the
26541         newer three part flavor of git describe.
26542
26543 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26544
26545         * lib/fts.c (fts_build): Typo correction to comment.
26546
26547 2008-02-17  Bruno Haible  <bruno@clisp.org>
26548
26549         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26550         generating no-op conflicts.
26551
26552 2008-02-17  Bruno Haible  <bruno@clisp.org>
26553
26554         Speed up by 10%.
26555         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26556         result_entries, rather than an index-based loop.
26557
26558 2008-02-17  Bruno Haible  <bruno@clisp.org>
26559
26560         Speed up by 25%.
26561         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26562         'hashcode_cached'.
26563         (entry_create): New function.
26564         (entry_hashcode): Use the cached hashcode if possible.
26565         (read_changelog_file, try_split_merged_entry): Use entry_create.
26566
26567 2008-02-17  Bruno Haible  <bruno@clisp.org>
26568
26569         Speed up from O(n^2) to O(n) for long ChangeLog files.
26570         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26571         (read_changelog_file): Change implementation of entries_reversed list
26572         to rbtreehash.
26573         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26574
26575 2008-02-17  Bruno Haible  <bruno@clisp.org>
26576
26577         New option --split-merged-entry.
26578         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26579         (find_paragraph_end, try_split_merged_entry): New functions.
26580         (long_options): Add option --split-merged-entry.
26581         (usage): Document option --split-merged-entry.
26582         (main): Implement option --split-merged-entry.
26583         Reported by Eric Blake.
26584
26585 2008-02-17  Bruno Haible  <bruno@clisp.org>
26586
26587         * lib/git-merge-changelog.c: Include c-strstr.h.
26588         (main): Support the "git pull --rebase" situation.
26589         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26590         Reported by Eric Blake.
26591
26592 2008-02-16  Eric Blake  <ebb9@byu.net>
26593
26594         Avoid doubling \ in common case of "c-maybe" quoting style.
26595         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26596         eliding outer quotes.
26597         * lib/quotearg.h: Document this.
26598         * tests/test-quotearg.c (result_strings, inputs, results_g)
26599         (flag_results, locale_results): Test it by adding a new string to
26600         each test group.
26601         (compare_strings): Test new string.
26602
26603 2008-02-13  Eric Blake  <ebb9@byu.net>
26604
26605         Avoid trigraph quoting in default output.
26606         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26607         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26608         unless explicitly requested.
26609         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26610
26611 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26612
26613         Don't rely on signed integer overflowing to negative value.
26614         * lib/getugroups.c (getugroups): Include <limits.h>.
26615         Instead, compare against INT_MAX, and increment only if the test passes.
26616
26617 2008-02-13  Jim Meyering  <meyering@redhat.com>
26618         and Eric Blake  <ebb9@byu.net>
26619
26620         Avoid shadowing warning and compile errors on Linux.
26621         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26622         forwarding macros on Linux.
26623         (dcgettext): Define a stub, for Linux.
26624         (results_g, main): Avoid warnings.
26625
26626 2008-02-12  Eric Blake  <ebb9@byu.net>
26627
26628         Silence warning in last patch.
26629         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26630
26631         Quotearg part 4: add tests, fix c-maybe colon quoting.
26632         * lib/quotearg.h: Improve documentation.
26633         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26634         escapes when adding outer quotes.  When quoting trigraphs, use
26635         valid C notation.  When quoting NUL, omit extra characters if next
26636         character is not digit.  Alter prototype.
26637         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26638         callers.
26639         * modules/quotearg-tests: New module.
26640         * tests/test-quotearg.c: New test.
26641
26642 2008-02-07  Eric Blake  <ebb9@byu.net>
26643
26644         Quotearg part 3: add flag to control outer quote elision.
26645         * lib/quotearg.h (c_maybe_quoting_style): New style.
26646         (enum quoting_flags): Better documentation of flags.
26647         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26648         c-maybe style.
26649         (quotearg_buffer_restyled): Handle new flag to elide outer
26650         quotes.
26651
26652         Quotearg part 2: add flag that can control NUL elision.
26653         * lib/quotearg.h (set_quoting_flags): New prototype.
26654         * lib/quotearg.c (struct quoting_options): Add flag field.
26655         (set_quoting_flags): New function.
26656         (quotearg_buffer_restyled): Add flags parameter.
26657         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26658         (quotearg_n_options): Set the flag, since length cannot be
26659         returned.
26660         (quoting_options_from_style): Default flags correctly.
26661
26662         Quotearg part 1: more wrappers, restore quotearg_char state.
26663         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26664         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26665         (quotearg_colon_mem): New wrappers.
26666         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26667         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26668         functions.
26669         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26670         (quotearg_colon_mem): New functions.
26671
26672 2008-02-11  Bruno Haible  <bruno@clisp.org>
26673
26674         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26675         library in the current directory: it does not work with parallel make.
26676         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26677
26678 2008-02-11  Bruno Haible  <bruno@clisp.org>
26679
26680         * .gitattributes: New file.
26681
26682 2008-02-11  Jim Meyering  <meyering@redhat.com>
26683
26684         useless-if-before-free: Fix reversed exit values.
26685         * build-aux/useless-if-before-free: Use correct values
26686         for EXIT_MATCH and EXIT_NO_MATCH.
26687
26688         * build-aux/useless-if-before-free: Close stdout carefully.
26689
26690 2008-02-10  Bruno Haible  <bruno@clisp.org>
26691
26692         New module 'git-merge-changelog'.
26693         * modules/git-merge-changelog: New file.
26694         * lib/git-merge-changelog.c: New file.
26695
26696 2008-02-10  Jim Meyering  <meyering@redhat.com>
26697
26698         useless-if-before-free: New option: --list (-l).
26699
26700         useless-if-before-free: Don't exit immediately upon open failure.
26701         * build-aux/useless-if-before-free: Exit 2 for errors.
26702         Upon failure to open a file, don't exit immediately.
26703         Rather, just warn and continue with any remaining files.
26704
26705 2008-02-10  Bruno Haible  <bruno@clisp.org>
26706
26707         New abstract list operation 'node_set_value'.
26708         * lib/gl_list.h (gl_list_node_set_value): New function.
26709         (struct gl_list_implementation): New field node_set_value.
26710         * lib/gl_list.c (gl_list_node_set_value): New function.
26711         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26712         (gl_array_list_implementation): Update.
26713         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26714         (gl_carray_list_implementation): Update.
26715         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26716         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26717         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26718         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26719         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26720         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26721         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26722         Update.
26723         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26724         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26725         (gl_sublist_list_implementation): Update.
26726
26727 2008-02-10  Bruno Haible  <bruno@clisp.org>
26728
26729         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26730         Needed when ELEMENT is #defined to 'some_type *'.
26731
26732 2008-02-10  Jim Meyering  <meyering@redhat.com>
26733
26734         New script and module: useless-if-before-free
26735         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26736         * build-aux/useless-if-before-free: New file.
26737         * modules/useless-if-before-free: New file.
26738
26739         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26740
26741         xstrtol_error: Fix typo.
26742         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26743         s/exit_failure/exit_status/.
26744
26745 2008-02-09  Jim Meyering  <meyering@redhat.com>
26746
26747         New script and module: gitlog-to-changelog
26748         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26749         * modules/gitlog-to-changelog: New file.
26750         * build-aux/gitlog-to-changelog: New file.
26751
26752 2008-02-08  Jim Meyering  <meyering@redhat.com>
26753
26754         Avoid two "parameter unused" warnings.
26755         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26756         Mark "st" as used.
26757
26758         Use "git COMMAND", not "git-COMMAND".
26759         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26760         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26761         * build-aux/git-version-gen: Use "git status", not "git-status".
26762
26763 2008-02-07  Bruno Haible  <bruno@clisp.org>
26764
26765         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26766         Avoids a crash on Windows Vista.
26767         Reported by Adam Strzelecki <ono@java.pl> via
26768         Simon Josefsson <simon@josefsson.org>.
26769
26770 2008-02-06  Bruno Haible  <bruno@clisp.org>
26771
26772         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26773         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26774         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26776         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26778         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26779         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26780         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26781         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26782         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26783         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26784         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26785         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26786         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26787         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26788         left-adjust flag.
26789         * tests/test-snprintf-posix.h (test_function): Likewise.
26790         * tests/test-sprintf-posix.h (test_function): Likewise.
26791         * tests/test-vasprintf-posix.c (test_function): Likewise.
26792         * doc/posix-functions/fprintf.texi: Update.
26793         * doc/posix-functions/printf.texi: Update.
26794         * doc/posix-functions/snprintf.texi: Update.
26795         * doc/posix-functions/sprintf.texi: Update.
26796         * doc/posix-functions/vfprintf.texi: Update.
26797         * doc/posix-functions/vprintf.texi: Update.
26798         * doc/posix-functions/vsnprintf.texi: Update.
26799         * doc/posix-functions/vsprintf.texi: Update.
26800         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26801
26802 2008-02-06  Bruno Haible  <bruno@clisp.org>
26803
26804         Fix bug introduced on 2008-01-26.
26805         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26806
26807 2008-02-06  Bruno Haible  <bruno@clisp.org>
26808
26809         Fix bug introduced on 2007-06-10.
26810         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26811         !NEED_PRINTF_FLAG_ZERO.
26812
26813 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26814
26815         getloadavg: use libperfstat on AIX5
26816         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26817
26818 2008-02-03  Bruno Haible  <bruno@clisp.org>
26819
26820         * lib/diffseq.h: Add comments about required #includes.
26821         Reported by Michael Biggs <gnulib@doubleplum.net>.
26822
26823 2008-02-01  Bruno Haible  <bruno@clisp.org>
26824
26825         * users.txt: Add gnuit.
26826
26827 2008-01-31  Bruno Haible  <bruno@clisp.org>
26828
26829         * lib/md4.c (set_uint32): Mark as inline.
26830         * lib/md5.c (set_uint32): Likewise.
26831         * lib/sha1.c (set_uint32): Likewise.
26832         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26833         * m4/md5.m4 (gl_MD5): Likewise.
26834         * m4/sha1.m4 (gl_SHA1): Likewise.
26835
26836 2008-01-31  Jim Meyering  <meyering@redhat.com>
26837
26838         Use "sizeof VAR", rather than a literal "4".
26839         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26840         * lib/md4.c (md4_read_ctx): Likewise.
26841         * lib/sha1.c (sha1_read_ctx): Likewise.
26842
26843 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26844
26845         * tests/test-sha1.c: New file, based on test-md5.c.
26846
26847         * modules/crypto/sha1-tests: New file.
26848
26849 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26850
26851         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26852
26853 2008-01-31  Jim Meyering  <meyering@redhat.com>
26854
26855         Prefer "sizeof v" over the equivalent "4".
26856         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26857         * lib/md5.c (set_uint32): Likewise.
26858         * lib/sha1.c (set_uint32): Likewise.
26859
26860 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26861
26862         * lib/sha1.c (set_uint32): Mark function as static.
26863
26864 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26865
26866         md2: clarify comments to say that alignment is not required.
26867         * lib/md2.h: Remove warning about alignment in comment.
26868         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26869         never been required.
26870
26871 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26872
26873         md4: adapt alignment constraint fix from sha1.
26874         * lib/md4.c (set_uint32): New function, from sha1.c
26875         (md4_read_ctx): Use it.
26876         (md4_finish_ctx): Doc fix.
26877         * lib/md4.h: Doc fix.
26878
26879 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26880
26881         md5: adapt alignment constraint fix from sha1.
26882         * lib/md5.c (set_uint32): New function, from sha1.c
26883         (md5_read_ctx): Use it.
26884         (md5_finish_ctx): Doc fix.
26885         * lib/md5.h: Doc fix.
26886
26887 2008-01-30  Peter Palfrader  <weasel@debian.org>
26888
26889         sha1: remove the result buffer alignment constraint
26890         * lib/sha1.c (set_uint32): New function.
26891         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26892         constraint.
26893         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26894         * lib/sha1.h: Likewise.
26895
26896 2008-01-30  Andreas Schwab  <schwab@suse.de>
26897             Bruno Haible  <bruno@clisp.org>
26898
26899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26900         correct definition of LDBL_MIN_EXP.
26901
26902 2008-01-30  Karl Berry  <karl@gnu.org>
26903
26904         * config/srclist-update: try to preserve x bit on updates.
26905         * config/srclistvars.sh: update for karl.
26906
26907 2008-01-29  Jim Meyering  <meyering@redhat.com>
26908
26909         vasnprintf.c: Avoid warning about unused label
26910         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26911         "overflow" label definition and associated code with the
26912         same cpp condition that guards the sole use of that label.
26913
26914 2008-01-26  Bruno Haible  <bruno@clisp.org>
26915
26916         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26917         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26918         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26919         * lib/isnanl-nolibm.h (isnanl): Likewise.
26920         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26921
26922 2008-01-26  Bruno Haible  <bruno@clisp.org>
26923
26924         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26925         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26926
26927 2008-01-26  Bruno Haible  <bruno@clisp.org>
26928
26929         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26930         GCC >= 4.0 built-in.
26931         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26932
26933 2008-01-26  Bruno Haible  <bruno@clisp.org>
26934
26935         Rename isnan, applicable to 'double' only, to isnand.
26936         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26937         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26938         (configure.ac): Update.
26939         (Include): Replace "isnan.h" with "isnand.h".
26940         * m4/isnand.m4: Renamed from m4/isnan.m4.
26941         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26942         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26943         instead of isnan.c.
26944         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26945         instead of HAVE_ISNAN_IN_LIBC.
26946         (isnand): Renamed from isnan.
26947         * lib/isnand.c: New file.
26948         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26949         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26950         (Makefile.am): Update.
26951         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26952         Include isnand.h instead of isnan.h.
26953         (main): Test isnand instead of isnan.
26954         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26955         isnan-nolibm.
26956         * modules/frexp (Depends-on): Likewise.
26957         * modules/frexp-tests (Depends-on): Likewise.
26958         * modules/frexp-nolibm (Depends-on): Likewise.
26959         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26960         * modules/isfinite (Depends-on): Likewise.
26961         * modules/round-tests (Depends-on): Likewise.
26962         * modules/signbit (Depends-on): Likewise.
26963         * modules/signbit-tests (Depends-on): Likewise.
26964         * modules/snprintf-posix (Depends-on): Likewise.
26965         * modules/sprintf-posix (Depends-on): Likewise.
26966         * modules/trunc-tests (Depends-on): Likewise.
26967         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26968         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26969         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26970         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26971         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26972         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26973         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26974         * modules/vasnprintf-posix (Depends-on): Likewise.
26975         * modules/vasprintf-posix (Depends-on): Likewise.
26976         * modules/vfprintf-posix (Depends-on): Likewise.
26977         * modules/vsnprintf-posix (Depends-on): Likewise.
26978         * modules/vsprintf-posix (Depends-on): Likewise.
26979         * lib/frexp.c: Include isnand.h instead of isnan.h.
26980         (ISNAN): Set to isnand instead of isnan.
26981         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26982         (gl_isfinited): Use isnand instead of isnan.
26983         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26984         (gl_signbitd): Use isnand instead of isnan.
26985         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26986         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26987         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26988         (main): Use isnand instead of isnan.
26989         * tests/test-round1.c: Include isnand.h.
26990         (main): Use isnand instead of isnan.
26991         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26992         (ISNAN): Set to isnand instead of isnan.
26993         * tests/test-trunc1.c: Include isnand.h.
26994         (main): Use isnand instead of isnan.
26995         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26996         (equal): Use isnand instead of isnan.
26997         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26998         isnand-nolibm.
26999         * NEWS: Mention the change.
27000
27001 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27002             Bruno Haible  <bruno@clisp.org>
27003
27004         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27005         the GCC builtins for signbits are present and set
27006         REPLACE_SIGNBIT_USING_GCC if so.
27007         * lib/math.in.h (signbit): Define using GCC builtins if
27008         REPLACE_SIGNBIT_USING_GCC is set.
27009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27010         REPLACE_SIGNBIT_USING_GCC.
27011         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27012
27013 2008-01-25  Jim Meyering  <meyering@redhat.com>
27014
27015         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27016         * lib/poll.c: Include <config.h>, not "config.h".
27017         * tests/test-getaddrinfo.c: Likewise.
27018
27019 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27020
27021         * modules/sockets-tests: New file.
27022
27023 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27024
27025         * modules/sockets: New module, can be used to call WSA_Startup and
27026         WSA_Cleanup when needed.
27027
27028         * lib/sockets.h, lib/sockets.c: New files.
27029
27030         * m4/sockets.m4: New file.
27031
27032         * tests/test-sockets.c: New file.
27033
27034 2008-01-19  Bruno Haible  <bruno@clisp.org>
27035
27036         * doc/posix-headers: Renamed from doc/headers.
27037         * doc/posix-functions: Renamed from doc/functions.
27038         * doc/gnulib.texi: Update.
27039
27040 2008-01-19  Bruno Haible  <bruno@clisp.org>
27041
27042         * doc/glibc-functions/strcasestr.texi: Include contents of
27043         doc/functions/strcasestr.texi, fixing the list of platforms.
27044         * doc/functions/strcasestr.texi: Remove file.
27045
27046 2008-01-19  Bruno Haible  <bruno@clisp.org>
27047
27048         * doc/glibc-functions/memmem.texi: Include contents of
27049         doc/functions/memmem.texi.
27050         * doc/functions/memmem.texi: Remove file.
27051
27052 2008-01-18  Bruno Haible  <bruno@clisp.org>
27053
27054         * doc/glibc-functions/*.texi: New files.
27055         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27056         to use the new files.
27057
27058 2008-01-17  Bruno Haible  <bruno@clisp.org>
27059
27060         * tests/test-gethostname.c (main): Fix printf statement.
27061
27062 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27063
27064         * modules/gethostname-tests: New file.
27065
27066         * tests/test-gethostname.c: New file.
27067
27068 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27069
27070         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27071         used by the UNAME case.  Reported by Bruno Haible
27072         <bruno@clisp.org>.
27073
27074 2008-01-17  Eric Blake  <ebb9@byu.net>
27075
27076         Convert c-strcasestr to be more efficient.
27077         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27078         (Depends-on): Add c-strcase, remove malloca, strnlen.
27079         * tests/test-c-strcasestr.c (main): Enhance test.
27080         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27081
27082 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27083
27084         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27085         Use it in creating po/Makevars.
27086
27087 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27088
27089         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27090         Applications that requires it should initialize libgcrypt
27091         manually.
27092
27093 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27094
27095         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27096
27097 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27098
27099         Fix problem with getdate on mingw32 reported by Simon Josefsson
27100         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27101         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27102         tzname", when deciding whether to declare tzname.
27103         * lib/strftime.c (tzname): Likewise.
27104
27105 2008-01-15  Bruno Haible  <bruno@clisp.org>
27106
27107         Work around a MacOS X 10.5 bug in frexpl().
27108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27109         * doc/functions/frexpl.texi: Document the bug.
27110         Reported by Elias Pipping <pipping@gentoo.org>.
27111
27112 2008-01-14  Eric Blake  <ebb9@byu.net>
27113
27114         Touch up previous patch.
27115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27116         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27117
27118         Convert strcasestr module to use Two-Way algorithm.
27119         * modules/strcasestr-simple: New module, based on the old
27120         strcasestr, but with Two-Way rather than KMP.
27121         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27122         * lib/string.in.h (rpl_strcasestr): Declare.
27123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27124         performance.
27125         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27126         * modules/string (Makefile.am): Support strcasestr.
27127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27128         * modules/strcasestr-tests (Depends-on): Check for alarm.
27129         * tests/test-strcasestr.c: Augment test.
27130         * lib/str-two-way.h: Clean up stray macro.
27131         * NEWS: Document new module.
27132         * MODULES.html.sh (string handling): Likewise.
27133         * doc/functions/strcasestr.texi: New file.
27134         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27135         here, since it is not a POSIX function.
27136
27137 2008-01-14  Colin Watson  <cjwatson@debian.org>
27138             Bruno Haible  <bruno@clisp.org>
27139
27140         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27141         works fine; if not, set REPLACE_STRSIGNAL.
27142         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27144         REPLACE_STRSIGNAL.
27145         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27146         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27147         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27148
27149 2008-01-14  Bruno Haible  <bruno@clisp.org>
27150
27151         * modules/strsignal (Include): Change to <string.h>.
27152
27153 2008-01-14  Colin Watson  <cjwatson@debian.org>
27154
27155         * modules/argp (Notice): Add a notice recommending to change
27156         XGETTEXT_OPTIONS.
27157         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27158
27159 2008-01-13  Colin Watson  <cjwatson@debian.org>
27160
27161         * modules/strsignal-tests: New file.
27162         * tests/test-strsignal.c: New file.
27163
27164         * lib/strsignal.c: New file, from glibc with modifications.
27165         * lib/siglist.h: New file, from glibc with modifications.
27166         * lib/string.in.h (strsignal): New declaration.
27167         * m4/strsignal.m4: New file.
27168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27169         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27170         * modules/strsignal: New file.
27171         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27172         HAVE_DECL_STRSIGNAL.
27173
27174 2008-01-13  Bruno Haible  <bruno@clisp.org>
27175
27176         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27177         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27178         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27180
27181 2008-01-13  Bruno Haible  <bruno@clisp.org>
27182
27183         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27184         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27185         * lib/argp.h (__attribute__): Likewise.
27186         * lib/c-stack.c (__attribute__): Likewise.
27187         * lib/error.h (__attribute__): Likewise.
27188         * lib/fts.c (__attribute__): Likewise.
27189         * lib/openat.h (__attribute__): Likewise.
27190         * lib/stdio.in.h (__attribute__): Likewise.
27191         * lib/string.in.h (__attribute__): Likewise.
27192         * lib/utimens.c (__attribute__): Likewise.
27193         * lib/vasnprintf.h (__attribute__): Likewise.
27194         * lib/xalloc.h (__attribute__): Likewise.
27195         * lib/xprintf.h (__attribute__): Likewise.
27196         * lib/xstrtol.h (__attribute__): Likewise.
27197         * lib/xvasprintf.h (__attribute__): Likewise.
27198
27199 2008-01-12  Bruno Haible  <bruno@clisp.org>
27200
27201         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27202         * doc/glibc-headers/a.out.texi: New file.
27203         * doc/glibc-headers/aliases.texi: New file.
27204         * doc/glibc-headers/alloca.texi: New file.
27205         * doc/glibc-headers/ar.texi: New file.
27206         * doc/glibc-headers/argp.texi: New file.
27207         * doc/glibc-headers/argz.texi: New file.
27208         * doc/glibc-headers/byteswap.texi: New file.
27209         * doc/glibc-headers/crypt.texi: New file.
27210         * doc/glibc-headers/endian.texi: New file.
27211         * doc/glibc-headers/envz.texi: New file.
27212         * doc/glibc-headers/err.texi: New file.
27213         * doc/glibc-headers/error.texi: New file.
27214         * doc/glibc-headers/execinfo.texi: New file.
27215         * doc/glibc-headers/fpu_control.texi: New file.
27216         * doc/glibc-headers/fstab.texi: New file.
27217         * doc/glibc-headers/fts.texi: New file.
27218         * doc/glibc-headers/getopt.texi: New file.
27219         * doc/glibc-headers/ieee754.texi: New file.
27220         * doc/glibc-headers/ifaddrs.texi: New file.
27221         * doc/glibc-headers/libintl.texi: New file.
27222         * doc/glibc-headers/mcheck.texi: New file.
27223         * doc/glibc-headers/mntent.texi: New file.
27224         * doc/glibc-headers/obstack.texi: New file.
27225         * doc/glibc-headers/paths.texi: New file.
27226         * doc/glibc-headers/printf.texi: New file.
27227         * doc/glibc-headers/pty.texi: New file.
27228         * doc/glibc-headers/resolv.texi: New file.
27229         * doc/glibc-headers/shadow.texi: New file.
27230         * doc/glibc-headers/sysexits.texi: New file.
27231         * doc/glibc-headers/ttyent.texi: New file.
27232
27233 2008-01-12  Jim Meyering  <meyering@redhat.com>
27234
27235         announce-gen: emit Gnulib's git-based version string.
27236         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27237         New option --gnulib-version=V, where V is expected to be
27238         the output of running git describe in the gnulib directory.
27239         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27240         not useful, and plan to stop publishing an xdelta file with each
27241         coreutils release.
27242
27243         * build-aux/announce-gen: Also check for lzma-compressed files.
27244
27245 2008-01-11  Bruno Haible  <bruno@clisp.org>
27246
27247         * tests/test-memmem.c (main): Increase maximum allowed time.
27248         * tests/test-strstr.c (main): Likewise.
27249
27250 2008-01-11  Bruno Haible  <bruno@clisp.org>
27251
27252         * doc/functions/memmem.texi: Add more precisions about platforms.
27253         * doc/functions/strstr.texi: Likewise.
27254
27255 2008-01-10  Eric Blake  <ebb9@byu.net>
27256
27257         * m4/strstr.m4: Delete cruft from copy-n-paste.
27258         Reported by Bruno Haible.
27259
27260 2008-01-10  Bruno Haible  <bruno@clisp.org>
27261
27262         Make c-strstr rely on strstr.
27263         * lib/c-strstr.c: Don't include str-kmp.h.
27264         (c_strstr): Define in terms of strstr.
27265         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27266         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27267
27268 2008-01-10  Bruno Haible  <bruno@clisp.org>
27269
27270         * doc/gnulib.texi (String Functions in C Locale): New section.
27271         * doc/c-ctype.texi: New file.
27272         * doc/c-strcase.texi: New file.
27273         * doc/c-strcaseeq.texi: New file.
27274         * doc/c-strcasestr.texi: New file.
27275         * doc/c-strstr.texi: New file.
27276         * doc/c-strtod.texi: New file.
27277         * doc/c-strtold.texi: New file.
27278
27279 2008-01-10  Eric Blake  <ebb9@byu.net>
27280
27281         * lib/relocatable.h: Fix a comment.
27282
27283 2008-01-10  Eric Blake  <ebb9@byu.net>
27284
27285         Share two-way algorithm.
27286         * lib/str-two-way.h: New file, merged from...
27287         * lib/memmem.c: ...here...
27288         * lib/strstr.c: ...and here.
27289         * modules/memmem (Files): Use it.
27290         * modules/strstr (Files): Likewise.
27291
27292         Avoid quadratic strstr implementations.
27293         * lib/strstr.c: New file.
27294         * m4/strstr.m4: Likewise.
27295         * modules/strstr: Likewise.
27296         * modules/strstr-tests: Likewise.
27297         * tests/test-strstr.c: Likewise.
27298         * lib/string.in.h (rpl_strstr): Declare.
27299         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27301         * modules/string (Makefile.am): Likewise.
27302         * MODULES.html.sh (string handling): Mention new module.
27303         * doc/functions/strstr.texi (strstr): Document the bug.
27304
27305 2008-01-10  Bruno Haible  <bruno@clisp.org>
27306
27307         * lib/relocatable.h (relocate): State whether result is freshly
27308         allocated or not.
27309         * lib/relocatable.c (relocate): Return a freshly allocated string
27310         instead of a pointer to a privately held string.
27311         Reported by Sylvain Beucler <beuc@gnu.org>.
27312
27313 2008-01-10  Colin Watson  <cjwatson@debian.org>
27314
27315         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27316         s/S_ISNLK/S_ISLNK/.
27317
27318 2008-01-09  Bruno Haible  <bruno@clisp.org>
27319
27320         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27321         and other files.
27322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27323         if it's only a guess.
27324         * modules/memmem: Simplify by depending on memmem-simple.
27325
27326 2008-01-09  Bruno Haible  <bruno@clisp.org>
27327
27328         Work around OpenBSD 4.0 tdelete() bug.
27329         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27330         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27331         macros and don't redefine the enum values.
27332         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27333         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27334         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27335
27336 2008-01-09  Bruno Haible  <bruno@clisp.org>
27337
27338         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27339         (main): Don't perform the tests if setlocale did not install a UTF-8
27340         locale. Needed on OpenBSD 4.0.
27341         * modules/wcwidth-tests (Depends-on): Add localcharset.
27342
27343 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27344
27345         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27346         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27347         * NEWS: announce this.
27348         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27349
27350 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27351         and Eric Blake  <ebb9@byu.net>
27352
27353         Add memmem-simple module.
27354         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27355         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27356         * modules/memmem-simple: New file.
27357         * modules/memmem (Description): Tweak.
27358         * MODULES.html.sh (string handling): Mention new module.
27359         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27360         addressed by memmem-simple.
27361         * NEWS: Document the difference.
27362
27363 2008-01-09  Eric Blake  <ebb9@byu.net>
27364
27365         Give gcc some memmem optimization hints.
27366         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27367         (strcasestr): Declare as pure.
27368         * modules/memmem (Maintainer): Claim my implementation.
27369
27370 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27371
27372         Support AIX 6.1 and higher.
27373         * build-aux/config.libpath: Likewise.
27374         * build-aux/config.rpath: Likewise.
27375
27376 2008-01-08  Jim Meyering  <meyering@redhat.com>
27377             Bruno Haible  <bruno@clisp.org>
27378
27379         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27380         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27381         Reported by Peter Fales in
27382         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27383
27384 2008-01-08  Bruno Haible  <bruno@clisp.org>
27385
27386         * modules/unictype/category-of (Depends-on): Add
27387         unictype/category-none.
27388         * modules/unictype/category-and-tests (Depends-on): Add
27389         unictype/category-{L,N,Lu,Nd}.
27390         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27391         * modules/unictype/category-or-tests (Depends-on): Add
27392         unictype/category-{L,N}.
27393         * modules/unictype/category-name-tests (Depends-on): Add
27394         unictype/category-{Z,Nl}.
27395         Reported by Simon Josefsson.
27396
27397 2008-01-08  Bruno Haible  <bruno@clisp.org>
27398
27399         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27400         convention better.
27401         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27402         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27403         Reported by Peter Miller <millerp@canb.auug.org.au>.
27404
27405 2008-01-08  Eric Blake  <ebb9@byu.net>
27406
27407         Rewrite memmem to guarantee linear complexity without malloc.
27408         * lib/memmem.c (memmem): Use Two-Way rather than
27409         Knuth-Morris-Pratt, to allow O(1) space usage.
27410         (critical_factorization, two_way_short_needle)
27411         (two_way_long_needle): New functions.
27412         (knuth_morris_pratt): Delete.
27413         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27414         Add stdint.
27415         * tests/test-memmem.c (main): Add tests for periodic needle and
27416         sublinear performance.
27417         * doc/functions/memmem.texi (memmem): Document other deficiencies
27418         in cygwin and older glibc.
27419
27420 2008-01-08  Bruno Haible  <bruno@clisp.org>
27421
27422         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27423         augmentation.
27424
27425 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27426
27427         Add a configure time option: --disable-acl.
27428         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27429         AC_ARG_ENABLE(acl).
27430
27431 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27432
27433         * tests/test-localename.c: Don't include obsolete "setenv.h".
27434
27435         * modules/localename-tests (Depends-on): Need unsetenv.
27436
27437 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27438
27439         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27440
27441 2008-01-06  Colin Watson  <cjwatson@debian.org>
27442
27443         * users.txt: Add man-db.
27444
27445 2008-01-07  Bruno Haible  <bruno@clisp.org>
27446
27447         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27448         previous section name.
27449
27450 2008-01-07  Bruno Haible  <bruno@clisp.org>
27451
27452         * lib/progname.c (set_program_name): Don't strip off a leading
27453         "lt-" prefix outside a .libs directory.
27454         Suggested by Paul Eggert.
27455
27456 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27457             Bruno Haible  <bruno@clisp.org>
27458
27459         Improve memory cleanup in 'relocatable' module.
27460         * lib/relocatable.h (compute_curr_prefix): Change return type to
27461         'char *'.
27462         * lib/relocatable.c (compute_curr_prefix): Change return type to
27463         'char *'. Free curr_installdir after use.
27464         (relocate): Free curr_prefix_better after use.
27465         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27466
27467 2008-01-01  Bruno Haible  <bruno@clisp.org>
27468
27469         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27470         failure on older glibc systems.
27471         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27472
27473 2008-01-05  Eric Blake  <ebb9@byu.net>
27474
27475         Avoid quadratic system memmem.
27476         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27477         Reported by Ralf Wildenhues.
27478
27479         Fix memmem test for mingw.
27480         * modules/memmem-tests (configure.ac): Check for alarm.
27481         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27482         it.
27483         * doc/functions/memmem.texi: New file.
27484         * doc/gnulib.texi (Function Substitutes): Add memmem.
27485         Reported by Bruno Haible.
27486
27487 2008-01-04  Bruno Haible  <bruno@clisp.org>
27488
27489         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27490         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27491         gl_HEADER_STRING_H_DEFAULTS.
27492
27493 2008-01-04  Eric Blake  <ebb9@byu.net>
27494
27495         Shorten duration of memmem test.
27496         * tests/test-memmem.c (main): Use alarm to declare failure if test
27497         is taking too long.
27498         Reported by Ralf Wildenhues.
27499
27500 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27501
27502         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27503         string, needed by strerror.
27504
27505 2008-01-03  Colin Watson  <cjwatson@debian.org>
27506             Bruno Haible  <bruno@clisp.org>
27507
27508         * doc/gnulib-tool.texi (Localization): New section.
27509
27510 2008-01-02  Bruno Haible  <bruno@clisp.org>
27511
27512         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27513         variables to 'unsigned char *' type.
27514         Reported by Paul Eggert.
27515
27516 2008-01-02  Jim Meyering  <jim@meyering.net>
27517
27518         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27519
27520 2007-12-31  Jim Meyering  <jim@meyering.net>
27521
27522         Avoid use of private FTS type name.
27523         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27524
27525 2007-12-30  Karl Berry  <karl@gnu.org>
27526
27527         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27528         work around defect in Texinfo and/or the standalone Info browser.
27529
27530 2007-12-30  Bruno Haible  <bruno@clisp.org>
27531
27532         Unify 5 copies of the KMP code.
27533         * lib/str-kmp.h: New file.
27534         * lib/c-strcasestr.c: Include str-kmp.h.
27535         (knuth_morris_pratt): Remove function.
27536         (c_strcasestr): Update.
27537         * lib/c-strstr.c: Include str-kmp.h.
27538         (knuth_morris_pratt): Remove function.
27539         (c_strcasestr): Update.
27540         * lib/mbscasestr.c: Include str-kmp.h.
27541         (knuth_morris_pratt_unibyte): Remove function.
27542         * lib/mbsstr.c: Include str-kmp.h.
27543         (knuth_morris_pratt_unibyte): Remove function.
27544         * lib/strcasestr.c: Include str-kmp.h.
27545         (knuth_morris_pratt): Remove function.
27546         (strcasestr): Update.
27547         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27548         * modules/c-strstr (Files): Likewise.
27549         * modules/mbscasestr (Files): Likewise.
27550         * modules/mbsstr (Files): Likewise.
27551         * modules/strcasestr (Files): Likewise.
27552         Suggested by Paul Eggert.
27553
27554 2007-12-30  Bruno Haible  <bruno@clisp.org>
27555
27556         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27557         defined.
27558
27559 2007-12-30  Bruno Haible  <bruno@clisp.org>
27560
27561         * lib/xmalloca.h: Include xalloc.h.
27562         (xnmalloca): New macro.
27563
27564 2007-12-30  Bruno Haible  <bruno@clisp.org>
27565
27566         * lib/malloca.h (nmalloca): New macro.
27567         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27568         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27569         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27570         knuth_morris_pratt_multibyte): Likewise.
27571         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27572         knuth_morris_pratt_multibyte): Likewise.
27573         * lib/memmem.c (knuth_morris_pratt): Likewise.
27574         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27575
27576 2007-12-25  Bruno Haible  <bruno@clisp.org>
27577
27578         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27579         * lib/glob.c: Don't include openat.h.
27580         (link_exists2_p): Add back the code that deals with the
27581         !GLOB_ALTDIRFUNC case.
27582         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27583         let it do the filename concatenation.
27584         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27585         * modules/glob (Depends-on): Remove openat.
27586
27587 2007-12-31  Bruno Haible  <bruno@clisp.org>
27588
27589         * modules/dirfd (License): Change to LGPLv2+.
27590         Approved by Jim Meyering.
27591
27592 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27593
27594         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27595         when multiplying M by sizeof (size_t).
27596
27597 2007-12-10  Martin Lambers  <marlam@marlam.de>
27598
27599         Override getpagesize on mingw.
27600         * lib/getpagesize.c: New file.
27601         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27602         * modules/getpagesize (Files): Add lib/getpagesize.c.
27603         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27605         REPLACE_GETPAGESIZE.
27606         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27607
27608 2007-12-25  Bruno Haible  <bruno@clisp.org>
27609
27610         * modules/localcharset (Notice): New field.
27611         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27612         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27613
27614 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27615             Bruno Haible  <bruno@clisp.org>
27616
27617         Avoid using the syntax symbol() in formatted documentation.
27618         * MODULES.html.sh (func_module): When replacing symbol() with a
27619         hyperlink, remove the parentheses. Show an error if some remain.
27620         Recognize and render the '...' syntax.
27621         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27622         Rework. Add paragraph about GCC's inlining.
27623         * doc/alloca.texi: Likewise.
27624         * doc/error.texi: Remove parentheses from symbol reference.
27625         * doc/gnulib-intro.texi: Likewise.
27626         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27627         * modules/fnmatch (Description): Reword to say "the ... function".
27628         * modules/full-read (Description): Likewise.
27629         * modules/full-write (Description): Likewise.
27630         * modules/safe-read (Description): Likewise.
27631         * modules/safe-write (Description): Likewise.
27632         * modules/strchrnul (Description): Likewise.
27633         * modules/trim (Description): Likewise.
27634         * modules/error (Description): Remove parentheses from symbol
27635         references.
27636         * modules/verror (Description): Likewise.
27637         Reported by Karl Berry.
27638
27639 2007-12-25  Bruno Haible  <bruno@clisp.org>
27640
27641         Fixup after 2007-10-16 commit.
27642         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27643
27644 2007-12-24  Bruno Haible  <bruno@clisp.org>
27645
27646         Make --enable-relocatable work with DESTDIR.
27647         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27648         to compute installdir from destprog.
27649         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27650         also set the RELOC_DESTDIR variable.
27651         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27652
27653 2007-12-24  Bruno Haible  <bruno@clisp.org>
27654
27655         Fix link error due to xalloc_die().
27656         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27657         of xreadlink.
27658         * lib/relocwrapper.c: Update comments.
27659         * build-aux/install-reloc: Remove xreadlink.c from file list.
27660         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27661         xreadlink.c.
27662         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27663
27664 2007-12-24  Bruno Haible  <bruno@clisp.org>
27665
27666         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27667         * lib/setenv.h: Remove file.
27668         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27669         lib/setenv.h.
27670         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27671         (Depends-on): Add stdlib.
27672         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27673         gl_FUNC_UNSETENV.
27674         (Include): Replace setenv.h with <stdlib.h>.
27675         * modules/unsetenv: New file.
27676         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27677         * lib/unsetenv.c: Include <stdlib.h> first.
27678         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27679         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27680         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27681         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27682         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27683         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27685         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27686         * doc/functions/unsetenv.texi: Update.
27687         * modules/xsetenv (Depends-on): Add unsetenv.
27688         * modules/getdate (Depends-on): Likewise.
27689         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27690         * lib/xsetenv.c: Don't include setenv.h.
27691         * lib/getdate.y: Likewise.
27692         * lib/relocwrapper.c: Likewise.
27693         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27694         (Depends-on): Add stdlib.
27695         * NEWS: Mention the changes.
27696         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27697
27698 2007-12-23  Bruno Haible  <bruno@clisp.org>
27699
27700         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27701         indentation.
27702
27703 2007-12-23  Bruno Haible  <bruno@clisp.org>
27704
27705         * lib/c-strcasestr.c: Add more comments.
27706         * lib/c-strstr.c: Likewise.
27707         * lib/mbscasestr.c: Likewise.
27708         * lib/mbsstr.c: Likewise.
27709         * lib/strcasestr.c: Likewise.
27710         * lib/memmem.c: Likewise.
27711
27712 2007-12-23  Bruno Haible  <bruno@clisp.org>
27713
27714         * tests/test-memmem.c: Include <string.h> first.
27715
27716 2007-12-22  Bruno Haible  <bruno@clisp.org>
27717
27718         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27719         the contents of $testsbase.
27720         Reported by Ralf Wildenhues.
27721
27722 2007-12-22  Bruno Haible  <bruno@clisp.org>
27723
27724         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27725         two variables local_ldadd_before, local_ldadd_last.
27726
27727 2007-12-20  Eric Blake  <ebb9@byu.net>
27728
27729         Work around circular library issue when cross-compiling.
27730         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27731         that progname.o does not need to pull in rpl_memcmp.
27732
27733 2007-12-19  Eric Blake  <ebb9@byu.net>
27734
27735         Fix memmem to avoid O(n^2) worst-case complexity.
27736         * lib/memmem.c (knuth_morris_pratt): New function.
27737         (memmem): Use it if first few naive iterations fail.
27738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27739         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27740         * modules/memchr (License): Likewise.
27741         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27742         malloca.
27743         * tests/test-memmem.c: Rewrite, borrowing ideas from
27744         test-mbsstr1.c; the old version wouldn't even compile!
27745         * modules/memmem-tests: New file.
27746         * lib/string.in.h (rpl_memmem): Add declaration.
27747         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27749         REPLACE_MEMMEM.
27750
27751 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27752
27753         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27754         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27755         before any system include files, and undef after them all.  This
27756         should fix a problem on VMS reported by John E. Malmberg in
27757         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27758
27759 2007-12-17  Eric Blake  <ebb9@byu.net>
27760
27761         Revert addition of verify, for BSD/OS.
27762         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27763         can't handle large files, for the sake of obsolete platforms.
27764         * modules/fseeko (Depends-on): Remove verify.
27765         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27766         * doc/functions/ftello.texi (ftello): Likewise.
27767         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27768         Reported by Larry Jones.
27769
27770 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27771
27772         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27773         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27774
27775 2007-12-17  Jim Meyering  <meyering@redhat.com>
27776
27777         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27778         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27779         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27780         * modules/getcwd (Depends-on): Add openat.
27781         Reported by Petr Salinger.
27782
27783 2007-12-17  Bruno Haible  <bruno@clisp.org>
27784
27785         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27786         avoid a segmentation fault of the configure test on x86_64 systems.
27787
27788 2007-12-15  Jim Meyering  <meyering@redhat.com>
27789
27790         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27791
27792 2007-12-13  Eric Blake  <ebb9@byu.net>
27793
27794         Another fseek test.
27795         * tests/test-fseek.c (main): Also test ungetc handling.
27796         * tests/test-fseeko.c (main): Likewise.
27797         * modules/fseeko (Depends-on): Add verify.
27798         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27799         large.
27800         Reported by Larry Jones.
27801
27802         Fix fseeko on mingw.
27803         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27804         seek.
27805
27806         Beef up fseek tests.
27807         * tests/test-fseek.c (main): Also test eof handling.
27808         * tests/test-fseeko.c (main): Likewise.
27809         Reported by Larry Jones.
27810
27811 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27812
27813         Fix fseeko on BSD-based platforms.
27814         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27815         successful seek.
27816
27817 2007-12-12  Eric Blake  <ebb9@byu.net>
27818
27819         Allow circular dependency of separate libtests.a
27820         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27821         when use_libtests.
27822
27823 2007-12-11  Eric Blake  <ebb9@byu.net>
27824
27825         Fix bug with -0.0L in previous patch.
27826         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27827         * tests/test-isnan.c (main): Also test on zeroes.
27828         * tests/test-isnanf.c (main): Likewise.
27829         * tests/test-isnanl.h (main): Likewise.
27830
27831         Detect pseudo-denormals on x86 even when cross-compiling.
27832         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27833         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27834         invalid bit patterns that happen to satisfy ==.
27835
27836         Avoid link failures with separate libtests.a.
27837         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27838         last, to satisfy circular dependencies.
27839
27840 2007-12-11  Eric Blake  <ebb9@byu.net>
27841         and Bruno Haible  <bruno@clisp.org>
27842
27843         Fix OpenBSD 4.0 <float.h> handling of long double.
27844         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27845         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27846         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27847
27848 2007-12-11  Jim Meyering  <meyering@redhat.com>
27849
27850         * users.txt: Add libvirt.
27851
27852         Support versions of autoconf prior to 2.59c.
27853         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27854         if it is not already defined.
27855
27856 2007-12-09  Bruno Haible  <bruno@clisp.org>
27857
27858         Let 'gnulib-tool --import' collect sources needed for the tests in
27859         tests/ rather than in lib/.
27860         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27861         argument. If true, add rules to generate libtests.a, and put libtests.a
27862         into $(LDADD). Consider source files in subdirectories and set
27863         uses_subdirs.
27864         (func_emit_initmacro_start, func_emit_initmacro_end,
27865         func_emit_initmacro_done): Pass all arguments explicitly.
27866         (func_import): Determine two module lists main_modules,
27867         testsrelated_modules. Determine use_libtests. Determine two variables
27868         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27869         instead of just sed_transform_lib_file. Determine two variables
27870         main_files and testsrelated_files. Compute 'files' as the union of
27871         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27872         func_add_or_update. In the generated gnulib-comp.m4, collect the
27873         object files for tests/ in different variables than those for lib/.
27874         Substitute LIBTESTS_LIBDEPS.
27875         (func_create_testdir): Combine the uses_subdirs results from
27876         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27877
27878 2007-12-09  Bruno Haible  <bruno@clisp.org>
27879
27880         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27881         the build-aux directory.
27882
27883 2007-12-09  Bruno Haible  <bruno@clisp.org>
27884
27885         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27886         introduced on 2006-09-09.
27887
27888 2007-12-07  Jim Meyering  <meyering@redhat.com>
27889
27890         Let these macros work also with autoconf-2.59.
27891         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27892         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27893         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27894
27895 2007-12-06  Jim Meyering  <meyering@redhat.com>
27896
27897         Avoid a configure-time syntax error in gl_FUNC_ACL.
27898         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27899         function in each branch, before testing the cache variable.
27900
27901 2007-12-04  Eric Blake  <ebb9@byu.net>
27902
27903         Make scripts executable.
27904         * build-aux/config.guess: Add execute permissions.
27905         * build-aux/config.sub: Likewise.
27906         * build-aux/gendocs.sh: Likewise.
27907
27908         Fix frexp on mingw.
27909         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27910         cross-compiling.
27911         * doc/functions/frexp.texi (frexp): Document the bug.
27912
27913         Make cygwin fseeko check more reliable.
27914         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27915         version numbers, rather than unrelated feature check.
27916         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27917         * doc/functions/ftello.texi (ftello): Likewise.
27918         Reported by Bruno Haible.
27919
27920         * m4/strerror.m4: Bump version number.
27921
27922 2007-12-03  Bruno Haible  <bruno@clisp.org>
27923
27924         * doc/functions/mprotect.texi: Mention the mingw problem.
27925
27926 2007-12-03  Eric Blake  <ebb9@byu.net>
27927
27928         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27929         REPLACE_STRERROR is initialized before this macro.
27930
27931 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27932
27933         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27934         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27935         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27936         put -lsec in even for programs other than 'ls'.  This fixes a problem
27937         for gettext reported by Bruno Haible in
27938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27939         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27940         Add support for Solaris 10.  This isn't efficient, but should get the
27941         job done for now.
27942
27943 2007-12-03  James Youngman  <jay@gnu.org>
27944
27945         * doc/regexprops-generic.texi: change "an close-group" to "a
27946         close-group" and "illegal" to "not allowed".
27947
27948 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27949
27950         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27951         pr_byname.h. Needed for the rare case when the maintainer has done
27952         "make maintainer-clean" in the source directory and then attempts a
27953         build outside the source directory.
27954         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27955         scripts_byname.h.
27956
27957 2007-12-02  Martin Lambers <marlam@marlam.de>
27958             Bruno Haible  <bruno@clisp.org>
27959
27960         * lib/getpagesize.h: Remove file.
27961         * lib/unistd.in.h: Include declaration of getpagesize here.
27962         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27963         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27964         HAVE_SYS_PARAM_H.
27965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27966         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27967         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27968         (Depends-on): Add unistd.
27969         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27970         (Include): Use <unistd.h> instead of getpagesize.h.
27971         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27972         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27973         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27974         gl_GETPAGESIZE invocation, already handled by module dependency.
27975         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27976
27977 2007-12-02  Bruno Haible  <bruno@clisp.org>
27978
27979         * modules/strings-tests: New file.
27980         * tests/test-strings.c: New file.
27981
27982         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27983         * lib/strings.in.h: New file.
27984         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27985         * m4/strings_h.m4: New file.
27986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27987         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27988         * modules/strings: New file.
27989         * modules/string (Makefile.am): Update.
27990         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27991         Reported by Karl Berry.
27992
27993 2007-12-01  Eric Blake  <ebb9@byu.net>
27994
27995         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27996         accomodate fix in cygwin 1.5.25.
27997
27998 2007-12-01  Jim Meyering  <meyering@redhat.com>
27999
28000         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28001         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28002         that would inhibit utf8-optimization of a regexp containing line-
28003         or buffer-anchors, e.g., `^', `$'.
28004
28005 2007-11-30  Bruno Haible  <bruno@clisp.org>
28006
28007         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28008         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28009         glthread_recursive_lock_init.
28010         * lib/lock.c (glthread_recursive_lock_init)
28011         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28012         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28013
28014 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28015
28016         New function qset_acl, like set_acl but with syscall semantics.
28017         * lib/acl.h (qset_acl): New decl.
28018         * lib/acl.c (qset_acl): New function.
28019         (set_acl): Use new function.  Use more-consistent diagnostics.
28020
28021 2007-11-28  Jim Meyering  <meyering@redhat.com>
28022
28023         * modules/physmem (License): Change from GPL to LGPLv2+.
28024
28025 2007-11-26  Bruno Haible  <bruno@clisp.org>
28026
28027         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28028         'long double' type has excess precision.
28029         Reported by Jim Meyering in
28030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28031
28032 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28033
28034         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28035         Sync from <http://gnu.org/licenses>.
28036         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28037         with license text from same location.
28038         * doc/maintain.texi, doc/standards.texi:  Sync from
28039         <http://savannah.gnu.org/projects/gnustandards>.
28040
28041 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28042         and Jim Meyering  <meyering@redhat.com>
28043
28044         Adjust getdate' grammar to accept a slightly more regular language.
28045         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28046         Before, the former was rejected.
28047         * lib/getdate.y (digits_to_date_time): New function, factored
28048         out of ...
28049         (number): ...here.  Just call digits_to_date_time.
28050         (hybrid): New non-terminal to handle an <unsigned number,
28051         signed relative offset> sequence consistently.
28052
28053 2007-11-18  Jim Meyering  <meyering@redhat.com>
28054
28055         Pull my changes from coreutils:
28056         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28057         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28058         use of $gnulib_tool_option_extras, so that it's separated from the
28059         preceding argument.
28060
28061         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28062         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28063         parent destination directories before copying a file into place.
28064
28065 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28066
28067         bootstrap: work also with 4-argument variant of AC_INIT
28068         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28069
28070 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28071
28072         Port test-getaddrinfo to Solaris.
28073         Problem reported by Bruno Haible in
28074         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28075         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28076         explanation of setting 'hints'.
28077         Don't reject an implementation merely because it returns EAI_SERVICE.
28078         (EAI_SERVICE): Define to 0 if not defined.
28079
28080 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28081
28082         The license of gnu-make and posix-shell is now "GPLed build tool".
28083         * modules/gnu-make (License): Likewise.
28084         * modules/posix-shell (License): Likewise.
28085
28086         New module posix-shell, for determining a POSIX shell
28087         or perhaps something that is close enough to a POSIX shell.
28088         * m4/posix-shell.m4: New file.
28089         * modules/posix-shell: New file.
28090
28091         * MODULES.html.sh: Mention new module.
28092
28093         New module gnu-make, for determining whether we're using GNU Make.
28094         * m4/gnu-make.m4: New file.
28095         * modules/gnu-make: New file.
28096         * MODULES.html.sh: Mention new module.
28097
28098 2007-11-14  Jim Meyering  <meyering@redhat.com>
28099
28100         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28101         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28102         use this macro to create a function _definition_.
28103         Remove useless "#undef ARGMATCH_DIE".
28104
28105 2007-11-14  Bruno Haible  <bruno@clisp.org>
28106
28107         * lib/config.charset: Update for OpenBSD 4.1.
28108         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28109
28110 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28111
28112         Document 64-bit #if problems in stdint.texi.
28113         * doc/headers/stdint.texi (stdint.h): Mention problems with
28114         64-bit-#if, and how to work around them.
28115
28116         Don't insist on 'long long int' support in the preprocessor.  It
28117         breaks too many things.  For example, PRIdMAX still uses a 'long
28118         long int' format with the latest Sun compiler, even though
28119         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28120         preprocessor problem.  This causes the latest coreutils to dump
28121         core on Solaris 10 sparc with the Sun C compiler.
28122         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28123         the troublesome expressions at configure-time, not at #if-time.
28124         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28125         preprocessor.
28126         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28127         compile-time C checks, done at 'configure'-time.
28128         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28129         * modules/inttypes (Makefile): Substitute the new symbols that
28130         gl_INTTYPES_H now generates.
28131         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28132
28133 2007-11-12  Bruno Haible  <bruno@clisp.org>
28134
28135         Tests for Unicode character classification functions.
28136
28137         * modules/unictype/bidicategory-byname-tests: New file.
28138         * modules/unictype/bidicategory-name-tests: New file.
28139         * modules/unictype/bidicategory-of-tests: New file.
28140         * modules/unictype/bidicategory-test-tests: New file.
28141         * modules/unictype/block-list-tests: New file.
28142         * modules/unictype/block-of-tests: New file.
28143         * modules/unictype/block-test-tests: New file.
28144         * modules/unictype/category-C-tests: New file.
28145         * modules/unictype/category-Cc-tests: New file.
28146         * modules/unictype/category-Cf-tests: New file.
28147         * modules/unictype/category-Cn-tests: New file.
28148         * modules/unictype/category-Co-tests: New file.
28149         * modules/unictype/category-Cs-tests: New file.
28150         * modules/unictype/category-L-tests: New file.
28151         * modules/unictype/category-Ll-tests: New file.
28152         * modules/unictype/category-Lm-tests: New file.
28153         * modules/unictype/category-Lo-tests: New file.
28154         * modules/unictype/category-Lt-tests: New file.
28155         * modules/unictype/category-Lu-tests: New file.
28156         * modules/unictype/category-M-tests: New file.
28157         * modules/unictype/category-Mc-tests: New file.
28158         * modules/unictype/category-Me-tests: New file.
28159         * modules/unictype/category-Mn-tests: New file.
28160         * modules/unictype/category-N-tests: New file.
28161         * modules/unictype/category-Nd-tests: New file.
28162         * modules/unictype/category-Nl-tests: New file.
28163         * modules/unictype/category-No-tests: New file.
28164         * modules/unictype/category-P-tests: New file.
28165         * modules/unictype/category-Pc-tests: New file.
28166         * modules/unictype/category-Pd-tests: New file.
28167         * modules/unictype/category-Pe-tests: New file.
28168         * modules/unictype/category-Pf-tests: New file.
28169         * modules/unictype/category-Pi-tests: New file.
28170         * modules/unictype/category-Po-tests: New file.
28171         * modules/unictype/category-Ps-tests: New file.
28172         * modules/unictype/category-S-tests: New file.
28173         * modules/unictype/category-Sc-tests: New file.
28174         * modules/unictype/category-Sk-tests: New file.
28175         * modules/unictype/category-Sm-tests: New file.
28176         * modules/unictype/category-So-tests: New file.
28177         * modules/unictype/category-Z-tests: New file.
28178         * modules/unictype/category-Zl-tests: New file.
28179         * modules/unictype/category-Zp-tests: New file.
28180         * modules/unictype/category-Zs-tests: New file.
28181         * modules/unictype/category-and-not-tests: New file.
28182         * modules/unictype/category-and-tests: New file.
28183         * modules/unictype/category-byname-tests: New file.
28184         * modules/unictype/category-name-tests: New file.
28185         * modules/unictype/category-none-tests: New file.
28186         * modules/unictype/category-of-tests: New file.
28187         * modules/unictype/category-or-tests: New file.
28188         * modules/unictype/category-test-withtable-tests: New file.
28189         * modules/unictype/combining-class-tests: New file.
28190         * modules/unictype/ctype-alnum-tests: New file.
28191         * modules/unictype/ctype-alpha-tests: New file.
28192         * modules/unictype/ctype-blank-tests: New file.
28193         * modules/unictype/ctype-cntrl-tests: New file.
28194         * modules/unictype/ctype-digit-tests: New file.
28195         * modules/unictype/ctype-graph-tests: New file.
28196         * modules/unictype/ctype-lower-tests: New file.
28197         * modules/unictype/ctype-print-tests: New file.
28198         * modules/unictype/ctype-punct-tests: New file.
28199         * modules/unictype/ctype-space-tests: New file.
28200         * modules/unictype/ctype-upper-tests: New file.
28201         * modules/unictype/ctype-xdigit-tests: New file.
28202         * modules/unictype/decimal-digit-tests: New file.
28203         * modules/unictype/digit-tests: New file.
28204         * modules/unictype/mirror-tests: New file.
28205         * modules/unictype/numeric-tests: New file.
28206         * modules/unictype/property-alphabetic-tests: New file.
28207         * modules/unictype/property-ascii-hex-digit-tests: New file.
28208         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28209         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28210         * modules/unictype/property-bidi-block-separator-tests: New file.
28211         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28212         * modules/unictype/property-bidi-common-separator-tests: New file.
28213         * modules/unictype/property-bidi-control-tests: New file.
28214         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28215         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28216         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28217         * modules/unictype/property-bidi-european-digit-tests: New file.
28218         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28219         * modules/unictype/property-bidi-left-to-right-tests: New file.
28220         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28221         * modules/unictype/property-bidi-other-neutral-tests: New file.
28222         * modules/unictype/property-bidi-pdf-tests: New file.
28223         * modules/unictype/property-bidi-segment-separator-tests: New file.
28224         * modules/unictype/property-bidi-whitespace-tests: New file.
28225         * modules/unictype/property-byname-tests: New file.
28226         * modules/unictype/property-combining-tests: New file.
28227         * modules/unictype/property-composite-tests: New file.
28228         * modules/unictype/property-currency-symbol-tests: New file.
28229         * modules/unictype/property-dash-tests: New file.
28230         * modules/unictype/property-decimal-digit-tests: New file.
28231         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28232         * modules/unictype/property-deprecated-tests: New file.
28233         * modules/unictype/property-diacritic-tests: New file.
28234         * modules/unictype/property-extender-tests: New file.
28235         * modules/unictype/property-format-control-tests: New file.
28236         * modules/unictype/property-grapheme-base-tests: New file.
28237         * modules/unictype/property-grapheme-extend-tests: New file.
28238         * modules/unictype/property-grapheme-link-tests: New file.
28239         * modules/unictype/property-hex-digit-tests: New file.
28240         * modules/unictype/property-hyphen-tests: New file.
28241         * modules/unictype/property-id-continue-tests: New file.
28242         * modules/unictype/property-id-start-tests: New file.
28243         * modules/unictype/property-ideographic-tests: New file.
28244         * modules/unictype/property-ids-binary-operator-tests: New file.
28245         * modules/unictype/property-ids-trinary-operator-tests: New file.
28246         * modules/unictype/property-ignorable-control-tests: New file.
28247         * modules/unictype/property-iso-control-tests: New file.
28248         * modules/unictype/property-join-control-tests: New file.
28249         * modules/unictype/property-left-of-pair-tests: New file.
28250         * modules/unictype/property-line-separator-tests: New file.
28251         * modules/unictype/property-logical-order-exception-tests: New file.
28252         * modules/unictype/property-lowercase-tests: New file.
28253         * modules/unictype/property-math-tests: New file.
28254         * modules/unictype/property-non-break-tests: New file.
28255         * modules/unictype/property-not-a-character-tests: New file.
28256         * modules/unictype/property-numeric-tests: New file.
28257         * modules/unictype/property-other-alphabetic-tests: New file.
28258         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28259         * modules/unictype/property-other-grapheme-extend-tests: New file.
28260         * modules/unictype/property-other-id-continue-tests: New file.
28261         * modules/unictype/property-other-id-start-tests: New file.
28262         * modules/unictype/property-other-lowercase-tests: New file.
28263         * modules/unictype/property-other-math-tests: New file.
28264         * modules/unictype/property-other-uppercase-tests: New file.
28265         * modules/unictype/property-paired-punctuation-tests: New file.
28266         * modules/unictype/property-paragraph-separator-tests: New file.
28267         * modules/unictype/property-pattern-syntax-tests: New file.
28268         * modules/unictype/property-pattern-white-space-tests: New file.
28269         * modules/unictype/property-private-use-tests: New file.
28270         * modules/unictype/property-punctuation-tests: New file.
28271         * modules/unictype/property-quotation-mark-tests: New file.
28272         * modules/unictype/property-radical-tests: New file.
28273         * modules/unictype/property-sentence-terminal-tests: New file.
28274         * modules/unictype/property-soft-dotted-tests: New file.
28275         * modules/unictype/property-space-tests: New file.
28276         * modules/unictype/property-terminal-punctuation-tests: New file.
28277         * modules/unictype/property-test-tests: New file.
28278         * modules/unictype/property-titlecase-tests: New file.
28279         * modules/unictype/property-unassigned-code-value-tests: New file.
28280         * modules/unictype/property-unified-ideograph-tests: New file.
28281         * modules/unictype/property-uppercase-tests: New file.
28282         * modules/unictype/property-variation-selector-tests: New file.
28283         * modules/unictype/property-white-space-tests: New file.
28284         * modules/unictype/property-xid-continue-tests: New file.
28285         * modules/unictype/property-xid-start-tests: New file.
28286         * modules/unictype/property-zero-width-tests: New file.
28287         * modules/unictype/scripts-tests: New file.
28288         * modules/unictype/syntax-c-ident-tests: New file.
28289         * modules/unictype/syntax-c-whitespace-tests: New file.
28290         * modules/unictype/syntax-java-ident-tests: New file.
28291         * modules/unictype/syntax-java-whitespace-tests: New file.
28292         * tests/unictype/test-bidi_byname.c: New file.
28293         * tests/unictype/test-bidi_name.c: New file.
28294         * tests/unictype/test-bidi_of.c: New file.
28295         * tests/unictype/test-bidi_test.c: New file.
28296         * tests/unictype/test-block_list.c: New file.
28297         * tests/unictype/test-block_of.c: New file.
28298         * tests/unictype/test-block_test.c: New file.
28299         * tests/unictype/test-categ_and.c: New file.
28300         * tests/unictype/test-categ_and_not.c: New file.
28301         * tests/unictype/test-categ_byname.c: New file.
28302         * tests/unictype/test-categ_name.c: New file.
28303         * tests/unictype/test-categ_none.c: New file.
28304         * tests/unictype/test-categ_of.c: New file.
28305         * tests/unictype/test-categ_or.c: New file.
28306         * tests/unictype/test-categ_test_withtable.c: New file.
28307         * tests/unictype/test-combining.c: New file.
28308         * tests/unictype/test-decdigit.c: New file.
28309         * tests/unictype/test-digit.c: New file.
28310         * tests/unictype/test-mirror.c: New file.
28311         * tests/unictype/test-numeric.c: New file.
28312         * tests/unictype/test-pr_byname.c: New file.
28313         * tests/unictype/test-pr_test.c: New file.
28314         * tests/unictype/test-predicate-part1.h: New file.
28315         * tests/unictype/test-predicate-part2.h: New file.
28316         * tests/unictype/test-scripts.c: New file.
28317         * tests/unictype/test-sy_c_ident.c: New file.
28318         * tests/unictype/test-sy_java_ident.c: New file.
28319
28320         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28321         for Unicode 5.0.0.
28322         * tests/unictype/test-categ_Cc.c: Likewise.
28323         * tests/unictype/test-categ_Cf.c: Likewise.
28324         * tests/unictype/test-categ_Cn.c: Likewise.
28325         * tests/unictype/test-categ_Co.c: Likewise.
28326         * tests/unictype/test-categ_Cs.c: Likewise.
28327         * tests/unictype/test-categ_L.c: Likewise.
28328         * tests/unictype/test-categ_Ll.c: Likewise.
28329         * tests/unictype/test-categ_Lm.c: Likewise.
28330         * tests/unictype/test-categ_Lo.c: Likewise.
28331         * tests/unictype/test-categ_Lt.c: Likewise.
28332         * tests/unictype/test-categ_Lu.c: Likewise.
28333         * tests/unictype/test-categ_M.c: Likewise.
28334         * tests/unictype/test-categ_Mc.c: Likewise.
28335         * tests/unictype/test-categ_Me.c: Likewise.
28336         * tests/unictype/test-categ_Mn.c: Likewise.
28337         * tests/unictype/test-categ_N.c: Likewise.
28338         * tests/unictype/test-categ_Nd.c: Likewise.
28339         * tests/unictype/test-categ_Nl.c: Likewise.
28340         * tests/unictype/test-categ_No.c: Likewise.
28341         * tests/unictype/test-categ_P.c: Likewise.
28342         * tests/unictype/test-categ_Pc.c: Likewise.
28343         * tests/unictype/test-categ_Pd.c: Likewise.
28344         * tests/unictype/test-categ_Pe.c: Likewise.
28345         * tests/unictype/test-categ_Pf.c: Likewise.
28346         * tests/unictype/test-categ_Pi.c: Likewise.
28347         * tests/unictype/test-categ_Po.c: Likewise.
28348         * tests/unictype/test-categ_Ps.c: Likewise.
28349         * tests/unictype/test-categ_S.c: Likewise.
28350         * tests/unictype/test-categ_Sc.c: Likewise.
28351         * tests/unictype/test-categ_Sk.c: Likewise.
28352         * tests/unictype/test-categ_Sm.c: Likewise.
28353         * tests/unictype/test-categ_So.c: Likewise.
28354         * tests/unictype/test-categ_Z.c: Likewise.
28355         * tests/unictype/test-categ_Zl.c: Likewise.
28356         * tests/unictype/test-categ_Zp.c: Likewise.
28357         * tests/unictype/test-categ_Zs.c: Likewise.
28358         * tests/unictype/test-ctype_alnum.c: Likewise.
28359         * tests/unictype/test-ctype_alpha.c: Likewise.
28360         * tests/unictype/test-ctype_blank.c: Likewise.
28361         * tests/unictype/test-ctype_cntrl.c: Likewise.
28362         * tests/unictype/test-ctype_digit.c: Likewise.
28363         * tests/unictype/test-ctype_graph.c: Likewise.
28364         * tests/unictype/test-ctype_lower.c: Likewise.
28365         * tests/unictype/test-ctype_print.c: Likewise.
28366         * tests/unictype/test-ctype_punct.c: Likewise.
28367         * tests/unictype/test-ctype_space.c: Likewise.
28368         * tests/unictype/test-ctype_upper.c: Likewise.
28369         * tests/unictype/test-ctype_xdigit.c: Likewise.
28370         * tests/unictype/test-decdigit.h: Likewise.
28371         * tests/unictype/test-digit.h: Likewise.
28372         * tests/unictype/test-numeric.h: Likewise.
28373         * tests/unictype/test-pr_alphabetic.c: Likewise.
28374         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28375         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28376         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28377         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28378         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28379         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28380         * tests/unictype/test-pr_bidi_control.c: Likewise.
28381         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28382         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28383         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28384         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28385         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28386         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28387         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28388         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28389         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28390         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28391         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28392         * tests/unictype/test-pr_combining.c: Likewise.
28393         * tests/unictype/test-pr_composite.c: Likewise.
28394         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28395         * tests/unictype/test-pr_dash.c: Likewise.
28396         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28397         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28398         * tests/unictype/test-pr_deprecated.c: Likewise.
28399         * tests/unictype/test-pr_diacritic.c: Likewise.
28400         * tests/unictype/test-pr_extender.c: Likewise.
28401         * tests/unictype/test-pr_format_control.c: Likewise.
28402         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28403         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28404         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28405         * tests/unictype/test-pr_hex_digit.c: Likewise.
28406         * tests/unictype/test-pr_hyphen.c: Likewise.
28407         * tests/unictype/test-pr_id_continue.c: Likewise.
28408         * tests/unictype/test-pr_id_start.c: Likewise.
28409         * tests/unictype/test-pr_ideographic.c: Likewise.
28410         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28411         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28412         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28413         * tests/unictype/test-pr_iso_control.c: Likewise.
28414         * tests/unictype/test-pr_join_control.c: Likewise.
28415         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28416         * tests/unictype/test-pr_line_separator.c: Likewise.
28417         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28418         * tests/unictype/test-pr_lowercase.c: Likewise.
28419         * tests/unictype/test-pr_math.c: Likewise.
28420         * tests/unictype/test-pr_non_break.c: Likewise.
28421         * tests/unictype/test-pr_not_a_character.c: Likewise.
28422         * tests/unictype/test-pr_numeric.c: Likewise.
28423         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28424         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28425         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28426         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28427         * tests/unictype/test-pr_other_id_start.c: Likewise.
28428         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28429         * tests/unictype/test-pr_other_math.c: Likewise.
28430         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28431         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28432         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28433         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28434         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28435         * tests/unictype/test-pr_private_use.c: Likewise.
28436         * tests/unictype/test-pr_punctuation.c: Likewise.
28437         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28438         * tests/unictype/test-pr_radical.c: Likewise.
28439         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28440         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28441         * tests/unictype/test-pr_space.c: Likewise.
28442         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28443         * tests/unictype/test-pr_titlecase.c: Likewise.
28444         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28445         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28446         * tests/unictype/test-pr_uppercase.c: Likewise.
28447         * tests/unictype/test-pr_variation_selector.c: Likewise.
28448         * tests/unictype/test-pr_white_space.c: Likewise.
28449         * tests/unictype/test-pr_xid_continue.c: Likewise.
28450         * tests/unictype/test-pr_xid_start.c: Likewise.
28451         * tests/unictype/test-pr_zero_width.c: Likewise.
28452         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28453         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28454
28455 2007-11-12  Bruno Haible  <bruno@clisp.org>
28456
28457         Unicode character classification functions.
28458         * lib/unictype.h: New file.
28459         * modules/unictype/base: New file.
28460         * modules/unictype/category-L: New file.
28461         * modules/unictype/category-Lu: New file.
28462         * modules/unictype/category-Ll: New file.
28463         * modules/unictype/category-Lt: New file.
28464         * modules/unictype/category-Lm: New file.
28465         * modules/unictype/category-Lo: New file.
28466         * modules/unictype/category-M: New file.
28467         * modules/unictype/category-Mn: New file.
28468         * modules/unictype/category-Mc: New file.
28469         * modules/unictype/category-Me: New file.
28470         * modules/unictype/category-N: New file.
28471         * modules/unictype/category-Nd: New file.
28472         * modules/unictype/category-Nl: New file.
28473         * modules/unictype/category-No: New file.
28474         * modules/unictype/category-P: New file.
28475         * modules/unictype/category-Pc: New file.
28476         * modules/unictype/category-Pd: New file.
28477         * modules/unictype/category-Ps: New file.
28478         * modules/unictype/category-Pe: New file.
28479         * modules/unictype/category-Pi: New file.
28480         * modules/unictype/category-Pf: New file.
28481         * modules/unictype/category-Po: New file.
28482         * modules/unictype/category-S: New file.
28483         * modules/unictype/category-Sm: New file.
28484         * modules/unictype/category-Sc: New file.
28485         * modules/unictype/category-Sk: New file.
28486         * modules/unictype/category-So: New file.
28487         * modules/unictype/category-Z: New file.
28488         * modules/unictype/category-Zs: New file.
28489         * modules/unictype/category-Zl: New file.
28490         * modules/unictype/category-Zp: New file.
28491         * modules/unictype/category-C: New file.
28492         * modules/unictype/category-Cc: New file.
28493         * modules/unictype/category-Cf: New file.
28494         * modules/unictype/category-Cs: New file.
28495         * modules/unictype/category-Co: New file.
28496         * modules/unictype/category-Cn: New file.
28497         * modules/unictype/category-or: New file.
28498         * modules/unictype/category-of: New file.
28499         * modules/unictype/category-test: New file.
28500         * modules/unictype/category-test-withtable: New file.
28501         * modules/unictype/category-byname: New file.
28502         * modules/unictype/category-none: New file.
28503         * modules/unictype/category-and: New file.
28504         * modules/unictype/category-and-not: New file.
28505         * modules/unictype/category-name: New file.
28506         * modules/unictype/combining-class: New file.
28507         * modules/unictype/category-all: New file.
28508         * modules/unictype/bidicategory-all: New file.
28509         * modules/unictype/bidicategory-byname: New file.
28510         * modules/unictype/bidicategory-name: New file.
28511         * modules/unictype/bidicategory-of: New file.
28512         * modules/unictype/bidicategory-test: New file.
28513         * modules/unictype/decimal-digit: New file.
28514         * modules/unictype/digit: New file.
28515         * modules/unictype/numeric: New file.
28516         * modules/unictype/mirror: New file.
28517         * modules/unictype/property-white-space: New file.
28518         * modules/unictype/property-alphabetic: New file.
28519         * modules/unictype/property-other-alphabetic: New file.
28520         * modules/unictype/property-not-a-character: New file.
28521         * modules/unictype/property-default-ignorable-code-point: New file.
28522         * modules/unictype/property-other-default-ignorable-code-point: New
28523         file.
28524         * modules/unictype/property-deprecated: New file.
28525         * modules/unictype/property-logical-order-exception: New file.
28526         * modules/unictype/property-variation-selector: New file.
28527         * modules/unictype/property-private-use: New file.
28528         * modules/unictype/property-unassigned-code-value: New file.
28529         * modules/unictype/property-uppercase: New file.
28530         * modules/unictype/property-other-uppercase: New file.
28531         * modules/unictype/property-lowercase: New file.
28532         * modules/unictype/property-other-lowercase: New file.
28533         * modules/unictype/property-titlecase: New file.
28534         * modules/unictype/property-soft-dotted: New file.
28535         * modules/unictype/property-id-start: New file.
28536         * modules/unictype/property-other-id-start: New file.
28537         * modules/unictype/property-id-continue: New file.
28538         * modules/unictype/property-other-id-continue: New file.
28539         * modules/unictype/property-xid-start: New file.
28540         * modules/unictype/property-xid-continue: New file.
28541         * modules/unictype/property-pattern-white-space: New file.
28542         * modules/unictype/property-pattern-syntax: New file.
28543         * modules/unictype/property-join-control: New file.
28544         * modules/unictype/property-grapheme-base: New file.
28545         * modules/unictype/property-grapheme-extend: New file.
28546         * modules/unictype/property-other-grapheme-extend: New file.
28547         * modules/unictype/property-grapheme-link: New file.
28548         * modules/unictype/property-bidi-control: New file.
28549         * modules/unictype/property-bidi-left-to-right: New file.
28550         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28551         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28552         * modules/unictype/property-bidi-european-digit: New file.
28553         * modules/unictype/property-bidi-eur-num-separator: New file.
28554         * modules/unictype/property-bidi-eur-num-terminator: New file.
28555         * modules/unictype/property-bidi-arabic-digit: New file.
28556         * modules/unictype/property-bidi-common-separator: New file.
28557         * modules/unictype/property-bidi-block-separator: New file.
28558         * modules/unictype/property-bidi-segment-separator: New file.
28559         * modules/unictype/property-bidi-whitespace: New file.
28560         * modules/unictype/property-bidi-non-spacing-mark: New file.
28561         * modules/unictype/property-bidi-boundary-neutral: New file.
28562         * modules/unictype/property-bidi-pdf: New file.
28563         * modules/unictype/property-bidi-embedding-or-override: New file.
28564         * modules/unictype/property-bidi-other-neutral: New file.
28565         * modules/unictype/property-hex-digit: New file.
28566         * modules/unictype/property-ascii-hex-digit: New file.
28567         * modules/unictype/property-ideographic: New file.
28568         * modules/unictype/property-unified-ideograph: New file.
28569         * modules/unictype/property-radical: New file.
28570         * modules/unictype/property-ids-binary-operator: New file.
28571         * modules/unictype/property-ids-trinary-operator: New file.
28572         * modules/unictype/property-zero-width: New file.
28573         * modules/unictype/property-space: New file.
28574         * modules/unictype/property-non-break: New file.
28575         * modules/unictype/property-iso-control: New file.
28576         * modules/unictype/property-format-control: New file.
28577         * modules/unictype/property-dash: New file.
28578         * modules/unictype/property-hyphen: New file.
28579         * modules/unictype/property-punctuation: New file.
28580         * modules/unictype/property-line-separator: New file.
28581         * modules/unictype/property-paragraph-separator: New file.
28582         * modules/unictype/property-quotation-mark: New file.
28583         * modules/unictype/property-sentence-terminal: New file.
28584         * modules/unictype/property-terminal-punctuation: New file.
28585         * modules/unictype/property-currency-symbol: New file.
28586         * modules/unictype/property-math: New file.
28587         * modules/unictype/property-other-math: New file.
28588         * modules/unictype/property-paired-punctuation: New file.
28589         * modules/unictype/property-left-of-pair: New file.
28590         * modules/unictype/property-combining: New file.
28591         * modules/unictype/property-composite: New file.
28592         * modules/unictype/property-decimal-digit: New file.
28593         * modules/unictype/property-numeric: New file.
28594         * modules/unictype/property-diacritic: New file.
28595         * modules/unictype/property-extender: New file.
28596         * modules/unictype/property-ignorable-control: New file.
28597         * modules/unictype/property-test: New file.
28598         * modules/unictype/property-byname: New file.
28599         * modules/unictype/property-all: New file.
28600         * modules/unictype/scripts: New file.
28601         * modules/unictype/scripts-all: New file.
28602         * modules/unictype/block-of: New file.
28603         * modules/unictype/block-test: New file.
28604         * modules/unictype/block-list: New file.
28605         * modules/unictype/block-all: New file.
28606         * modules/unictype/syntax-c-whitespace: New file.
28607         * modules/unictype/syntax-java-whitespace: New file.
28608         * modules/unictype/syntax-c-ident: New file.
28609         * modules/unictype/syntax-java-ident: New file.
28610         * modules/unictype/ctype-alnum: New file.
28611         * modules/unictype/ctype-alpha: New file.
28612         * modules/unictype/ctype-cntrl: New file.
28613         * modules/unictype/ctype-digit: New file.
28614         * modules/unictype/ctype-graph: New file.
28615         * modules/unictype/ctype-lower: New file.
28616         * modules/unictype/ctype-print: New file.
28617         * modules/unictype/ctype-punct: New file.
28618         * modules/unictype/ctype-space: New file.
28619         * modules/unictype/ctype-upper: New file.
28620         * modules/unictype/ctype-xdigit: New file.
28621         * modules/unictype/ctype-blank: New file.
28622         * lib/unictype/bidi_byname.c: New file.
28623         * lib/unictype/bidi_name.c: New file.
28624         * lib/unictype/bidi_of.c: New file.
28625         * lib/unictype/bidi_test.c: New file.
28626         * lib/unictype/bitmap.h: New file.
28627         * lib/unictype/block_test.c: New file.
28628         * lib/unictype/blocks.c: New file.
28629         * lib/unictype/categ_C.c: New file.
28630         * lib/unictype/categ_Cc.c: New file.
28631         * lib/unictype/categ_Cf.c: New file.
28632         * lib/unictype/categ_Cn.c: New file.
28633         * lib/unictype/categ_Co.c: New file.
28634         * lib/unictype/categ_Cs.c: New file.
28635         * lib/unictype/categ_L.c: New file.
28636         * lib/unictype/categ_Ll.c: New file.
28637         * lib/unictype/categ_Lm.c: New file.
28638         * lib/unictype/categ_Lo.c: New file.
28639         * lib/unictype/categ_Lt.c: New file.
28640         * lib/unictype/categ_Lu.c: New file.
28641         * lib/unictype/categ_M.c: New file.
28642         * lib/unictype/categ_Mc.c: New file.
28643         * lib/unictype/categ_Me.c: New file.
28644         * lib/unictype/categ_Mn.c: New file.
28645         * lib/unictype/categ_N.c: New file.
28646         * lib/unictype/categ_Nd.c: New file.
28647         * lib/unictype/categ_Nl.c: New file.
28648         * lib/unictype/categ_No.c: New file.
28649         * lib/unictype/categ_P.c: New file.
28650         * lib/unictype/categ_Pc.c: New file.
28651         * lib/unictype/categ_Pd.c: New file.
28652         * lib/unictype/categ_Pe.c: New file.
28653         * lib/unictype/categ_Pf.c: New file.
28654         * lib/unictype/categ_Pi.c: New file.
28655         * lib/unictype/categ_Po.c: New file.
28656         * lib/unictype/categ_Ps.c: New file.
28657         * lib/unictype/categ_S.c: New file.
28658         * lib/unictype/categ_Sc.c: New file.
28659         * lib/unictype/categ_Sk.c: New file.
28660         * lib/unictype/categ_Sm.c: New file.
28661         * lib/unictype/categ_So.c: New file.
28662         * lib/unictype/categ_Z.c: New file.
28663         * lib/unictype/categ_Zl.c: New file.
28664         * lib/unictype/categ_Zp.c: New file.
28665         * lib/unictype/categ_Zs.c: New file.
28666         * lib/unictype/categ_and.c: New file.
28667         * lib/unictype/categ_and_not.c: New file.
28668         * lib/unictype/categ_byname.c: New file.
28669         * lib/unictype/categ_name.c: New file.
28670         * lib/unictype/categ_none.c: New file.
28671         * lib/unictype/categ_of.c: New file.
28672         * lib/unictype/categ_or.c: New file.
28673         * lib/unictype/categ_test.c: New file.
28674         * lib/unictype/combining.c: New file.
28675         * lib/unictype/ctype_alnum.c: New file.
28676         * lib/unictype/ctype_alpha.c: New file.
28677         * lib/unictype/ctype_blank.c: New file.
28678         * lib/unictype/ctype_cntrl.c: New file.
28679         * lib/unictype/ctype_digit.c: New file.
28680         * lib/unictype/ctype_graph.c: New file.
28681         * lib/unictype/ctype_lower.c: New file.
28682         * lib/unictype/ctype_print.c: New file.
28683         * lib/unictype/ctype_punct.c: New file.
28684         * lib/unictype/ctype_space.c: New file.
28685         * lib/unictype/ctype_upper.c: New file.
28686         * lib/unictype/ctype_xdigit.c: New file.
28687         * lib/unictype/decdigit.c: New file.
28688         * lib/unictype/digit.c: New file.
28689         * lib/unictype/identsyntaxmap.h: New file.
28690         * lib/unictype/mirror.c: New file.
28691         * lib/unictype/numeric.c: New file.
28692         * lib/unictype/pr_alphabetic.c: New file.
28693         * lib/unictype/pr_ascii_hex_digit.c: New file.
28694         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28695         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28696         * lib/unictype/pr_bidi_block_separator.c: New file.
28697         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28698         * lib/unictype/pr_bidi_common_separator.c: New file.
28699         * lib/unictype/pr_bidi_control.c: New file.
28700         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28701         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28702         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28703         * lib/unictype/pr_bidi_european_digit.c: New file.
28704         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28705         * lib/unictype/pr_bidi_left_to_right.c: New file.
28706         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28707         * lib/unictype/pr_bidi_other_neutral.c: New file.
28708         * lib/unictype/pr_bidi_pdf.c: New file.
28709         * lib/unictype/pr_bidi_segment_separator.c: New file.
28710         * lib/unictype/pr_bidi_whitespace.c: New file.
28711         * lib/unictype/pr_byname.c: New file.
28712         * lib/unictype/pr_byname.gperf: New file.
28713         * lib/unictype/pr_combining.c: New file.
28714         * lib/unictype/pr_composite.c: New file.
28715         * lib/unictype/pr_currency_symbol.c: New file.
28716         * lib/unictype/pr_dash.c: New file.
28717         * lib/unictype/pr_decimal_digit.c: New file.
28718         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28719         * lib/unictype/pr_deprecated.c: New file.
28720         * lib/unictype/pr_diacritic.c: New file.
28721         * lib/unictype/pr_extender.c: New file.
28722         * lib/unictype/pr_format_control.c: New file.
28723         * lib/unictype/pr_grapheme_base.c: New file.
28724         * lib/unictype/pr_grapheme_extend.c: New file.
28725         * lib/unictype/pr_grapheme_link.c: New file.
28726         * lib/unictype/pr_hex_digit.c: New file.
28727         * lib/unictype/pr_hyphen.c: New file.
28728         * lib/unictype/pr_id_continue.c: New file.
28729         * lib/unictype/pr_id_start.c: New file.
28730         * lib/unictype/pr_ideographic.c: New file.
28731         * lib/unictype/pr_ids_binary_operator.c: New file.
28732         * lib/unictype/pr_ids_trinary_operator.c: New file.
28733         * lib/unictype/pr_ignorable_control.c: New file.
28734         * lib/unictype/pr_iso_control.c: New file.
28735         * lib/unictype/pr_join_control.c: New file.
28736         * lib/unictype/pr_left_of_pair.c: New file.
28737         * lib/unictype/pr_line_separator.c: New file.
28738         * lib/unictype/pr_logical_order_exception.c: New file.
28739         * lib/unictype/pr_lowercase.c: New file.
28740         * lib/unictype/pr_math.c: New file.
28741         * lib/unictype/pr_non_break.c: New file.
28742         * lib/unictype/pr_not_a_character.c: New file.
28743         * lib/unictype/pr_numeric.c: New file.
28744         * lib/unictype/pr_other_alphabetic.c: New file.
28745         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28746         * lib/unictype/pr_other_grapheme_extend.c: New file.
28747         * lib/unictype/pr_other_id_continue.c: New file.
28748         * lib/unictype/pr_other_id_start.c: New file.
28749         * lib/unictype/pr_other_lowercase.c: New file.
28750         * lib/unictype/pr_other_math.c: New file.
28751         * lib/unictype/pr_other_uppercase.c: New file.
28752         * lib/unictype/pr_paired_punctuation.c: New file.
28753         * lib/unictype/pr_paragraph_separator.c: New file.
28754         * lib/unictype/pr_pattern_syntax.c: New file.
28755         * lib/unictype/pr_pattern_white_space.c: New file.
28756         * lib/unictype/pr_private_use.c: New file.
28757         * lib/unictype/pr_punctuation.c: New file.
28758         * lib/unictype/pr_quotation_mark.c: New file.
28759         * lib/unictype/pr_radical.c: New file.
28760         * lib/unictype/pr_sentence_terminal.c: New file.
28761         * lib/unictype/pr_soft_dotted.c: New file.
28762         * lib/unictype/pr_space.c: New file.
28763         * lib/unictype/pr_terminal_punctuation.c: New file.
28764         * lib/unictype/pr_test.c: New file.
28765         * lib/unictype/pr_titlecase.c: New file.
28766         * lib/unictype/pr_unassigned_code_value.c: New file.
28767         * lib/unictype/pr_unified_ideograph.c: New file.
28768         * lib/unictype/pr_uppercase.c: New file.
28769         * lib/unictype/pr_variation_selector.c: New file.
28770         * lib/unictype/pr_white_space.c: New file.
28771         * lib/unictype/pr_xid_continue.c: New file.
28772         * lib/unictype/pr_xid_start.c: New file.
28773         * lib/unictype/pr_zero_width.c: New file.
28774         * lib/unictype/scripts.c: New file.
28775         * lib/unictype/sy_c_ident.c: New file.
28776         * lib/unictype/sy_c_whitespace.c: New file.
28777         * lib/unictype/sy_java_ident.c: New file.
28778         * lib/unictype/sy_java_whitespace.c: New file.
28779
28780         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28781         Unicode 5.0.0.
28782         * lib/unictype/blocks.h: Likewise.
28783         * lib/unictype/categ_C.h: Likewise.
28784         * lib/unictype/categ_Cc.h: Likewise.
28785         * lib/unictype/categ_Cf.h: Likewise.
28786         * lib/unictype/categ_Cn.h: Likewise.
28787         * lib/unictype/categ_Co.h: Likewise.
28788         * lib/unictype/categ_Cs.h: Likewise.
28789         * lib/unictype/categ_L.h: Likewise.
28790         * lib/unictype/categ_Ll.h: Likewise.
28791         * lib/unictype/categ_Lm.h: Likewise.
28792         * lib/unictype/categ_Lo.h: Likewise.
28793         * lib/unictype/categ_Lt.h: Likewise.
28794         * lib/unictype/categ_Lu.h: Likewise.
28795         * lib/unictype/categ_M.h: Likewise.
28796         * lib/unictype/categ_Mc.h: Likewise.
28797         * lib/unictype/categ_Me.h: Likewise.
28798         * lib/unictype/categ_Mn.h: Likewise.
28799         * lib/unictype/categ_N.h: Likewise.
28800         * lib/unictype/categ_Nd.h: Likewise.
28801         * lib/unictype/categ_Nl.h: Likewise.
28802         * lib/unictype/categ_No.h: Likewise.
28803         * lib/unictype/categ_P.h: Likewise.
28804         * lib/unictype/categ_Pc.h: Likewise.
28805         * lib/unictype/categ_Pd.h: Likewise.
28806         * lib/unictype/categ_Pe.h: Likewise.
28807         * lib/unictype/categ_Pf.h: Likewise.
28808         * lib/unictype/categ_Pi.h: Likewise.
28809         * lib/unictype/categ_Po.h: Likewise.
28810         * lib/unictype/categ_Ps.h: Likewise.
28811         * lib/unictype/categ_S.h: Likewise.
28812         * lib/unictype/categ_Sc.h: Likewise.
28813         * lib/unictype/categ_Sk.h: Likewise.
28814         * lib/unictype/categ_Sm.h: Likewise.
28815         * lib/unictype/categ_So.h: Likewise.
28816         * lib/unictype/categ_Z.h: Likewise.
28817         * lib/unictype/categ_Zl.h: Likewise.
28818         * lib/unictype/categ_Zp.h: Likewise.
28819         * lib/unictype/categ_Zs.h: Likewise.
28820         * lib/unictype/categ_of.h: Likewise.
28821         * lib/unictype/combining.h: Likewise.
28822         * lib/unictype/ctype_alnum.h: Likewise.
28823         * lib/unictype/ctype_alpha.h: Likewise.
28824         * lib/unictype/ctype_blank.h: Likewise.
28825         * lib/unictype/ctype_cntrl.h: Likewise.
28826         * lib/unictype/ctype_digit.h: Likewise.
28827         * lib/unictype/ctype_graph.h: Likewise.
28828         * lib/unictype/ctype_lower.h: Likewise.
28829         * lib/unictype/ctype_print.h: Likewise.
28830         * lib/unictype/ctype_punct.h: Likewise.
28831         * lib/unictype/ctype_space.h: Likewise.
28832         * lib/unictype/ctype_upper.h: Likewise.
28833         * lib/unictype/ctype_xdigit.h: Likewise.
28834         * lib/unictype/decdigit.h: Likewise.
28835         * lib/unictype/digit.h: Likewise.
28836         * lib/unictype/mirror.h: Likewise.
28837         * lib/unictype/numeric.h: Likewise.
28838         * lib/unictype/pr_alphabetic.h: Likewise.
28839         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28840         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28841         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28842         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28843         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28844         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28845         * lib/unictype/pr_bidi_control.h: Likewise.
28846         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28847         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28848         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28849         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28850         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28851         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28852         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28853         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28854         * lib/unictype/pr_bidi_pdf.h: Likewise.
28855         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28856         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28857         * lib/unictype/pr_combining.h: Likewise.
28858         * lib/unictype/pr_composite.h: Likewise.
28859         * lib/unictype/pr_currency_symbol.h: Likewise.
28860         * lib/unictype/pr_dash.h: Likewise.
28861         * lib/unictype/pr_decimal_digit.h: Likewise.
28862         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28863         * lib/unictype/pr_deprecated.h: Likewise.
28864         * lib/unictype/pr_diacritic.h: Likewise.
28865         * lib/unictype/pr_extender.h: Likewise.
28866         * lib/unictype/pr_format_control.h: Likewise.
28867         * lib/unictype/pr_grapheme_base.h: Likewise.
28868         * lib/unictype/pr_grapheme_extend.h: Likewise.
28869         * lib/unictype/pr_grapheme_link.h: Likewise.
28870         * lib/unictype/pr_hex_digit.h: Likewise.
28871         * lib/unictype/pr_hyphen.h: Likewise.
28872         * lib/unictype/pr_id_continue.h: Likewise.
28873         * lib/unictype/pr_id_start.h: Likewise.
28874         * lib/unictype/pr_ideographic.h: Likewise.
28875         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28876         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28877         * lib/unictype/pr_ignorable_control.h: Likewise.
28878         * lib/unictype/pr_iso_control.h: Likewise.
28879         * lib/unictype/pr_join_control.h: Likewise.
28880         * lib/unictype/pr_left_of_pair.h: Likewise.
28881         * lib/unictype/pr_line_separator.h: Likewise.
28882         * lib/unictype/pr_logical_order_exception.h: Likewise.
28883         * lib/unictype/pr_lowercase.h: Likewise.
28884         * lib/unictype/pr_math.h: Likewise.
28885         * lib/unictype/pr_non_break.h: Likewise.
28886         * lib/unictype/pr_not_a_character.h: Likewise.
28887         * lib/unictype/pr_numeric.h: Likewise.
28888         * lib/unictype/pr_other_alphabetic.h: Likewise.
28889         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28890         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28891         * lib/unictype/pr_other_id_continue.h: Likewise.
28892         * lib/unictype/pr_other_id_start.h: Likewise.
28893         * lib/unictype/pr_other_lowercase.h: Likewise.
28894         * lib/unictype/pr_other_math.h: Likewise.
28895         * lib/unictype/pr_other_uppercase.h: Likewise.
28896         * lib/unictype/pr_paired_punctuation.h: Likewise.
28897         * lib/unictype/pr_paragraph_separator.h: Likewise.
28898         * lib/unictype/pr_pattern_syntax.h: Likewise.
28899         * lib/unictype/pr_pattern_white_space.h: Likewise.
28900         * lib/unictype/pr_private_use.h: Likewise.
28901         * lib/unictype/pr_punctuation.h: Likewise.
28902         * lib/unictype/pr_quotation_mark.h: Likewise.
28903         * lib/unictype/pr_radical.h: Likewise.
28904         * lib/unictype/pr_sentence_terminal.h: Likewise.
28905         * lib/unictype/pr_soft_dotted.h: Likewise.
28906         * lib/unictype/pr_space.h: Likewise.
28907         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28908         * lib/unictype/pr_titlecase.h: Likewise.
28909         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28910         * lib/unictype/pr_unified_ideograph.h: Likewise.
28911         * lib/unictype/pr_uppercase.h: Likewise.
28912         * lib/unictype/pr_variation_selector.h: Likewise.
28913         * lib/unictype/pr_white_space.h: Likewise.
28914         * lib/unictype/pr_xid_continue.h: Likewise.
28915         * lib/unictype/pr_xid_start.h: Likewise.
28916         * lib/unictype/pr_zero_width.h: Likewise.
28917         * lib/unictype/scripts.h: Likewise.
28918         * lib/unictype/scripts_byname.gperf: Likewise.
28919         * lib/unictype/sy_c_ident.h: Likewise.
28920         * lib/unictype/sy_c_whitespace.h: Likewise.
28921         * lib/unictype/sy_java_ident.h: Likewise.
28922         * lib/unictype/sy_java_whitespace.h: Likewise.
28923
28924         * lib/unictype/Makefile: New file.
28925         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28926         glibc.
28927         * lib/unictype/3level.h: New file, copied from glibc.
28928         * lib/unictype/3levelbit.h: New file.
28929
28930 2007-11-11  Bruno Haible  <bruno@clisp.org>
28931
28932         * modules/gperf: New file.
28933         * modules/iconv_open (Depends-on): Add it.
28934         (Makefile.am): Remove the GPERF definition.
28935
28936 2007-11-11  Bruno Haible  <bruno@clisp.org>
28937
28938         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28939         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28940
28941 2007-11-11  Bruno Haible  <bruno@clisp.org>
28942
28943         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28944         (usage): Remove function.
28945
28946 2007-11-11  Bruno Haible  <bruno@clisp.org>
28947
28948         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28949         gl_FUNC_CEILF_LIBS.
28950         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28951         gl_FUNC_CEIL_LIBS.
28952         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28953         gl_FUNC_CEILL_LIBS.
28954         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28955         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28956         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28957
28958 2007-11-11  Bruno Haible  <bruno@clisp.org>
28959
28960         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28961         roundf were declared but do not exist on functions.
28962         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28963         roundl were declared but do not exist on functions.
28964         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28965         HAVE_FLOORL_AND_CEILL, respectively.
28966         Needed for Sun C on Solaris 10.
28967
28968 2007-11-11  Bruno Haible  <bruno@clisp.org>
28969
28970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28971         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28972         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28973         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28974         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28975         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28976         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28977         HAVE_DECL_ROUNDF.
28978         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28979         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28981         of HAVE_DECL_ROUND*.
28982         * modules/math (Makefile.am): Update.
28983
28984 2007-11-10  Bruno Haible  <bruno@clisp.org>
28985
28986         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28987         ptrdiff_t as m4/intl.m4.
28988
28989 2007-11-10  Jim Meyering  <meyering@redhat.com>
28990
28991         Avoid link failure for the argmatch test.
28992         * tests/test-argmatch.c (usage): Define function to avoid a link
28993         failure: argmatch_die requires a usage function.
28994
28995 2007-11-09  Bruno Haible  <bruno@clisp.org>
28996
28997         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28998         * doc/functions/vsnprintf.texi: Likewise.
28999         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29000         with a size argument < 2.
29001
29002 2007-11-09  Bruno Haible  <bruno@clisp.org>
29003
29004         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29005         buffer. Fixes an inefficiency introduced on 2007-11-03.
29006
29007 2007-11-09  Bruno Haible  <bruno@clisp.org>
29008
29009         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29010         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29011
29012 2007-11-08  Jim Meyering  <meyering@redhat.com>
29013
29014         Change cache variable name prefix "jm_" to "gl_" everywhere.
29015         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29016         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29017         * m4/uptime.m4: s/gl_/jm_/
29018
29019 2007-11-07  Bruno Haible  <bruno@clisp.org>
29020
29021         Update to GNU gettext 0.17.
29022         * m4/intl.m4: Update to GNU gettext 0.17.
29023         * m4/po.m4: Likewise.
29024         * modules/gettext (Files): Remove m4/ulonglong.m4.
29025         (configure.ac): Require gettext infrastructure from version 0.17.
29026
29027 2007-11-06  Bruno Haible  <bruno@clisp.org>
29028
29029         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29030         symbolic values are not defined in a public header.
29031         * lib/freadable.c (freadable) [QNX]: Likewise.
29032         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29033         * lib/freading.c (freading) [QNX]: Likewise.
29034         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29035         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29036         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29037         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29038         Reported by Alain Magloire.
29039
29040         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29041
29042 2007-11-05  Bruno Haible  <bruno@clisp.org>
29043
29044         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29045         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29046         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29047         Reported by Eric Blake.
29048
29049 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29050             Bruno Haible  <bruno@clisp.org>
29051
29052         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29053         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29054         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29055         (malloc): Undefine also before including <stdlib.h>.
29056         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29057         Needed on OSF/1 4.0.
29058
29059 2007-11-05  Jim Meyering  <meyering@redhat.com>
29060
29061         git-version-gen: sync from coreutils.
29062         * build-aux/git-version-gen: Add comments.
29063         Change the first '-' to '.' in the snapshot version string,
29064         e.g., 6.9-377-08144 -> 6.9.377-08144
29065         Remove first parameter.
29066         Don't declare a version "-dirty" merely because a time
29067         stamp has changed.
29068
29069 2007-11-04  Bruno Haible  <bruno@clisp.org>
29070
29071         * lib/lock.h: Protect all macro definitions containing an 'if'
29072         statement through a "do { ... } while (0)".
29073         * lib/tls.h: Likewise.
29074
29075 2007-11-04  Bruno Haible  <bruno@clisp.org>
29076
29077         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29078
29079 2007-11-04  Bruno Haible  <bruno@clisp.org>
29080
29081         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29082         * modules/fprintf-posix (Depends-on): Add nocrash.
29083         * modules/snprintf-posix (Depends-on): Likewise.
29084         * modules/sprintf-posix (Depends-on): Likewise.
29085         * modules/vasnprintf-posix (Depends-on): Likewise.
29086         * modules/vasprintf-posix (Depends-on): Likewise.
29087         * modules/vfprintf-posix (Depends-on): Likewise.
29088         * modules/vsnprintf-posix (Depends-on): Likewise.
29089         * modules/vsprintf-posix (Depends-on): Likewise.
29090         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29091         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29092         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29093         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29094         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29095         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29096         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29097
29098 2007-11-04  Bruno Haible  <bruno@clisp.org>
29099
29100         * modules/nocrash: New file.
29101         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29102         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29103
29104 2007-11-04  Bruno Haible  <bruno@clisp.org>
29105
29106         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29107         precision handling.
29108         * tests/test-vasprintf-posix.c (test_function): Likewise.
29109         * tests/test-snprintf-posix.h (test_function): Likewise.
29110         * tests/test-sprintf-posix.h (test_function): Likewise.
29111
29112         Fix *printf behaviour for large precisions on mingw and BeOS.
29113         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29114         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29116         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29118         gl_PRINTF_PRECISION and test its result. Invoke
29119         gl_PREREQ_VASNPRINTF_PRECISION.
29120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29127         * doc/functions/fprintf.texi: Update.
29128         * doc/functions/printf.texi: Update.
29129         * doc/functions/snprintf.texi: Update.
29130         * doc/functions/sprintf.texi: Update.
29131         * doc/functions/vfprintf.texi: Update.
29132         * doc/functions/vprintf.texi: Update.
29133         * doc/functions/vsnprintf.texi: Update.
29134         * doc/functions/vsprintf.texi: Update.
29135
29136 2007-11-04  Bruno Haible  <bruno@clisp.org>
29137
29138         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29139
29140 2007-11-04  Bruno Haible  <bruno@clisp.org>
29141
29142         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29143         Reported by Sylvain Beucler <beuc@gnu.org>.
29144
29145 2007-11-03  Bruno Haible  <bruno@clisp.org>
29146
29147         * tests/test-fprintf-posix2.sh: New file.
29148         * tests/test-fprintf-posix2.c: New file.
29149         * modules/fprintf-posix-tests (Files): Add them.
29150         (TESTS): Add test-fprintf-posix2.sh.
29151         (configure.ac): Check for getrlimit and setrlimit.
29152         (check_PROGRAMS): Add test-fprintf-posix2.
29153
29154         * tests/test-printf-posix2.sh: New file.
29155         * tests/test-printf-posix2.c: New file.
29156         * modules/printf-posix-tests (Files): Add them.
29157         (TESTS): Add test-printf-posix2.sh.
29158         (configure.ac): Check for getrlimit and setrlimit.
29159         (check_PROGRAMS): Add test-printf-posix2.
29160
29161         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29162         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29163         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29164         (decode_double): New function, copied from decode_long_double.
29165         (scale10_round_decimal_decoded): New function, extracted from
29166         scale10_round_decimal_long_double.
29167         (scale10_round_decimal_long_double): Use it.
29168         (scale10_round_decimal_double): New function.
29169         (floorlog10): New function.
29170         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29172         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29174         gl_PRINTF_ENOMEM and test its result. Invoke
29175         gl_PREREQ_VASNPRINTF_ENOMEM.
29176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29183         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29184         * modules/snprintf-posix (Depends-on): Likewise.
29185         * modules/sprintf-posix (Depends-on): Likewise.
29186         * modules/vasnprintf-posix (Depends-on): Likewise.
29187         * modules/vasprintf-posix (Depends-on): Likewise.
29188         * modules/vfprintf-posix (Depends-on): Likewise.
29189         * modules/vsnprintf-posix (Depends-on): Likewise.
29190         * modules/vsprintf-posix (Depends-on): Likewise.
29191         * doc/functions/fprintf.texi: Update.
29192         * doc/functions/printf.texi: Update.
29193         * doc/functions/snprintf.texi: Update.
29194         * doc/functions/sprintf.texi: Update.
29195         * doc/functions/vfprintf.texi: Update.
29196         * doc/functions/vprintf.texi: Update.
29197         * doc/functions/vsnprintf.texi: Update.
29198         * doc/functions/vsprintf.texi: Update.
29199
29200 2007-11-03  Bruno Haible  <bruno@clisp.org>
29201
29202         * modules/frexp-nolibm-tests: New file.
29203
29204         * modules/frexp-nolibm: New file.
29205         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29206
29207 2007-11-03  Bruno Haible  <bruno@clisp.org>
29208
29209         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29210         value is C99 compliant.
29211         Needed for OSF/1 5.1.
29212
29213 2007-11-03  Bruno Haible  <bruno@clisp.org>
29214
29215         Fix out-of-memory handling of vasnprintf.
29216         * lib/printf-parse.c: Include <errno.h>.
29217         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29218         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29219         is already set.
29220
29221 2007-11-02  Eric Blake  <ebb9@byu.net>
29222
29223         Fix tests on cygwin.
29224         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29225
29226 2007-11-01  Bruno Haible  <bruno@clisp.org>
29227
29228         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29229         warning.
29230         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29231         needed for POSIX compatibility.
29232
29233 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29234
29235         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29236         for compatibility with GNU.
29237
29238 2007-11-01  Bruno Haible  <bruno@clisp.org>
29239
29240         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29241         (putenv): Renamed from rpl_putenv. Change argument type from
29242         'const char *' to 'char *'.
29243         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29244         of defining putenv in config.h, just set REPLACE_PUTENV.
29245         * modules/putenv (Depends-on): Add stdlib.
29246         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29247         (Include): Use <stdlib.h>.
29248         * lib/stdlib.in.h (putenv): New declaration.
29249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29250         REPLACE_PUTENV.
29251         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29252         REPLACE_PUTENV.
29253         Needed for MacOS X 10.5.0.
29254         Reported by Peter O'Gorman <peter@pogma.com>.
29255
29256 2007-11-01  Jim Meyering  <meyering@redhat.com>
29257
29258         Treat an empty date string exactly like "0".
29259         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29260         if the remaining date string (to be parsed) is empty, use "0".
29261         Reported by Mischa Molhoek and discussed in this thread:
29262         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29263
29264 2007-10-31  Bruno Haible  <bruno@clisp.org>
29265
29266         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29267         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29268         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29269         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29270         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29271         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29272
29273 2007-10-31  Bruno Haible  <bruno@clisp.org>
29274
29275         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29276         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29277         (AC_TYPE_LONG_LONG_INT): Use it.
29278         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29279         it as well.
29280         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29281         to m4/longlong.m4.
29282         * modules/stdint (Files): Remove m4/ulonglong.m4.
29283         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29284         m4/ulonglong.m4.
29285         * modules/strtoumax (Files): Likewise.
29286
29287 2007-10-30  Bruno Haible  <bruno@clisp.org>
29288
29289         * modules/xvasprintf-posix: New file.
29290         Suggested by Eric Blake.
29291
29292 2007-10-30  Bruno Haible  <bruno@clisp.org>
29293
29294         * modules/xprintf-posix-tests: New file.
29295         * tests/test-xprintf-posix.sh: New file.
29296         * tests/test-xprintf-posix.c: New file.
29297         * tests/test-xfprintf-posix.c: New file.
29298
29299         * modules/xprintf-posix: New file.
29300
29301 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29302
29303         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29304         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29305         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29306
29307 2007-10-29  Bruno Haible  <bruno@clisp.org>
29308
29309         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29310         contain the special marker '_cv_'.
29311         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29312         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29313         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29314         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29315         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29316         Reported by Ralf Wildenhues.
29317
29318 2007-10-29  Bruno Haible  <bruno@clisp.org>
29319
29320         * gnulib-tool (func_import): When --lgpl is not specified, set
29321         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29322         GPLv3.
29323         Reported by Simon Josefsson.
29324
29325 2007-10-28  Bruno Haible  <bruno@clisp.org>
29326
29327         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29328         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29329         HAVE_DECL_ISFINITE.
29330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29331         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29332         HAVE_DECL_ISFINITE.
29333
29334 2007-10-28  Bruno Haible  <bruno@clisp.org>
29335
29336         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29337         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29338
29339 2007-10-28  Bruno Haible  <bruno@clisp.org>
29340
29341         Fix link errors with Sun C 5.0 on Solaris 10.
29342         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29343         function is declared but not present in the compiler's libm.
29344         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29345         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29346         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29347         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29348         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29349         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29350         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29352         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29353         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29354         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29355         HAVE_DECL_FLOORL.
29356
29357 2007-10-28  Bruno Haible  <bruno@clisp.org>
29358
29359         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29360         gl_FUNC_FLOORL. Cache the result.
29361         (gl_FUNC_FLOORL): Use it.
29362         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29363         gl_FUNC_CEILL. Cache the result.
29364         (gl_FUNC_CEILL): Use it.
29365
29366         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29367         gl_FUNC_FLOOR. Cache the result.
29368         (gl_FUNC_FLOOR): Use it.
29369         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29370         gl_FUNC_CEIL. Cache the result.
29371         (gl_FUNC_CEIL): Use it.
29372
29373         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29374         gl_FUNC_FLOORF. Cache the result.
29375         (gl_FUNC_FLOORF): Use it.
29376         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29377         gl_FUNC_CEILF. Cache the result.
29378         (gl_FUNC_CEILF): Use it.
29379
29380 2007-10-28  Bruno Haible  <bruno@clisp.org>
29381
29382         * gnulib-tool: Allow specifying the LGPL version number through
29383         --lgpl=2 or --lgpl=3.
29384         (func_usage): Document --lgpl with argument.
29385         Handle --lgpl=... arguments.
29386         (func_import): Recognize also gl_LGPL calls with an argument. When
29387         --lgpl=2 is used and the module's license is just LGPL, report an
29388         error. Set sed_transform_lib_file according to the lgpl variable. In
29389         the generated files, use --lgpl or gl_LGPL invocations with argument,
29390         if necessary.
29391         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29392         an LGPv2+ license.
29393         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29394         gl_LGPL macro.
29395
29396 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29397             Bruno Haible  <bruno@clisp.org>
29398
29399         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29400         (u16_uctomb_aux): Likewise.
29401         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29402         !HAVE_INLINE.
29403         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29404
29405 2007-10-28  Bruno Haible  <bruno@clisp.org>
29406
29407         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29408         Invoke AM_GETTEXT_OPTION if it exists.
29409         * modules/vasprintf: Likewise.
29410         * modules/verror: Likewise.
29411         * modules/xprintf: Likewise.
29412         * modules/xvasprintf: Likewise.
29413
29414 2007-10-27  Ben Pfaff  <blp@gnu.org>
29415
29416         * lib/math.in.h: Define isfinite macro and prototypes for
29417         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29418         implementations.
29419         * m4/math_h.m4: New substitutions for isfinite module.
29420         * lib/isfinite.c: New file.
29421         * m4/isfinite.m4: New file.
29422         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29423         * modules/isfinite: New file.
29424         * modules/isfinite-tests: New file.
29425         * tests/tests-isfinite.c: New file.
29426         * doc/functions/isfinite.texi: Mention isfinite module.
29427         * MODULES.html.sh: Mention new module.
29428
29429 2007-10-27  Ben Pfaff  <blp@gnu.org>
29430
29431         Ralf Wildenhues reported that Tru64 4.0D declares the round
29432         functions but does not have definitions.
29433         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29434         cannot be found in any library, set the output variable to
29435         "missing" instead of "".
29436         * m4/round.m4: Also use our substitute if we cannot find round in
29437         any library, even if it is declared.
29438         * m4/roundf.m4: Likewise for roundf.
29439         * m4/roundl.m4: Likewise for roundl.
29440         * lib/math.in.h: Undefine roundf, round, roundl before defining
29441         their replacements, to allow for hypothetical systems where these
29442         may be defined as macros but not available in libraries.
29443
29444 2007-10-27  Bruno Haible  <bruno@clisp.org>
29445
29446         * doc/gnulib.texi: Invoke @firstparagraphindent.
29447         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29448         changes in gnulib.
29449         (Source changes): New section.
29450
29451 2007-10-26  Bruno Haible  <bruno@clisp.org>
29452
29453         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29454         borrowed from autoconf.
29455
29456 2007-10-26  Bruno Haible  <bruno@clisp.org>
29457
29458         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29459         strerror returned the empty string. Needed on HP-UX 11.00.
29460
29461 2007-10-24  Micah Cowan  <micah@cowan.name>
29462
29463         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29464         * build-aux/bootstrap: Remove support for now-unnecessary option,
29465         --cvs-user, and envvars CVS_USER, CVS_RSH.
29466
29467 2007-10-24  Jim Meyering  <meyering@redhat.com>
29468
29469         Avoid diagnostics from sha1sum when there is no cached checksum.
29470         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29471         if the po.s1 file hasn't been created yet.
29472
29473         * build-aux/bootstrap: Sync from coreutils:
29474         2007-10-24  Jim Meyering  <meyering@redhat.com>
29475         Get gnulib from the git repository, not from an obsolete cvs one.
29476         * build-aux/bootstrap: Suggestion from Micah Cowan.
29477         2007-10-04  Jim Meyering  <jim@meyering.net>
29478         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29479         (update_po_files): Work also when there are no .po files in po/.
29480
29481 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29482
29483         * README: Append ".git" to git and cg examples.
29484         Problem reported by Benoit Sigoure.
29485
29486 2007-10-23  Micah Cowan  <micah@cowan.name>
29487
29488         * users.txt: Add wget.
29489
29490 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29491
29492         Fix linking of some unistdio tests on FreeBSD.
29493         * modules/unistdio/u16-vsnprintf-tests
29494         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29495         * modules/unistdio/u16-vsprintf-tests
29496         (test_u16_vsnprintf1_LDADD): Likewise.
29497         * modules/unistdio/u32-vsnprintf-tests
29498         (test_u32_vsnprintf1_LDADD): Likewise.
29499         * modules/unistdio/u32-vsprintf-tests
29500         (test_u32_vsprintf1_LDADD): Likewise.
29501         * modules/unistdio/u8-vsnprintf-tests
29502         (test_u8_vsnprintf1_LDADD): Likewise.
29503         * modules/unistdio/u8-vsprintf-tests
29504         (test_u8_vsprintf1_LDADD): Likewise.
29505         * modules/unistdio/ulc-vsnprintf-tests
29506         (test_ulc_vsnprintf1_LDADD): Likewise.
29507         * modules/unistdio/ulc-vsprintf-tests
29508         (test_ulc_vsprintf1_LDADD): Likewise.
29509
29510         Fix linking of some uniconv tests on FreeBSD.
29511         * modules/uniconv/u16-conv-from-enc-tests
29512         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29513         * modules/uniconv/u16-conv-to-enc-tests
29514         (test_u16_conv_to_enc_LDADD): Likewise.
29515         * modules/uniconv/u16-strconv-from-enc-tests
29516         (test_u16_strconv_from_enc_LDADD): Likewise.
29517         * modules/uniconv/u16-strconv-to-enc-tests
29518         (test_u16_strconv_to_enc_LDADD): Likewise.
29519         * modules/uniconv/u32-conv-from-enc-tests
29520         (test_u32_conv_from_enc_LDADD): Likewise.
29521         * modules/uniconv/u32-conv-to-enc-tests
29522         (test_u32_conv_to_enc_LDADD): Likewise.
29523         * modules/uniconv/u32-strconv-from-enc-tests
29524         (test_u32_strconv_from_enc_LDADD): Likewise.
29525         * modules/uniconv/u32-strconv-to-enc-tests
29526         (test_u32_strconv_to_enc_LDADD): Likewise.
29527         * modules/uniconv/u8-conv-from-enc-tests
29528         (test_u8_conv_from_enc_LDADD): Likewise.
29529         * modules/uniconv/u8-conv-to-enc-tests
29530         (test_u8_conv_to_enc_LDADD): Likewise.
29531         * modules/uniconv/u8-strconv-from-enc-tests
29532         (test_u8_strconv_from_enc_LDADD): Likewise.
29533         * modules/uniconv/u8-strconv-to-enc-tests
29534         (test_u8_strconv_to_enc_LDADD): Likewise.
29535
29536 2007-10-22  Bruno Haible  <bruno@clisp.org>
29537
29538         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29539         size.
29540
29541 2007-10-22  Eric Blake  <ebb9@byu.net>
29542
29543         Tweak x*printf documentation.
29544         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29545         variable name and comments.
29546         Suggested by Bruno Haible.
29547
29548 2007-10-22  Bruno Haible  <bruno@clisp.org>
29549
29550         * lib/acl.c (copy_acl): Fix file name in comment.
29551
29552 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29553
29554         Fix Tru64 problem with stdbool.h.
29555         * lib/stdbool.in.h (false, true):
29556         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29557         Don't declare as an enum in this situation; it runs afoul of Tru64.
29558         Problem reported by Steven M. Schweda in
29559         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29560
29561 2007-10-22  Eric Blake  <ebb9@byu.net>
29562
29563         Also wrap vf?printf.
29564         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29565         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29566         (xvprintf, xvfprintf): New functions.
29567
29568 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29569
29570         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29571         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29572
29573         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29574         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29575
29576 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29577
29578         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29579         by Bruno Haible.
29580
29581 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29582
29583         * lib/getloadavg.c
29584         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29585         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29586
29587         * tests/test-i-ring.c: Work for C89.
29588
29589 2007-10-22  Bruno Haible  <bruno@clisp.org>
29590
29591         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29592         -1u, in preprocessor expression, so that we don't test for the bug
29593         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29595
29596 2007-10-22  Eric Blake  <ebb9@byu.net>
29597
29598         * tests/test-yesno.sh: Silence stderr during test.
29599
29600 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29601
29602         * modules/crypto/gc-camellia: New file.
29603
29604         * m4/gc-camellia.m4: New file.
29605
29606         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29607
29608         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29609
29610 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29611
29612         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29613         --help to stdout.  Reported by sms@antinode.org (Steven
29614         M. Schweda).
29615
29616 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29617
29618         * users.txt: Fix link to libksba.
29619
29620 2007-10-21  Ben Pfaff  <blp@gnu.org>
29621
29622         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29623         round.c roundf implementation that depends on floorf and ceilf to
29624         be tested unconditionally.
29625
29626 2007-10-21  Ben Pfaff  <blp@gnu.org>
29627
29628         * m4/check-libm-func.m4: Removed.
29629         * m4/check-math-lib.m4: New file.
29630         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29631         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29632         definition and lack of AC_LIBOBJ([roundf]).
29633         * m4/roundl.m4: Ditto, and similarly for roundl.
29634         * modules/round: Reference new m4 file.
29635         * modules/roundf: Ditto.
29636         * modules/roundl: Ditto.
29637         * tests/test-round2.c (main): Use ROUND instead of round.
29638         Bug report from Bruno Haible.
29639
29640 2007-10-21  Bruno Haible  <bruno@clisp.org>
29641
29642         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29643         context.
29644
29645 2007-10-21  Bruno Haible  <bruno@clisp.org>
29646
29647         * tests/test-wcwidth.c (main): Allow negative result for some control
29648         characters.
29649
29650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29651         Needed on OSF/1 5.1.
29652
29653 2007-10-21  Bruno Haible  <bruno@clisp.org>
29654
29655         * tests/test-floorf1.c: Include isnanf.h.
29656         (main): Use isnanf() instead of isnan().
29657         * tests/test-ceilf1.c: Include isnanf.h.
29658         (main): Use isnanf() instead of isnan().
29659         * tests/test-truncf1.c: Include isnanf.h.
29660         (main): Use isnanf() instead of isnan().
29661         * tests/test-roundf1.c: Include isnanf.h.
29662         (main): Use isnanf() instead of isnan().
29663
29664 2007-10-21  Eric Blake  <ebb9@byu.net>
29665
29666         * users.txt: Update URL for m4.
29667
29668 2007-10-21  Bruno Haible  <bruno@clisp.org>
29669
29670         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29671
29672 2007-10-21  Bruno Haible  <bruno@clisp.org>
29673
29674         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29675         Git's management files if the CVS files are not present.
29676
29677 2007-10-20  Bruno Haible  <bruno@clisp.org>
29678
29679         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29680         gcc-3.4.x.
29681
29682 2007-10-20  Ben Pfaff  <blp@gnu.org>
29683
29684         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29685         implementations.
29686         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29687         * lib/round.c: New file.
29688         * lib/roundf.c: New file.
29689         * lib/roundl.c: New file.
29690         * m4/round.m4: New file.
29691         * m4/roundf.m4: New file.
29692         * m4/roundl.m4: New file.
29693         * m4/check-libm-func-m4: New file.
29694         * modules/math: Replace round, roundf, roundl related @VARS@ in
29695         math.in.h.
29696         * modules/round: New file.
29697         * modules/round-tests: New file.
29698         * modules/roundf: New file.
29699         * modules/roundf-tests: New file.
29700         * modules/roundl: New file.
29701         * modules/roundl-tests: New file.
29702         * tests/test-round1.c: New file.
29703         * tests/test-round2.c: New file.
29704         * tests/test-roundf1.c: New file.
29705         * tests/test-roundf2.c: New file.
29706         * tests/test-roundl.c: New file.
29707         * doc/functions/round.texi: Mention round module.
29708         * doc/functions/roundf.texi: Mention roundf module.
29709         * doc/functions/roundl.texi: Mention roundl module.
29710         * MODULES.html.sh: Mention new modules.
29711         Thanks to Bruno Haible for suggestions.
29712
29713 2007-10-20  Jim Meyering  <meyering@redhat.com>
29714
29715         * lib/xprintf.c: Include <config.h> unconditionally.
29716
29717         Change xprintf's license to GPL.
29718         * modules/xprintf (License): s/LGPL/GPL/, since this module
29719         depends on modules (exit and exitfail) which are GPL.
29720         Suggestion from Bruno Haible.
29721
29722         xprintf fixes.
29723         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29724         Use a clearer diagnostic.
29725         Patch from Bruno Haible.
29726
29727 2007-10-20  Bruno Haible  <bruno@clisp.org>
29728
29729         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29730         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29732
29733 2007-10-20  Bruno Haible  <bruno@clisp.org>
29734
29735         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29736         precision in the comparison result > x - 1 or similar.
29737         * tests/test-ceilf2.c (correct_result_p): Likewise.
29738         * tests/test-truncf2.c (correct_result_p): Likewise.
29739         * tests/test-trunc2.c (correct_result_p): Likewise.
29740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29741
29742 2007-10-20  Bruno Haible  <bruno@clisp.org>
29743
29744         * modules/ceil: New file.
29745         * m4/ceil.m4: New file.
29746         * doc/functions/ceil.texi: Mention the 'ceil' module.
29747
29748 2007-10-20  Bruno Haible  <bruno@clisp.org>
29749
29750         * modules/floor: New file.
29751         * m4/floor.m4: New file.
29752         * doc/functions/floor.texi: Mention the 'floor' module.
29753
29754 2007-10-20  Bruno Haible  <bruno@clisp.org>
29755
29756         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29757         of %a.
29758         * modules/floorf-tests (Depends-on): Likewise.
29759         * modules/truncf-tests (Depends-on): Likewise.
29760         * modules/trunc-tests (Depends-on): Likewise.
29761         Reported by Ben Pfaff.
29762
29763 2007-10-19  Jim Meyering  <meyering@redhat.com>
29764
29765         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29766         Don't bother testing specific errno values.  Just test ferror.
29767
29768         New module: xprintf
29769         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29770
29771 2007-10-19  Bruno Haible  <bruno@clisp.org>
29772
29773         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29774         syntax.
29775         * modules/javaexec (Makefile.am): Likewise.
29776         * modules/relocatable-prog (Makefile.am): Likewise.
29777         Suggested by Jim Meyering.
29778
29779 2007-10-18  Bruno Haible  <bruno@clisp.org>
29780
29781         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29782         Reported by Jim Meyering.
29783
29784 2007-10-18  Eric Blake  <ebb9@byu.net>
29785
29786         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29787
29788 2007-10-18  Bruno Haible  <bruno@clisp.org>
29789
29790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29791         the format string into writable memory. Needed in Fortify conditions.
29792
29793 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29794             Bruno Haible  <bruno@clisp.org>
29795
29796         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29797         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29798         * modules/trim (Depends-on): Add mbchar.
29799         (configure.ac): Add gl_FUNC_MBRTOWC.
29800         (Makefile.am): Augment lib_SOURCES.
29801
29802 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29803
29804         Modify glob.c to use fstatat and dirfd, to simplify it.
29805         Suggested by Eric Blake.
29806         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29807         Don't include <stdbool.h>; not used.
29808         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29809         (link_exists_p): Simplify implementation, since we can now assume
29810         dirfd and fstatat.
29811         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29812
29813 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29814
29815         * gnulib-tool (func_get_dependencies): Fix sed script to
29816         match only tests.
29817
29818 2007-10-17  Bruno Haible  <bruno@clisp.org>
29819
29820         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29821         allow locale names without encoding suffix.
29822         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29823         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29824
29825 2007-10-16  Bruno Haible  <bruno@clisp.org>
29826
29827         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29828         * lib/getgroups.c (getgroups): Likewise.
29829         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29830
29831 2007-10-16  Bruno Haible  <bruno@clisp.org>
29832
29833         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29834         * modules/malloc-posix (License): Likewise.
29835         * modules/realloc-posix (License): Likewise.
29836         * modules/calloc-posix (License): Likewise.
29837         * modules/intprops (License): Change from GPL to LGPL, with
29838         Paul Eggert's approval.
29839
29840 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29841
29842         Merge glibc changes into lib/glob.c.
29843
29844         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29845         2007-10-15 04:59:03 UTC.  Here are the changes:
29846
29847         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29848
29849         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29850
29851         * lib/glob.c: Add some branch prediction throughout.
29852
29853         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29854
29855         [BZ #5103]
29856         * lib/glob.c (glob): Recognize patterns starting \/.
29857
29858         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29859
29860         [BZ #3996]
29861         * lib/glob.c (attribute_hidden): Define if not defined.
29862         (glob): Unescape dirname, filename or username when needed and not
29863         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29864         is NULL.  Handle unescaped [ in pattern without closing ].
29865         Don't pass GLOB_CHECK down to recursive glob for directories.
29866         (__glob_pattern_type): New function.
29867         (__glob_pattern_p): Implement using __glob_pattern_type.
29868         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29869         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29870         Remove unreachable code.
29871
29872         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29873
29874         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29875         explain why there are no leaks.
29876
29877         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29878
29879         [BZ #3253]
29880         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29881         time, rather allocate increasingly bigger arrays of pointers, if
29882         possible with alloca, if too large with malloc.
29883
29884 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29885
29886         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29887         Problem reported by H.Merijn Brand in
29888         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29889         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29890         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29891
29892 2007-10-15  Bruno Haible  <bruno@clisp.org>
29893
29894         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29895         with explicit rpl_ prefix.
29896         * lib/fopen.c (fopen): Likewise.
29897         * lib/freopen.c (freopen): Likewise.
29898         * lib/iconv.c (iconv): Likewise.
29899         * lib/iconv_close.c (iconv_close): Likewise.
29900
29901 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29902
29903         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29904
29905 2007-10-15  Bruno Haible  <bruno@clisp.org>
29906
29907         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29908         <stddef.h> instead of <stdlib.h> since we only need NULL.
29909         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29910
29911 2007-10-15  Bruno Haible  <bruno@clisp.org>
29912
29913         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29914         Replace paragraph talking about LIBOBJS.
29915         Reported by Colin Watson <cjwatson@debian.org>.
29916
29917 2007-10-15  Bruno Haible  <bruno@clisp.org>
29918
29919         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29920         <stdlib.h> before using NULL.
29921
29922 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29923
29924         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29925         Reported by Albert Chin <china@thewrittenword.com>.
29926
29927 2007-10-14  Bruno Haible  <bruno@clisp.org>
29928
29929         * modules/iconv_open-utf-tests: New file.
29930         * tests/test-iconv-utf.c: New file.
29931
29932         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29933         * modules/iconv_open-utf: New file.
29934         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29935         (iconv, iconv_close): New declarations.
29936         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29937         be defined.
29938         (iconv_open): Add special handling of conversion between UTF-8 and
29939         UTF-{16,32}{BE,LE}.
29940         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29941         * lib/iconv_close.c: New file.
29942         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29943         gl_FUNC_ICONV_OPEN.
29944         (gl_FUNC_ICONV_OPEN): Use it.
29945         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29946         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29947         and REPLACE_ICONV_UTF.
29948         * modules/iconv_open (Depends-on): Add c-strcase.
29949         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29950         ICONV_CONST.
29951         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29952
29953 2007-10-13  Albert Chin  <china@thewrittenword.com>
29954             Bruno Haible  <bruno@clisp.org>
29955
29956         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29957         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29958
29959 2007-10-13  Bruno Haible  <bruno@clisp.org>
29960
29961         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29962         defined, use the ISO C99 inline semantics.
29963         * lib/argp.h (ARGP_EI): Likewise.
29964
29965 2007-10-13  Bruno Haible  <bruno@clisp.org>
29966
29967         Handle 'inline' change in gcc 4.3.0.
29968         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29969         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29970         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29971         argp_fmtstream_point): Disable 'extern' declaration if the function
29972         definition is going to be provided inline.
29973         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29974         semantics, not the ISO C99 inline semantics.
29975         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29976         'extern' declaration if the function definition is going to be provided
29977         inline.
29978         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29979         the GNU C inline semantics, not the ISO C99 inline semantics. With
29980         GCC 4.2, avoid a warning.
29981
29982 2007-10-13  Bruno Haible  <bruno@clisp.org>
29983
29984         * lib/freading.h (freading): Enable the use of __freading for
29985         glibc >= 2.7.
29986         * lib/freading.c (freading): Likewise.
29987
29988 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29989
29990         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29991         "warning: C99 inline functions are not supported; using GNU89".
29992
29993 2007-10-12  Bruno Haible  <bruno@clisp.org>
29994
29995         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29996         of 2.
29997         * tests/test-ceilf2.c: New file.
29998         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29999
30000         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30001         * modules/ceilf-tests: Update.
30002
30003 2007-10-12  Bruno Haible  <bruno@clisp.org>
30004
30005         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30006         of 2.
30007         * tests/test-floorf2.c: New file.
30008         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30009
30010         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30011         * modules/floorf-tests: Update.
30012
30013 2007-10-12  Bruno Haible  <bruno@clisp.org>
30014
30015         * tests/test-trunc2.c: New file.
30016         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30017
30018         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30019         * modules/trunc-tests: Update.
30020
30021 2007-10-12  Bruno Haible  <bruno@clisp.org>
30022
30023         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30024         of 2.
30025         * tests/test-truncf2.c: New file.
30026         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30027
30028         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30029         * modules/truncf-tests: Update.
30030
30031 2007-10-11  Eric Blake  <ebb9@byu.net>
30032
30033         Don't claim strerror is broken on Interix.
30034         * doc/functions/strerror.texi (strerror): Known broken systems are
30035         now Solaris 8, and not Interix.
30036         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30037         Interix on cross-compile.
30038         Reported by Martin Koeppe in
30039         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30040
30041 2007-10-11  Bruno Haible  <bruno@clisp.org>
30042
30043         * modules/i-ring-tests: New file.
30044         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30045         instead of assert.
30046
30047 2007-10-11  Bruno Haible  <bruno@clisp.org>
30048
30049         * modules/filenamecat-tests: New file.
30050         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30051         * lib/filenamecat.c: Remove test code.
30052
30053 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30054
30055         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30056
30057         * lib/strerror.c: Include <string.h> always, to test interface,
30058         and to remove the need for the dummy.
30059         Include intprops.h to compute width instead of doing it ourselves
30060         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30061         (strerror): Define it to return NULL if there's no system strerror.
30062         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30063         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30064         ancient pre-strerror Unix systems well any more.  Saying "unknown
30065         system error" is enough.
30066         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30067         simpler strerror.c implementation.
30068         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30069         Simplify the tests to reflect the simpler strerror implementation.
30070         * modules/strerror (Depends-on): Add intprops.
30071
30072 2007-10-09  Eric Blake  <ebb9@byu.net>
30073
30074         Silence test-fpending.
30075         * modules/fpending-tests (Files): Add wrapper script.
30076         * tests/test-fpending.sh: New file.
30077
30078 2007-10-09  Bruno Haible  <bruno@clisp.org>
30079
30080         * MODULES.html.sh (func_module): Don't create a hyperlink for
30081         function names like 'printf_frexp'.
30082         (Misc): Add crc, memxor.
30083         (Characteristics of floating types): New section.
30084         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30085         isnanf-nolibm, signbit, trunc, truncf, truncl.
30086         (Enhancements for ISO C 99 functions): New subsection Input/output.
30087         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30088         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30089         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30090         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30091         (Enhancements for POSIX:2001 functions): Add chdir-long.
30092         (File system functions): Add areadlink, chdir-safer, read-file.
30093         Remove cycle-check.
30094         (File system as inode set): New section.
30095         (Date and time): Add gethrxtime.
30096         (Multithreading): Add openmp.
30097         (Internationalization functions): Add localename.
30098         (Unicode string functions): Add unistr/u*-mbsnlen.
30099         (Support for maintaining and releasing projects): Add git-version-gen.
30100         (Lone files): Remove directories.
30101
30102 2007-10-08  Ben Pfaff  <blp@gnu.org>
30103
30104         * lib/xmalloca.h: Fix typo in comment.
30105
30106 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30107
30108         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30109         when avoiding problems with integer overflow.  Use a portable test
30110         instead.
30111
30112 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30113
30114         * modules/dummy (License): Change to LGPLv2+.
30115         * modules/float (License): Likewise
30116         * modules/realloc (License): Likewise
30117         * modules/stdlib (License): Likewise
30118
30119 2007-10-07  Bruno Haible  <bruno@clisp.org>
30120
30121         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30122         * floor.c (TWO_MANT_DIG): Likewise.
30123         * ceil.c (TWO_MANT_DIG): Likewise.
30124         Reported by Ben Pfaff.
30125
30126 2007-10-07  Bruno Haible  <bruno@clisp.org>
30127
30128         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30129         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30130         * lib/frexp.c (FUNC): Likewise.
30131         * lib/printf-frexp.h (printf_frexp): Likewise.
30132         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30133         * lib/printf-frexp.c (FUNC): Likewise.
30134         Suggested by Jim Meyering.
30135
30136 2007-10-07  Jim Meyering  <meyering@redhat.com>
30137
30138         Make xnanosleep's integer overflow test more robust.
30139         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30140         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30141
30142 2007-10-07  Bruno Haible  <bruno@clisp.org>
30143
30144         * NEWS: Mention the license change.
30145
30146         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30147         abbreviations in the modules files.
30148
30149         Change copyright notice from GPLv2+ to GPLv3+.
30150         * README: Change copyright notice.
30151         * MODULES.html.sh: Likewise.
30152         * build-aux/bootstrap.conf: Likewise.
30153         * build-aux/config.libpath: Likewise.
30154         * build-aux/csharpcomp.sh.in: Likewise.
30155         * build-aux/csharpexec.sh.in: Likewise.
30156         * build-aux/install-reloc: Likewise.
30157         * build-aux/javacomp.sh.in: Likewise.
30158         * build-aux/javaexec.sh.in: Likewise.
30159         * build-aux/ldd.sh.in: Likewise.
30160         * build-aux/reloc-ldflags: Likewise.
30161         * build-aux/relocatable.sh.in: Likewise.
30162         * build-aux/x-to-1.in: Likewise.
30163         * check-module: Likewise.
30164         * config/srclistvars.sh: Likewise.
30165         * gnulib-tool: Likewise.
30166         * lib/acl-internal.h: Likewise.
30167         * lib/acl.c: Likewise.
30168         * lib/acl.h: Likewise.
30169         * lib/acl_entries.c: Likewise.
30170         * lib/areadlink-with-size.c: Likewise.
30171         * lib/areadlink.c: Likewise.
30172         * lib/areadlink.h: Likewise.
30173         * lib/argmatch.c: Likewise.
30174         * lib/argmatch.h: Likewise.
30175         * lib/argp-ba.c: Likewise.
30176         * lib/argp-eexst.c: Likewise.
30177         * lib/argp-fmtstream.c: Likewise.
30178         * lib/argp-fmtstream.h: Likewise.
30179         * lib/argp-fs-xinl.c: Likewise.
30180         * lib/argp-help.c: Likewise.
30181         * lib/argp-namefrob.h: Likewise.
30182         * lib/argp-parse.c: Likewise.
30183         * lib/argp-pin.c: Likewise.
30184         * lib/argp-pv.c: Likewise.
30185         * lib/argp-pvh.c: Likewise.
30186         * lib/argp-xinl.c: Likewise.
30187         * lib/argp.h: Likewise.
30188         * lib/at-func.c: Likewise.
30189         * lib/atanl.c: Likewise.
30190         * lib/backupfile.c: Likewise.
30191         * lib/backupfile.h: Likewise.
30192         * lib/basename.c: Likewise.
30193         * lib/binary-io.h: Likewise.
30194         * lib/byteswap.in.h: Likewise.
30195         * lib/c-stack.c: Likewise.
30196         * lib/c-stack.h: Likewise.
30197         * lib/c-strcasestr.c: Likewise.
30198         * lib/c-strcasestr.h: Likewise.
30199         * lib/c-strstr.c: Likewise.
30200         * lib/c-strstr.h: Likewise.
30201         * lib/c-strtod.c: Likewise.
30202         * lib/calloc.c: Likewise.
30203         * lib/canon-host.c: Likewise.
30204         * lib/canon-host.h: Likewise.
30205         * lib/canonicalize-lgpl.c: Likewise.
30206         * lib/canonicalize.c: Likewise.
30207         * lib/canonicalize.h: Likewise.
30208         * lib/ceil.c: Likewise.
30209         * lib/ceilf.c: Likewise.
30210         * lib/ceill.c: Likewise.
30211         * lib/chdir-long.c: Likewise.
30212         * lib/chdir-long.h: Likewise.
30213         * lib/chdir-safer.c: Likewise.
30214         * lib/chdir-safer.h: Likewise.
30215         * lib/chown.c: Likewise.
30216         * lib/classpath.c: Likewise.
30217         * lib/classpath.h: Likewise.
30218         * lib/clean-temp.c: Likewise.
30219         * lib/clean-temp.h: Likewise.
30220         * lib/cloexec.c: Likewise.
30221         * lib/close-stream.c: Likewise.
30222         * lib/closein.c: Likewise.
30223         * lib/closein.h: Likewise.
30224         * lib/closeout.c: Likewise.
30225         * lib/closeout.h: Likewise.
30226         * lib/concat-filename.c: Likewise.
30227         * lib/copy-file.c: Likewise.
30228         * lib/copy-file.h: Likewise.
30229         * lib/count-one-bits.h: Likewise.
30230         * lib/crc.c: Likewise.
30231         * lib/crc.h: Likewise.
30232         * lib/creat-safer.c: Likewise.
30233         * lib/csharpcomp.c: Likewise.
30234         * lib/csharpcomp.h: Likewise.
30235         * lib/csharpexec.c: Likewise.
30236         * lib/csharpexec.h: Likewise.
30237         * lib/cycle-check.c: Likewise.
30238         * lib/cycle-check.h: Likewise.
30239         * lib/diacrit.c: Likewise.
30240         * lib/diacrit.h: Likewise.
30241         * lib/diffseq.h: Likewise.
30242         * lib/dirchownmod.c: Likewise.
30243         * lib/dirent.in.h: Likewise.
30244         * lib/dirfd.c: Likewise.
30245         * lib/dirfd.h: Likewise.
30246         * lib/dirname.c: Likewise.
30247         * lib/dirname.h: Likewise.
30248         * lib/dummy.c: Likewise.
30249         * lib/dup-safer.c: Likewise.
30250         * lib/dup2.c: Likewise.
30251         * lib/eealloc.h: Likewise.
30252         * lib/error.c: Likewise.
30253         * lib/error.h: Likewise.
30254         * lib/euidaccess.c: Likewise.
30255         * lib/exclude.c: Likewise.
30256         * lib/exclude.h: Likewise.
30257         * lib/execute.c: Likewise.
30258         * lib/execute.h: Likewise.
30259         * lib/exitfail.c: Likewise.
30260         * lib/exitfail.h: Likewise.
30261         * lib/expl.c: Likewise.
30262         * lib/fatal-signal.c: Likewise.
30263         * lib/fatal-signal.h: Likewise.
30264         * lib/fbufmode.c: Likewise.
30265         * lib/fbufmode.h: Likewise.
30266         * lib/fchdir.c: Likewise.
30267         * lib/fchmodat.c: Likewise.
30268         * lib/fchownat.c: Likewise.
30269         * lib/fcntl--.h: Likewise.
30270         * lib/fcntl-safer.h: Likewise.
30271         * lib/fcntl.in.h: Likewise.
30272         * lib/fd-safer.c: Likewise.
30273         * lib/fflush.c: Likewise.
30274         * lib/file-has-acl.c: Likewise.
30275         * lib/file-set.c: Likewise.
30276         * lib/file-type.c: Likewise.
30277         * lib/file-type.h: Likewise.
30278         * lib/fileblocks.c: Likewise.
30279         * lib/filemode.c: Likewise.
30280         * lib/filemode.h: Likewise.
30281         * lib/filename.h: Likewise.
30282         * lib/filenamecat.c: Likewise.
30283         * lib/filenamecat.h: Likewise.
30284         * lib/findprog.c: Likewise.
30285         * lib/findprog.h: Likewise.
30286         * lib/float.in.h: Likewise.
30287         * lib/floor.c: Likewise.
30288         * lib/floorf.c: Likewise.
30289         * lib/floorl.c: Likewise.
30290         * lib/fopen-safer.c: Likewise.
30291         * lib/fopen.c: Likewise.
30292         * lib/fpending.c: Likewise.
30293         * lib/fpending.h: Likewise.
30294         * lib/fprintf.c: Likewise.
30295         * lib/fprintftime.h: Likewise.
30296         * lib/fpucw.h: Likewise.
30297         * lib/fpurge.c: Likewise.
30298         * lib/fpurge.h: Likewise.
30299         * lib/freadable.c: Likewise.
30300         * lib/freadable.h: Likewise.
30301         * lib/freadahead.c: Likewise.
30302         * lib/freadahead.h: Likewise.
30303         * lib/freading.c: Likewise.
30304         * lib/freading.h: Likewise.
30305         * lib/free.c: Likewise.
30306         * lib/freopen.c: Likewise.
30307         * lib/frexp.c: Likewise.
30308         * lib/frexpl.c: Likewise.
30309         * lib/fseek.c: Likewise.
30310         * lib/fseterr.c: Likewise.
30311         * lib/fseterr.h: Likewise.
30312         * lib/fstatat.c: Likewise.
30313         * lib/fstrcmp.c: Likewise.
30314         * lib/fstrcmp.h: Likewise.
30315         * lib/fsusage.c: Likewise.
30316         * lib/fsusage.h: Likewise.
30317         * lib/ftell.c: Likewise.
30318         * lib/ftello.c: Likewise.
30319         * lib/fts-cycle.c: Likewise.
30320         * lib/fts.c: Likewise.
30321         * lib/fts_.h: Likewise.
30322         * lib/full-read.c: Likewise.
30323         * lib/full-read.h: Likewise.
30324         * lib/full-write.c: Likewise.
30325         * lib/full-write.h: Likewise.
30326         * lib/fwritable.c: Likewise.
30327         * lib/fwritable.h: Likewise.
30328         * lib/fwriteerror.c: Likewise.
30329         * lib/fwriteerror.h: Likewise.
30330         * lib/fwriting.c: Likewise.
30331         * lib/fwriting.h: Likewise.
30332         * lib/gcd.c: Likewise.
30333         * lib/gcd.h: Likewise.
30334         * lib/getcwd.c: Likewise.
30335         * lib/getdate.h: Likewise.
30336         * lib/getdate.y: Likewise.
30337         * lib/getdomainname.c: Likewise.
30338         * lib/getdomainname.h: Likewise.
30339         * lib/getgroups.c: Likewise.
30340         * lib/gethostname.c: Likewise.
30341         * lib/gethrxtime.c: Likewise.
30342         * lib/gethrxtime.h: Likewise.
30343         * lib/getloadavg.c: Likewise.
30344         * lib/getndelim2.c: Likewise.
30345         * lib/getndelim2.h: Likewise.
30346         * lib/getnline.c: Likewise.
30347         * lib/getnline.h: Likewise.
30348         * lib/getopt.c: Likewise.
30349         * lib/getopt.in.h: Likewise.
30350         * lib/getopt1.c: Likewise.
30351         * lib/getopt_int.h: Likewise.
30352         * lib/getpagesize.h: Likewise.
30353         * lib/getsubopt.c: Likewise.
30354         * lib/gettime.c: Likewise.
30355         * lib/getugroups.c: Likewise.
30356         * lib/getugroups.h: Likewise.
30357         * lib/getusershell.c: Likewise.
30358         * lib/gl_anyavltree_list1.h: Likewise.
30359         * lib/gl_anyavltree_list2.h: Likewise.
30360         * lib/gl_anyhash_list1.h: Likewise.
30361         * lib/gl_anyhash_list2.h: Likewise.
30362         * lib/gl_anylinked_list1.h: Likewise.
30363         * lib/gl_anylinked_list2.h: Likewise.
30364         * lib/gl_anyrbtree_list1.h: Likewise.
30365         * lib/gl_anyrbtree_list2.h: Likewise.
30366         * lib/gl_anytree_list1.h: Likewise.
30367         * lib/gl_anytree_list2.h: Likewise.
30368         * lib/gl_anytree_oset.h: Likewise.
30369         * lib/gl_anytreehash_list1.h: Likewise.
30370         * lib/gl_anytreehash_list2.h: Likewise.
30371         * lib/gl_array_list.c: Likewise.
30372         * lib/gl_array_list.h: Likewise.
30373         * lib/gl_array_oset.c: Likewise.
30374         * lib/gl_array_oset.h: Likewise.
30375         * lib/gl_avltree_list.c: Likewise.
30376         * lib/gl_avltree_list.h: Likewise.
30377         * lib/gl_avltree_oset.c: Likewise.
30378         * lib/gl_avltree_oset.h: Likewise.
30379         * lib/gl_avltreehash_list.c: Likewise.
30380         * lib/gl_avltreehash_list.h: Likewise.
30381         * lib/gl_carray_list.c: Likewise.
30382         * lib/gl_carray_list.h: Likewise.
30383         * lib/gl_linked_list.c: Likewise.
30384         * lib/gl_linked_list.h: Likewise.
30385         * lib/gl_linkedhash_list.c: Likewise.
30386         * lib/gl_linkedhash_list.h: Likewise.
30387         * lib/gl_list.c: Likewise.
30388         * lib/gl_list.h: Likewise.
30389         * lib/gl_oset.c: Likewise.
30390         * lib/gl_oset.h: Likewise.
30391         * lib/gl_rbtree_list.c: Likewise.
30392         * lib/gl_rbtree_list.h: Likewise.
30393         * lib/gl_rbtree_oset.c: Likewise.
30394         * lib/gl_rbtree_oset.h: Likewise.
30395         * lib/gl_rbtreehash_list.c: Likewise.
30396         * lib/gl_rbtreehash_list.h: Likewise.
30397         * lib/gl_sublist.c: Likewise.
30398         * lib/gl_sublist.h: Likewise.
30399         * lib/group-member.c: Likewise.
30400         * lib/group-member.h: Likewise.
30401         * lib/hard-locale.c: Likewise.
30402         * lib/hard-locale.h: Likewise.
30403         * lib/hash-pjw.c: Likewise.
30404         * lib/hash-pjw.h: Likewise.
30405         * lib/hash-triple.c: Likewise.
30406         * lib/hash.c: Likewise.
30407         * lib/hash.h: Likewise.
30408         * lib/human.c: Likewise.
30409         * lib/human.h: Likewise.
30410         * lib/i-ring.c: Likewise.
30411         * lib/i-ring.h: Likewise.
30412         * lib/idcache.c: Likewise.
30413         * lib/imaxabs.c: Likewise.
30414         * lib/imaxdiv.c: Likewise.
30415         * lib/inet_pton.c: Likewise.
30416         * lib/inet_pton.h: Likewise.
30417         * lib/intprops.h: Likewise.
30418         * lib/inttostr.c: Likewise.
30419         * lib/inttostr.h: Likewise.
30420         * lib/inttypes.in.h: Likewise.
30421         * lib/isapipe.c: Likewise.
30422         * lib/isdir.c: Likewise.
30423         * lib/isnan.c: Likewise.
30424         * lib/isnan.h: Likewise.
30425         * lib/isnanf.c: Likewise.
30426         * lib/isnanf.h: Likewise.
30427         * lib/isnanl-nolibm.h: Likewise.
30428         * lib/isnanl.c: Likewise.
30429         * lib/isnanl.h: Likewise.
30430         * lib/javacomp.c: Likewise.
30431         * lib/javacomp.h: Likewise.
30432         * lib/javaexec.c: Likewise.
30433         * lib/javaexec.h: Likewise.
30434         * lib/javaversion.c: Likewise.
30435         * lib/javaversion.h: Likewise.
30436         * lib/javaversion.java: Likewise.
30437         * lib/lbrkprop.h: Likewise.
30438         * lib/lchmod.h: Likewise.
30439         * lib/lchown.c: Likewise.
30440         * lib/ldexpl.c: Likewise.
30441         * lib/linebreak.c: Likewise.
30442         * lib/linebreak.h: Likewise.
30443         * lib/linebuffer.c: Likewise.
30444         * lib/linebuffer.h: Likewise.
30445         * lib/locale.in.h: Likewise.
30446         * lib/logl.c: Likewise.
30447         * lib/long-options.c: Likewise.
30448         * lib/long-options.h: Likewise.
30449         * lib/lstat.c: Likewise.
30450         * lib/lstat.h: Likewise.
30451         * lib/math.in.h: Likewise.
30452         * lib/mbchar.c: Likewise.
30453         * lib/mbchar.h: Likewise.
30454         * lib/mbfile.h: Likewise.
30455         * lib/mbiter.h: Likewise.
30456         * lib/mbscasecmp.c: Likewise.
30457         * lib/mbscasestr.c: Likewise.
30458         * lib/mbschr.c: Likewise.
30459         * lib/mbscspn.c: Likewise.
30460         * lib/mbslen.c: Likewise.
30461         * lib/mbsncasecmp.c: Likewise.
30462         * lib/mbsnlen.c: Likewise.
30463         * lib/mbspbrk.c: Likewise.
30464         * lib/mbspcasecmp.c: Likewise.
30465         * lib/mbsrchr.c: Likewise.
30466         * lib/mbssep.c: Likewise.
30467         * lib/mbsspn.c: Likewise.
30468         * lib/mbsstr.c: Likewise.
30469         * lib/mbstok_r.c: Likewise.
30470         * lib/mbswidth.c: Likewise.
30471         * lib/mbswidth.h: Likewise.
30472         * lib/mbuiter.h: Likewise.
30473         * lib/memcasecmp.c: Likewise.
30474         * lib/memcasecmp.h: Likewise.
30475         * lib/memchr.c: Likewise.
30476         * lib/memcmp.c: Likewise.
30477         * lib/memcoll.c: Likewise.
30478         * lib/memcoll.h: Likewise.
30479         * lib/memcpy.c: Likewise.
30480         * lib/memrchr.c: Likewise.
30481         * lib/mkancesdirs.c: Likewise.
30482         * lib/mkdir-p.c: Likewise.
30483         * lib/mkdir-p.h: Likewise.
30484         * lib/mkdir.c: Likewise.
30485         * lib/mkdirat.c: Likewise.
30486         * lib/mkdtemp.c: Likewise.
30487         * lib/mkstemp-safer.c: Likewise.
30488         * lib/mkstemp.c: Likewise.
30489         * lib/modechange.c: Likewise.
30490         * lib/modechange.h: Likewise.
30491         * lib/mountlist.c: Likewise.
30492         * lib/mountlist.h: Likewise.
30493         * lib/mpsort.c: Likewise.
30494         * lib/nanosleep.c: Likewise.
30495         * lib/obstack.c: Likewise.
30496         * lib/obstack.h: Likewise.
30497         * lib/open-safer.c: Likewise.
30498         * lib/open.c: Likewise.
30499         * lib/openat-die.c: Likewise.
30500         * lib/openat-priv.h: Likewise.
30501         * lib/openat-proc.c: Likewise.
30502         * lib/openat.c: Likewise.
30503         * lib/openat.h: Likewise.
30504         * lib/pagealign_alloc.c: Likewise.
30505         * lib/pagealign_alloc.h: Likewise.
30506         * lib/physmem.c: Likewise.
30507         * lib/physmem.h: Likewise.
30508         * lib/pipe-safer.c: Likewise.
30509         * lib/pipe.c: Likewise.
30510         * lib/pipe.h: Likewise.
30511         * lib/posixtm.c: Likewise.
30512         * lib/posixtm.h: Likewise.
30513         * lib/posixver.c: Likewise.
30514         * lib/printf-frexp.c: Likewise.
30515         * lib/printf-frexp.h: Likewise.
30516         * lib/printf-frexpl.c: Likewise.
30517         * lib/printf-frexpl.h: Likewise.
30518         * lib/printf.c: Likewise.
30519         * lib/progname.c: Likewise.
30520         * lib/progname.h: Likewise.
30521         * lib/progreloc.c: Likewise.
30522         * lib/putenv.c: Likewise.
30523         * lib/quote.c: Likewise.
30524         * lib/quote.h: Likewise.
30525         * lib/quotearg.c: Likewise.
30526         * lib/quotearg.h: Likewise.
30527         * lib/raise.c: Likewise.
30528         * lib/readline.c: Likewise.
30529         * lib/readline.h: Likewise.
30530         * lib/readlink.c: Likewise.
30531         * lib/readtokens.c: Likewise.
30532         * lib/readtokens.h: Likewise.
30533         * lib/readtokens0.c: Likewise.
30534         * lib/readtokens0.h: Likewise.
30535         * lib/readutmp.c: Likewise.
30536         * lib/readutmp.h: Likewise.
30537         * lib/realloc.c: Likewise.
30538         * lib/relocwrapper.c: Likewise.
30539         * lib/rename-dest-slash.c: Likewise.
30540         * lib/rename.c: Likewise.
30541         * lib/rmdir.c: Likewise.
30542         * lib/rpmatch.c: Likewise.
30543         * lib/safe-read.c: Likewise.
30544         * lib/safe-read.h: Likewise.
30545         * lib/safe-write.c: Likewise.
30546         * lib/safe-write.h: Likewise.
30547         * lib/same-inode.h: Likewise.
30548         * lib/same.c: Likewise.
30549         * lib/same.h: Likewise.
30550         * lib/save-cwd.c: Likewise.
30551         * lib/save-cwd.h: Likewise.
30552         * lib/savedir.c: Likewise.
30553         * lib/savedir.h: Likewise.
30554         * lib/savewd.c: Likewise.
30555         * lib/savewd.h: Likewise.
30556         * lib/search.in.h: Likewise.
30557         * lib/setenv.c: Likewise.
30558         * lib/setenv.h: Likewise.
30559         * lib/settime.c: Likewise.
30560         * lib/sh-quote.c: Likewise.
30561         * lib/sh-quote.h: Likewise.
30562         * lib/sig2str.c: Likewise.
30563         * lib/sig2str.h: Likewise.
30564         * lib/signal.in.h: Likewise.
30565         * lib/signbitd.c: Likewise.
30566         * lib/signbitf.c: Likewise.
30567         * lib/signbitl.c: Likewise.
30568         * lib/sigprocmask.c: Likewise.
30569         * lib/sincosl.c: Likewise.
30570         * lib/sleep.c: Likewise.
30571         * lib/sprintf.c: Likewise.
30572         * lib/sqrtl.c: Likewise.
30573         * lib/stat-time.h: Likewise.
30574         * lib/stdio--.h: Likewise.
30575         * lib/stdio-safer.h: Likewise.
30576         * lib/stdlib--.h: Likewise.
30577         * lib/stdlib-safer.h: Likewise.
30578         * lib/stdlib.in.h: Likewise.
30579         * lib/stpcpy.c: Likewise.
30580         * lib/stpncpy.c: Likewise.
30581         * lib/strchrnul.c: Likewise.
30582         * lib/strcspn.c: Likewise.
30583         * lib/strerror.c: Likewise.
30584         * lib/strftime.c: Likewise.
30585         * lib/strftime.h: Likewise.
30586         * lib/striconveh.c: Likewise.
30587         * lib/striconveh.h: Likewise.
30588         * lib/striconveha.c: Likewise.
30589         * lib/striconveha.h: Likewise.
30590         * lib/stripslash.c: Likewise.
30591         * lib/strnlen1.c: Likewise.
30592         * lib/strnlen1.h: Likewise.
30593         * lib/strtod.c: Likewise.
30594         * lib/strtoimax.c: Likewise.
30595         * lib/strtok_r.c: Likewise.
30596         * lib/strtol.c: Likewise.
30597         * lib/strtoll.c: Likewise.
30598         * lib/strtoul.c: Likewise.
30599         * lib/strtoull.c: Likewise.
30600         * lib/sysexits.in.h: Likewise.
30601         * lib/tempname.c: Likewise.
30602         * lib/tempname.h: Likewise.
30603         * lib/timespec.h: Likewise.
30604         * lib/tls.c: Likewise.
30605         * lib/tls.h: Likewise.
30606         * lib/tmpdir.c: Likewise.
30607         * lib/tmpdir.h: Likewise.
30608         * lib/tmpfile-safer.c: Likewise.
30609         * lib/tmpfile.c: Likewise.
30610         * lib/trigl.c: Likewise.
30611         * lib/trigl.h: Likewise.
30612         * lib/trim.c: Likewise.
30613         * lib/trim.h: Likewise.
30614         * lib/trunc.c: Likewise.
30615         * lib/truncf.c: Likewise.
30616         * lib/truncl.c: Likewise.
30617         * lib/tsearch.c: Likewise.
30618         * lib/unicodeio.c: Likewise.
30619         * lib/unicodeio.h: Likewise.
30620         * lib/unistd--.h: Likewise.
30621         * lib/unistd-safer.h: Likewise.
30622         * lib/unistdio/ulc-fprintf.c: Likewise.
30623         * lib/unistdio/ulc-vfprintf.c: Likewise.
30624         * lib/unlinkdir.c: Likewise.
30625         * lib/unlinkdir.h: Likewise.
30626         * lib/unlocked-io.h: Likewise.
30627         * lib/unsetenv.c: Likewise.
30628         * lib/userspec.c: Likewise.
30629         * lib/utime.c: Likewise.
30630         * lib/utimecmp.c: Likewise.
30631         * lib/utimecmp.h: Likewise.
30632         * lib/utimens.c: Likewise.
30633         * lib/verify.h: Likewise.
30634         * lib/verror.c: Likewise.
30635         * lib/verror.h: Likewise.
30636         * lib/version-etc-fsf.c: Likewise.
30637         * lib/version-etc.c: Likewise.
30638         * lib/version-etc.h: Likewise.
30639         * lib/vfprintf.c: Likewise.
30640         * lib/vprintf.c: Likewise.
30641         * lib/vsprintf.c: Likewise.
30642         * lib/w32spawn.h: Likewise.
30643         * lib/wait-process.c: Likewise.
30644         * lib/wait-process.h: Likewise.
30645         * lib/wcwidth.c: Likewise.
30646         * lib/write-any-file.c: Likewise.
30647         * lib/xalloc-die.c: Likewise.
30648         * lib/xalloc.h: Likewise.
30649         * lib/xasprintf.c: Likewise.
30650         * lib/xgetcwd.c: Likewise.
30651         * lib/xgetcwd.h: Likewise.
30652         * lib/xgetdomainname.c: Likewise.
30653         * lib/xgetdomainname.h: Likewise.
30654         * lib/xgethostname.c: Likewise.
30655         * lib/xmalloc.c: Likewise.
30656         * lib/xmalloca.c: Likewise.
30657         * lib/xmalloca.h: Likewise.
30658         * lib/xmemcoll.c: Likewise.
30659         * lib/xnanosleep.c: Likewise.
30660         * lib/xreadlink.c: Likewise.
30661         * lib/xreadlink.h: Likewise.
30662         * lib/xsetenv.c: Likewise.
30663         * lib/xsetenv.h: Likewise.
30664         * lib/xstriconv.c: Likewise.
30665         * lib/xstriconv.h: Likewise.
30666         * lib/xstrndup.c: Likewise.
30667         * lib/xstrndup.h: Likewise.
30668         * lib/xstrtod.c: Likewise.
30669         * lib/xstrtod.h: Likewise.
30670         * lib/xstrtol-error.c: Likewise.
30671         * lib/xstrtol.c: Likewise.
30672         * lib/xstrtol.h: Likewise.
30673         * lib/xtime.h: Likewise.
30674         * lib/xvasprintf.c: Likewise.
30675         * lib/xvasprintf.h: Likewise.
30676         * lib/yesno.c: Likewise.
30677         * lib/yesno.h: Likewise.
30678         * posix-modules: Likewise.
30679         * tests/test-alloca-opt.c: Likewise.
30680         * tests/test-arcfour.c: Likewise.
30681         * tests/test-arctwo.c: Likewise.
30682         * tests/test-argmatch.c: Likewise.
30683         * tests/test-argp-2.sh: Likewise.
30684         * tests/test-argp.c: Likewise.
30685         * tests/test-arpa_inet.c: Likewise.
30686         * tests/test-array_list.c: Likewise.
30687         * tests/test-array_oset.c: Likewise.
30688         * tests/test-atexit.c: Likewise.
30689         * tests/test-avltree_list.c: Likewise.
30690         * tests/test-avltree_oset.c: Likewise.
30691         * tests/test-avltreehash_list.c: Likewise.
30692         * tests/test-base64.c: Likewise.
30693         * tests/test-binary-io.c: Likewise.
30694         * tests/test-byteswap.c: Likewise.
30695         * tests/test-c-ctype.c: Likewise.
30696         * tests/test-c-strcasecmp.c: Likewise.
30697         * tests/test-c-strcasestr.c: Likewise.
30698         * tests/test-c-strncasecmp.c: Likewise.
30699         * tests/test-c-strstr.c: Likewise.
30700         * tests/test-canonicalize-lgpl.c: Likewise.
30701         * tests/test-canonicalize.c: Likewise.
30702         * tests/test-carray_list.c: Likewise.
30703         * tests/test-ceilf.c: Likewise.
30704         * tests/test-ceill.c: Likewise.
30705         * tests/test-count-one-bits.c: Likewise.
30706         * tests/test-crc.c: Likewise.
30707         * tests/test-dirname.c: Likewise.
30708         * tests/test-fbufmode.c: Likewise.
30709         * tests/test-fcntl.c: Likewise.
30710         * tests/test-fflush.c: Likewise.
30711         * tests/test-floorf.c: Likewise.
30712         * tests/test-floorl.c: Likewise.
30713         * tests/test-fopen.c: Likewise.
30714         * tests/test-fprintf-posix.c: Likewise.
30715         * tests/test-fprintf-posix.h: Likewise.
30716         * tests/test-fpurge.c: Likewise.
30717         * tests/test-freadable.c: Likewise.
30718         * tests/test-freadahead.c: Likewise.
30719         * tests/test-freading.c: Likewise.
30720         * tests/test-freopen.c: Likewise.
30721         * tests/test-frexp.c: Likewise.
30722         * tests/test-frexpl.c: Likewise.
30723         * tests/test-fseek.c: Likewise.
30724         * tests/test-fseeko.c: Likewise.
30725         * tests/test-fseterr.c: Likewise.
30726         * tests/test-fstrcmp.c: Likewise.
30727         * tests/test-ftell.c: Likewise.
30728         * tests/test-ftello.c: Likewise.
30729         * tests/test-fwritable.c: Likewise.
30730         * tests/test-fwriting.c: Likewise.
30731         * tests/test-getaddrinfo.c: Likewise.
30732         * tests/test-getpass.c: Likewise.
30733         * tests/test-gettimeofday.c: Likewise.
30734         * tests/test-hmac-md5.c: Likewise.
30735         * tests/test-hmac-sha1.c: Likewise.
30736         * tests/test-iconv.c: Likewise.
30737         * tests/test-iconvme.c: Likewise.
30738         * tests/test-inttypes.c: Likewise.
30739         * tests/test-isnan.c: Likewise.
30740         * tests/test-isnanf.c: Likewise.
30741         * tests/test-isnanl-nolibm.c: Likewise.
30742         * tests/test-isnanl.c: Likewise.
30743         * tests/test-isnanl.h: Likewise.
30744         * tests/test-ldexpl.c: Likewise.
30745         * tests/test-linked_list.c: Likewise.
30746         * tests/test-linkedhash_list.c: Likewise.
30747         * tests/test-locale.c: Likewise.
30748         * tests/test-localename.c: Likewise.
30749         * tests/test-lock.c: Likewise.
30750         * tests/test-lseek.c: Likewise.
30751         * tests/test-malloca.c: Likewise.
30752         * tests/test-math.c: Likewise.
30753         * tests/test-mbscasecmp.c: Likewise.
30754         * tests/test-mbscasestr1.c: Likewise.
30755         * tests/test-mbscasestr2.c: Likewise.
30756         * tests/test-mbscasestr3.c: Likewise.
30757         * tests/test-mbscasestr4.c: Likewise.
30758         * tests/test-mbschr.c: Likewise.
30759         * tests/test-mbscspn.c: Likewise.
30760         * tests/test-mbsncasecmp.c: Likewise.
30761         * tests/test-mbspbrk.c: Likewise.
30762         * tests/test-mbspcasecmp.c: Likewise.
30763         * tests/test-mbsrchr.c: Likewise.
30764         * tests/test-mbsspn.c: Likewise.
30765         * tests/test-mbsstr1.c: Likewise.
30766         * tests/test-mbsstr2.c: Likewise.
30767         * tests/test-mbsstr3.c: Likewise.
30768         * tests/test-md5.c: Likewise.
30769         * tests/test-memmem.c: Likewise.
30770         * tests/test-netinet_in.c: Likewise.
30771         * tests/test-open.c: Likewise.
30772         * tests/test-printf-frexp.c: Likewise.
30773         * tests/test-printf-frexpl.c: Likewise.
30774         * tests/test-printf-posix.c: Likewise.
30775         * tests/test-printf-posix.h: Likewise.
30776         * tests/test-rbtree_list.c: Likewise.
30777         * tests/test-rbtree_oset.c: Likewise.
30778         * tests/test-rbtreehash_list.c: Likewise.
30779         * tests/test-read-file.c: Likewise.
30780         * tests/test-rijndael.c: Likewise.
30781         * tests/test-search.c: Likewise.
30782         * tests/test-signbit.c: Likewise.
30783         * tests/test-sleep.c: Likewise.
30784         * tests/test-snprintf-posix.c: Likewise.
30785         * tests/test-snprintf-posix.h: Likewise.
30786         * tests/test-snprintf.c: Likewise.
30787         * tests/test-sprintf-posix.c: Likewise.
30788         * tests/test-sprintf-posix.h: Likewise.
30789         * tests/test-stat-time.c: Likewise.
30790         * tests/test-stdbool.c: Likewise.
30791         * tests/test-stdint.c: Likewise.
30792         * tests/test-stdio.c: Likewise.
30793         * tests/test-stdlib.c: Likewise.
30794         * tests/test-stpncpy.c: Likewise.
30795         * tests/test-strcasestr.c: Likewise.
30796         * tests/test-striconv.c: Likewise.
30797         * tests/test-striconveh.c: Likewise.
30798         * tests/test-striconveha.c: Likewise.
30799         * tests/test-string.c: Likewise.
30800         * tests/test-sys_select.c: Likewise.
30801         * tests/test-sys_socket.c: Likewise.
30802         * tests/test-sys_stat.c: Likewise.
30803         * tests/test-sys_time.c: Likewise.
30804         * tests/test-sysexits.c: Likewise.
30805         * tests/test-time.c: Likewise.
30806         * tests/test-tls.c: Likewise.
30807         * tests/test-trunc.c: Likewise.
30808         * tests/test-truncf.c: Likewise.
30809         * tests/test-truncl.c: Likewise.
30810         * tests/test-unistd.c: Likewise.
30811         * tests/test-vasnprintf-posix.c: Likewise.
30812         * tests/test-vasnprintf-posix2.c: Likewise.
30813         * tests/test-vasnprintf.c: Likewise.
30814         * tests/test-vasprintf-posix.c: Likewise.
30815         * tests/test-vasprintf.c: Likewise.
30816         * tests/test-verify.c: Likewise.
30817         * tests/test-vfprintf-posix.c: Likewise.
30818         * tests/test-vprintf-posix.c: Likewise.
30819         * tests/test-vsnprintf-posix.c: Likewise.
30820         * tests/test-vsnprintf.c: Likewise.
30821         * tests/test-vsprintf-posix.c: Likewise.
30822         * tests/test-wchar.c: Likewise.
30823         * tests/test-wctype.c: Likewise.
30824         * tests/test-wcwidth.c: Likewise.
30825         * tests/test-xstrtol.c: Likewise.
30826         * tests/test-xvasprintf.c: Likewise.
30827         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30828         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30829         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30830         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30831         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30832         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30833         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30834         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30835         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30836         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30837         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30838         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30839         * tests/uniname/test-uninames.c: Likewise.
30840         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30841         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30842         * tests/unistdio/test-u16-printf1.h: Likewise.
30843         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30844         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30845         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30846         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30847         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30848         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30849         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30850         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30851         * tests/unistdio/test-u32-printf1.h: Likewise.
30852         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30853         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30854         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30855         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30856         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30857         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30858         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30859         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30860         * tests/unistdio/test-u8-printf1.h: Likewise.
30861         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30862         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30863         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30864         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30865         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30866         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30867         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30868         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30869         * tests/unistdio/test-ulc-printf1.h: Likewise.
30870         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30871         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30872         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30873         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30874         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30875         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30876         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30877         * tests/uniwidth/test-u16-width.c: Likewise.
30878         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30879         * tests/uniwidth/test-u32-width.c: Likewise.
30880         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30881         * tests/uniwidth/test-u8-width.c: Likewise.
30882         * tests/uniwidth/test-uc_width.c: Likewise.
30883         * config/srclist-update: Likewise.
30884         (fixlicense): Update to GPLv3+.
30885
30886         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30887         * tests/test-tsearch.c: Change copyright notice.
30888
30889         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30890         * lib/c-strcaseeq.h: Change copyright notice.
30891         * lib/streq.h: Likewise.
30892         * lib/uniconv.h: Likewise.
30893         * lib/uniconv/u-conv-from-enc.h: Likewise.
30894         * lib/uniconv/u-conv-to-enc.h: Likewise.
30895         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30896         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30897         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30898         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30899         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30900         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30901         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30902         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30903         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30904         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30905         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30906         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30907         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30908         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30909         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30910         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30911         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30912         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30913         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30914         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30915         * lib/uniname.h: Likewise.
30916         * lib/uniname/uniname.c: Likewise.
30917         * lib/unistdio.h: Likewise.
30918         * lib/unistdio/u-asnprintf.h: Likewise.
30919         * lib/unistdio/u-asprintf.h: Likewise.
30920         * lib/unistdio/u-printf-args.c: Likewise.
30921         * lib/unistdio/u-printf-args.h: Likewise.
30922         * lib/unistdio/u-printf-parse.h: Likewise.
30923         * lib/unistdio/u-snprintf.h: Likewise.
30924         * lib/unistdio/u-sprintf.h: Likewise.
30925         * lib/unistdio/u-vasprintf.h: Likewise.
30926         * lib/unistdio/u-vsnprintf.h: Likewise.
30927         * lib/unistdio/u-vsprintf.h: Likewise.
30928         * lib/unistdio/u16-asnprintf.c: Likewise.
30929         * lib/unistdio/u16-asprintf.c: Likewise.
30930         * lib/unistdio/u16-printf-parse.c: Likewise.
30931         * lib/unistdio/u16-snprintf.c: Likewise.
30932         * lib/unistdio/u16-sprintf.c: Likewise.
30933         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30934         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30935         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30936         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30937         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30938         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30939         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30940         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30941         * lib/unistdio/u16-vasnprintf.c: Likewise.
30942         * lib/unistdio/u16-vasprintf.c: Likewise.
30943         * lib/unistdio/u16-vsnprintf.c: Likewise.
30944         * lib/unistdio/u16-vsprintf.c: Likewise.
30945         * lib/unistdio/u32-asnprintf.c: Likewise.
30946         * lib/unistdio/u32-asprintf.c: Likewise.
30947         * lib/unistdio/u32-printf-parse.c: Likewise.
30948         * lib/unistdio/u32-snprintf.c: Likewise.
30949         * lib/unistdio/u32-sprintf.c: Likewise.
30950         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30951         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30952         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30953         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30954         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30955         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30956         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30957         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30958         * lib/unistdio/u32-vasnprintf.c: Likewise.
30959         * lib/unistdio/u32-vasprintf.c: Likewise.
30960         * lib/unistdio/u32-vsnprintf.c: Likewise.
30961         * lib/unistdio/u32-vsprintf.c: Likewise.
30962         * lib/unistdio/u8-asnprintf.c: Likewise.
30963         * lib/unistdio/u8-asprintf.c: Likewise.
30964         * lib/unistdio/u8-printf-parse.c: Likewise.
30965         * lib/unistdio/u8-snprintf.c: Likewise.
30966         * lib/unistdio/u8-sprintf.c: Likewise.
30967         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30968         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30969         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30970         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30971         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30972         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30973         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30974         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30975         * lib/unistdio/u8-vasnprintf.c: Likewise.
30976         * lib/unistdio/u8-vasprintf.c: Likewise.
30977         * lib/unistdio/u8-vsnprintf.c: Likewise.
30978         * lib/unistdio/u8-vsprintf.c: Likewise.
30979         * lib/unistdio/ulc-asnprintf.c: Likewise.
30980         * lib/unistdio/ulc-asprintf.c: Likewise.
30981         * lib/unistdio/ulc-printf-parse.c: Likewise.
30982         * lib/unistdio/ulc-snprintf.c: Likewise.
30983         * lib/unistdio/ulc-sprintf.c: Likewise.
30984         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30985         * lib/unistdio/ulc-vasprintf.c: Likewise.
30986         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30987         * lib/unistdio/ulc-vsprintf.c: Likewise.
30988         * lib/unistr.h: Likewise.
30989         * lib/unistr/u-cpy-alloc.h: Likewise.
30990         * lib/unistr/u-cpy.h: Likewise.
30991         * lib/unistr/u-endswith.h: Likewise.
30992         * lib/unistr/u-move.h: Likewise.
30993         * lib/unistr/u-set.h: Likewise.
30994         * lib/unistr/u-startswith.h: Likewise.
30995         * lib/unistr/u-stpcpy.h: Likewise.
30996         * lib/unistr/u-stpncpy.h: Likewise.
30997         * lib/unistr/u-strcat.h: Likewise.
30998         * lib/unistr/u-strcpy.h: Likewise.
30999         * lib/unistr/u-strcspn.h: Likewise.
31000         * lib/unistr/u-strdup.h: Likewise.
31001         * lib/unistr/u-strlen.h: Likewise.
31002         * lib/unistr/u-strncat.h: Likewise.
31003         * lib/unistr/u-strncpy.h: Likewise.
31004         * lib/unistr/u-strnlen.h: Likewise.
31005         * lib/unistr/u-strpbrk.h: Likewise.
31006         * lib/unistr/u-strspn.h: Likewise.
31007         * lib/unistr/u-strstr.h: Likewise.
31008         * lib/unistr/u-strtok.h: Likewise.
31009         * lib/unistr/u16-check.c: Likewise.
31010         * lib/unistr/u16-chr.c: Likewise.
31011         * lib/unistr/u16-cmp.c: Likewise.
31012         * lib/unistr/u16-cpy-alloc.c: Likewise.
31013         * lib/unistr/u16-cpy.c: Likewise.
31014         * lib/unistr/u16-endswith.c: Likewise.
31015         * lib/unistr/u16-mblen.c: Likewise.
31016         * lib/unistr/u16-mbsnlen.c: Likewise.
31017         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31018         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31019         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31020         * lib/unistr/u16-mbtouc.c: Likewise.
31021         * lib/unistr/u16-mbtoucr.c: Likewise.
31022         * lib/unistr/u16-move.c: Likewise.
31023         * lib/unistr/u16-next.c: Likewise.
31024         * lib/unistr/u16-prev.c: Likewise.
31025         * lib/unistr/u16-set.c: Likewise.
31026         * lib/unistr/u16-startswith.c: Likewise.
31027         * lib/unistr/u16-stpcpy.c: Likewise.
31028         * lib/unistr/u16-stpncpy.c: Likewise.
31029         * lib/unistr/u16-strcat.c: Likewise.
31030         * lib/unistr/u16-strchr.c: Likewise.
31031         * lib/unistr/u16-strcmp.c: Likewise.
31032         * lib/unistr/u16-strcpy.c: Likewise.
31033         * lib/unistr/u16-strcspn.c: Likewise.
31034         * lib/unistr/u16-strdup.c: Likewise.
31035         * lib/unistr/u16-strlen.c: Likewise.
31036         * lib/unistr/u16-strmblen.c: Likewise.
31037         * lib/unistr/u16-strmbtouc.c: Likewise.
31038         * lib/unistr/u16-strncat.c: Likewise.
31039         * lib/unistr/u16-strncmp.c: Likewise.
31040         * lib/unistr/u16-strncpy.c: Likewise.
31041         * lib/unistr/u16-strnlen.c: Likewise.
31042         * lib/unistr/u16-strpbrk.c: Likewise.
31043         * lib/unistr/u16-strrchr.c: Likewise.
31044         * lib/unistr/u16-strspn.c: Likewise.
31045         * lib/unistr/u16-strstr.c: Likewise.
31046         * lib/unistr/u16-strtok.c: Likewise.
31047         * lib/unistr/u16-to-u32.c: Likewise.
31048         * lib/unistr/u16-to-u8.c: Likewise.
31049         * lib/unistr/u16-uctomb-aux.c: Likewise.
31050         * lib/unistr/u16-uctomb.c: Likewise.
31051         * lib/unistr/u32-check.c: Likewise.
31052         * lib/unistr/u32-chr.c: Likewise.
31053         * lib/unistr/u32-cmp.c: Likewise.
31054         * lib/unistr/u32-cpy-alloc.c: Likewise.
31055         * lib/unistr/u32-cpy.c: Likewise.
31056         * lib/unistr/u32-endswith.c: Likewise.
31057         * lib/unistr/u32-mblen.c: Likewise.
31058         * lib/unistr/u32-mbsnlen.c: Likewise.
31059         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31060         * lib/unistr/u32-mbtouc.c: Likewise.
31061         * lib/unistr/u32-mbtoucr.c: Likewise.
31062         * lib/unistr/u32-move.c: Likewise.
31063         * lib/unistr/u32-next.c: Likewise.
31064         * lib/unistr/u32-prev.c: Likewise.
31065         * lib/unistr/u32-set.c: Likewise.
31066         * lib/unistr/u32-startswith.c: Likewise.
31067         * lib/unistr/u32-stpcpy.c: Likewise.
31068         * lib/unistr/u32-stpncpy.c: Likewise.
31069         * lib/unistr/u32-strcat.c: Likewise.
31070         * lib/unistr/u32-strchr.c: Likewise.
31071         * lib/unistr/u32-strcmp.c: Likewise.
31072         * lib/unistr/u32-strcpy.c: Likewise.
31073         * lib/unistr/u32-strcspn.c: Likewise.
31074         * lib/unistr/u32-strdup.c: Likewise.
31075         * lib/unistr/u32-strlen.c: Likewise.
31076         * lib/unistr/u32-strmblen.c: Likewise.
31077         * lib/unistr/u32-strmbtouc.c: Likewise.
31078         * lib/unistr/u32-strncat.c: Likewise.
31079         * lib/unistr/u32-strncmp.c: Likewise.
31080         * lib/unistr/u32-strncpy.c: Likewise.
31081         * lib/unistr/u32-strnlen.c: Likewise.
31082         * lib/unistr/u32-strpbrk.c: Likewise.
31083         * lib/unistr/u32-strrchr.c: Likewise.
31084         * lib/unistr/u32-strspn.c: Likewise.
31085         * lib/unistr/u32-strstr.c: Likewise.
31086         * lib/unistr/u32-strtok.c: Likewise.
31087         * lib/unistr/u32-to-u16.c: Likewise.
31088         * lib/unistr/u32-to-u8.c: Likewise.
31089         * lib/unistr/u32-uctomb.c: Likewise.
31090         * lib/unistr/u8-check.c: Likewise.
31091         * lib/unistr/u8-chr.c: Likewise.
31092         * lib/unistr/u8-cmp.c: Likewise.
31093         * lib/unistr/u8-cpy-alloc.c: Likewise.
31094         * lib/unistr/u8-cpy.c: Likewise.
31095         * lib/unistr/u8-endswith.c: Likewise.
31096         * lib/unistr/u8-mblen.c: Likewise.
31097         * lib/unistr/u8-mbsnlen.c: Likewise.
31098         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31099         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31100         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31101         * lib/unistr/u8-mbtouc.c: Likewise.
31102         * lib/unistr/u8-mbtoucr.c: Likewise.
31103         * lib/unistr/u8-move.c: Likewise.
31104         * lib/unistr/u8-next.c: Likewise.
31105         * lib/unistr/u8-prev.c: Likewise.
31106         * lib/unistr/u8-set.c: Likewise.
31107         * lib/unistr/u8-startswith.c: Likewise.
31108         * lib/unistr/u8-stpcpy.c: Likewise.
31109         * lib/unistr/u8-stpncpy.c: Likewise.
31110         * lib/unistr/u8-strcat.c: Likewise.
31111         * lib/unistr/u8-strchr.c: Likewise.
31112         * lib/unistr/u8-strcmp.c: Likewise.
31113         * lib/unistr/u8-strcpy.c: Likewise.
31114         * lib/unistr/u8-strcspn.c: Likewise.
31115         * lib/unistr/u8-strdup.c: Likewise.
31116         * lib/unistr/u8-strlen.c: Likewise.
31117         * lib/unistr/u8-strmblen.c: Likewise.
31118         * lib/unistr/u8-strmbtouc.c: Likewise.
31119         * lib/unistr/u8-strncat.c: Likewise.
31120         * lib/unistr/u8-strncmp.c: Likewise.
31121         * lib/unistr/u8-strncpy.c: Likewise.
31122         * lib/unistr/u8-strnlen.c: Likewise.
31123         * lib/unistr/u8-strpbrk.c: Likewise.
31124         * lib/unistr/u8-strrchr.c: Likewise.
31125         * lib/unistr/u8-strspn.c: Likewise.
31126         * lib/unistr/u8-strstr.c: Likewise.
31127         * lib/unistr/u8-strtok.c: Likewise.
31128         * lib/unistr/u8-to-u16.c: Likewise.
31129         * lib/unistr/u8-to-u32.c: Likewise.
31130         * lib/unistr/u8-uctomb-aux.c: Likewise.
31131         * lib/unistr/u8-uctomb.c: Likewise.
31132         * lib/unitypes.h: Likewise.
31133         * lib/uniwidth.h: Likewise.
31134         * lib/uniwidth/cjk.h: Likewise.
31135         * lib/uniwidth/u16-strwidth.c: Likewise.
31136         * lib/uniwidth/u16-width.c: Likewise.
31137         * lib/uniwidth/u32-strwidth.c: Likewise.
31138         * lib/uniwidth/u32-width.c: Likewise.
31139         * lib/uniwidth/u8-strwidth.c: Likewise.
31140         * lib/uniwidth/u8-width.c: Likewise.
31141         * lib/uniwidth/width.c: Likewise.
31142
31143 2007-10-07  Bruno Haible  <bruno@clisp.org>
31144
31145         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31146         The file is still under LGPL (see modules/inttypes).
31147
31148 2007-10-06  Bruno Haible  <bruno@clisp.org>
31149
31150         * modules/trunc (Dependencies): Add 'extensions'.
31151         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31152         Reported by Ben Pfaff <blp@gnu.org>.
31153
31154 2007-10-06  Bruno Haible  <bruno@clisp.org>
31155
31156         * modules/freopen-tests: New file.
31157         * tests/test-freopen.c: New file.
31158
31159         * modules/fopen-tests: New file.
31160         * tests/test-fopen.c: New file.
31161
31162         * modules/fopen: New file.
31163         * lib/fopen.c: New file.
31164         * m4/fopen.m4: New file.
31165         * modules/freopen: New file.
31166         * lib/freopen.c: New file.
31167         * m4/freopen.m4: New file.
31168         * lib/stdio.in.h (fopen, freopen): New declarations.
31169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31170         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31171         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31172         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31173         * doc/functions/fopen.texi: Mention the 'fopen' module.
31174         * doc/functions/freopen.texi: Mention the 'freopen' module.
31175
31176 2007-10-06  Bruno Haible  <bruno@clisp.org>
31177
31178         * modules/open-tests: New file.
31179         * tests/test-open.c: New file.
31180
31181         * modules/open: New file.
31182         * lib/open.c: New file.
31183         * m4/open.m4: New file.
31184         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31185         lib/open.c does.
31186         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31187         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31188         macros.
31189         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31190         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31191         REPLACE_OPEN.
31192         * doc/functions/open.texi: Mention the 'open' module.
31193
31194 2007-10-04  Bruno Haible  <bruno@clisp.org>
31195
31196         * modules/ceill-tests: New file.
31197         * tests/test-ceill.c: New file.
31198
31199         * modules/ceill: New file.
31200         * lib/ceill.c: Replace entire file.
31201         * m4/ceill.m4: New file.
31202         * lib/math.in.h (ceill): Replace declaration.
31203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31204         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31205         * doc/functions/ceill.texi: Mention the 'ceill' module.
31206         * modules/mathl (Files): Remove lib/ceill.c.
31207         (Depends-on): Add ceill.
31208
31209 2007-10-04  Bruno Haible  <bruno@clisp.org>
31210
31211         * modules/ceilf-tests: New file.
31212         * tests/test-ceilf.c: New file.
31213
31214         * modules/ceilf: New file.
31215         * lib/ceil.c: New file.
31216         * lib/ceilf.c: New file.
31217         * m4/ceilf.m4: New file.
31218         * lib/math.in.h (ceilf): New declaration.
31219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31220         HAVE_DECL_CEILF.
31221         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31222         HAVE_DECL_CEILF.
31223         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31224
31225 2007-10-04  Bruno Haible  <bruno@clisp.org>
31226
31227         * modules/floorl-tests: New file.
31228         * tests/test-floorl.c: New file.
31229
31230         * modules/floorl: New file.
31231         * lib/floorl.c: Replace entire file.
31232         * m4/floorl.m4: New file.
31233         * lib/math.in.h (floorl): Replace declaration.
31234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31235         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31236         * doc/functions/floorl.texi: Mention the 'floorl' module.
31237         * modules/mathl (Files): Remove lib/floorl.c.
31238         (Depends-on): Add floorl.
31239
31240 2007-10-04  Bruno Haible  <bruno@clisp.org>
31241
31242         * modules/floorf-tests: New file.
31243         * tests/test-floorf.c: New file.
31244
31245         * modules/floorf: New file.
31246         * lib/floor.c: New file.
31247         * lib/floorf.c: New file.
31248         * m4/floorf.m4: New file.
31249         * lib/math.in.h (floorf): New declaration.
31250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31251         HAVE_DECL_FLOORF.
31252         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31253         HAVE_DECL_FLOORF.
31254         * doc/functions/floorf.texi: Mention the 'floorf' module.
31255
31256 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31257             Bruno Haible  <bruno@clisp.org>
31258
31259         Advertise for the Git server instead of the CVS server.
31260         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31261         repository instead of the CVS one.
31262         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31263         about all VCS systems generically.
31264         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31265
31266 2007-10-04  Bruno Haible  <bruno@clisp.org>
31267
31268         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31269         means.
31270         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31271
31272 2007-10-04  Bruno Haible  <bruno@clisp.org>
31273
31274         * modules/truncl-tests: New file.
31275         * tests/test-truncl.c: New file.
31276
31277         * modules/truncl: New file.
31278         * lib/truncl.c: New file.
31279         * m4/truncl.m4: New file.
31280         * lib/math.in.h (truncl): New declaration.
31281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31282         HAVE_DECL_TRUNCL.
31283         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31284         HAVE_DECL_TRUNCL.
31285         * doc/functions/truncl.texi: Mention the 'truncl' module.
31286
31287 2007-10-04  Bruno Haible  <bruno@clisp.org>
31288
31289         * modules/truncf-tests: New file.
31290         * tests/test-truncf.c: New file.
31291
31292         * modules/truncf: New file.
31293         * lib/trunc.c: Make paramerizable through USE_* macros.
31294         * lib/truncf.c: New file.
31295         * m4/truncf.m4: New file.
31296         * lib/math.in.h (truncf): New declaration.
31297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31298         HAVE_DECL_TRUNCF.
31299         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31300         HAVE_DECL_TRUNCF.
31301         * doc/functions/truncf.texi: Mention the 'truncf' module.
31302
31303 2007-10-03  Bruno Haible  <bruno@clisp.org>
31304
31305         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31306         augmentation also for tests modules.
31307         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31308         * modules/atexit-tests (Makefile.am): Likewise.
31309         * modules/binary-io-tests (Makefile.am): Likewise.
31310         * modules/c-strcase-tests (Makefile.am): Likewise.
31311         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31312         * modules/canonicalize-tests (Makefile.am): Likewise.
31313         * modules/closein-tests (Makefile.am): Likewise.
31314         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31315         * modules/freadahead-tests (Makefile.am): Likewise.
31316         * modules/fseek-tests (Makefile.am): Likewise.
31317         * modules/fseeko-tests (Makefile.am): Likewise.
31318         * modules/ftell-tests (Makefile.am): Likewise.
31319         * modules/ftello-tests (Makefile.am): Likewise.
31320         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31321         * modules/isnanl-tests (Makefile.am): Likewise.
31322         * modules/lseek-tests (Makefile.am): Likewise.
31323         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31324         * modules/mbscasestr-tests (Makefile.am): Likewise.
31325         * modules/mbschr-tests (Makefile.am): Likewise.
31326         * modules/mbscspn-tests (Makefile.am): Likewise.
31327         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31328         * modules/mbspbrk-tests (Makefile.am): Likewise.
31329         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31330         * modules/mbsrchr-tests (Makefile.am): Likewise.
31331         * modules/mbsspn-tests (Makefile.am): Likewise.
31332         * modules/mbsstr-tests (Makefile.am): Likewise.
31333         * modules/printf-posix-tests (Makefile.am): Likewise.
31334         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31335         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31336         * modules/tsearch-tests (Makefile.am): Likewise.
31337         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31338         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31339         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31340         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31341         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31342         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31343         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31344         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31345         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31346         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31347         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31348         * modules/xstrtol-tests (Makefile.am): Likewise.
31349         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31350         * modules/yesno-tests (Makefile.am): Likewise.
31351
31352 2007-10-03  Bruno Haible  <bruno@clisp.org>
31353
31354         * modules/trunc-tests: New file.
31355         * tests/test-trunc.c: New file.
31356
31357         * modules/trunc: New file.
31358         * lib/trunc.c: New file.
31359         * m4/trunc.m4: New file.
31360         * lib/math.in.h (trunc): New declaration.
31361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31362         HAVE_DECL_TRUNC.
31363         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31364         HAVE_DECL_TRUNC.
31365         * doc/functions/trunc.texi: Mention the 'trunc' module.
31366
31367 2007-10-03  Bruno Haible  <bruno@clisp.org>
31368
31369         * tests/test-fpending.c: New file, mostly copied
31370         from coreutils/lib/t-fpending.c.
31371         * modules/fpending-tests: New file.
31372
31373 2007-10-03  Bruno Haible  <bruno@clisp.org>
31374
31375         Port the stdio extensions to QNX (untested).
31376         * lib/fseterr.c (fseterr): Add support for QNX.
31377         * lib/fbufmode.c (fbufmode): Likewise.
31378         * lib/freadable.c (freadable): Likewise.
31379         * lib/fwritable.c (fwritable): Likewise.
31380         * lib/freading.c (freading): Likewise.
31381         * lib/fwriting.c (fwriting): Likewise.
31382         * lib/freadahead.c (freadahed): Likewise.
31383         * lib/fpurge.c (fpurge): Likewise.
31384         * lib/fseeko.c (rpl_fseeko): Likewise.
31385
31386 2007-10-03  Bruno Haible  <bruno@clisp.org>
31387             Jim Meyering  <jim@meyering.net>
31388             Eric Blake  <ebb9@byu.net>
31389
31390         * doc/relocatable.texi: Use @command instead of @program.
31391
31392 2007-10-02  Jim Meyering  <jim@meyering.net>
31393
31394         Perform one more "_.h" -> ".in.h" substitution.
31395         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31396         instead of unistd_.h here, too.
31397
31398 2007-10-01  Bruno Haible  <bruno@clisp.org>
31399
31400         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31401         Needed for the alloca-opt module.
31402
31403 2007-09-30  Bruno Haible  <bruno@clisp.org>
31404
31405         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31406         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31407         alloca_.h.
31408         * lib/argz.in.h: Renamed from lib/argz_.h.
31409         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31410         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31411         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31412         byteswap_.h.
31413         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31414         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31415         dirent_.h.
31416         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31417         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31418         fcntl_.h.
31419         * lib/float.in.h: Renamed from lib/float_.h.
31420         * modules/float (Files, Makefile.am): Use float.in.h instead of
31421         float_.h.
31422         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31423         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31424         fnmatch_.h.
31425         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31426         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31427         getopt_.h.
31428         * lib/glob.in.h: Renamed from lib/glob_.h.
31429         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31430         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31431         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31432         iconv_.h.
31433         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31434         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31435         inttypes_.h.
31436         * lib/locale.in.h: Renamed from lib/locale_.h.
31437         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31438         locale_.h.
31439         * lib/math.in.h: Renamed from lib/math_.h.
31440         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31441         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31442         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31443         of netinet_in_.h. Add dependency.
31444         * lib/poll.in.h: Renamed from lib/poll_.h.
31445         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31446         * lib/search.in.h: Renamed from lib/search_.h.
31447         * modules/search (Files, Makefile.am): Use search.in.h instead of
31448         search_.h.
31449         * lib/signal.in.h: Renamed from lib/signal_.h.
31450         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31451         _signal.h.
31452         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31453         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31454         stdbool_.h.
31455         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31456         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31457         stdint_.h.
31458         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31459         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31460         stdio_.h.
31461         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31462         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31463         stdlib_.h.
31464         * lib/string.in.h: Renamed from lib/string_.h.
31465         * modules/string (Files, Makefile.am): Use string.in.h instead of
31466         string_.h.
31467         * doc/gnulib-tool.texi (Initial import): Update.
31468         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31469         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31470         of sys_select_.h. Add dependency.
31471         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31472         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31473         of sys_socket_.h.
31474         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31475         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31476         sys_stat_.h.
31477         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31478         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31479         sys_time_.h.
31480         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31481         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31482         sysexits_.h.
31483         * lib/time.in.h: Renamed from lib/time_.h.
31484         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31485         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31486         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31487         unistd_.h.
31488         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31489         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31490         wchar_.h.
31491         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31492         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31493         wctype_.h.
31494         * build-aux/bootstrap (slurp): Update.
31495         * lib/.cppi-disable: Update.
31496
31497 2007-09-30  Bruno Haible  <bruno@clisp.org>
31498
31499         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31500         Needed on BeOS.
31501
31502 2007-09-30  Bruno Haible  <bruno@clisp.org>
31503
31504         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31505
31506 2007-09-29  Bruno Haible  <bruno@clisp.org>
31507
31508         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31509
31510 2007-09-29  Bruno Haible  <bruno@clisp.org>
31511
31512         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31513         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31514         * build-aux/install-reloc: Compile also areadlink.c.
31515         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31516
31517 2007-09-29  Bruno Haible  <bruno@clisp.org>
31518
31519         * gnulib-tool (func_emit_initmacro_done): Indentation.
31520
31521 2007-09-29  Bruno Haible  <bruno@clisp.org>
31522
31523         * README: Add CVS checkout update instructions.
31524         Info from Bob Proulx <bob@proulx.com>.
31525
31526 2007-09-28  Eric Blake  <ebb9@byu.net>
31527
31528         Provide move-if-change.
31529         * build-aux/move-if-change: New file, based on best practice
31530         rather than any canonical upstream location.
31531
31532 2007-09-28  Jim Meyering  <jim@meyering.net>
31533
31534         Fix canonicalize loop-detection corner case.
31535         Do not attempt to stat the symlink values stored via seen_triple.
31536         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31537         on linux-2.6.18, (but not 2.6.22).
31538         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31539         triple_compare.  The former compares dev,ino,filename, while the latter
31540         would actually stat dirname(filename) when dev and ino were equal.
31541         * lib/hash-triple.c: Install <string.h>.
31542         (STREQ): Define.
31543         (triple_compare_ino_str): New function.
31544         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31545
31546 2007-09-28  Eric Blake  <ebb9@byu.net>
31547
31548         Enforce that AC_REPLACE_FUNCS files exist.
31549         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31550         override check for typos.
31551
31552         Fix test-closein on Solaris 10.
31553         * tests/test-closein.c (main): Don't assume stdin can be inherited
31554         closed on all systems.
31555         * tests/test-closein.sh: Likewise.
31556         Reported by Piotr Tarnowski.
31557
31558 2007-09-28  Jim Meyering  <jim@meyering.net>
31559
31560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31561
31562 2007-09-27  Jim Meyering  <jim@meyering.net>
31563
31564         canonicalize: Avoid a false-positive cycle failure.
31565         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31566         Sort.  Remove cycle-check.
31567         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31568         not cycle-check.h.
31569         (seen_triple): New function.
31570         (canonicalize_filename_mode): Use it instead of cycle-check.
31571         * tests/test-canonicalize.c: Add a test for this bug.
31572         * tests/test-canonicalize.sh: Set up and run the test.
31573
31574         New module, file-set, from coreutils.
31575         * modules/file-set: Define it.
31576         * lib/file-set.c, lib/file-set.h: Implement.
31577
31578         New module, hash-triple, from coreutils.
31579         * modules/hash-triple: Define it.
31580         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31581
31582 2007-09-25  Eric Blake  <ebb9@byu.net>
31583
31584         Fix strerror on Interix.
31585         * lib/string_.h (strerror): Declare replacement.
31586         * doc/functions/strerror.texi (strerror): Document the Interix
31587         shortcoming.
31588         * modules/string (Makefile.am): Support new hooks.
31589         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31590         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31591         gl_FUNC_STRERROR_SEPARATE.
31592         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31593         * lib/strerror.c (rpl_strerror): Provide replacement.
31594         * modules/strerror (Depends-on): Add string.
31595         (configure.ac): Detect use of module.
31596         * tests/test-strerror.c: New file.
31597         * modules/strerror-tests: New test module.
31598         * modules/argp (Depends-on): Add strerror.
31599         * modules/error (Depends-on): Likewise.
31600         Reported by Martin Koeppe.
31601
31602 2007-09-24  Bruno Haible  <bruno@clisp.org>
31603
31604         * README: Update git instructions.
31605
31606 2007-09-24  Eric Blake  <ebb9@byu.net>
31607
31608         Revert fpending breakage from 2007-09-08.
31609         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31610         __fpending.c.
31611
31612 2007-09-24  Jim Meyering  <jim@meyering.net>
31613
31614         filenamecat.c: Add a test.
31615         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31616         showing how the function works when DIR is the empty string.
31617
31618 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31619
31620         * tests/test-canonicalize.sh: Turn on executable bit.
31621
31622 2007-09-19  Eric Blake  <ebb9@byu.net>
31623
31624         * README: Update CVS instructions.
31625
31626 2007-09-18  Bruno Haible  <bruno@clisp.org>
31627
31628         * modules/areadlink: New file.
31629         * lib/areadlink.h (areadlink): New declaration.
31630         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31631
31632 2007-09-17  Jim Meyering  <jim@meyering.net>
31633
31634         * lib/savewd.c (ESTALE) [!defined]: Define.
31635         Reported to be required on Interix by Martin Koeppe.
31636
31637 2007-09-17  Bruno Haible  <bruno@clisp.org>
31638
31639         * gnulib-tool (func_version): Use $version.
31640
31641 2007-09-16  Bruno Haible  <bruno@clisp.org>
31642
31643         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31644         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31645         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31646         Reported by Greg Schafer <gschafer@zip.com.au>.
31647
31648 2007-09-15  Bruno Haible  <bruno@clisp.org>
31649
31650         * gnulib-tool (sed): Try a little harder to make bash understand the
31651         alias.
31652         Reported by Bruce Korb <bruce.korb@gmail.com>.
31653
31654 2007-09-13  Eric Blake  <ebb9@byu.net>
31655
31656         * ChangeLog: Remove conflict markers.
31657
31658 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31659
31660         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31661         Reported by Bruno Haible <bruno@clisp.org>.
31662
31663 2007-09-12  Bruno Haible  <bruno@clisp.org>
31664
31665         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31666         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31667         is not defined.
31668
31669 2007-09-12  Eric Blake  <ebb9@byu.net>
31670
31671         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31672         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31673         Autoconf definition.
31674         * modules/euidaccess (Depends-on): Add extensions, for
31675         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31676         * modules/fnmatch (Depends-on): Likewise.
31677         * modules/getaddrinfo (Depends-on): Likewise.
31678         * modules/getdelim (Depends-on): Likewise.
31679         * modules/getline (Depends-on): Likewise.
31680         * modules/getsubopt (Depends-on): Likewise.
31681         * modules/gettext (Depends-on): Likewise.
31682         * modules/group-member (Depends-on): Likewise.
31683         * modules/mbchar (Depends-on): Likewise.
31684         * modules/memmem (Depends-on): Likewise.
31685         * modules/mempcpy (Depends-on): Likewise.
31686         * modules/memrchr (Depends-on): Likewise.
31687         * modules/pagealign_alloc (Depends-on): Likewise.
31688         * modules/readutmp (Depends-on): Likewise.
31689         * modules/stpcpy (Depends-on): Likewise.
31690         * modules/stpncpy (Depends-on): Likewise.
31691         * modules/strchrnul (Depends-on): Likewise.
31692         * modules/strndup (Depends-on): Likewise.
31693         * modules/strsep (Depends-on): Likewise.
31694         * modules/strverscmp (Depends-on): Likewise.
31695         * modules/vasprintf (Depends-on): Likewise.
31696         * modules/wcwidth (Depends-on): Likewise.
31697         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31698         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31699         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31700         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31701         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31702         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31703         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31704         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31705         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31706         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31707         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31708         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31709         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31711         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31712         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31713         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31714         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31715         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31716         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31717         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31718         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31719         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31720         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31721         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31722         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31723         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31724         so that lock.m4 can be used in gettext without extensions module.
31725
31726 2007-09-11  Bruno Haible  <bruno@clisp.org>
31727
31728         * m4/isc-posix.m4: Remove file.
31729         Suggested by Eric Blake.
31730
31731 2007-09-11  Eric Blake  <ebb9@byu.net>
31732
31733         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31734
31735 2007-09-10  Bruno Haible  <bruno@clisp.org>
31736
31737         * posix-modules: Fix typo in error message.
31738         Reported by Matt <mkraai@beckman.com>.
31739
31740 2007-09-09  Bruno Haible  <bruno@clisp.org>
31741
31742         * doc/functions/getdelim.texi: Update list of platforms lacking the
31743         function.
31744         * doc/functions/getline.texi: Likewise.
31745
31746 2007-09-09  Jim Meyering  <jim@meyering.net>
31747
31748         * lib/hash.c (hash_initialize): Detect calloc failure.
31749         Reported by Bruno Haible.
31750
31751 2007-09-09  Bruno Haible  <bruno@clisp.org>
31752
31753         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31754         malloc or realloc fails.
31755
31756 2007-09-09  Bruno Haible  <bruno@clisp.org>
31757
31758         * modules/getcwd (Depends-on): Add malloc-posix.
31759         * modules/glob (Depends-on): Likewise.
31760         * modules/putenv (Depends-on): Likewise.
31761         * modules/strdup (Depends-on): Likewise.
31762         * modules/getdelim (Depends-on): Add realloc-posix.
31763         * modules/read-file (Depends-on): Likewise.
31764
31765 2007-09-09  Bruno Haible  <bruno@clisp.org>
31766
31767         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31768         (gl_FUNC_MALLOC_POSIX): Require it.
31769         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31770         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31771         * modules/realloc (Files): Add m4/malloc.m4.
31772         * modules/calloc (Files): Likewise.
31773
31774 2007-09-09  Bruno Haible  <bruno@clisp.org>
31775
31776         * modules/malloc-posix: New file.
31777         * modules/malloc (Depends-on): Add malloc-posix.
31778         * lib/malloc.c: Include errno.h.
31779         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31780         and a POSIX-compatible malloc into a single function. Set ENOMEM
31781         when returning NULL.
31782         * m4/malloc.m4: New file.
31783         * doc/functions/malloc.texi: Mention the malloc-posix module.
31784         * lib/stdlib_.h (malloc): New declaration.
31785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31786         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31787         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31788         and HAVE_MALLOC_POSIX.
31789
31790 2007-09-09  Bruno Haible  <bruno@clisp.org>
31791
31792         * modules/realloc-posix: New file.
31793         * modules/realloc (Depends-on): Add realloc-posix.
31794         * lib/realloc.c: Include errno.h.
31795         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31796         and a POSIX-compatible realloc into a single function. Set ENOMEM
31797         when returning NULL.
31798         * m4/realloc.m4: New file.
31799         * doc/functions/realloc.texi: Mention the realloc-posix module.
31800         * lib/stdlib_.h (realloc): New declaration.
31801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31802         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31803         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31804         and HAVE_REALLOC_POSIX.
31805
31806 2007-09-09  Bruno Haible  <bruno@clisp.org>
31807
31808         * modules/calloc-posix: New file.
31809         * modules/calloc (Depends-on): Add calloc-posix.
31810         * lib/calloc.c: Include errno.h.
31811         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31812         and a POSIX-compatible calloc into a single function. Set ENOMEM
31813         when returning NULL.
31814         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31815         * doc/functions/calloc.texi: Mention the calloc-posix module.
31816         * lib/stdlib_.h (calloc): New declaration.
31817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31818         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31819         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31820         and HAVE_CALLOC_POSIX.
31821
31822 2007-09-09  Bruno Haible  <bruno@clisp.org>
31823
31824         Allow for modules to show an arbitrary notice.
31825         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31826         * gnulib-tool: New option --extract-notice.
31827         (func_usage): Document it.
31828         (sed_extract_prog): Update.
31829         (func_get_notice): New function.
31830         (func_modules_notice): New function.
31831         (func_import, func_create_testdir): Invoke it.
31832         Suggested by Jim Meyering.
31833
31834 2007-09-09  Bruno Haible  <bruno@clisp.org>
31835
31836         * gnulib-tool: New options --verbose, --quiet.
31837         (func_usage): Document them.
31838         (verbose): New variable.
31839         (func_execute_command): New function.
31840         (func_import): Don't show the module list and the file list if
31841         $verbose < 0.
31842         (func_create_testdir): Likewise. Use func_execute_command.
31843         (func_create_megatestdir): Use func_execute_command.
31844
31845 2007-09-08  Bruno Haible  <bruno@clisp.org>
31846
31847         * gnulib-tool (func_import): Prefer rsync over wget when available,
31848         for fetching the PO files.
31849
31850 2007-09-08  Bruno Haible  <bruno@clisp.org>
31851
31852         * posix-modules: New file. Portions copied from gnulib-tool.
31853         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31854
31855 2007-09-08  Jim Meyering  <jim@meyering.net>
31856
31857         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31858         * lib/fpending.h: Rename from __fpending.h.
31859         * lib/fpending.c: Rename from __fpending.c.
31860         Include "fpending.h", not "__fpending.h".
31861         * lib/__fpending.h, lib/__fpending.c: Remove files.
31862         * modules/fpending (Files): Reflect new file names.
31863         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31864
31865 2007-09-08  Bruno Haible  <bruno@clisp.org>
31866
31867         * m4/inttypes-h.m4: Remove stub file.
31868
31869 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31870
31871         * doc/headers/stdint.texi: Discuss #include_next issue.
31872
31873 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31874
31875         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31876
31877 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31878
31879         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31880         in variable name.
31881
31882 2007-09-03  Jim Meyering  <jim@meyering.net>
31883
31884         New module: git-version-gen.
31885         * modules/git-version-gen: New file.
31886
31887         Import changes from coreutils for bootstrap script.
31888
31889         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31890
31891         bootstrap: uses rsync to download the .po files
31892         * build-aux/bootstrap (po_download_command_format): New global.
31893         (download_po_files): Use rsync.
31894         (update_po_files): Don't remove .po files after download,
31895         so future rsync runs can take advantage of the copies.
31896
31897         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31898
31899         Solve the unnecessary-.po-file-regeneration problem once and for all.
31900         * build-aux/bootstrap (download_po_files): New function, renamed from
31901         get_translations.  Now, downloads, but doesn't update LINGUAS.
31902         (update_po_files): New function.
31903
31904         bootstrap: Ignore more.
31905         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31906         uniwidth to e.g., lib/.gitignore.
31907         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31908
31909         * build-aux/bootstrap: New setting: vc_ignore.
31910         (insert_sorted_if_absent): Create $file if absent.
31911         Adapt to new, possibly empty, list: $vc_ignore.
31912
31913         bootstrap: generate more ignorable names
31914         * build-aux/bootstrap (slurp): When generating ignorable names,
31915         also map .sin to .sed, .gperf to .c, and .y to .c.
31916
31917 2007-09-03  Jim Meyering  <jim@meyering.net>
31918
31919         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31920         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31921
31922 2007-09-02  Bruno Haible  <bruno@clisp.org>
31923
31924         Fix mis-recognition of 'mcs' on QNX 6.
31925         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31926         output contains the string "Mono".
31927         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31928         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31929
31930 2007-09-01  Bruno Haible  <bruno@clisp.org>
31931
31932         Fix collision between uniwidth/* and linebreak modules.
31933         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31934         u32_width): Remove declarations.
31935         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31936         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31937         streq3, streq2, streq1, streq0): Remove functions.
31938         (STREQ): Remove macro.
31939         (is_cjk_encoding): Remove function.
31940         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31941         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31942         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31943         * NEWS: Document the change.
31944
31945 2007-09-01  Bruno Haible  <bruno@clisp.org>
31946
31947         * lib/streq.h: Add double-inclusion guard.
31948
31949 2007-09-01  Karl Berry  <karl@gnu.org>
31950
31951         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31952
31953 2007-08-28  Jim Meyering  <jim@meyering.net>
31954
31955         Rename mreadlink_with_size to areadlink_with_size.
31956         * NEWS: Document the change.
31957         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31958         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31959         * lib/mreadlink.h: Rename this to...
31960         * lib/areadlink.h: ...this.
31961         * modules/mreadlink-with-size: Rename this to...
31962         * modules/areadlink-with-size: ...this.
31963         * lib/canonicalize.c: Reflect the renaming.
31964         * modules/canonicalize: Likewise.
31965
31966 2007-08-26  Bruno Haible  <bruno@clisp.org>
31967
31968         * gnulib-tool (func_import): When deciding which files to remove,
31969         consider also dangling symbolic links.
31970         Reported by Eric Blake.
31971
31972 2007-08-26  Bruno Haible  <bruno@clisp.org>
31973
31974         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31975
31976 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31977
31978         * lib/readline.c: Don't include getline.h, the prototype is now
31979         found in stdio.h.
31980
31981 2007-08-23  Jim Meyering  <jim@meyering.net>
31982
31983         Getdelim touchup.
31984         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31985         around the funlockfile call, since funlockfile never sets errno.
31986         Don't set errno upon failed realloc.
31987
31988 2007-08-22  Eric Blake  <ebb9@byu.net>
31989
31990         Getline touchups.
31991         * lib/getdelim.c (getdelim): Revert regression that required *n to
31992         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31993         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31994         getdelim, rather than whether implementation is missing.
31995         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31996         * lib/stdio_.h (getline): Also declare if replacement is
31997         required.
31998         * doc/functions/getdelim.texi: New file.
31999         * doc/functions/getline.texi: Likewise.
32000         * doc/gnulib.texi (Function Substitutes): Add new files.
32001         Reported by Bruno Haible.
32002
32003 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32004
32005         * users.txt: Add Guile.
32006
32007 2007-08-22  Eric Blake  <ebb9@byu.net>
32008
32009         * tests/test-getdelim.c (main): Use remove, not unlink.
32010         * tests/test-getline.c (main): Likewise.
32011
32012         Move getline and getdelim into stdio.h, per POSIX 200x.
32013         * modules/getline (Files): Remove getline.h.
32014         (Depends-on): Add stdio.
32015         (configure.ac): Add module indicator.
32016         * modules/getdelim (Files): Remove getdelim.h.
32017         (Depends-on): Add stdio.
32018         (configure.ac): Add module indicator.
32019         * modules/stdio (Makefile.am): Work with new indicators.
32020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32021         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32022         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32023         * lib/getdelim.h: Delete.
32024         * lib/getline.h: Delete.
32025         * lib/stdio_.h (getdelim, getline): Declare.
32026         * modules/getdelim-tests: New module.
32027         * modules/getline-tests: Likewise.
32028         * tests/test-getdelim.c: New file.
32029         * tests/test-getline.c: Likewise.
32030         * NEWS: Document the change.
32031         * lib/getline.c: Update choice of header.
32032         * lib/csharpcomp.c: Likewise.
32033         * lib/getpass.c: Likewise.
32034         * lib/javacomp.c: Likewise.
32035         * lib/javaversion.c: Likewise.
32036         * lib/yesno.c: Likewise.
32037         * lib/getdelim.c: Likewise.
32038         (getdelim): Set errno on failure, and avoid memory leak.
32039
32040 2007-08-19  Bruno Haible  <bruno@clisp.org>
32041
32042         * modules/closein (Depends-on): Add freadahead.
32043         * lib/closein.c: Include freadahead.h.
32044         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32045         is zero.
32046
32047 2007-08-19  Bruno Haible  <bruno@clisp.org>
32048
32049         * modules/freadahead-tests: New file.
32050         * tests/test-freadahead.sh: New file.
32051         * tests/test-freadahead.c: New file.
32052
32053         * modules/freadahead: New file.
32054         * lib/freadahead.h: New file.
32055         * lib/freadahead.c: New file.
32056         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32057         fbufmode, fpurge, freadable, fwritable.
32058
32059 2007-08-19  Eric Blake  <ebb9@byu.net>
32060
32061         Test yesno in combination with closein.
32062         * lib/yesno.c (yesno): Document use of stdin.
32063         * modules/yesno-tests (Files): New module.
32064         * tests/test-yesno.c (main): New file.
32065         * tests/test-yesno.sh: Likewise.
32066
32067 2007-08-19  Bruno Haible  <bruno@clisp.org>
32068
32069         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32070         * lib/fseeko.c (rpl_fseeko): Likewise.
32071         * lib/fseterr.c (fseterr): Likewise.
32072
32073 2007-08-19  Bruno Haible  <bruno@clisp.org>
32074
32075         * tests/test-lseek.c (main): Disable a test for BeOS.
32076         * doc/functions/lseek.texi: Document the BeOS bug.
32077
32078 2007-08-19  Bruno Haible  <bruno@clisp.org>
32079             Eric Blake  <ebb9@byu.net>
32080
32081         * lib/lseek.c: Include <sys/stat.h>.
32082         (rpl_lseek): Add workaround code also for Unix platforms.
32083         Needed for BeOS.
32084         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32085         * doc/functions/lseek.texi: Document BeOS definiency.
32086
32087 2007-08-18  Bruno Haible  <bruno@clisp.org>
32088
32089         * modules/fstrcmp-tests: New file.
32090         * tests/test-fstrcmp.c: New file.
32091
32092 2007-08-18  Bruno Haible  <bruno@clisp.org>
32093
32094         * modules/fstrcmp: New file, from GNU gettext with modifications.
32095         * lib/fstrcmp.h: New file, from GNU gettext.
32096         * lib/fstrcmp.c: New file, from GNU gettext.
32097         * MODULES.html.sh (String handling): Add fstrcmp.
32098
32099 2007-08-18  Bruno Haible  <bruno@clisp.org>
32100
32101         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32102         'bool'.
32103         (diag, compareseq): Remove const from the ctxt argument.
32104         (USE_HEURISTIC): Undefine at the end.
32105
32106 2007-08-18  Jim Meyering  <jim@meyering.net>
32107
32108         New file: lib/idcache.h
32109         * NEWS: Mention the addition.
32110         * modules/idcache (Files): Add lib/idcache.h
32111         * lib/idcache.c: Include "idcache.h".
32112         Don't include <sys/types.h>.
32113         Add a FIXME comment.
32114         Move file-scoped "static" declarations to the top.
32115         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32116
32117 2007-08-17  Bruno Haible  <bruno@clisp.org>
32118         and Paul Eggert  <eggert@cs.ucla.edu>
32119
32120         * MODULES.html.sh: Add diffseq.
32121         * modules/diffseq: New file.
32122         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32123         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32124
32125 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32126
32127         Import changes from coreutils for bootstrap script.
32128
32129         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32130
32131         * build-aux/bootstrap (slurp): Work even in environments where
32132         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32133         current code does not slurp files whose names start with ".", and
32134         this looks like it might be a troublesome area.
32135
32136         2007-07-11  Jim Meyering  <jim@meyering.net>
32137
32138         If there's a GPL vN copyright comment, require that N == 3.
32139
32140         2007-07-08  Jim Meyering  <jim@meyering.net>
32141
32142         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32143         * build-aux/bootstrap (mam_template): Move definition out of loop.
32144
32145         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32146
32147         * build-aux/bootstrap (symlink_to_dir): Rename function from
32148         symlink_to_gnulib.  Add a directory parameter.  Update all
32149         callers.
32150         (cp_mark_as_generated): Also check for -- and link to -- files in
32151         gl/.
32152
32153         2007-07-08  Jim Meyering  <jim@meyering.net>
32154
32155         Adapt to deeper hierarchy in gnulib.
32156         * build-aux/bootstrap (symlink_to_dir): If the destination
32157         directory doesn't exist, create it. This is required at least for
32158         "lib/uniwidth/cjk.h".
32159
32160         2007-05-15  Jim Meyering  <jim@meyering.net>
32161
32162         * build-aux/bootstrap: Now that generated Makefile.am files
32163         are no longer under version control, they must be created at
32164         bootstrap time.
32165
32166 2007-08-14  Ben Pfaff  <blp@gnu.org>
32167
32168         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32169
32170 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32171
32172         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32173         given the changes below.
32174         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32175         even on hosts that have padding bits beyond the supported 64.
32176
32177 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32178
32179         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32180         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32181         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32182         depends on it.
32183         (xstrtol_error): Remove.
32184         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32185         but with a different signature.
32186         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32187         * lib/xstrtol-error.c: Include exitfail.h.
32188         (xstrtol_fatal): New function, with a different signature from the
32189         old xstrtol_error, so that the caller need not worry about passing
32190         in an exit status, or about storage management of the option argument.
32191         (xstrtol_error): Now a static function.  Redo signature to
32192         implement xstrtol_fatal.  Output the correct number of hyphens in
32193         front of the option so that the caller need not worry about
32194         storage management.
32195         (N_): New macro.
32196         (_): Remove; not used now.
32197         * modules/xstrtol: Depend on getopt.
32198         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32199         of old STRTOL_FATAL_ERROR macro.
32200         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32201         of test program.
32202         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32203         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32204
32205 2007-08-08  Eric Blake  <ebb9@byu.net>
32206
32207         * lib/xstrtol-error.c: Add missing include.
32208
32209         Move xstrtol messages into gnulib domain, when --pobase is used.
32210         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32211         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32212         * modules/xstrtol (Files): Distribute new file.
32213         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32214         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32215         * tests/test-xstrtol.c: ...into new file.
32216         * tests/test-xstrtoul.c: Also test xstrtoul.
32217         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32218         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32219         * tests/test-xstrtol.sh: Drive the tests.
32220         * tests/test-xstrtoimax.sh: Likewise.
32221         * tests/test-xstrtoumax.sh: Likewise.
32222         * modules/xstrtol-tests: New module.
32223         * modules/xstrtoimax-tests: Likewise.
32224         * modules/xstrtoumax-tests: Likewise.
32225
32226 2007-08-08  Jim Meyering  <jim@meyering.net>
32227
32228         New function: mfile_name_concat.
32229         * lib/filenamecat.c (mfile_name_concat): New function, just like
32230         file_name_concat, but return NULL upon failure rather than exiting
32231         with a diagnostic.
32232         * lib/filenamecat.h: Declare it.
32233
32234 2007-08-07  Bruno Haible  <bruno@clisp.org>
32235
32236         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32237         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32238         warning from gcc.
32239         Reported by Eric Blake.
32240
32241 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32242
32243         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32244         * modules/crypto/arcfour (License): Likewise.
32245         * modules/crypto/des-tests (License): Likewise.
32246         * modules/crypto/gc-arctwo-tests (License): Likewise.
32247         * modules/crypto/gc-des-tests (License): Likewise.
32248         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32249         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32250         * modules/crypto/gc-md2-tests (License): Likewise.
32251         * modules/crypto/gc-md4-tests (License): Likewise.
32252         * modules/crypto/gc-md5-tests (License): Likewise.
32253         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32254         * modules/crypto/gc-rijndael-tests (License): Likewise.
32255         * modules/crypto/gc-sha1-tests (License): Likewise.
32256         * modules/crypto/gc-tests (License): Likewise.
32257         * modules/crypto/hmac-md5 (License): Likewise.
32258         * modules/crypto/hmac-sha1 (License): Likewise.
32259         * modules/crypto/md2-tests (License): Likewise.
32260         * modules/crypto/md4-tests (License): Likewise.
32261         * modules/crypto/md5 (License): Likewise.
32262         * modules/crypto/rijndael (License): Likewise.
32263         * modules/crypto/sha1 (License): Likewise.
32264         * modules/memxor (License): Likewise.
32265
32266 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32267         and Bruno Haible  <bruno@clisp.org>
32268
32269         * NEWS: Describe interface changes to human, xstrtol.
32270         * lib/human.h: Include <xstrtol.h>.
32271         (human_options): Return enum strtol_error, not int.  Remove
32272         bool arg; take int * instead.
32273         * lib/human.c: Don't include "gettext.h".
32274         (_): Remove; no longer used.
32275         Don't include <xstrtol.h>, since human.h does it.
32276         (human_options): Adjust to abovementioned interface changes.
32277         Do not report error to stderr; that's now the caller's
32278         responsibility.
32279         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32280         interface change.
32281         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32282         Str, Argument_type_string.  All uses changed.  Put " argument"
32283         in diagnostics to make them clearer.  Change wording of suffix
32284         message for clarity.
32285         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32286         Argument_type_string.
32287         (STRTOL_FATAL_WARN): Remove; no longer used.
32288         * modules/human (Depends-on): Remove gettext-h.
32289
32290 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32291
32292         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32293
32294 2007-07-31  Bruno Haible  <bruno@clisp.org>
32295
32296         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32297         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32298         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32299
32300 2007-07-31  Bruno Haible  <bruno@clisp.org>
32301
32302         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32303         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32304
32305 2007-07-30  Bruno Haible  <bruno@clisp.org>
32306
32307         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32308         * modules/c-ctype (License): Likewise.
32309         * modules/c-strcase (License): Likewise.
32310         * modules/check-version (License): Likewise.
32311         * modules/iconv (License): Likewise.
32312         * modules/iconv_open (License): Likewise.
32313         * modules/read-file (License): Likewise.
32314         * modules/striconv (License): Likewise.
32315         * modules/strverscmp (License): Likewise.
32316         * modules/vasprintf (License): Likewise.
32317         * modules/crypto/des (License): Likewise.
32318         * modules/crypto/gc (License): Likewise.
32319         * modules/crypto/gc-arcfour (License): Likewise.
32320         * modules/crypto/gc-arctwo (License): Likewise.
32321         * modules/crypto/gc-des (License): Likewise.
32322         * modules/crypto/gc-hmac-md5 (License): Likewise.
32323         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32324         * modules/crypto/gc-md2 (License): Likewise.
32325         * modules/crypto/gc-md4 (License): Likewise.
32326         * modules/crypto/gc-md5 (License): Likewise.
32327         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32328         * modules/crypto/gc-random (License): Likewise.
32329         * modules/crypto/gc-rijndael (License): Likewise.
32330         * modules/crypto/gc-sha1 (License): Likewise.
32331         * modules/crypto/md2 (License): Likewise.
32332         * modules/crypto/md4 (License): Likewise.
32333
32334 2007-07-30  Jim Meyering  <jim@meyering.net>
32335
32336         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32337         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32338         it has valid stat data.  This bug would cause du not to count the
32339         sizes of inaccessible directories.
32340         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32341         in <http://bugzilla.redhat.com/250077>.
32342
32343 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32344             Bruno Haible  <bruno@clisp.org>
32345
32346         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32347         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32348         #include_next, gives a diagnostic about it, but reports no error in
32349         the exit code.
32350         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32351
32352 2007-07-24  Ben Pfaff  <blp@gnu.org>
32353
32354         Improve name: "count-one-bits" is better than "popcount".
32355         * MODULES.html.sh: Update name.
32356         * lib/popcount.h: Renamed lib/count-one-bits.h.
32357         (popcount): Renamed count_one_bits.
32358         (popcountl): Renamed count_one_bits_l.
32359         (popcountll): Renamed count_one_bits_ll.
32360         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32361         * modules/popcount: Renamed module/count-one-bits.
32362         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32363         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32364
32365 2007-07-23  Ben Pfaff  <blp@gnu.org>
32366
32367         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32368         better code generation, and add U to large constants to avoid
32369         warnings, in non-GCC case.
32370         Suggested by Bruno Haible.
32371
32372 2007-07-23  Ben Pfaff  <blp@gnu.org>
32373
32374         * lib/popcount.h: Use verify_true instead of if...abort.
32375         * modules/popcount: Depend on verify module.
32376         Suggested by Jim Meyering.
32377
32378 2007-07-23  Bruno Haible  <bruno@clisp.org>
32379
32380         * gnulib-tool (func_import): Create a .cvsignore file also when the
32381         directory is not yet in CVS but the toplevel directory is. When
32382         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32383         Reported by Karl Berry.
32384
32385 2007-07-22  Ben Pfaff  <blp@gnu.org>
32386
32387         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32388         case.
32389         Suggested by Eric Blake.
32390
32391 2007-07-22  Ben Pfaff  <blp@gnu.org>
32392
32393         New module: popcount.
32394         * MODULES.html.sh: Add popcount.
32395         * modules/popcount: New file.
32396         * modules/popcount-tests: New file.
32397         * tests/test-popcount.c: New file.
32398         * lib/popcount.h: New file.
32399         * m4/popcount.m4: New file.
32400
32401 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32402
32403         * build-aux/announce-gen: Update to GPLv3.
32404
32405         * build-aux/config.guess: Update from config.
32406
32407 2007-07-21  Bruno Haible  <bruno@clisp.org>
32408
32409         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32410         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32411
32412 2007-07-20  Jim Meyering  <jim@meyering.net>
32413
32414         * check-module: Diagnose a self-dependency.
32415
32416 2007-07-19  Bruno Haible  <bruno@clisp.org>
32417
32418         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32419         empty.
32420         Reported by Eric Blake.
32421
32422 2007-07-18  Bruno Haible  <bruno@clisp.org>
32423
32424         * gnulib-tool: New options --po-base, --po-domain.
32425         (func_usage): Document them.
32426         (pobase, po_domain): New variables.
32427         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32428         DEFAULT_TEXT_DOMAIN.
32429         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32430         (func_import): Consider pobase and po_domain. Create a po/ directory.
32431         (func_create_testdir): Set pobase and po_domain to empty.
32432         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32433         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32434
32435 2007-07-18  Bruno Haible  <bruno@clisp.org>
32436
32437         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32438         EXTRA_DIST augmentation for files in build-aux/.
32439
32440 2007-07-16  Bruno Haible  <bruno@clisp.org>
32441
32442         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32443         * modules/getdelim (License): Likewise.
32444
32445 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32446
32447         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32448         * modules/d-type (License): Likewise.
32449         * modules/extensions (License): Likewise.
32450         * modules/fnmatch (License): Likewise.
32451         * modules/fseeko (License): Likewise.
32452         * modules/getaddrinfo (License): Likewise.
32453         * modules/getline (License): Likewise.
32454         * modules/getlogin_r (License): Likewise.
32455         * modules/getpass (License): Likewise.
32456         * modules/gettimeofday (License): Likewise.
32457         * modules/glob (License): Likewise.
32458         * modules/inet_ntop (License): Likewise.
32459         * modules/malloc (License): Likewise.
32460         * modules/malloca (License): Likewise.
32461         * modules/memmem (License): Likewise.
32462         * modules/mempcpy (License): Likewise.
32463         * modules/memset (License): Likewise.
32464         * modules/minmax (License): Likewise.
32465         * modules/mktime (License): Likewise.
32466         * modules/netinet_in (License): Likewise.
32467         * modules/pathmax (License): Likewise.
32468         * modules/poll (License): Likewise.
32469         * modules/regex (License): Likewise.
32470         * modules/snprintf (License): Likewise.
32471         * modules/stdbool (License): Likewise.
32472         * modules/stdint (License): Likewise.
32473         * modules/stdio (License): Likewise.
32474         * modules/strcase (License): Likewise.
32475         * modules/strcasestr (License): Likewise.
32476         * modules/strdup (License): Likewise.
32477         * modules/string (License): Likewise.
32478         * modules/strndup (License): Likewise.
32479         * modules/strnlen (License): Likewise.
32480         * modules/strpbrk (License): Likewise.
32481         * modules/strptime (License): Likewise.
32482         * modules/strsep (License): Likewise.
32483         * modules/sys_select (License): Likewise.
32484         * modules/sys_socket (License): Likewise.
32485         * modules/sys_stat (License): Likewise.
32486         * modules/sys_time (License): Likewise.
32487         * modules/time (License): Likewise.
32488         * modules/time_r (License): Likewise.
32489         * modules/timegm (License): Likewise.
32490         * modules/unistd (License): Likewise.
32491         * modules/vsnprintf (License): Likewise.
32492         * modules/wctype (License): Likewise.
32493
32494 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32495
32496         * modules/argz (License): LGPLv2+.
32497
32498 2007-07-15  Karl Berry  <karl@gnu.org>
32499
32500         * doc/gnulib.texi: revise node structure per new fdl.texi.
32501
32502 2007-07-14  Bruno Haible  <bruno@clisp.org>
32503
32504         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32505         the output file.
32506         * lib/uniname/uninames.h: Regenerated.
32507
32508 2007-07-14  Karl Berry  <karl@gnu.org>
32509
32510         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32511         omitting sectioning and index commands.
32512
32513 2007-07-13  Bruno Haible  <bruno@clisp.org>
32514
32515         New gnulib-tool option --more-symlinks.
32516         * gnulib-tool (func_usage): Document --more-symlinks.
32517         (do_copyrights): New variable.
32518         Recognize option --more-symlinks.
32519         (func_import): Don't add a copyright notice transform to
32520         sed_transform_lib_file if do_copyrights is empty.
32521
32522 2007-07-13  Bruno Haible  <bruno@clisp.org>
32523
32524         * lib/vasnprintf.c (decimal_point_char): Define also if
32525         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32526         && !NEED_PRINTF_DIRECTIVE_A.
32527         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32528         Gary V. Vaughan <gary@gnu.org>.
32529
32530 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32531
32532         * lib/inttypes_.h: Undo previous change, since it was fixed
32533         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32534
32535 2007-07-13  Bruno Haible  <bruno@clisp.org>
32536
32537         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32538         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32539
32540 2007-07-13  Jim Meyering  <jim@meyering.net>
32541
32542         df: Don't fail for Tru64's "file-on-file mount".
32543         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32544         so we fall through and use statfs instead.  Details here:
32545         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32546         Reported by Albert Chin.
32547
32548 2007-07-13  Bruno Haible  <bruno@clisp.org>
32549
32550         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32551         * modules/configmake (License): Likewise.
32552         * modules/gettext (License): Likewise.
32553         * modules/gettext-h (License): Likewise.
32554         * modules/include_next (License): Likewise.
32555         * modules/link-warning (License): Likewise.
32556         * modules/localcharset (License): Likewise.
32557         * modules/localename (License): Likewise.
32558         * modules/lock (License): Likewise.
32559         * modules/relocatable-lib-lgpl (License): Likewise.
32560         * modules/size_max (License): Likewise.
32561         * modules/vasnprintf (License): Likewise.
32562         * modules/wchar (License): Likewise.
32563         * modules/xsize (License): Likewise.
32564
32565 2007-07-13  Bruno Haible  <bruno@clisp.org>
32566
32567         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32568         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32569
32570 2007-07-12  Bruno Haible  <bruno@clisp.org>
32571
32572         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32573         in the modules files.
32574
32575 2007-07-11  Karl Berry  <karl@gnu.org>
32576
32577         * MODULES.html.sh (func_module): use
32578          sed -e '\|^'"${includefile}"'$|d'
32579          instead of /.../d, to avoid errors on $includefile's containing /.
32580
32581 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32582
32583         * gnulib-tool (func_import): Avoid duplication of --avoid
32584         statements
32585         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32586         names to `_' in variable names.
32587
32588 2007-07-10  Eric Blake  <ebb9@byu.net>
32589
32590         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32591         * NEWS: Document this change.
32592
32593 2007-07-08  Bruno Haible  <bruno@clisp.org>
32594
32595         Update to Unicode 5.0.
32596         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32597         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32598         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32599         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32600         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32601         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32602         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32603         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32604         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32605         U+10A3F, U+1D242..U+1D244.
32606         (nonspacing_table_ind): Update.
32607         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32608         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32609
32610 2007-07-08  Bruno Haible  <bruno@clisp.org>
32611
32612         Update to Unicode 5.0.
32613         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32614         code transform. Extend the name index field of unicode_name_to_code and
32615         unicode_code_to_name from 16 to 24 bits.
32616         * lib/uniname/uniname.c (unicode_character_name,
32617         unicode_name_character): Add the range 0x12xxx to the code transform.
32618         * lib/uniname/uninames.h: Regenerated.
32619         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32620
32621 2007-07-07  Bruno Haible  <bruno@clisp.org>
32622
32623         * modules/wcwidth-tests: New file.
32624         * tests/test-wcwidth.c: New file.
32625
32626         Work around MacOS X wcwidth() bug.
32627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32628         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32629         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32630         original wcwidth in non-UTF-8 locales.
32631         * modules/wcwidth (Depends-on): Add localcharset, streq,
32632         uniwidth/width.
32633         * doc/functions/wcwidth.texi: Update.
32634
32635 2007-07-07  Bruno Haible  <bruno@clisp.org>
32636
32637         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32638         (wcwidth): New declaration.
32639         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32640         macros.
32641         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32642         here. Prepare for creating <wchar.h> unconditionally.
32643         * modules/wchar (Depends-on): Add link-warning.
32644         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32645         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32646         * lib/wcwidth.h: Remove file.
32647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32648         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32649         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32650         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32651         (Include): Replace wcwidth.h with <wchar.h>.
32652         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32653         * lib/mbchar.h: Don't include wcwidth.h.
32654         * lib/mbswidth.c: Likewise.
32655         * NEWS: Mention the change.
32656
32657 2007-07-07  Bruno Haible  <bruno@clisp.org>
32658
32659         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32660         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32661         definition with an external declaration.
32662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32663         defined as a function. Remove AC_C_INLINE requirement.
32664         * modules/wcwidth (Files): Add lib/wcwidth.c.
32665         (Makefile.am): Remove redundant statement.
32666
32667 2007-07-07  Bruno Haible  <bruno@clisp.org>
32668
32669         * MODULES.html.sh (Unicode string functions): Add the new modules.
32670
32671         * tests/uniwidth/test-u32-strwidth.c: New file.
32672         * modules/uniwidth/u32-strwidth-tests: New file.
32673
32674         * lib/uniwidth/u32-strwidth.c: New file.
32675         * modules/uniwidth/u32-strwidth: New file.
32676
32677         * tests/uniwidth/test-u16-strwidth.c: New file.
32678         * modules/uniwidth/u16-strwidth-tests: New file.
32679
32680         * lib/uniwidth/u16-strwidth.c: New file.
32681         * modules/uniwidth/u16-strwidth: New file.
32682
32683         * tests/uniwidth/test-u8-strwidth.c: New file.
32684         * modules/uniwidth/u8-strwidth-tests: New file.
32685
32686         * lib/uniwidth/u8-strwidth.c: New file.
32687         * modules/uniwidth/u8-strwidth: New file.
32688
32689         * tests/uniwidth/test-u32-width.c: New file.
32690         * modules/uniwidth/u32-width-tests: New file.
32691
32692         * lib/uniwidth/u32-width.c: New file.
32693         * modules/uniwidth/u32-width: New file.
32694
32695         * tests/uniwidth/test-u16-width.c: New file.
32696         * modules/uniwidth/u16-width-tests: New file.
32697
32698         * lib/uniwidth/u16-width.c: New file.
32699         * modules/uniwidth/u16-width: New file.
32700
32701         * tests/uniwidth/test-u8-width.c: New file.
32702         * modules/uniwidth/u8-width-tests: New file.
32703
32704         * lib/uniwidth/u8-width.c: New file.
32705         * modules/uniwidth/u8-width: New file.
32706
32707         * tests/uniwidth/test-uc_width.c: New file.
32708         * modules/uniwidth/width-tests: New file.
32709
32710         * lib/uniwidth/width.c: New file, from GNU libiconv.
32711         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32712         * modules/uniwidth/width: New file.
32713
32714         * lib/uniwidth.h: New file, from GNU libiconv.
32715         * modules/uniwidth/base: New file.
32716
32717 2007-07-07  Bruno Haible  <bruno@clisp.org>
32718
32719         * lib/uniname.h: New file, from GNU gettext.
32720         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32721         * lib/uniname/uninames.h: New file, from GNU gettext.
32722         * lib/uniname/uniname.c: New file, from GNU gettext.
32723         * tests/uniname/test-uninames.sh: New file.
32724         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32725         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32726         * modules/uniname/base: New file.
32727         * modules/uniname/uniname: New file.
32728         * modules/uniname/uniname-tests: New file.
32729         * MODULES.html.sh (Unicode string functions): Add the new modules.
32730
32731 2007-07-06  Bruno Haible  <bruno@clisp.org>
32732
32733         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32734
32735 2007-07-06  Bruno Haible  <bruno@clisp.org>
32736
32737         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32738         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32739         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32740         include <sys/time.h>.
32741         Reported by Eric Blake.
32742
32743 2007-07-06  Eric Blake  <ebb9@byu.net>
32744
32745         Fix testing canonicalize on cygwin.
32746         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32747         Revert patch from 2007-06-19.
32748         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32749         canonicalize module is also in use.
32750         * tests/test-canonicalize.c: New file.
32751         * tests/test-canonicalize.sh: Likewise.
32752         * modules/canonicalize-tests: Likewise.
32753
32754 2007-07-06  Jim Meyering  <jim@meyering.net>
32755
32756         * lib/getugroups.c (getugroups): Detect getgrent failure.
32757         Adjust comment to reflect reality: this function may return -1.
32758
32759 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32760
32761         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32762         the new TP address.
32763         (usage): Fix typo
32764         (gnulib_mk): New variable.
32765
32766 2007-07-05  Jim Meyering  <jim@meyering.net>
32767
32768         Don't let endgrent clobber errno, no matter how improbable.
32769         * lib/getugroups.c (getugroups): Save and restore errno around
32770         endgrent call.
32771
32772         Close the group DB even when failing with 2^31 or more members.
32773         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32774
32775 2007-07-04  Jim Meyering  <jim@meyering.net>
32776
32777         * lib/getugroups.h: New file.
32778         * lib/getugroups.c: Include "getugroups.h".
32779         Remove uses of "register" keyword.
32780         Move local variable, "cp", down into scope where used.
32781         Give "username" parameter the "const" attribute.
32782         * modules/getugroups (Files): Add lib/getugroups.h
32783
32784 2007-07-04  Karl Berry  <karl@gnu.org>
32785
32786         * MODULES.html.sh (func_all_modules): Complete rename of
32787         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32788
32789 2007-07-02  Bruno Haible  <bruno@clisp.org>
32790
32791         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32792         mode, when inttypes.h comes from gnulib.
32793         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32794
32795 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32796
32797         * NEWS: Mention lgpl module name change.
32798
32799         * modules/lgpl-2.1: Renamed from lgpl.
32800
32801         * NEWS: Mention gpl module name change.
32802
32803         * modules/gpl-3.0: New file, based on gpl-2.0.
32804
32805         * modules/gpl-2.0: Renamed from gpl.
32806
32807         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32808         doc/gpl-2.0.texi.
32809
32810 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32811
32812         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32813         #define __STDC_LIMIT_MACROS temporarily while including
32814         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32815         Problem reported by Joel E. Denny in
32816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32817
32818 2007-07-01  Bruno Haible  <bruno@clisp.org>
32819
32820         * lib/unistdio.h: New file.
32821         * lib/unistdio/u-asnprintf.h: New file.
32822         * lib/unistdio/u-asprintf.h: New file.
32823         * lib/unistdio/u-printf-args.c: New file.
32824         * lib/unistdio/u-printf-args.h: New file.
32825         * lib/unistdio/u-printf-parse.h: New file.
32826         * lib/unistdio/u-snprintf.h: New file.
32827         * lib/unistdio/u-sprintf.h: New file.
32828         * lib/unistdio/u-vasprintf.h: New file.
32829         * lib/unistdio/u-vsnprintf.h: New file.
32830         * lib/unistdio/u-vsprintf.h: New file.
32831         * lib/unistdio/ulc-asnprintf.c: New file.
32832         * lib/unistdio/ulc-asprintf.c: New file.
32833         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32834         * lib/unistdio/ulc-printf-parse.c: New file.
32835         * lib/unistdio/ulc-snprintf.c: New file.
32836         * lib/unistdio/ulc-sprintf.c: New file.
32837         * lib/unistdio/ulc-vasnprintf.c: New file.
32838         * lib/unistdio/ulc-vasprintf.c: New file.
32839         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32840         * lib/unistdio/ulc-vsnprintf.c: New file.
32841         * lib/unistdio/ulc-vsprintf.c: New file.
32842         * lib/unistdio/u8-asnprintf.c: New file.
32843         * lib/unistdio/u8-asprintf.c: New file.
32844         * lib/unistdio/u8-printf-parse.c: New file.
32845         * lib/unistdio/u8-snprintf.c: New file.
32846         * lib/unistdio/u8-sprintf.c: New file.
32847         * lib/unistdio/u8-vasnprintf.c: New file.
32848         * lib/unistdio/u8-vasprintf.c: New file.
32849         * lib/unistdio/u8-vsnprintf.c: New file.
32850         * lib/unistdio/u8-vsprintf.c: New file.
32851         * lib/unistdio/u8-u8-asnprintf.c: New file.
32852         * lib/unistdio/u8-u8-asprintf.c: New file.
32853         * lib/unistdio/u8-u8-snprintf.c: New file.
32854         * lib/unistdio/u8-u8-sprintf.c: New file.
32855         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32856         * lib/unistdio/u8-u8-vasprintf.c: New file.
32857         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32858         * lib/unistdio/u8-u8-vsprintf.c: New file.
32859         * lib/unistdio/u16-asnprintf.c: New file.
32860         * lib/unistdio/u16-asprintf.c: New file.
32861         * lib/unistdio/u16-printf-parse.c: New file.
32862         * lib/unistdio/u16-snprintf.c: New file.
32863         * lib/unistdio/u16-sprintf.c: New file.
32864         * lib/unistdio/u16-vasnprintf.c: New file.
32865         * lib/unistdio/u16-vasprintf.c: New file.
32866         * lib/unistdio/u16-vsnprintf.c: New file.
32867         * lib/unistdio/u16-vsprintf.c: New file.
32868         * lib/unistdio/u16-u16-asnprintf.c: New file.
32869         * lib/unistdio/u16-u16-asprintf.c: New file.
32870         * lib/unistdio/u16-u16-snprintf.c: New file.
32871         * lib/unistdio/u16-u16-sprintf.c: New file.
32872         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32873         * lib/unistdio/u16-u16-vasprintf.c: New file.
32874         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32875         * lib/unistdio/u16-u16-vsprintf.c: New file.
32876         * lib/unistdio/u32-asnprintf.c: New file.
32877         * lib/unistdio/u32-asprintf.c: New file.
32878         * lib/unistdio/u32-printf-parse.c: New file.
32879         * lib/unistdio/u32-snprintf.c: New file.
32880         * lib/unistdio/u32-sprintf.c: New file.
32881         * lib/unistdio/u32-vasnprintf.c: New file.
32882         * lib/unistdio/u32-vasprintf.c: New file.
32883         * lib/unistdio/u32-vsnprintf.c: New file.
32884         * lib/unistdio/u32-vsprintf.c: New file.
32885         * lib/unistdio/u32-u32-asnprintf.c: New file.
32886         * lib/unistdio/u32-u32-asprintf.c: New file.
32887         * lib/unistdio/u32-u32-snprintf.c: New file.
32888         * lib/unistdio/u32-u32-sprintf.c: New file.
32889         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32890         * lib/unistdio/u32-u32-vasprintf.c: New file.
32891         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32892         * lib/unistdio/u32-u32-vsprintf.c: New file.
32893         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32894         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32895         * tests/unistdio/test-ulc-printf1.h: New file.
32896         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32897         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32898         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32899         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32900         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32901         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32902         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32903         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32904         * tests/unistdio/test-u8-asnprintf1.c: New file.
32905         * tests/unistdio/test-u8-asnprintf1.h: New file.
32906         * tests/unistdio/test-u8-printf1.h: New file.
32907         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32908         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32909         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32910         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32911         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32912         * tests/unistdio/test-u8-vasprintf1.c: New file.
32913         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32914         * tests/unistdio/test-u8-vsprintf1.c: New file.
32915         * tests/unistdio/test-u16-asnprintf1.c: New file.
32916         * tests/unistdio/test-u16-asnprintf1.h: New file.
32917         * tests/unistdio/test-u16-printf1.h: New file.
32918         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32919         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32920         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32921         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32922         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32923         * tests/unistdio/test-u16-vasprintf1.c: New file.
32924         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32925         * tests/unistdio/test-u16-vsprintf1.c: New file.
32926         * tests/unistdio/test-u32-asnprintf1.c: New file.
32927         * tests/unistdio/test-u32-asnprintf1.h: New file.
32928         * tests/unistdio/test-u32-printf1.h: New file.
32929         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32930         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32931         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32932         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32933         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32934         * tests/unistdio/test-u32-vasprintf1.c: New file.
32935         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32936         * tests/unistdio/test-u32-vsprintf1.c: New file.
32937         * modules/unistdio/base: New file.
32938         * modules/unistdio/u-printf-args: New file.
32939         * modules/unistdio/ulc-asnprintf: New file.
32940         * modules/unistdio/ulc-asprintf: New file.
32941         * modules/unistdio/ulc-fprintf: New file.
32942         * modules/unistdio/ulc-printf-parse: New file.
32943         * modules/unistdio/ulc-snprintf: New file.
32944         * modules/unistdio/ulc-sprintf: New file.
32945         * modules/unistdio/ulc-vasnprintf: New file.
32946         * modules/unistdio/ulc-vasprintf: New file.
32947         * modules/unistdio/ulc-vfprintf: New file.
32948         * modules/unistdio/ulc-vsnprintf: New file.
32949         * modules/unistdio/ulc-vsprintf: New file.
32950         * modules/unistdio/u8-asnprintf: New file.
32951         * modules/unistdio/u8-asprintf: New file.
32952         * modules/unistdio/u8-printf-parse: New file.
32953         * modules/unistdio/u8-snprintf: New file.
32954         * modules/unistdio/u8-sprintf: New file.
32955         * modules/unistdio/u8-vasnprintf: New file.
32956         * modules/unistdio/u8-vasprintf: New file.
32957         * modules/unistdio/u8-vsnprintf: New file.
32958         * modules/unistdio/u8-vsprintf: New file.
32959         * modules/unistdio/u8-u8-asnprintf: New file.
32960         * modules/unistdio/u8-u8-asprintf: New file.
32961         * modules/unistdio/u8-u8-snprintf: New file.
32962         * modules/unistdio/u8-u8-sprintf: New file.
32963         * modules/unistdio/u8-u8-vasnprintf: New file.
32964         * modules/unistdio/u8-u8-vasprintf: New file.
32965         * modules/unistdio/u8-u8-vsnprintf: New file.
32966         * modules/unistdio/u8-u8-vsprintf: New file.
32967         * modules/unistdio/u16-asnprintf: New file.
32968         * modules/unistdio/u16-asprintf: New file.
32969         * modules/unistdio/u16-printf-parse: New file.
32970         * modules/unistdio/u16-snprintf: New file.
32971         * modules/unistdio/u16-sprintf: New file.
32972         * modules/unistdio/u16-vasnprintf: New file.
32973         * modules/unistdio/u16-vasprintf: New file.
32974         * modules/unistdio/u16-vsnprintf: New file.
32975         * modules/unistdio/u16-vsprintf: New file.
32976         * modules/unistdio/u16-u16-asnprintf: New file.
32977         * modules/unistdio/u16-u16-asprintf: New file.
32978         * modules/unistdio/u16-u16-snprintf: New file.
32979         * modules/unistdio/u16-u16-sprintf: New file.
32980         * modules/unistdio/u16-u16-vasnprintf: New file.
32981         * modules/unistdio/u16-u16-vasprintf: New file.
32982         * modules/unistdio/u16-u16-vsnprintf: New file.
32983         * modules/unistdio/u16-u16-vsprintf: New file.
32984         * modules/unistdio/u32-asnprintf: New file.
32985         * modules/unistdio/u32-asprintf: New file.
32986         * modules/unistdio/u32-printf-parse: New file.
32987         * modules/unistdio/u32-snprintf: New file.
32988         * modules/unistdio/u32-sprintf: New file.
32989         * modules/unistdio/u32-vasnprintf: New file.
32990         * modules/unistdio/u32-vasprintf: New file.
32991         * modules/unistdio/u32-vsnprintf: New file.
32992         * modules/unistdio/u32-vsprintf: New file.
32993         * modules/unistdio/u32-u32-asnprintf: New file.
32994         * modules/unistdio/u32-u32-asprintf: New file.
32995         * modules/unistdio/u32-u32-snprintf: New file.
32996         * modules/unistdio/u32-u32-sprintf: New file.
32997         * modules/unistdio/u32-u32-vasnprintf: New file.
32998         * modules/unistdio/u32-u32-vasprintf: New file.
32999         * modules/unistdio/u32-u32-vsnprintf: New file.
33000         * modules/unistdio/u32-u32-vsprintf: New file.
33001         * modules/unistdio/ulc-asnprintf-tests: New file.
33002         * modules/unistdio/ulc-vasnprintf-tests: New file.
33003         * modules/unistdio/ulc-vasprintf-tests: New file.
33004         * modules/unistdio/ulc-vsnprintf-tests: New file.
33005         * modules/unistdio/ulc-vsprintf-tests: New file.
33006         * modules/unistdio/u8-asnprintf-tests: New file.
33007         * modules/unistdio/u8-vasnprintf-tests: New file.
33008         * modules/unistdio/u8-vasprintf-tests: New file.
33009         * modules/unistdio/u8-vsnprintf-tests: New file.
33010         * modules/unistdio/u8-vsprintf-tests: New file.
33011         * modules/unistdio/u16-asnprintf-tests: New file.
33012         * modules/unistdio/u16-vasnprintf-tests: New file.
33013         * modules/unistdio/u16-vasprintf-tests: New file.
33014         * modules/unistdio/u16-vsnprintf-tests: New file.
33015         * modules/unistdio/u16-vsprintf-tests: New file.
33016         * modules/unistdio/u32-asnprintf-tests: New file.
33017         * modules/unistdio/u32-vasnprintf-tests: New file.
33018         * modules/unistdio/u32-vasprintf-tests: New file.
33019         * modules/unistdio/u32-vsnprintf-tests: New file.
33020         * modules/unistdio/u32-vsprintf-tests: New file.
33021         * MODULES.html.sh (Unicode string functions): Add the new modules.
33022
33023 2007-07-01  Bruno Haible  <bruno@clisp.org>
33024
33025         * lib/sprintf.c (sprintf): Limit the available length estimation,
33026         to avoid address wraparound.
33027         * lib/vsprintf.c (vsprintf): Likewise.
33028         * modules/sprintf-posix (Dependencies): Add stdint.
33029         * modules/vsprintf-posix (Dependencies): Likewise.
33030
33031 2007-07-01  Bruno Haible  <bruno@clisp.org>
33032
33033         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33034         Windows PATH as well. Conservative double-quoting. Comments.
33035
33036 2007-07-01  Bruno Haible  <bruno@clisp.org>
33037             Eric Blake  <ebb9@byu.net>
33038             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33039
33040         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33041         empty components in $PATH, denoting '.'.
33042
33043 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33044
33045         * gnulib-tool: Fix indentation.
33046         (func_create_megatestdir): Likewise.
33047         Report by Bruno Haible.
33048
33049 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33050
33051         Sync from Automake.
33052         * build-aux/gnupload: Fix shell portability issues with for loops.
33053         Report by Karl Berry.
33054
33055 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33056
33057         * build-aux/maint.mk (POURL): Use translationproject.org.
33058
33059 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33060             Bruno Haible  <bruno@clisp.org>
33061
33062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33063         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33064         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33065         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33066         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33067
33068 2007-06-27  Bruno Haible  <bruno@clisp.org>
33069
33070         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33071         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33072
33073 2007-06-26  Karl Berry  <karl@gnu.org>
33074
33075         * MODULES.html.sh: remove xreadlink-with-size.
33076
33077 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33078
33079         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33080         method that I hope also handles the double-include problem noted
33081         by Bruno Haible in
33082         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33083
33084 2007-06-23  Bruno Haible  <bruno@clisp.org>
33085
33086         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33087         Don't let the 'mostlyclean' target fail if the last subdirectory could
33088         not be removed.
33089         Reported by Karl Berry.
33090
33091 2007-06-23  Bruno Haible  <bruno@clisp.org>
33092
33093         * gnulib-tool (echo): Add a speedier workaround for ksh.
33094         * tests/test-echo.sh: Likewise.
33095
33096 2007-06-23  Bruno Haible  <bruno@clisp.org>
33097
33098         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33099         * tests/test-echo.sh: Likewise.
33100
33101 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33102
33103         * gnulib-tool (IFS): Initialize early, so we don't set it to
33104         empty later.
33105         (self_abspathname): Rewrite algorithm to set it, reindent.
33106         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33107         (func_create_megatestdir): Merge some sed scripts.
33108
33109 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33110
33111         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33112         exposed by Sun Studio 11 cc on Solaris 8.
33113
33114 2007-06-22  Bruno Haible  <bruno@clisp.org>
33115
33116         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33117         backslashes.
33118         * tests/test-echo.sh: New file.
33119
33120 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33121
33122         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33123         simplify `sed_replace_build_aux' scripts, they are portable but
33124         echoing them with `echo' is not.
33125         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33126
33127 2007-06-21  Karl Berry  <karl@gnu.org>
33128
33129         * config/srclist.txt: guess we can't handle the licenses via
33130         srclist at the moment.
33131
33132 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33133
33134         * MODULES.html.sh: Add include_next.
33135         * modules/include_next: New file.
33136
33137 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33138
33139         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33140         INCLUDE_NEXT.
33141         (gl_CHECK_NEXT_HEADERS): New macro.
33142         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33143         the obsolescent gl_ABSOLUTE_HEADER.
33144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33145         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33146         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33147         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33148         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33149         * m4/math_h.m4 (gl_MATH_H): Likewise.
33150         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33151         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33152         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33153         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33154         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33155         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33156         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33159         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33160         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33161         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33162         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33163         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33164         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33165         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33166         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33167         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33168         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33169         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33170         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33171         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33172         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33173         * lib/float_.h: Likewise.
33174         * lib/inttypes_.h: Likewise.
33175         * lib/math_.h: Likewise.
33176         * lib/search_.h: Likewise.
33177         * lib/signal_.h: Likewise.
33178         * lib/stdint_.h: Likewise.
33179         * lib/stdio_.h: Likewise.
33180         * lib/stdlib_.h: Likewise.
33181         * lib/string_.h: Likewise.
33182         * lib/sys_stat_.h: Likewise.
33183         * lib/sys_time_.h: Likewise.
33184         * lib/time_.h: Likewise.
33185         * lib/unistd_.h: Likewise.
33186         * lib/wchar_.h: Likewise.
33187         * lib/wctype_.h: Likewise.
33188         * lib/dirent_.h: Likewise.
33189         * lib/iconv_.h: Likewise.
33190         * lib/locale_.h: Likewise.
33191         * lib/netinet_in_.h: Likewise.
33192         * lib/sys_select_.h: Likewise.
33193         * lib/sys_socket_.h: Likewise.
33194         * lib/sysexits_.h: Likewise.
33195         * modules/fcntl (Depends-on): Depend on include_next, not
33196         absolute_header.
33197         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33198         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33199         * modules/fchdir: Likewise.
33200         * modules/float: Likewise.
33201         * modules/iconv_open: Likewise.
33202         * modules/inttypes: Likewise.
33203         * modules/locale: Likewise.
33204         * modules/math: Likewise.
33205         * modules/netinet_in: Likewise.
33206         * modules/search: Likewise.
33207         * modules/signal: Likewise.
33208         * modules/stdint: Likewise.
33209         * modules/stdio: Likewise.
33210         * modules/stdlib: Likewise.
33211         * modules/string: Likewise.
33212         * modules/sys_select: Likewise.
33213         * modules/sys_socket: Likewise.
33214         * modules/sys_stat: Likewise.
33215         * modules/sys_time: Likewise.
33216         * modules/sysexits: Likewise.
33217         * modules/time: Likewise.
33218         * modules/unistd: Likewise.
33219         * modules/wchar: Likewise.
33220         * modules/wctype: Likewise.
33221         * modules/sys_stat: Change maintainer to "all".
33222         * modules/unistd: Likewise.
33223
33224 2007-06-20  Karl Berry  <karl@gnu.org>
33225
33226         * config/srclist.txt: track www changes in license files.
33227
33228 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33229
33230         * build-aux/bootstrap: Remove stray dot.
33231         Make sure build_aux settings are honored when linking
33232         gnulib_extra_files.
33233
33234 2007-06-19  Eric Blake  <ebb9@byu.net>
33235
33236         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33237         Allow compilation on cygwin.
33238
33239 2007-06-19  Jim Meyering  <jim@meyering.net>
33240
33241         xreadlink-with-size: Remove module.  No longer used.
33242         Ex-callers now use xreadlink or mreadlink-with-size.
33243         * modules/xreadlink-with-size: Remove module.
33244         * lib/xreadlink-with-size.c: Remove file.
33245         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33246         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33247         just before the function definition *is* accurate.
33248
33249         Eliminate one way canonicalize_filename_mode could exit.
33250         * lib/canonicalize.c (canonicalize_filename_mode):
33251         Use mreadlink_with_size, not xreadlink_with_size.
33252
33253 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33254
33255         Detect porting problems to FreeBSD/arm, which has time_t wider than
33256         long int.  Original problem reported for GNU diff by Xin Li in
33257         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33258         * modules/getdate (Depends-on): Add intprops, verify.
33259         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33260         is an integer type no wider than long int.
33261
33262 2007-06-18  Jim Meyering  <jim@meyering.net>
33263
33264         New module: mreadlink-with-size.
33265         * MODULES.html.sh: Add mreadlink-with-size.
33266         * modules/mreadlink-with-size: New module
33267         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33268         not xreadlink-with-size.
33269         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33270
33271 2007-06-16  Bruno Haible  <bruno@clisp.org>
33272
33273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33274         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33275         Reported by Gary V. Vaughan <gary@gnu.org>.
33276
33277 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33278
33279         Revamp lchown so that it lives in unistd.h where it belongs.
33280         * lib/lchown.h: Remove.
33281         * lib/dirchownmod.c: Don't include lib/lchown.h.
33282         * lib/fchownat.c: Likewise.
33283         * lib/openat.c: Likewise.
33284         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33285         does not follow symlinks.
33286         (EOPNOTSUPP): Define if not defined.
33287         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33288         is defined to 0.
33289         (lchown): New decl.
33290         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33291         Do not check for lchown decl.
33292         Set REPLACE_LCHOWN.
33293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33294         REPLACE_LCHOWN.
33295         * modules/chown: Make it clear it follows symlinks.
33296         * modules/lchown: Make it clear it doesn't follow symlinks.
33297         (Files): Remove lib/lchown.h
33298         (Depends-on): Add unistd.
33299         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33300         (Include): Include <unistd.h>, not "lchown.h".
33301         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33302         REPLACE_LCHOWN.
33303
33304 2007-06-15  Jim Meyering  <jim@meyering.net>
33305
33306         Change license (GPL to LGPL) of fsusage and dependents.
33307         * modules/fsusage (License): Change to LGPL.
33308         * modules/full-read (License): Likewise.
33309         * modules/full-write (License): Likewise.
33310         * modules/safe-read (License): Likewise.
33311         * modules/safe-write (License): Likewise.
33312
33313 2007-06-14  Ben Pfaff  <blp@gnu.org>
33314
33315         Missing part of allocsa -> malloca transition.
33316         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33317         gl_MALLOCA.
33318
33319 2007-06-12  Bruno Haible  <bruno@clisp.org>
33320
33321         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33322         to ia64, x86_64, i386.
33323         Reported by Eric Blake.
33324
33325 2007-06-12  Bruno Haible  <bruno@clisp.org>
33326
33327         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33328         cross-compiling to x86_64.
33329
33330 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33331
33332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33333         glitch reported by Ralf Wildenhues in
33334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33335
33336         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33337         Vin Shelton.
33338
33339 2007-06-11  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33342         replacement string.
33343         Reported by Eric Blake.
33344
33345 2007-06-10  Bruno Haible  <bruno@clisp.org>
33346
33347         Prepare vasnprintf code for use with Unicode strings.
33348         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33349         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33350         TYPE_U32_STRING.
33351         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33352         a_u32_string variants.
33353         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33354         * lib/printf-args.c: Don't include config.h and the specification
33355         header if PRINTF_FETCHARGS is already defined.
33356         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33357         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33358         TYPE_U16_STRING, TYPE_U32_STRING.
33359         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33360         u16_directive, u16_directives, u32_directive, u32_directives): New
33361         types.
33362         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33363         New declarations.
33364         * lib/printf-parse.c: Don't include config.h and the specification
33365         header if PRINTF_PARSE is already defined. Eliminate the set of
33366         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33367         them now. Include c-ctype.h.
33368         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33369         directive and CHAR_T_ONLY_ASCII.
33370         * lib/vasnprintf.c: Don't include config.h and the specification header
33371         if VASNPRINTF is already defined.
33372         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33373         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33374         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33375         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33376         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33377         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33378         code accordingly.
33379         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33380         pad_ourselves also in this case, with the 'c' and 's' directives, and
33381         with a different notion of "width".
33382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33383
33384 2007-06-10  Bruno Haible  <bruno@clisp.org>
33385
33386         * modules/unistr/u32-mbsnlen: New file.
33387         * lib/unistr/u32-mbsnlen.c: New file.
33388
33389         * modules/unistr/u16-mbsnlen: New file.
33390         * lib/unistr/u16-mbsnlen.c: New file.
33391
33392         * modules/unistr/u8-mbsnlen: New file.
33393         * lib/unistr/u8-mbsnlen.c: New file.
33394
33395         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33396         declarations.
33397
33398 2007-06-10  Bruno Haible  <bruno@clisp.org>
33399
33400         * lib/string_.h (mbsnlen): New declaration.
33401         * lib/mbsnlen.c: New file.
33402         * m4/mbsnlen.m4: New file.
33403         * modules/mbsnlen: New file.
33404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33405         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33406         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33407
33408 2007-06-10  Bruno Haible  <bruno@clisp.org>
33409
33410         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33411
33412 2007-06-10  Bruno Haible  <bruno@clisp.org>
33413
33414         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33415         * lib/mbuiter.h: Likewise.
33416
33417 2007-06-10  Bruno Haible  <bruno@clisp.org>
33418
33419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33420         declaration.
33421
33422 2007-06-10  Karl Berry  <karl@gnu.org>
33423
33424         * config/srclist.txt: remove gettext entries, Bruno prefers
33425         to update individually.
33426
33427 2007-06-10  Bruno Haible  <bruno@clisp.org>
33428
33429         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33430         'maxlen'. Ensure only length + width bytes are allocated, not
33431         length + 1 + width.
33432
33433 2007-06-09  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33436         (CHAR_T): Remove macro.
33437         (VASNPRINTF): Update.
33438
33439 2007-06-09  Bruno Haible  <bruno@clisp.org>
33440
33441         * MODULES.html.sh (Unicode string functions): Add the new modules.
33442
33443         * modules/uniconv/u32-conv-to-enc: New file.
33444         * lib/uniconv/u32-conv-to-enc.c: New file.
33445         * modules/uniconv/u32-conv-to-enc-tests: New file.
33446         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33447
33448         * modules/uniconv/u16-conv-to-enc: New file.
33449         * lib/uniconv/u16-conv-to-enc.c: New file.
33450         * lib/uniconv/u-conv-to-enc.h: New file.
33451         * modules/uniconv/u16-conv-to-enc-tests: New file.
33452         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33453
33454         * modules/uniconv/u8-conv-to-enc: New file.
33455         * lib/uniconv/u8-conv-to-enc.c: New file.
33456         * modules/uniconv/u8-conv-to-enc-tests: New file.
33457         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33458
33459         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33460         u32_conv_to_encoding): New declarations.
33461
33462 2007-06-09  Bruno Haible  <bruno@clisp.org>
33463
33464         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33465
33466 2007-06-09  Bruno Haible  <bruno@clisp.org>
33467
33468         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33469         * modules/malloca: Renamed from modules/allocsa, updated.
33470         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33471         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33472         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33473         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33474         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33475         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33476         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33477         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33478         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33479         * modules/c-strcasestr (Depends-on): Update.
33480         * lib/c-strcasestr.c: Update.
33481         * modules/c-strstr (Depends-on): Update.
33482         * lib/c-strstr.c: Update.
33483         * modules/canonicalize-lgpl (Depends-on): Update.
33484         * lib/canonicalize-lgpl.c: Update.
33485         * modules/clean-temp (Depends-on): Update.
33486         * lib/clean-temp.c: Update.
33487         * modules/csharpcomp (Depends-on): Update.
33488         * lib/csharpcomp.c: Update.
33489         * modules/csharpexec (Depends-on): Update.
33490         * lib/csharpexec.c: Update.
33491         * modules/javacomp (Depends-on): Update.
33492         * lib/javacomp.c: Update.
33493         * modules/javaexec (Depends-on): Update.
33494         * lib/javaexec.c: Update.
33495         * modules/mbscasestr (Depends-on): Update.
33496         * lib/mbscasestr.c: Update.
33497         * modules/mbsstr (Depends-on): Update.
33498         * lib/mbsstr.c: Update.
33499         * modules/setenv (Depends-on): Update.
33500         * lib/setenv.c: Update.
33501         * modules/strcasestr (Depends-on): Update.
33502         * lib/strcasestr.c: Update.
33503         * modules/striconveha (Depends-on): Update.
33504         * lib/striconveha.c: Update.
33505         * modules/relocatable-prog-wrapper (Files): Update.
33506         * lib/relocwrapper.c: Update.
33507         * build-aux/install-reloc: Update.
33508         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33509
33510 2007-06-08  Bruno Haible  <bruno@clisp.org>
33511
33512         Port to uClibc.
33513         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33514         * lib/fpurge.c (fpurge): Likewise.
33515         * lib/freading.c (freading): Likewise.
33516         * lib/fseeko.c (rpl_fseeko): Likewise.
33517         * lib/fseterr.c (fseterr): Likewise.
33518         * lib/fwriting.c (fwriting): Likewise.
33519         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33520
33521 2007-06-08  Bruno Haible  <bruno@clisp.org>
33522
33523         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33524         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33525         * modules/gettext (Files): Add m4/intlmacosx.m4.
33526
33527 2007-06-07  Bruno Haible  <bruno@clisp.org>
33528
33529         * modules/localename-tests: New file.
33530         * tests/test-localename.c: New file.
33531
33532         New module 'localename'.
33533         * lib/localename.h: New file.
33534         * lib/localename.c: New file, from GNU gettext.
33535         * m4/localename.m4: New file.
33536         * modules/localename: New file.
33537
33538 2007-06-07  Bruno Haible  <bruno@clisp.org>
33539
33540         Work around the lack of <wchar.h> on some builds of uClibc.
33541         * doc/headers/wchar.texi: Update.
33542         * lib/wchar_.h: Include <wchar.h> only if it exists.
33543         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33544         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33545         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33546         doesn't exist.
33547         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33548         * modules/mbfile (Depends-on): Add wchar.
33549         * modules/mbiter (Depends-on): Likewise.
33550         * modules/mbuiter (Depends-on): Likewise.
33551         Reported by Simon Josefsson.
33552
33553 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33554
33555         Work around problem reported by Steven M. Schweda in
33556         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33557         Tru64 5.1B with the Compaq compiler environment installed declares
33558         an 'isblank' function but does not define it in the C library.
33559         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33560         * lib/regex_internal.h (isblank): Likewise.
33561         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33562         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33563
33564 2007-06-05  Bruno Haible  <bruno@clisp.org>
33565
33566         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33567         ia64.
33568         * modules/printf-safe: New file.
33569         * modules/fprintf-posix (Depends-on): Add printf-safe.
33570         * modules/printf-posix (Depends-on): Likewise.
33571         * modules/snprintf-posix (Depends-on): Likewise.
33572         * modules/sprintf-posix (Depends-on): Likewise.
33573         * modules/vasnprintf-posix (Depends-on): Likewise.
33574         * modules/vasprintf-posix (Depends-on): Likewise.
33575         * modules/vfprintf-posix (Depends-on): Likewise.
33576         * modules/vprintf-posix (Depends-on): Likewise.
33577         * modules/vsnprintf-posix (Depends-on): Likewise.
33578         * modules/vsprintf-posix (Depends-on): Likewise.
33579         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33580         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33581         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33582         "no" on i386, x86_64, ia64.
33583         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33584         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33585         on i386, x86_64, ia64.
33586         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33587         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33588         on i386, x86_64, ia64.
33589         * tests/test-vasnprintf-posix.c: Include float.h.
33590         (LDBL80_WORDS): New macro.
33591         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33592         on i386, x86_64, ia64.
33593         * tests/test-vasprintf-posix.c: Include float.h.
33594         (LDBL80_WORDS): New macro.
33595         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33596         on i386, x86_64, ia64.
33597         * tests/test-snprintf-posix.c: Include float.h.
33598         * tests/test-sprintf-posix.c: Likewise.
33599         * tests/test-vsnprintf-posix.c: Likewise.
33600         * tests/test-vsprintf-posix.c: Likewise.
33601
33602 2007-06-05  Bruno Haible  <bruno@clisp.org>
33603
33604         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33605         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33606         non-IEEE numbers on i386, x86_64, ia64.
33607         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33608         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33609         * tests/test-isnanl.h: Include float.h.
33610         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33611
33612 2007-06-05  Bruno Haible  <bruno@clisp.org>
33613
33614         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33615         also the %a / %A. Handle the %a / %A code before this extra handling.
33616
33617 2007-06-05  Bruno Haible  <bruno@clisp.org>
33618
33619         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33620         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33621
33622 2007-06-05  Bruno Haible  <bruno@clisp.org>
33623
33624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33625         typo in variable name.
33626
33627 2007-06-05  Eric Blake  <ebb9@byu.net>
33628
33629         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33630         Reported by Simon Josefsson.
33631
33632 2007-06-04  Bruno Haible  <bruno@clisp.org>
33633
33634         Avoid test failures on some PowerPC platforms.
33635         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33636         Define differently for PowerPC.
33637         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33638         Reported by Gary V. Vaughan <gary@gnu.org>.
33639
33640 2007-06-02  Bruno Haible  <bruno@clisp.org>
33641
33642         Fix test-stdint failure on FreeBSD/ia64.
33643         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33644         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33645         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33646         * doc/headers/stdint.texi: Update.
33647
33648 2007-06-01  Bruno Haible  <bruno@clisp.org>
33649
33650         * tests/test-binary-io.c (main): Pass a third argument to open().
33651         Reported by Gary V. Vaughan <gary@gnu.org>.
33652
33653 2007-06-01  Bruno Haible  <bruno@clisp.org>
33654
33655         * doc/functions/frexpl.texi: Update for mingw.
33656
33657 2007-06-01  Bruno Haible  <bruno@clisp.org>
33658
33659         * tests/test-lseek.c (main): Disable test of errno for invalid third
33660         argument.
33661         * doc/functions/lseek.texi: Update.
33662         Reported by Gary V. Vaughan <gary@gnu.org>.
33663
33664 2007-05-28  Bruno Haible  <bruno@clisp.org>
33665
33666         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33667
33668 2007-05-31  Eric Blake  <ebb9@byu.net>
33669
33670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33671         cross compiling.
33672
33673 2007-05-30  Eric Blake  <ebb9@byu.net>
33674         and Bruno Haible  <bruno@clisp.org>
33675
33676         Work around mingw test failures exposed by m4-1.4.9b.
33677         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33678         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33679         moment.
33680
33681 2007-05-30  Bruno Haible  <bruno@clisp.org>
33682
33683         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33684         assuming that they are closed. Needed on HP-UX 11.
33685
33686 2007-05-29  Bruno Haible  <bruno@clisp.org>
33687
33688         Fix a problem with #include_next.
33689         * lib/dirent_.h: Split the double-inclusion guard.
33690         * lib/fcntl_.h: Likewise.
33691         * lib/float_.h: Likewise.
33692         * lib/iconv_.h: Likewise.
33693         * lib/inttypes_.h: Likewise.
33694         * lib/locale_.h: Likewise.
33695         * lib/math_.h: Likewise.
33696         * lib/netinet_in_.h: Likewise.
33697         * lib/search_.h: Likewise.
33698         * lib/signal_.h: Likewise.
33699         * lib/stdint_.h: Likewise.
33700         * lib/stdio_.h: Likewise.
33701         * lib/stdlib_.h: Likewise.
33702         * lib/string_.h: Likewise.
33703         * lib/sys_select_.h: Likewise.
33704         * lib/sys_socket_.h: Likewise.
33705         * lib/sys_stat_.h: Likewise.
33706         * lib/sys_time_.h: Likewise.
33707         * lib/sysexits_.h: Likewise.
33708         * lib/time_.h: Likewise.
33709         * lib/unistd_.h: Likewise.
33710         * lib/wchar_.h: Likewise.
33711         * lib/wctype_.h: Likewise.
33712
33713 2007-05-29  Bruno Haible  <bruno@clisp.org>
33714
33715         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33716         for the moment.
33717
33718 2007-05-29  Bruno Haible  <bruno@clisp.org>
33719
33720         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33721         invocation.
33722         Reported by Eric Blake.
33723
33724 2007-05-29  Bruno Haible  <bruno@clisp.org>
33725
33726         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33727         compiling case.
33728
33729 2007-05-29  Eric Blake  <ebb9@byu.net>
33730             Bruno Haible  <bruno@clisp.org>
33731
33732         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33733         cross compiles.
33734
33735 2007-05-28  Eric Blake  <ebb9@byu.net>
33736
33737         * modules/closein-tests (test_closein_LDADD): Support test on
33738         cygwin with libtool.
33739
33740 2007-05-28  Bruno Haible  <bruno@clisp.org>
33741
33742         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33743         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33744         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33745         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33746         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33747         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33748         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33749         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33750         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33751
33752 2007-05-28  Eric Blake  <ebb9@byu.net>
33753
33754         Unconditionally include <config.h> in unit tests.
33755         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33756         * tests/test-allocsa.c, tests/test-arcfour.c,
33757         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33758         tests/test-array_list.c, tests/test-array_oset.c,
33759         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33760         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33761         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33762         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33763         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33764         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33765         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33766         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33767         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33768         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33769         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33770         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33771         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33772         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33773         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33774         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33775         test-md5.c, test-memmem.c, test-printf-posix.c,
33776         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33777         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33778         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33779         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33780         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33781         test-vasnprintf-posix2.c, test-vasnprintf.c,
33782         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33783         test-vfprintf-posix.c, test-vprintf-posix.c,
33784         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33785         test-xvasprintf.c: Likewise.
33786
33787 2007-05-28  Bruno Haible  <bruno@clisp.org>
33788
33789         * gnulib-tool (func_import): Remember the --with-tests command-line
33790         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33791         Reported by Eric Blake.
33792
33793 2007-05-28  Bruno Haible  <bruno@clisp.org>
33794
33795         * modules/ftell-tests: New file.
33796         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33797         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33798
33799         * lib/ftell.c: New file.
33800         * modules/ftell: New file.
33801         * m4/ftell.m4: New file.
33802         * doc/functions/ftell.texi: Update.
33803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33804         REPLACE_FTELL.
33805         * lib/stdio_.h (rpl_ftell): New declaration.
33806         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33807         REPLACE_FTELL.
33808
33809 2007-05-28  Eric Blake  <ebb9@byu.net>
33810
33811         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33812
33813 2007-05-28  Bruno Haible  <bruno@clisp.org>
33814
33815         * modules/fseek-tests: New file.
33816         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33817         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33818
33819         * lib/fseek.c: New file.
33820         * modules/fseek: New file.
33821         * m4/fseek.m4: New file.
33822         * doc/functions/fseek.texi: Update.
33823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33824         REPLACE_FSEEK.
33825         * lib/stdio_.h (rpl_fseek): New declaration.
33826         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33827         REPLACE_FSEEK.
33828
33829 2007-05-28  Bruno Haible  <bruno@clisp.org>
33830
33831         * lib/stdio_.h (fflush): More comments.
33832
33833 2007-05-28  Bruno Haible  <bruno@clisp.org>
33834
33835         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33836         runtime test.
33837
33838 2007-05-28  Eric Blake  <ebb9@byu.net>
33839
33840         Improve lseek module.
33841         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33842         * lib/unistd_.h (lseek): Scale back link warning message.
33843         * tests/test-lseek.c: Beef up test.
33844         * tests/test-lseek.sh: Exercise more facets of lseek.
33845         Reported by Bruno Haible.
33846
33847 2007-05-28  Bruno Haible  <bruno@clisp.org>
33848
33849         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33850         to define.
33851
33852 2007-05-27  Bruno Haible  <bruno@clisp.org>
33853
33854         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33855
33856 2007-05-27  Bruno Haible  <bruno@clisp.org>
33857
33858         * modules/openmp: New file.
33859         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33860         Noah Misch.
33861
33862 2007-05-26  Bruno Haible  <bruno@clisp.org>
33863
33864         * modules/chdir-long (Depends-on): Add fchdir.
33865         * modules/chdir-safer (Depends-on): Likewise.
33866         * modules/fts (Depends-on): Likewise.
33867         * modules/fts-lgpl (Depends-on): Likewise.
33868         * modules/openat (Depends-on): Likewise.
33869         * modules/savewd (Depends-on): Likewise.
33870
33871 2007-05-24  Eric Blake  <ebb9@byu.net>
33872
33873         Fix lseek on mingw.
33874         * modules/lseek: New module.
33875         * m4/lseek.m4: New file.
33876         * lib/lseek.c: New file.
33877         * modules/lseek-tests: New file.
33878         * tests/test-lseek.c: New file.
33879         * tests/test-lseek.sh: New file.
33880         * MODULES.html.sh: Document lseek module.
33881         * modules/fflush (Depends-on): Add lseek, fseeko.
33882         * modules/fseeko (Depends-on): Likewise.
33883         * modules/ftello (Depends-on): Likewise.
33884         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33885         broken.
33886         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33887         broken.
33888         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33889         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33890         * lib/ftello.c (rpl_ftello): Likewise.
33891         * tests/test-fseeko.c (main): Test this.
33892         * tests/test-fseeko.sh: Likewise.
33893         * tests/test-ftello.c (main): Likewise.
33894         * tests/test-ftello.sh: Likewise.
33895         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33896         implies replacing fseek.
33897         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33898         HAVE_FTELLO.
33899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33900         * modules/unistd (Makefile.am): Likewise.
33901         * lib/unistd_.h (lseek): Declare a replacement.
33902         * doc/functions/lseek.texi (lseek): Document this fix.
33903         * doc/functions/fseek.texi (fseek): Likewise.
33904         * doc/functions/ftell.texi (ftell): Likewise.
33905
33906 2007-05-24  Bruno Haible  <bruno@clisp.org>
33907
33908         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33909         in the printed representation of a NaN.
33910         * tests/test-vasprintf-posix.c (test_function): Likewise.
33911         * tests/test-snprintf-posix.h (test_function): Likewise.
33912         * tests/test-sprintf-posix.h (test_function): Likewise.
33913         Reported by Eric Blake.
33914
33915 2007-05-23  Eric Blake  <ebb9@byu.net>
33916
33917         Fix fseeko/ftello on cygwin 1.5.24.
33918         * doc/functions/fseeko.texi (fseeko): Document the fix.
33919         * doc/functions/ftello.texi (ftello): Document the fix.
33920         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33921         * doc/functions/stdout.text (stdout): New file.
33922         * doc/functions/stderr.text (stderr): New file.
33923         * doc/gnulib.texi (Function Substitutes): Use new files.
33924         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33925         prior to 1.7.0.
33926         * tests/test-ftello.c (main): Likewise for ftello.
33927         * tests/test-fseeko.sh: New file.
33928         * tests/test-ftello.sh: New file.
33929         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33930         with seekable stdin.
33931         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33933         (gl_REPLACE_FSEEKO): New macro.
33934         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33935         * modules/fseeko (Files): Distribute fseeko.c.
33936         * modules/ftello (Files): Distribute ftello.c.
33937         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33938         mode.
33939         * lib/ftello.c (rpl_ftello): New file.
33940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33941         fseeko, ftello.
33942         (gl_STDIN_LARGE_OFFSET): New macro.
33943         * modules/stdio (Makefile.am): Perform the replacement.
33944         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33945
33946 2007-05-23  Bruno Haible  <bruno@clisp.org>
33947
33948         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33949         GNULIB_POSIXCHECK is defined.
33950
33951 2007-05-21  Bruno Haible  <bruno@clisp.org>
33952
33953         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33954         Check also the output for NaN arguments. When cross-compiling, guess
33955         no on IRIX.
33956         * lib/vasnprintf.c: Update comments.
33957         * tests/test-vasnprintf-posix.c (strisnan): New function.
33958         (test_function): Use it.
33959         * tests/test-vasprintf-posix.c (strisnan): New function.
33960         (test_function): Use it.
33961         * tests/test-snprintf-posix.h (strisnan): New function.
33962         (test_function): Use it.
33963         * tests/test-sprintf-posix.h (strisnan): New function.
33964         (test_function): Use it.
33965         Reported by Eric Blake.
33966
33967 2007-05-20  Bruno Haible  <bruno@clisp.org>
33968
33969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33970         numbers that fails on BeOS.
33971         * doc/functions/frexpl.texi: Update.
33972
33973 2007-05-20  Jim Meyering  <jim@meyering.net>
33974
33975         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33976         forced upon us by glibc-2.6.
33977
33978 2007-05-20  Bruno Haible  <bruno@clisp.org>
33979
33980         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33981         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33982         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33983         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33984         NEED_PRINTF_INFINITE.
33985         (is_infinitel): New function.
33986         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33988         gl_PREREQ_VASNPRINTF_INFINITE.
33989         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33991         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33992         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33993         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33994         gl_PREREQ_VASNPRINTF_INFINITE.
33995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33996         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33997         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33998         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33999         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34000         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34001         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34002         * doc/functions/fprintf.texi: Update.
34003         * doc/functions/printf.texi: Update.
34004         * doc/functions/snprintf.texi: Update.
34005         * doc/functions/sprintf.texi: Update.
34006         * doc/functions/vfprintf.texi: Update.
34007         * doc/functions/vprintf.texi: Update.
34008         * doc/functions/vsnprintf.texi: Update.
34009         * doc/functions/vsprintf.texi: Update.
34010
34011 2007-05-20  Bruno Haible  <bruno@clisp.org>
34012
34013         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34014         was not found in libc.
34015         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34016
34017 2007-05-20  Bruno Haible  <bruno@clisp.org>
34018
34019         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34020         printed as "-nan" instead of "nan".
34021         * tests/test-vasprintf-posix.c (test_function): Likewise.
34022         * tests/test-snprintf-posix.h (test_function): Likewise.
34023         * tests/test-sprintf-posix.h (test_function): Likewise.
34024         Needed for HP-UX 11.
34025
34026 2007-05-20  Jim Meyering  <jim@meyering.net>
34027
34028         Fix buggy test for the fchownat-deref bug.
34029         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34030         symlink required for the run-test.  Without it, this test would
34031         always declare that fchownat doesn't work, and client code would
34032         unnecessarily use the replacement function with fixed libc.
34033         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34034         Reported by Greg Schafer.
34035
34036 2007-05-19  Bruno Haible  <bruno@clisp.org>
34037
34038         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34039         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34040         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34041         Needed for IRIX 6.5 and Solaris 2.5.1.
34042
34043 2007-05-19  Bruno Haible  <bruno@clisp.org>
34044
34045         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34046         (test_function): Skip tests involving -0.0 on platforms where
34047         -0.0 = 0.0.
34048         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34049         (test_function): Skip tests involving -0.0 on platforms where
34050         -0.0 = 0.0.
34051         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34052         (test_function): Skip tests involving -0.0 on platforms where
34053         -0.0 = 0.0.
34054         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34055         (test_function): Skip tests involving -0.0 on platforms where
34056         -0.0 = 0.0.
34057         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34058         tests.
34059         * tests/test-printf-posix.h (test_function): Likewise.
34060         * tests/test-printf-posix.output: Remove all -0.0 related results.
34061         Needed for IRIX 6.5.
34062
34063 2007-05-19  Bruno Haible  <bruno@clisp.org>
34064
34065         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34066         printed as "nan0x7fffffff" instead of "nan".
34067         * tests/test-vasprintf-posix.c (test_function): Likewise.
34068         * tests/test-snprintf-posix.h (test_function): Likewise.
34069         * tests/test-sprintf-posix.h (test_function): Likewise.
34070         * tests/test-fprintf-posix.h (NaN): Remove macro.
34071         (test_function): Remove all NaN related tests.
34072         * tests/test-printf-posix.h (NaN): Remove macro.
34073         (test_function): Remove all NaN related tests.
34074         * tests/test-printf-posix.output: Remove all NaN related results.
34075         Needed for IRIX 6.5.
34076
34077 2007-05-19  Bruno Haible  <bruno@clisp.org>
34078
34079         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34081
34082 2007-05-19  Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/float_.h: New file.
34085         * m4/float_h.m4: New file.
34086         * modules/float: New file.
34087         * modules/isnanl (Dependencies): Add float.
34088         * modules/isnanl-nolibm (Dependencies): Likewise.
34089         * modules/mathl (Dependencies): Likewise.
34090         * modules/printf-frexpl (Dependencies): Likewise.
34091         * modules/signbit (Dependencies): Likewise.
34092         * modules/vasnprintf (Dependencies): Likewise.
34093         * doc/headers/float.texi: Update.
34094
34095 2007-05-19  Jim Meyering  <jim@meyering.net>
34096
34097         * lib/utimens.c (gl_futimens): Rename from futimens,
34098         now that glibc-2.6 declares futimens.
34099         * lib/utimens.h: Likewise.
34100
34101 2007-05-19  Bruno Haible  <bruno@clisp.org>
34102
34103         Avoid test failures on mingw.
34104         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34105         * tests/test-printf-posix.sh: Likewise.
34106         * tests/test-vfprintf-posix.sh: Likewise.
34107         * tests/test-vprintf-posix.sh: Likewise.
34108
34109 2007-05-19  Bruno Haible  <bruno@clisp.org>
34110
34111         Fix *printf result for NaN, Inf, -0.0 on mingw.
34112         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34113         * lib/vasnprintf.c: Include math.h and isnan.h.
34114         (is_infinite_or_zero): New function.
34115         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34116         values in the %f, %F, %e, %E, %g, %G directives.
34117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34118         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34119         gl_PRINTF_INFINITE and test its result. Invoke
34120         gl_PREREQ_VASNPRINTF_INFINITE.
34121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34122         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34125         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34128         * doc/functions/fprintf.texi: Update.
34129         * doc/functions/printf.texi: Update.
34130         * doc/functions/snprintf.texi: Update.
34131         * doc/functions/sprintf.texi: Update.
34132         * doc/functions/vfprintf.texi: Update.
34133         * doc/functions/vprintf.texi: Update.
34134         * doc/functions/vsnprintf.texi: Update.
34135         * doc/functions/vsprintf.texi: Update.
34136
34137 2007-05-19  Bruno Haible  <bruno@clisp.org>
34138
34139         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34140         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34141         Instead of multiplying with 10^k, set extra_zeroes to k.
34142         (scale10_round_long_double): Remove function.
34143
34144 2007-05-18  Bruno Haible  <bruno@clisp.org>
34145
34146         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34147         introduced on 2007-05-06.
34148
34149 2007-05-18  Bruno Haible  <bruno@clisp.org>
34150
34151         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34152         %g directives.
34153         * tests/test-vasprintf-posix.c (test_function): Likewise.
34154         * tests/test-snprintf-posix.h (test_function): Likewise.
34155         * tests/test-sprintf-posix.h (test_function): Likewise.
34156
34157 2007-05-18  Bruno Haible  <bruno@clisp.org>
34158
34159         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34160         (strmatch): New function.
34161         (test_function): Test the %f directive on numbers of various exponents.
34162         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34163         (strmatch): New function.
34164         (test_function): Test the %f directive on numbers of various exponents.
34165         * tests/test-snprintf-posix.h (strmatch): New function.
34166         (test_function): Test the %f directive on numbers of various exponents.
34167         * tests/test-sprintf-posix.h (strmatch): New function.
34168         (test_function): Test the %f directive on numbers of various exponents.
34169         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34170         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34171         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34172         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34173
34174 2007-05-18  Bruno Haible  <bruno@clisp.org>
34175
34176         Add support for 'long double' number output.
34177         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34178         * lib/vasnprintf.c: Include math.h and float+.h.
34179         (mp_limb_t): New type.
34180         (GMP_LIMB_BITS): New macro.
34181         (mp_twolimb_t): New type.
34182         (GMP_TWOLIMB_BITS): New macro.
34183         (mpn_t): New type.
34184         (multiply, divide, convert_to_decimal, decode_long_double,
34185         scale10_round_long_double, scale10_round_decimal_long_double,
34186         floorlog10l): New functions.
34187         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34188         for the %f, %F, %e, %E, %g, %G directives.
34189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34190         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34191         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34192         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34194         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34200         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34201         * modules/snprintf-posix (Depends-on): Likewise.
34202         * modules/sprintf-posix (Depends-on): Likewise.
34203         * modules/vasnprintf-posix (Depends-on): Likewise.
34204         * modules/vasprintf-posix (Depends-on): Likewise.
34205         * modules/vfprintf-posix (Depends-on): Likewise.
34206         * modules/vsnprintf-posix (Depends-on): Likewise.
34207         * modules/vsprintf-posix (Depends-on): Likewise.
34208         * modules/vasnprintf (Files): Add lib/float+.h.
34209         * doc/functions/fprintf.texi: Update.
34210         * doc/functions/printf.texi: Update.
34211         * doc/functions/snprintf.texi: Update.
34212         * doc/functions/sprintf.texi: Update.
34213         * doc/functions/vfprintf.texi: Update.
34214         * doc/functions/vprintf.texi: Update.
34215         * doc/functions/vsnprintf.texi: Update.
34216         * doc/functions/vsprintf.texi: Update.
34217
34218 2007-05-18  Bruno Haible  <bruno@clisp.org>
34219
34220         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34221
34222 2007-05-18  Bruno Haible  <bruno@clisp.org>
34223
34224         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34225         for printing 64-bit integers. Needed for mingw.
34226
34227 2007-05-18  Bruno Haible  <bruno@clisp.org>
34228
34229         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34230         gl_FUNC_FREXPL_WORKS.
34231         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34232
34233 2007-05-18  Bruno Haible  <bruno@clisp.org>
34234
34235         * modules/frexpl-nolibm-tests: New file.
34236
34237         * modules/frexpl-nolibm: New file.
34238         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34239
34240 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34241
34242         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34243         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34244         GCC 4.2, which otherwise issues a lot of warnings.
34245         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34246         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34247         Likewise.
34248         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34249         * modules/iconv_open (iconv.h): Likewise.
34250         * modules/locale (locale.h): Likewise.
34251         * modules/netinet_in (netinet/in.h): Likewise.
34252         * modules/sys_select (sys_select.h): Likewise.
34253         * modules/sys_socket (sys/socket.h): Likewise.
34254         * modules/sys_stat (sys/stat.h): Likewise.
34255         * modules/sysexits (sysexits.h): Likewise.
34256         * modules/unistd (unistd.h): Likewise.
34257
34258 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34259
34260         * modules/closein-tests (Makefile.am): Distribute
34261         `test-closein.sh'.
34262
34263 2007-05-17  Bruno Haible  <bruno@clisp.org>
34264
34265         * tests/test-printf-posix.output: Renamed from
34266         tests/test-fprintf-posix.out.
34267         * modules/fprintf-posix-tests: Update.
34268         * modules/printf-posix-tests: Update.
34269         * modules/vfprintf-posix-tests: Update.
34270         * modules/vprintf-posix-tests: Update.
34271         * tests/test-fprintf-posix.sh: Update.
34272         * tests/test-printf-posix.sh: Update.
34273         * tests/test-vfprintf-posix.sh: Update.
34274         * tests/test-vprintf-posix.sh: Update.
34275         Reported by Ralf Wildenhues.
34276
34277 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34278
34279         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34280         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34281         GCC 4.2, which otherwise issues a lot of warnings.
34282         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34283         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34284         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34285         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34286         it should no longer be needed.
34287         * lib/string_.h: Likewise.
34288         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34289         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34290         * modules/inttypes (inttypes.h): Likewise.
34291         * modules/math (math.h): Likewise.
34292         * modules/search (search.h): Likewise.
34293         * modules/signal (signal.h): Likewise.
34294         * modules/stdint (stdint.h): Likewise.
34295         * modules/stdio (stdio.h): Likewise.
34296         * modules/stdlib (stdlib.h): Likewise.
34297         * modules/string (string.h): Likewise.
34298         * modules/sys_time (sys/time.h): Likewise.
34299         * modules/time (time.h): Likewise.
34300         * modules/wchar (wchar.h): Likewise.
34301         * modules/wctype (wtype.h): Likewise.
34302
34303 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34304
34305         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34306
34307 2007-05-13  Bruno Haible  <bruno@clisp.org>
34308
34309         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34310         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34311         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34312         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34313         (gl_PREREQ_STRTOK_R): Don't require it here.
34314
34315 2007-05-13  Bruno Haible  <bruno@clisp.org>
34316
34317         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34318         when used in C++ mode.
34319
34320 2007-05-12  Bruno Haible  <bruno@clisp.org>
34321
34322         * lib/linebuffer.h: Tweak doc.
34323         * lib/linebuffer.c: Likewise.
34324
34325 2007-05-12  James Youngman  <jay@gnu.org>
34326
34327         * lib/linebuffer.c (readlinebuffer_delim): New function,
34328         like readlinebuffer, but use a caller-specified delimiter.
34329         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34330         as the delimiter.
34331         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34332
34333 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34334
34335         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34336         * modules/openat (Files): Remove openat-die.c.
34337         (Depends-on): Add openat-die.
34338         * modules/openat-die: New module.
34339
34340 2007-05-06  Bruno Haible  <bruno@clisp.org>
34341
34342         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34343         Update with info about Cygwin.
34344         * doc/functions/fprintf.texi: Update.
34345         * doc/functions/printf.texi: Update.
34346         * doc/functions/snprintf.texi: Update.
34347         * doc/functions/sprintf.texi: Update.
34348         * doc/functions/vfprintf.texi: Update.
34349         * doc/functions/vprintf.texi: Update.
34350         * doc/functions/vsnprintf.texi: Update.
34351         * doc/functions/vsprintf.texi: Update.
34352         Reported by Eric Blake.
34353
34354 2007-05-06  Bruno Haible  <bruno@clisp.org>
34355
34356         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34357         padding ourselves for the floating-point directives.
34358         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34360         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34361         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34362         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34370         * tests/test-snprintf-posix.h (test_function): Also check the width
34371         and some flags in the %f directive.
34372         * tests/test-sprintf-posix.h (test_function): Likewise.
34373         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34374         * tests/test-vasprintf-posix.c (test_function): Likewise.
34375         * doc/functions/fprintf.texi: Update.
34376         * doc/functions/printf.texi: Update.
34377         * doc/functions/snprintf.texi: Update.
34378         * doc/functions/sprintf.texi: Update.
34379         * doc/functions/vfprintf.texi: Update.
34380         * doc/functions/vprintf.texi: Update.
34381         * doc/functions/vsnprintf.texi: Update.
34382         * doc/functions/vsprintf.texi: Update.
34383
34384 2007-05-06  Bruno Haible  <bruno@clisp.org>
34385
34386         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34387         pass the ' flag character to sprintf or snprintf.
34388         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34391         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34392         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34394         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34400         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34401         flag.
34402         * tests/test-sprintf-posix.h (test_function): Likewise.
34403         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34404         * tests/test-vasprintf-posix.c (test_function): Likewise.
34405         * doc/functions/fprintf.texi: Update.
34406         * doc/functions/printf.texi: Update.
34407         * doc/functions/snprintf.texi: Update.
34408         * doc/functions/sprintf.texi: Update.
34409         * doc/functions/vfprintf.texi: Update.
34410         * doc/functions/vprintf.texi: Update.
34411         * doc/functions/vsnprintf.texi: Update.
34412         * doc/functions/vsprintf.texi: Update.
34413
34414 2007-05-01  Bruno Haible  <bruno@clisp.org>
34415
34416         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34417
34418 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34419
34420         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34421         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34422
34423 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34424
34425         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34426         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34427         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34428
34429 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34430
34431         * lib/argp-help.c (struct hol_entry): New member `ord'.
34432         (HOL_ENTRY_PTRCMP): Use ord for comparison
34433         (hol_sort): Initialize ord.
34434
34435 2007-05-01  Bruno Haible  <bruno@clisp.org>
34436
34437         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34438         Reported by Eric Blake.
34439         * doc/gnulib.texi (Function Substitutes): Update.
34440
34441 2007-05-01  Bruno Haible  <bruno@clisp.org>
34442
34443         * doc/functions.texi: Remove file, now redundant through
34444         doc/functions/*.texi.
34445
34446 2007-05-01  Bruno Haible  <bruno@clisp.org>
34447
34448         * modules/argp (Depends-on): Add sleep.
34449
34450 2007-05-01  Bruno Haible  <bruno@clisp.org>
34451
34452         * modules/sleep-tests: New file.
34453         * tests/test-sleep.c: New file.
34454
34455         * modules/sleep: New file.
34456         * lib/sleep.c: New file.
34457         * m4/sleep.m4: New file.
34458         * lib/unistd_.h (sleep): New declaration.
34459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34460         HAVE_SLEEP.
34461         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34462         * doc/functions/sleep.texi: Document the sleep module.
34463
34464 2007-05-01  Bruno Haible  <bruno@clisp.org>
34465
34466         * lib/sigprocmask.h: Remove file.
34467         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34468         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34469         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34470         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34471         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34472         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34473         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34474         HAVE_SIGSET_T as a shell variable.
34475         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34476         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34477         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34478         (Depends-on): Add signal. Remove verify.
34479         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34480         (Include): Mention <signal.h> instead of sigprocmask.h.
34481         * NEWS: Mention the change.
34482         * lib/fatal-signal.c: Don't include sigprocmask.h.
34483
34484 2007-05-01  Bruno Haible  <bruno@clisp.org>
34485
34486         * modules/signal: New file.
34487         * lib/signal_.h: New file.
34488         * m4/signal_h.m4: New file.
34489
34490 2007-05-01  Bruno Haible  <bruno@clisp.org>
34491
34492         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34493         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34494         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34495         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34496
34497 2007-05-01  Bruno Haible  <bruno@clisp.org>
34498
34499         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34500         configure time.
34501         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34502         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34503         * modules/sys_stat (Makefile.am): Substitute their values into
34504         sys/stat.h.
34505
34506 2007-05-01  Bruno Haible  <bruno@clisp.org>
34507
34508         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34509         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34510         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34511
34512 2007-05-01  Bruno Haible  <bruno@clisp.org>
34513
34514         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34515         'assert' module here.
34516
34517 2007-05-01  Bruno Haible  <bruno@clisp.org>
34518
34519         * doc/functions/*.texi: New files.
34520         * doc/functions/google-ranking.txt: New file.
34521         * doc/gnulib.texi (Function Substitutes): New chapter.
34522         (ctime, inet_ntoa): Remove sections.
34523         * doc/ctime.texi: Remove file.
34524         * doc/inet_ntoa.texi: Remove file.
34525         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34526         dependencies.
34527         (%.info): New rule, specifying a --reference-limit.
34528
34529 2007-05-01  Bruno Haible  <bruno@clisp.org>
34530
34531         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34532
34533 2007-05-01  Bruno Haible  <bruno@clisp.org>
34534
34535         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34536         the portability of 'mkdir' to mingw systems.
34537
34538 2007-05-01  Bruno Haible  <bruno@clisp.org>
34539
34540         * doc/headers/google-ranking.txt: New file.
34541
34542 2007-04-30  Eric Blake  <ebb9@byu.net>
34543
34544         Prefer fseeko to fseek.
34545         * modules/getpass (Depends-on): Add fseeko.
34546         * lib/getpass.c (getpass): Use fseeko, not fseek.
34547
34548 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34549
34550         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34551         assumes the sorting is stable, while most qsort implementations
34552         are not.  Use argument addresses to ensure they never compare as
34553         equal.
34554
34555         * tests/test-argp-2.sh (usage-indent test): Fix output
34556         (func_compare): Restore diff options
34557         * tests/test-argp.c: Restore #include "progname.h"
34558
34559 2007-04-29  Bruno Haible  <bruno@clisp.org>
34560
34561         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34563         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34565         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34566         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34567         (TESTS, check_PROGRAMS): Add test-snprintf.
34568         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34569         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34570         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34571         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34572         assertions that fail on HP-UX, OSF/1, or IRIX.
34573         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34574
34575 2007-04-29  Bruno Haible  <bruno@clisp.org>
34576
34577         * MODULES.html.sh (posix_functions): Remove 'contents'.
34578
34579 2007-04-29  Karl Berry  <karl@gnu.org>
34580
34581         * config/srclist.txt (gendocs_template_min): new entry.
34582
34583 2007-04-29  Bruno Haible  <bruno@clisp.org>
34584
34585         Work around fpurge bug on BSD systems.
34586         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34587         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34588         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34589         fpurge to rpl_fpurge if the system already has this function.
34590         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34591         the case where the system already has this function. Correct invariants
34592         on BSD systems.
34593         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34594         BSD systems.
34595
34596 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34597
34598         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34599         proposed by Sven Verdoolaege.
34600
34601         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34602         options.
34603         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34604         (usage and help tests): Update
34605
34606 2007-04-29  Bruno Haible  <bruno@clisp.org>
34607
34608         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34609         Print more information in case of failure. Disable a test on BeOS.
34610
34611 2007-04-29  Bruno Haible  <bruno@clisp.org>
34612
34613         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34614         This helps debugging on systems on which no gdb is available.
34615
34616 2007-04-29  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/freading.h: Improve comments.
34619         * lib/fwriting.h: Likewise.
34620         * tests/test-freading.c (main): Don't check freading immediately after
34621         repositioning. Needed for glibc.
34622
34623 2007-04-29  Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/freading.c (freading): Trivial simplification.
34626
34627 2007-04-28  Bruno Haible  <bruno@clisp.org>
34628
34629         * tests/test-fwriting.c (main): Also test the interaction between
34630         fflush and fwriting.
34631         * modules/fwriting-tests (Depends-on): Add fflush.
34632
34633         * tests/test-freading.c (main): Also test the interaction between
34634         fflush and freading.
34635         * modules/freading-tests (Depends-on): Add fflush.
34636
34637 2007-04-28  Bruno Haible  <bruno@clisp.org>
34638
34639         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34640         fseeko and ftello.
34641         Suggested by Eric Blake.
34642
34643 2007-04-28  Jim Meyering  <jim@meyering.net>
34644
34645         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34646         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34647         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34648
34649 2007-04-27  Eric Blake  <ebb9@byu.net>
34650
34651         * doc/headers/assert.texi (assert.h): Document assert module use.
34652
34653 2007-04-27  Bruno Haible  <bruno@clisp.org>
34654
34655         * doc/headers/*.texi: New files.
34656         * doc/gnulib.texi (Header File Substitutes): New chapter.
34657         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34658         dependencies.
34659         (standards.info ,standards.html, standards.dvi): Update dependencies.
34660         (mostlyclean, clean): New targets.
34661
34662 2007-04-27  Bruno Haible  <bruno@clisp.org>
34663
34664         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34665         * modules/sysexits (Files, Makefile.am): Update.
34666
34667         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34668         * modules/sys_socket (Files, Makefile.am): Update.
34669
34670         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34671         * modules/sys_stat (Files, Makefile.am): Update.
34672
34673 2007-04-27  Eric Blake  <ebb9@byu.net>
34674
34675         * lib/freading.h: Improve comments.
34676         * lib/fwriting.h: Likewise.
34677         * lib/fflush.c: Likewise.
34678
34679         Fix closein for mingw.
34680         * modules/closein-tests: Add tests for closein.
34681         * tests/test-closein.c: New file.
34682         * tests/test-closein.sh: Likewise.
34683         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34684         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34685
34686 2007-04-27  Bruno Haible  <bruno@clisp.org>
34687
34688         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34689         version is < 6.
34690         * lib/math_.h [__DECC]: Likewise.
34691         * lib/stdio_.h [__DECC]: Likewise.
34692         * lib/stdlib_.h [__DECC]: Likewise.
34693         * lib/string_.h [__DECC]: Likewise.
34694         * lib/time_.h [__DECC]: Likewise.
34695         * lib/wchar_.h [__DECC]: Likewise.
34696         * lib/wctype_.h [__DECC]: Likewise.
34697
34698 2007-04-27  Bruno Haible  <bruno@clisp.org>
34699
34700         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34701
34702 2007-04-27  Bruno Haible  <bruno@clisp.org>
34703
34704         * lib/fflush.c: Add comments.
34705         * modules/fpurge-tests (Depends-on): Add fflush.
34706         * modules/freadable-tests (Depends-on): Likewise.
34707         * modules/fwritable-tests (Depends-on): Likewise.
34708
34709 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34710
34711         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34712         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34713         Report by Bruno Haible <bruno@clisp.org>.
34714
34715 2007-04-26  Eric Blake  <ebb9@byu.net>
34716
34717         Fix fflush on mingw.
34718         * modules/fflush (Depends-on): Add freading.
34719         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34720         but unread data.
34721
34722 2007-04-26  Eric Blake  <ebb9@byu.net>
34723         and Bruno Haible  <bruno@clisp.org>
34724
34725         Implement freading and fwriting.
34726         * lib/freading.c: New file.
34727         * lib/freading.h: Likewise.
34728         * m4/freading.m4: Likewise.
34729         * modules/freading: Likewise.
34730         * modules/freading-tests: Likewise.
34731         * tests/test-freading.c: Likewise.
34732         * lib/fwriting.c: New file.
34733         * lib/fwriting.h: Likewise.
34734         * m4/fwriting.m4: Likewise.
34735         * modules/fwriting: Likewise.
34736         * modules/fwriting-tests: Likewise.
34737         * tests/test-fwriting.c: Likewise.
34738         * MODULES.html.sh (File stream based Input/Output): Mention them.
34739
34740 2007-04-26  Bruno Haible  <bruno@clisp.org>
34741
34742         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34743         'long' when we assume it.
34744         Suggested by Eric Blake.
34745
34746 2007-04-26  Bruno Haible  <bruno@clisp.org>
34747
34748         Ensure fseeko, ftello are declared on glibc systems.
34749         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34750         * modules/fseeko (configure.ac-early): Likewise.
34751         * modules/ftello (configure.ac-early): Likewise.
34752         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34753         AC_FUNC_FSEEKO for this.
34754         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34755         (gl_CHECK_FSEEKO): Remove macro.
34756
34757 2007-04-26  Bruno Haible  <bruno@clisp.org>
34758
34759         * tests/test-fflush.c (main): Also check the ftell result after
34760         fflush and fseek/fseeko.
34761         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34762         file descriptor position cache in the stream.
34763         * lib/fseeko.c (rpl_fseeko): Likewise.
34764
34765 2007-04-26  Bruno Haible  <bruno@clisp.org>
34766
34767         * modules/fflush-tests (Depends-on): Add fseeko.
34768
34769 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34770             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34771
34772         * lib/argz_.h: ensure error_t definition is obtained in same
34773         mechanism system argz.h would have.
34774         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34775         argz facilities are known bad.  Err on the side of caution if
34776         cross-compiling.
34777
34778 2007-04-25  Eric Blake  <ebb9@byu.net>
34779
34780         * lib/fpurge.c (includes): Use stdlib.h for free.
34781         * tests/test-fflush.c (main): Also test fflush-fseeko.
34782
34783 2007-04-25  Bruno Haible  <bruno@clisp.org>
34784
34785         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34786         * lib/fseeko.c: New file.
34787         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34788         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34789         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34790         gl_FUNC_FSEEKO.
34791         (gl_FUNC_FSEEKO): Invoke it.
34792         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34793         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34794         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34795
34796 2007-04-25  Bruno Haible  <bruno@clisp.org>
34797
34798         * modules/fflush (Depends-on): Add ftello.
34799
34800 2007-04-25  Bruno Haible  <bruno@clisp.org>
34801
34802         * modules/ftello-tests: New file.
34803         * tests/test-ftello.c: New file.
34804
34805         * modules/ftello: New file.
34806         * m4/ftello.m4: New file.
34807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34808         HAVE_FTELLO.
34809         * lib/stdio_.h (ftello): New declaration.
34810         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34811         HAVE_FTELLO.
34812
34813 2007-04-25  Bruno Haible  <bruno@clisp.org>
34814
34815         * modules/fseeko-tests: New file.
34816         * tests/test-fseeko.c: New file.
34817
34818         * modules/fseeko: New file.
34819         * m4/fseeko.m4: New file.
34820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34821         HAVE_FSEEKO.
34822         * lib/stdio_.h (fseeko): New declaration.
34823         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34824         HAVE_FSEEKO.
34825
34826 2007-04-25  Bruno Haible  <bruno@clisp.org>
34827
34828         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34829
34830 2007-04-25  Bruno Haible  <bruno@clisp.org>
34831
34832         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34833         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34834         * tests/test-unistd.c: Likewise.
34835         * tests/test-fcntl.c: Likewise.
34836
34837 2007-04-23  Eric Blake  <ebb9@byu.net>
34838
34839         * lib/fflush.c: Fix missing include.
34840         Reported by Bruno Haible.
34841
34842 2007-04-23  Bruno Haible  <bruno@clisp.org>
34843
34844         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34845         Reported by Eric Blake.
34846
34847 2007-04-23  Bruno Haible  <bruno@clisp.org>
34848
34849         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34850
34851 2007-04-23  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34854
34855 2007-04-23  Bruno Haible  <bruno@clisp.org>
34856
34857         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34858         Needed on HP-UX 11.
34859
34860 2007-04-16  Eric Blake  <ebb9@byu.net>
34861
34862         Make fflush rely on fpurge.
34863         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34864         open coding all variants.
34865         * modules/fflush (Depends-on): Add fpurge and unistd.
34866         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34867         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34868
34869         Fix --with-tests compilation on cygwin.
34870         * modules/argmatch-tests (Makefile.am): List gnulib library first
34871         in LDADD.
34872         * modules/argp-tests (Makefile.am): Likewise.
34873         * modules/array-list-tests (Makefile.am): Likewise.
34874         * modules/array-oset-tests (Makefile.am): Likewise.
34875         * modules/avltree-list-tests (Makefile.am): Likewise.
34876         * modules/avltree-oset-tests (Makefile.am): Likewise.
34877         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34878         * modules/carray-list-tests (Makefile.am): Likewise.
34879         * modules/dirname-tests (Makefile.am): Likewise.
34880         * modules/frexp-tests (Makefile.am): Likewise.
34881         * modules/isnanl-tests (Makefile.am): Likewise.
34882         * modules/linked-list-tests (Makefile.am): Likewise.
34883         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34884         * modules/lock-tests (Makefile.am): Likewise.
34885         * modules/rbtree-list-tests (Makefile.am): Likewise.
34886         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34887         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34888         * modules/tls-tests (Makefile.am): Likewise.
34889         * modules/tsearch-tests (Makefile.am): Likewise.
34890         * modules/xvasprintf-tests (Makefile.am): Likewise.
34891
34892         Fix fpurge for cygwin.
34893         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34894         value.
34895         * modules/fpurge-tests (Depends-on): Clean up trash.
34896
34897 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34898
34899         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34900
34901         * m4/autobuild.m4: Re-indent.
34902
34903 2007-04-13  Bruno Haible  <bruno@clisp.org>
34904
34905         * modules/fpurge-tests: New file.
34906         * tests/test-fpurge.c: New file.
34907
34908         * modules/fpurge: New file.
34909         * lib/fpurge.h: New file.
34910         * lib/fpurge.c: New file.
34911         * m4/fpurge.m4: New file.
34912
34913 2007-04-13  Bruno Haible  <bruno@clisp.org>
34914
34915         * modules/fbufmode-tests: New file.
34916         * tests/test-fbufmode.c: New file.
34917
34918         * modules/fbufmode: New file.
34919         * lib/fbufmode.h: New file.
34920         * lib/fbufmode.c: New file.
34921         * m4/fbufmode.m4: New file.
34922
34923 2007-04-13  Bruno Haible  <bruno@clisp.org>
34924
34925         * modules/fwritable-tests: New file.
34926         * tests/test-fwritable.c: New file.
34927
34928         * modules/fwritable: New file.
34929         * lib/fwritable.h: New file.
34930         * lib/fwritable.c: New file.
34931         * m4/fwritable.m4: New file.
34932
34933 2007-04-13  Bruno Haible  <bruno@clisp.org>
34934
34935         * modules/freadable-tests: New file.
34936         * tests/test-freadable.c: New file.
34937
34938         * modules/freadable: New file.
34939         * lib/freadable.h: New file.
34940         * lib/freadable.c: New file.
34941         * m4/freadable.m4: New file.
34942
34943 2007-04-13  Bruno Haible  <bruno@clisp.org>
34944
34945         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34946         MOSTLYCLEANFILES.
34947
34948 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34949
34950         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34951         gzip bootstrap.conf to avoid dragging in i18n machinery.
34952         (gnulib_tool_option): Use it.
34953
34954 2007-04-13  Bruno Haible  <bruno@clisp.org>
34955
34956         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34957         %F directives.
34958         * tests/test-vasprintf-posix.c (test_function): Likewise.
34959         * tests/test-snprintf-posix.h (test_function): Likewise.
34960         * tests/test-sprintf-posix.h (test_function): Likewise.
34961         * tests/test-fprintf-posix.h (test_function): Likewise.
34962         * tests/test-printf-posix.h (test_function): Likewise.
34963         * tests/test-fprintf-posix.out: Likewise.
34964
34965 2007-04-13  Bruno Haible  <bruno@clisp.org>
34966
34967         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34968         * modules/tls-tests (configure.ac): Likewise.
34969         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34970
34971 2007-04-13  Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/tls.c (glthread_tls_get): Fix return type.
34974         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34975
34976 2007-04-12  Eric Blake  <ebb9@byu.net>
34977
34978         * modules/gettime (Depends-on): Remove gettime.
34979         Reported by Dmitry V. Levin.
34980
34981 2007-04-12  Bruno Haible  <bruno@clisp.org>
34982
34983         * modules/fflush (Include): Mention <stdio.h>.
34984         * modules/strtoimax (Include): Mention <inttypes.h>.
34985         * modules/strtoumax (Include): Likewise.
34986
34987 2007-04-12  Eric Blake  <ebb9@byu.net>
34988
34989         * .cvsignore: New file.
34990         * .gitignore: Likewise.
34991
34992 2007-04-12  Bruno Haible  <bruno@clisp.org>
34993
34994         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34995         not before, since $(LDADD) often contains libgnu.a.
34996         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34997         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34998         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34999         Needed on Cygwin.
35000
35001 2007-04-12  Eric Blake  <ebb9@byu.net>
35002
35003         Work around glibc's failure to flush stdin on fclose.
35004         * lib/closein.c (close_stdin): Flush stdin before closing.
35005
35006         Work around glibc's failure to reset seekable stdin on exit.
35007         * modules/closein: New module.
35008         * lib/closein.c: New file.
35009         * lib/closein.h: Likewise.
35010         * m4/closein.m4: Likewise.
35011         * MODULES.html.sh (File stream based Input/Output): Document it.
35012
35013 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35014
35015         * gnulib-tool: Rename generated 'autobuild' script to
35016         'do-autobuild' in --create-megatestdir output.
35017
35018         * doc/gnulib.texi (Build robot for gnulib): Fix.
35019
35020 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35021
35022         * modules/sysexits (Depends-on): Add absolute-header.
35023
35024 2007-04-12  Eric Blake  <ebb9@byu.net>
35025
35026         No need to preserve errno on success.
35027         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35028         Reported by Bruno Haible.
35029
35030 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35031
35032         * MODULES.html.sh (Support for maintaining and releasing
35033         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35034
35035 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35036
35037         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35038
35039 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35040
35041         * modules/autobuild: New module.
35042
35043         * m4/autobuild.m4: New file.
35044
35045 2007-04-11  Bruno Haible  <bruno@clisp.org>
35046
35047         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35048         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35052         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35053         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35055         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35056         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35058         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35059         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35060         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35061         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35062         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35064         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35065         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35067         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35068         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35070         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35071         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35075         Reported by Eric Blake.
35076
35077 2007-04-11  Bruno Haible  <bruno@clisp.org>
35078
35079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35080
35081 2007-04-10  Bruno Haible  <bruno@clisp.org>
35082
35083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35084         for NaN and Infinity. Needed on FreeBSD 6.1.
35085         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35086         regarding results for "%010a" of Infinity and NaN.
35087         * tests/test-vasprintf-posix.c (test_function): Likewise.
35088         * tests/test-snprintf-posix.h (test_function): Likewise.
35089         * tests/test-sprintf-posix.h (test_function): Likewise.
35090         * tests/test-fprintf-posix.h (test_function): Likewise.
35091         * tests/test-printf-posix.h (test_function): Likewise.
35092         * tests/test-fprintf-posix.out: Likewise.
35093
35094 2007-04-10  Bruno Haible  <bruno@clisp.org>
35095
35096         * modules/locale-tests: New file.
35097         * tests/test-locale.c: New file.
35098
35099         * modules/locale: New file.
35100         * lib/locale_.h: New file.
35101         * m4/locale_h.m4: New file.
35102
35103 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35104             Bruno Haible  <bruno@clisp.org>
35105
35106         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35107         be determined, test for availability of the copysignf, copysign,
35108         copysignl functions.
35109         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35110         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35111         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35112
35113 2007-04-09  Eric Blake  <ebb9@byu.net>
35114
35115         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35116         * modules/stdio (Makefile.am): Support fflush.
35117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35118         * modules/fflush: New file.
35119         * lib/fflush.c: Likewise.
35120         * m4/fflush.m4: Likewise.
35121         * modules/fflush-tests: New test.
35122         * tests/test-fflush.c: Likewise.
35123         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35124
35125 2007-04-06  Bruno Haible  <bruno@clisp.org>
35126
35127         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35128         (VASNPRINTF): Use signbit for faster determination whether to print a
35129         minus sign.
35130         * modules/vasnprintf (Files): Remove lib/float+.h.
35131         * modules/fprintf-posix (Depends-on): Add signbit.
35132         * modules/snprintf-posix (Depends-on): Likewise.
35133         * modules/sprintf-posix (Depends-on): Likewise.
35134         * modules/vasnprintf-posix (Depends-on): Likewise.
35135         * modules/vasprintf-posix (Depends-on): Likewise.
35136         * modules/vfprintf-posix (Depends-on): Likewise.
35137         * modules/vsnprintf-posix (Depends-on): Likewise.
35138         * modules/vsprintf-posix (Depends-on): Likewise.
35139
35140 2007-04-06  Bruno Haible  <bruno@clisp.org>
35141
35142         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35143         * tests/test-frexpl.c (main): Likewise.
35144         * tests/test-ldexpl.c (main): Likewise.
35145         * modules/frexp-tests (Depends-on): Add signbit.
35146         * modules/frexpl-tests (Depdends-on): Likewise.
35147         * modules/ldexpl-tests (Depdends-on): Likewise.
35148
35149 2007-04-06  Bruno Haible  <bruno@clisp.org>
35150
35151         * modules/signbit-tests: New file.
35152         * tests/test-signbit.c: New file.
35153
35154         * modules/signbit: New file.
35155         * lib/signbitf.c: New file.
35156         * lib/signbitd.c: New file.
35157         * lib/signbitl.c: New file.
35158         * m4/signbit.m4: New file.
35159         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35160         (signbit): New macro.
35161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35162         REPLACE_SIGNBIT.
35163         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35164         REPLACE_FREXPL into math.h.
35165
35166 2007-04-06  Bruno Haible  <bruno@clisp.org>
35167
35168         * modules/isnanf-nolibm-tests: New file.
35169         * tests/test-isnanf.c: New file.
35170
35171         * modules/isnanf-nolibm: New file.
35172         * lib/isnanf.h: New file.
35173         * lib/isnanf.c: New file.
35174         * lib/isnan.c: Consider the USE_FLOAT macro.
35175         * m4/isnanf.m4: New file.
35176
35177 2007-04-06  Bruno Haible  <bruno@clisp.org>
35178
35179         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35180         (Link): New section.
35181
35182         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35183
35184 2007-04-06  Bruno Haible  <bruno@clisp.org>
35185
35186         Assume the 'long double' type.
35187         * m4/longdouble.m4: Remove file.
35188         * config/srclist.txt: Don't mention longdouble.m4.
35189         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35190         * lib/float+.h: Likewise.
35191         * lib/frexp.c: Likewise.
35192         * lib/printf-args.h: Likewise.
35193         * lib/printf-args.c: Likewise.
35194         * lib/printf-frexp.c: Likewise.
35195         * lib/printf-parse.c: Likewise.
35196         * lib/vasnprintf.c: Likewise.
35197         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35198         * m4/intl.m4: Likewise.
35199         * m4/isnanl.m4: Likewise.
35200         * m4/printf.m4: Likewise.
35201         * m4/printf-frexpl.m4: Likewise.
35202         * m4/vasnprintf.m4: Likewise.
35203         * modules/allocsa (Files): Remove m4/longdouble.m4.
35204         * modules/gettext (Files): Likewise.
35205         * modules/relocatable-prog-wrapper (Files): Likewise.
35206         * modules/vasnprintf (Files): Likewise.
35207         * modules/isnanl (Files): Likewise.
35208         (Include): Simplify.
35209         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35210         (Include): Simplify.
35211         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35212         (Include): Simplify.
35213         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35214         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35215         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35216         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35217         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35218         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35219         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35221         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35222         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35223         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35224         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35225         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35226         * tests/test-isnanl.c: Likewise.
35227         * tests/test-snprintf-posix.h: Likewise.
35228         * tests/test-sprintf-posix.h: Likewise.
35229         * tests/test-vasnprintf-posix.c: Likewise.
35230         * tests/test-vasnprintf-posix2.c: Likewise.
35231         * tests/test-vasprintf-posix.c: Likewise.
35232
35233 2007-04-06  Bruno Haible  <bruno@clisp.org>
35234
35235         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35236         * lib/math_.h [__DECC]: Include the overridden include file through
35237         #include_next, outside the double-inclusion guard.
35238         * lib/stdio_.h [__DECC]: Likewise.
35239         * lib/stdlib_.h [__DECC]: Likewise.
35240         * lib/string_.h [__DECC]: Likewise.
35241         * lib/time_.h [__DECC]: Likewise.
35242         * lib/wchar_.h [__DECC]: Likewise.
35243         * lib/wctype_.h [__DECC]: Likewise.
35244         * lib/inttypes_.h [__DECC]: Likewise.
35245         Reported by Albert Chin <china@thewrittenword.com> in
35246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35247
35248 2007-04-04  Eric Blake  <ebb9@byu.net>
35249
35250         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35251         1.5.x.
35252
35253 2007-04-04  Bruno Haible  <bruno@clisp.org>
35254
35255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35256         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35257
35258 2007-04-04  Bruno Haible  <bruno@clisp.org>
35259
35260         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35261         results for "%010a" of Infinity and NaN.
35262         * tests/test-vasprintf-posix.c (test_function): Likewise.
35263         * tests/test-snprintf-posix.h (test_function): Likewise.
35264         * tests/test-sprintf-posix.h (test_function): Likewise.
35265         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35266         * tests/test-printf-posix.h (test_function): Likewise.
35267         * tests/test-fprintf-posix.out: Update.
35268         Needed for FreeBSD 6.1.
35269
35270 2007-04-04  Bruno Haible  <bruno@clisp.org>
35271
35272         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35273         directly used by the gnulib modules nor by gnulib-tool.
35274
35275 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35276
35277         * DEPENDENCIES: Give overall description of version dependency
35278         desirability.  Use more-typical names for apps.
35279         Add shell, coreutils, diffutils, grep, tar, gzip.
35280
35281 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35282
35283         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35284
35285 2007-04-04  Karl Berry  <karl@gnu.org>
35286
35287         * MODULES.html.sh (func_module): missing '.
35288
35289 2007-04-03  Bruno Haible  <bruno@clisp.org>
35290
35291         * modules/argmatch-tests (Makefile.am): New variable
35292         test_argmatch_LDADD.
35293         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35294         * modules/array-list-tests (Makefile.am): New variable
35295         test_array_list_LDADD.
35296         * modules/array-oset-tests (Makefile.am): New variable
35297         test_array_oset_LDADD.
35298         * modules/avltree-list-tests (Makefile.am): New variable
35299         test_avltree_list_LDADD.
35300         * modules/avltree-oset-tests (Makefile.am): New variable
35301         test_avltree_oset_LDADD.
35302         * modules/avltreehash-list-tests (Makefile.am): New variable
35303         test_avltreehash_list_LDADD.
35304         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35305         test_canonicalize_lgpl_LDADD.
35306         * modules/carray-list-tests (Makefile.am): New variable
35307         test_carray_list_LDADD.
35308         * modules/dirname-tests (Makefile.am): New variable
35309         test_dirname_LDADD.
35310         * modules/linked-list-tests (Makefile.am): New variable
35311         test_linked_list_LDADD.
35312         * modules/linkedhash-list-tests (Makefile.am): New variable
35313         test_linkedhash_list_LDADD.
35314         * modules/rbtree-list-tests (Makefile.am): New variable
35315         test_rbtree_list_LDADD.
35316         * modules/rbtree-oset-tests (Makefile.am): New variable
35317         test_rbtree_oset_LDADD.
35318         * modules/rbtreehash-list-tests (Makefile.am): New variable
35319         test_rbtreehash_list_LDADD.
35320         * modules/xvasprintf-tests (Makefile.am): New variable
35321         test_xvasprintf_LDADD.
35322         Reported by Eric Blake.
35323
35324 2007-04-03  Eric Blake  <ebb9@byu.net>
35325
35326         * DEPENDENCIES: Weaken m4 requirements.
35327
35328 2007-04-03  Bruno Haible  <bruno@clisp.org>
35329
35330         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35331         * modules/isnanl-tests (configure.ac): Likewise.
35332
35333 2007-04-03  Ben Pfaff  <blp@gnu.org>
35334
35335         * modules/iconv_open: Add $(srcdir)/ to source directory
35336         references in Makefile fragments that call gperf, to fix VPATH
35337         builds.
35338
35339 2007-04-03  Bruno Haible  <bruno@clisp.org>
35340
35341         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35342         * lib/ldexpl.c: Undo last change.
35343
35344 2007-04-03  Bruno Haible  <bruno@clisp.org>
35345
35346         * modules/printf-frexpl (Depends-on): Undo last change.
35347         (Files): Add m4/ldexpl.m4.
35348
35349 2007-04-03  Bruno Haible  <bruno@clisp.org>
35350
35351         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35352         * modules/isnanl (Link): New section.
35353
35354         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35355         * modules/frexp (Link): New section.
35356
35357         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35358         * modules/frexpl (Link): New section.
35359
35360         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35361         * modules/ldexpl (Link): New section.
35362
35363 2007-04-03  Bruno Haible  <bruno@clisp.org>
35364
35365         * modules/TEMPLATE-EXTENDED: New file.
35366         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35367
35368 2007-04-03  Bruno Haible  <bruno@clisp.org>
35369
35370         * DEPENDENCIES: New file.
35371         Suggested by Simon Josefsson.
35372
35373 2007-04-03  Bruno Haible  <bruno@clisp.org>
35374
35375         * doc/gnulib.texi: Escape @.
35376
35377 2007-04-03  James Youngman  <jay@gnu.org>
35378         and Paul Eggert  <eggert@cs.ucla.edu>
35379
35380         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35381         birthtime on all systems that have birthtime, not just those which
35382         use st_birthtimensec rather than st_birthtim.  Putting zero in
35383         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35384         that the birth time is not available for files on an NFS mount.
35385
35386 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35387
35388         * modules/memxor: Move back from crypto/, suggested by Bruno.
35389         * modules/crypto/hmac-sha1: Fix memxor dependency.
35390
35391         * modules/crypto/gc: Moved from ../.
35392
35393 2007-04-02  Eric Blake  <ebb9@byu.net>
35394
35395         * lib/ldexpl.c (includes): Avoid libm.
35396
35397         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35398
35399 2007-04-02  Bruno Haible  <bruno@clisp.org>
35400
35401         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35402         on IRIX.
35403
35404 2007-04-02  Bruno Haible  <bruno@clisp.org>
35405
35406         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35407         x86 or x86_64 platforms running MacOS X.
35408         Reported by Ryan Schmidt <@ryandesign.com>.
35409
35410 2007-04-02  Bruno Haible  <bruno@clisp.org>
35411
35412         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35413         i386.
35414
35415 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35416
35417         * modules/crypto/arcfour: Moved from ../.
35418         * modules/crypto/arcfour-tests: Moved from ../.
35419         * modules/crypto/arctwo: Moved from ../.
35420         * modules/crypto/arctwo-tests: Moved from ../.
35421         * modules/crypto/des: Moved from ../.
35422         * modules/crypto/des-tests: Moved from ../.
35423         * modules/crypto/gc-arcfour: Moved from ../.
35424         * modules/crypto/gc-arcfour-tests: Moved from ../.
35425         * modules/crypto/gc-arctwo: Moved from ../.
35426         * modules/crypto/gc-arctwo-tests: Moved from ../.
35427         * modules/crypto/gc-des: Moved from ../.
35428         * modules/crypto/gc-des-tests: Moved from ../.
35429         * modules/crypto/gc-hmac-md5: Moved from ../.
35430         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35431         * modules/crypto/gc-hmac-sha1: Moved from ../.
35432         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35433         * modules/crypto/gc-md2: Moved from ../.
35434         * modules/crypto/gc-md2-tests: Moved from ../.
35435         * modules/crypto/gc-md4: Moved from ../.
35436         * modules/crypto/gc-md4-tests: Moved from ../.
35437         * modules/crypto/gc-md5: Moved from ../.
35438         * modules/crypto/gc-md5-tests: Moved from ../.
35439         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35440         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35441         * modules/crypto/gc-random: Moved from ../.
35442         * modules/crypto/gc-rijndael: Moved from ../.
35443         * modules/crypto/gc-rijndael-tests: Moved from ../.
35444         * modules/crypto/gc-sha1: Moved from ../.
35445         * modules/crypto/gc-sha1-tests: Moved from ../.
35446         * modules/crypto/gc-tests: Moved from ../.
35447         * modules/crypto/hmac-md5: Moved from ../.
35448         * modules/crypto/hmac-md5-tests: Moved from ../.
35449         * modules/crypto/hmac-sha1: Moved from ../.
35450         * modules/crypto/hmac-sha1-tests: Moved from ../.
35451         * modules/crypto/md2: Moved from ../.
35452         * modules/crypto/md2-tests: Moved from ../.
35453         * modules/crypto/md4: Moved from ../.
35454         * modules/crypto/md4-tests: Moved from ../.
35455         * modules/crypto/md5: Moved from ../.
35456         * modules/crypto/md5-tests: Moved from ../.
35457         * modules/crypto/memxor: Moved from ../.
35458         * modules/crypto/rijndael: Moved from ../.
35459         * modules/crypto/rijndael-tests: Moved from ../.
35460         * modules/crypto/sha1: Moved from ../.
35461
35462 2007-03-30  James Youngman  <jay@gnu.org>
35463
35464         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35465         rename() to change the ctime of a file (because ctime is unaffected
35466         by rename on jfs2 on AIX 5.1).
35467         (main): Start by doing cleanup, in case a previous run failed leaving
35468         test files behind.
35469
35470 2007-03-31  Bruno Haible  <bruno@clisp.org>
35471
35472         Support old proprietary implementations of iconv.
35473         * modules/iconv_open: New file.
35474         * lib/iconv_.h: New file.
35475         * m4/iconv_h.m4: New file.
35476         * lib/iconv_open.c: New file.
35477         * lib/iconv_open-aix.gperf: New file.
35478         * lib/iconv_open-hpux.gperf: New file.
35479         * lib/iconv_open-irix.gperf: New file.
35480         * lib/iconv_open-osf.gperf: New file.
35481         * m4/iconv_open.m4: New file.
35482         * modules/linebreak (Depends-on): Add iconv_open.
35483         * modules/striconv (Depends-on): Likewise.
35484         * modules/striconveh (Depends-on): Likewise.
35485         * modules/unicodeio (Depends-on): Likewise.
35486         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35487         (iconv_t)(-1).
35488         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35489         conversion if cd is (iconv_t)(-1).
35490         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35491         is not possible.
35492
35493 2007-03-31  Bruno Haible  <bruno@clisp.org>
35494
35495         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35496         work on Solaris either. Protect also second use of "autodetect_jp".
35497
35498 2007-03-31  Bruno Haible  <bruno@clisp.org>
35499
35500         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35501         the function is not present.
35502
35503 2007-03-31  Bruno Haible  <bruno@clisp.org>
35504
35505         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35506         the function is not present.
35507
35508 2007-03-31  Bruno Haible  <bruno@clisp.org>
35509
35510         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35511         a bug in HP-UX iconv_open().
35512
35513 2007-03-31  Bruno Haible  <bruno@clisp.org>
35514
35515         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35516         (Mathematics <math.h>): New section, add fpieee.
35517         (Input/output <stdio.h>): Add fseterr.
35518         (Mathematics <math.h>): New section, add printf-frexp.
35519         (Container data structures): Add sublist.
35520         (Core language properties): Add fpucw, inline.
35521         (Functions for greatest-width integer types <inttypes.h>): Add
35522         imaxabs, imaxdiv, inttypes.
35523         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35524         isnanl-nolibm, ldexp.
35525         (Mathematics <math.h>): New section, add printf-frexpl.
35526         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35527         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35528         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35529         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35530         (Unicode string functions): Add unistr/u*-mbtoucr.
35531         (Java): Add javacomp-script, javaexec-script.
35532         (C#): Add csharpcomp-script, csharpexec-script.
35533         (Support for building libraries and executables): Add havelib,
35534         relocatable-*.
35535         (Support for maintaining and releasing projects): Renamed from
35536         'Support for maintaining and release projects'. Add announce-gen.
35537
35538 2007-03-31  Bruno Haible  <bruno@clisp.org>
35539
35540         * README: Talk primarily about git.
35541         (git and CVS): Renamed from CVS.
35542         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35543         gnulib is available through git.
35544         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35545
35546 2007-03-30  Bruno Haible  <bruno@clisp.org>
35547
35548         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35549         * lib/poll_.h: Likewise.
35550         * lib/stat_.h: Likewise.
35551         * lib/sys_time_.h: Likewise.
35552         * lib/sysexit_.h: Likewise.
35553         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35554         * lib/stdbool_.h: Likewise.
35555         * lib/byteswap_.h: Add double-inclusion guard.
35556
35557 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35558
35559         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35560
35561 2007-03-30  Karl Berry  <karl@gnu.org>
35562
35563         * config/srclist-update: double space after USA in the license
35564         substitution, since that's how it's usually (?) written.
35565
35566 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35567
35568         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35569         reported by Bruno Haible.
35570
35571 2007-03-29  Bruno Haible  <bruno@clisp.org>
35572
35573         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35574         a bug in AIX iconv().
35575
35576 2007-03-29  Bruno Haible  <bruno@clisp.org>
35577
35578         * modules/ldexpl-tests: New file.
35579         * tests/test-ldexpl.c: New file.
35580
35581 2007-03-29  Bruno Haible  <bruno@clisp.org>
35582
35583         * lib/ldexpl.c: Include fpucw.h.
35584         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35585         multiplication.
35586         * modules/ldexpl (Depends-on): Add fpucw.
35587
35588 2007-03-29  Bruno Haible  <bruno@clisp.org>
35589
35590         * modules/ldexpl: New file.
35591         * m4/ldexpl.m4: New file.
35592         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35593         set.
35594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35595         REPLACE_LDEXPL.
35596         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35597         REPLACE_LDEXPL.
35598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35599         gl_FUNC_LDEXPL_WORKS.
35600         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35601         * modules/mathl (Files): Remove lib/ldexpl.c.
35602         (Depends-on): Add ldexpl.
35603
35604 2007-03-29  Bruno Haible  <bruno@clisp.org>
35605
35606         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35607
35608 2007-03-29  Bruno Haible  <bruno@clisp.org>
35609
35610         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35611         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35612         and possibly also HP-UX.
35613         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35614         work on AIX, IRIX, HP-UX, OSF/1.
35615         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35616         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35617         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35618         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35619         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35620         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35621
35622 2007-03-29  Bruno Haible  <bruno@clisp.org>
35623
35624         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35625
35626 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35627
35628         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35629         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35630
35631 2007-03-29  Eric Blake  <ebb9@byu.net>
35632
35633         * lib/acl-internal.h: Remove redundant include.
35634         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35635         Cygwin when a file is locked.
35636
35637 2007-03-29  Bruno Haible  <bruno@clisp.org>
35638
35639         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35640         file.
35641         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35642
35643 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35644
35645         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35646         try to remove a parent directory if the child couldn't be removed
35647         (except for the first rmdir, which could fail because the child
35648         doesn't exist).  Problem reported by Jeff Blaine in
35649         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35650
35651 2007-03-28  Bruno Haible  <bruno@clisp.org>
35652
35653         * lib/striconveh.c (utf8conv_carefully): New function.
35654         (mem_cd_iconveh_internal): Invoke it.
35655
35656 2007-03-28  Bruno Haible  <bruno@clisp.org>
35657
35658         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35659         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35660         input.
35661         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35662         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35663         unistr/u8-uctomb.
35664
35665 2007-03-28  Bruno Haible  <bruno@clisp.org>
35666
35667         * modules/unistr/u8-mbtoucr: New file.
35668         * lib/unistr/u8-mbtoucr.c: New file.
35669         * modules/unistr/u16-mbtoucr: New file.
35670         * lib/unistr/u16-mbtoucr.c: New file.
35671         * modules/unistr/u16-mbtoucr: New file.
35672         * lib/unistr/u16-mbtoucr.c: New file.
35673         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35674
35675 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35676             Bruno Haible  <bruno@clisp.org>
35677
35678         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35679         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35680         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35681
35682         * m4/stdio_h.m4: Add stubs for vasprintf too.
35683
35684         * modules/stdio: Support vasprintf in sed command.
35685
35686         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35687         vasprintf.h.  Add stdio module indicator.
35688
35689         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35690         vasprintf.h.
35691
35692         * lib/vasprintf.h: File removed.
35693
35694         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35695         * lib/vasprintf.c: Ditto.
35696         * lib/xvasprintf.c: Ditto.
35697         * tests/test-vasprintf-posix.c: Ditto.
35698         * tests/test-vasprintf.c: Ditto.
35699
35700 2007-03-27  Bruno Haible  <bruno@clisp.org>
35701
35702         Make vasnprintf multithread-safe.
35703         * lib/vasnprintf.c (decimal_point_char): New function.
35704         (VASNPRINTF): Use it.
35705         Suggested by Simon Josefsson.
35706
35707 2007-03-27  Eric Blake  <ebb9@byu.net>
35708
35709         Support sub-second birthtime on cygwin.
35710         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35711         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35712         (get_stat_birthtime): Also work with st_birthtim.
35713
35714 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35715
35716         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35717         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35718         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35719         (get_stat_birthtime_ns): Simplify compile-time tests.
35720         (get_stat_birthtime): Change the API to look like
35721         get_stat_mtime etc., except return a negative tv_nsec on error.
35722         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35723         Don't check for "spare" fields.
35724         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35725         or for struct stat.st_birthtime, as these tests aren't used.
35726         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35727
35728 2007-03-27  Bruno Haible  <bruno@clisp.org>
35729
35730         * lib/stat-time.h: Include <sys/stat.h>.
35731
35732 2007-03-27  James Youngman  <jay@gnu.org>
35733
35734         * lib/stat-time.h (get_stat_birthtime): New function for
35735           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35736         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35737           and its variants.
35738         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35739         * modules/stat-time-test: New file.
35740         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35741
35742 2007-03-26  Bruno Haible  <bruno@clisp.org>
35743
35744         Better support of signalling NaNs.
35745         * lib/atanl.c: Include isnanl.h.
35746         (atanl): Perform test for NaN at the beginning of the function and
35747         through a call to isnanl.
35748         * lib/cosl.c: Include isnanl.h.
35749         (cosl): Perform test for NaN at the beginning of the function and
35750         through a call to isnanl.
35751         * lib/ldexpl.c: Include isnanl.h.
35752         (ldexpl): Perform test for NaN through a call to isnanl.
35753         * lib/logl.c: Include isnanl.h.
35754         (logl): Perform test for NaN at the beginning of the function and
35755         through a call to isnanl.
35756         * lib/sinl.c: Include isnanl.h.
35757         (sinl): Perform test for NaN at the beginning of the function and
35758         through a call to isnanl.
35759         * lib/sqrtl.c: Include isnanl.h.
35760         (sqrtl): Perform test for NaN at the beginning of the function and
35761         through a call to isnanl.
35762         * lib/tanl.c: Include isnanl.h.
35763         (tanl): Perform test for NaN at the beginning of the function and
35764         through a call to isnanl.
35765         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35766         * modules/mathl (Depends-on): Add isnanl.
35767
35768 2007-03-26  Eric Blake  <ebb9@byu.net>
35769
35770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35771         regression in logic sense of previous patch.
35772
35773 2007-03-26  Bruno Haible  <bruno@clisp.org>
35774
35775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35776         unportable shell command "if ! ...".
35777         Reported by Ralf Wildenhues.
35778
35779 2007-03-25  Bruno Haible  <bruno@clisp.org>
35780
35781         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35782         <sysexits.h> file, and only add EX_CONFIG.
35783         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35784         absolute file name and whether it is sufficient. Substitute also
35785         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35786         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35787         ABSOLUTE_SYSEXITS_H into sysexits.h.
35788
35789 2007-03-25  Bruno Haible  <bruno@clisp.org>
35790
35791         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35792         hints is NULL.
35793
35794 2007-03-25  Bruno Haible  <bruno@clisp.org>
35795
35796         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35797         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35798
35799 2007-03-25  Bruno Haible  <bruno@clisp.org>
35800
35801         * lib/vasnprintf.c: Include langinfo.h.
35802         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35803         multithread-safe.
35804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35805         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35807         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35808         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35809         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35810         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35812         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35813         Reported by Simon Josefsson.
35814
35815 2007-03-25  Bruno Haible  <bruno@clisp.org>
35816
35817         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35818         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35819         * modules/vasnprintf (Depends-on): Add stdint.
35820
35821 2007-03-25  Bruno Haible  <bruno@clisp.org>
35822
35823         * modules/fpieee: New file.
35824         * m4/fpieee.m4: New file.
35825         * modules/isnan-nolibm (Depends-on): Add fpieee.
35826         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35827         * modules/isnanl (Depends-on): Add fpieee.
35828
35829 2007-03-25  Bruno Haible  <bruno@clisp.org>
35830
35831         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35832
35833 2007-03-25  Bruno Haible  <bruno@clisp.org>
35834
35835         Avoid test failures on IRIX 6.5.
35836         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35837         (main): Use it.
35838         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35839         macros.
35840         (main): Use them.
35841
35842 2007-03-25  Bruno Haible  <bruno@clisp.org>
35843
35844         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35845         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35846         exists but doesn't work.
35847         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35848         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35850         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35851
35852 2007-03-25  Bruno Haible  <bruno@clisp.org>
35853
35854         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35855         returns inf. Needed on IRIX 6.5.
35856
35857 2007-03-25  Bruno Haible  <bruno@clisp.org>
35858
35859         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35860         (main): Use isnanl instead of x != x idiom.
35861         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35862
35863         * tests/test-frexp.c: Include isnan.h.
35864         (main): Use isnan instead of x != x idiom.
35865         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35866
35867 2007-03-25  Bruno Haible  <bruno@clisp.org>
35868
35869         * tests/test-frexp.c (NaN): New function/macro.
35870         (main): Use it instead of 0.0 / 0.0.
35871         * tests/test-isnan.c (NaN): New function/macro.
35872         (main): Use it instead of 0.0 / 0.0.
35873         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35874         (test_function): Use it instead of 0.0 / 0.0.
35875         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35876         (test_function): Use it instead of 0.0 / 0.0.
35877         * tests/test-snprintf-posix.h (NaN): New function/macro.
35878         (test_function): Use it instead of 0.0 / 0.0.
35879         * tests/test-sprintf-posix.h (NaN): New function/macro.
35880         (test_function): Use it instead of 0.0 / 0.0.
35881         * tests/test-fprintf-posix.h (NaN): New function/macro.
35882         (test_function): Use it instead of 0.0 / 0.0.
35883         * tests/test-printf-posix.h (NaN): New function/macro.
35884         (test_function): Use it instead of 0.0 / 0.0.
35885
35886         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35887
35888 2007-03-25  Bruno Haible  <bruno@clisp.org>
35889
35890         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35891
35892 2007-03-25  Bruno Haible  <bruno@clisp.org>
35893
35894         * lib/regexec.c (merge_state_with_log): Make static.
35895
35896 2007-03-25  Bruno Haible  <bruno@clisp.org>
35897
35898         * lib/trigl.c (kernel_rem_pio2): Make static.
35899
35900 2007-03-25  Bruno Haible  <bruno@clisp.org>
35901
35902         * lib/sincosl.c (sincosl_table): Make static.
35903
35904 2007-03-25  Bruno Haible  <bruno@clisp.org>
35905
35906         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35907         if the compiler does not support C99.
35908
35909 2007-03-25  Bruno Haible  <bruno@clisp.org>
35910
35911         * modules/time (Makefile.am): Ensure all rule action lines start with a
35912         tab.
35913
35914 2007-03-24  Bruno Haible  <bruno@clisp.org>
35915
35916         * modules/tsearch-tests: New file.
35917         * tests/test-tsearch.sh: New file.
35918         * tests/test-tsearch.c: New file, mostly copied from glibc.
35919
35920         * modules/search-tests: New file.
35921         * tests/test-search.c: New file.
35922
35923         * modules/search: New file.
35924         * lib/search_.h: New file, incorporating lib/tsearch.h.
35925         * m4/search_h.m4: New file.
35926         * lib/tsearch.h: Remove file.
35927         * lib/tsearch.c: Include search.h instead of tsearch.h.
35928         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35929         HAVE_TSEARCH.
35930         * modules/tsearch (Files): Remove lib/tsearch.h.
35931         (Depends-on): Add search.
35932         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35933         (Include): Change tsearch.h into search.h.
35934
35935 2007-03-24  Bruno Haible  <bruno@clisp.org>
35936
35937         * modules/fpucw: New file.
35938         * lib/fpucw.h: New file.
35939         * lib/frexp.c: Include fpucw.h.
35940         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35941         (FUNC): Use them.
35942         * lib/printf-frexp.c: Include fpucw.h.
35943         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35944         (FUNC): Use them.
35945         * lib/vasnprintf.c: Include fpucw.h.
35946         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35947         'long double' calculations.
35948         * tests/test-frexpl.c: Include fpucw.h.
35949         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35950         * tests/test-printf-frexpl.c: Include fpucw.h.
35951         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35952         * modules/frexpl (Depends-on): Add fpucw.
35953         * modules/printf-frexpl (Depends-on): Likewise.
35954         * modules/fprintf-posix (Depends-on): Likewise.
35955         * modules/snprintf-posix (Depends-on): Likewise.
35956         * modules/sprintf-posix (Depends-on): Likewise.
35957         * modules/vasnprintf-posix (Depends-on): Likewise.
35958         * modules/vasprintf-posix (Depends-on): Likewise.
35959         * modules/vfprintf-posix (Depends-on): Likewise.
35960         * modules/vsnprintf-posix (Depends-on): Likewise.
35961         * modules/vsprintf-posix (Depends-on): Likewise.
35962         * modules/frexpl-tests (Depends-on): Likewise.
35963         * modules/printf-frexpl-tests (Depends-on): Likewise.
35964
35965 2007-03-24  Bruno Haible  <bruno@clisp.org>
35966
35967         * lib/float+.h: New file.
35968         * lib/isnan.c: Include float+.h.
35969         (SIZE): New macro.
35970         (FUNC): Compare only SIZE bytes of the value.
35971         * lib/vasnprintf.c: Include float+.h.
35972         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35973         SIZEOF_LDBL or SIZEOF_DBL bytes.
35974         * modules/isnan-nolibm (Files): Add lib/float+.h.
35975         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35976         * modules/isnanl (Files): Add lib/float+.h.
35977         * modules/vasnprintf (Files): Add lib/float+.h.
35978
35979 2007-03-24  Bruno Haible  <bruno@clisp.org>
35980
35981         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35982         include isnanl-nolibm.h.
35983
35984 2007-03-24  Bruno Haible  <bruno@clisp.org>
35985
35986         * tests/test-read-file.c (main): Don't produce spurious output for
35987         expected situations. Make the test fail if it encountered unexpected
35988         results.
35989
35990 2007-03-24  Bruno Haible  <bruno@clisp.org>
35991
35992         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35993         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35994
35995 2007-03-24  Bruno Haible  <bruno@clisp.org>
35996
35997         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35998
35999 2007-03-24  Bruno Haible  <bruno@clisp.org>
36000
36001         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36002         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36003
36004         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36005         * modules/utf8-ucs4: Turn into a symbolic link to module
36006         unistr/u8-mbtouc.
36007
36008         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36009         utf8-ucs4-unsafe.
36010         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36011         unistr/u8-mbtouc-unsafe.
36012
36013         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36014         * modules/utf16-ucs4: Turn into a symbolic link to module
36015         unistr/u16-mbtouc.
36016
36017         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36018         utf16-ucs4-unsafe.
36019         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36020         unistr/u16-mbtouc-unsafe.
36021
36022         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36023         * modules/ucs4-utf8: Turn into a symbolic link to module
36024         unistr/u8-ubtomb.
36025
36026         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36027         * modules/ucs4-utf16: Turn into a symbolic link to module
36028         unistr/u16-ubtomb.
36029
36030 2007-03-24  Bruno Haible  <bruno@clisp.org>
36031
36032         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36033         Enable the function only if HAVE_INLINE.
36034         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36035         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36036         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36037         Enable the function only if HAVE_INLINE.
36038         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36039         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36040         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36041         Enable the function only if HAVE_INLINE.
36042         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36043         Enable the function only if HAVE_INLINE.
36044         * modules/utf8-ucs4: Update.
36045         * modules/utf8-ucs4-unsafe: Update.
36046         * modules/utf16-ucs4: Update.
36047         * modules/utf16-ucs4-unsafe: Update.
36048         * modules/ucs4-utf8: Update.
36049         * modules/ucs4-utf16: Update.
36050
36051 2007-03-24  Bruno Haible  <bruno@clisp.org>
36052
36053         * lib/utf8-ucs4.h: Remove file.
36054         * lib/utf8-ucs4-unsafe.h: Remove file.
36055         * lib/utf16-ucs4.h: Remove file.
36056         * lib/utf16-ucs4-unsafe.h: Remove file.
36057         * lib/ucs4-utf8.h: Remove file.
36058         * lib/ucs4-utf16.h: Remove file.
36059         * lib/unistr.h: Include their previous contents.
36060         * m4/utf-ucs4.m4: Remove file.
36061         * m4/ucs4-utf.m4: Remove file.
36062         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36063         (Depends-on): Add unistr/base.
36064         (configure.ac): Remove gl_UTF_UCS4.
36065         (Makefile.am): Update.
36066         (Include): Change to unistr.h.
36067         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36068         (Depends-on): Add unistr/base.
36069         (configure.ac): Remove gl_UTF_UCS4.
36070         (Makefile.am): Update.
36071         (Include): Change to unistr.h.
36072         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36073         (Depends-on): Add unistr/base.
36074         (configure.ac): Remove gl_UTF_UCS4.
36075         (Makefile.am): Update.
36076         (Include): Change to unistr.h.
36077         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36078         (Depends-on): Add unistr/base.
36079         (configure.ac): Remove gl_UTF_UCS4.
36080         (Makefile.am): Update.
36081         (Include): Change to unistr.h.
36082         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36083         (Depends-on): Add unistr/base.
36084         (configure.ac): Remove gl_UCS4_UTF.
36085         (Makefile.am): Update.
36086         (Include): Change to unistr.h.
36087         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36088         (Depends-on): Add unistr/base.
36089         (configure.ac): Remove gl_UCS4_UTF.
36090         (Makefile.am): Update.
36091         (Include): Change to unistr.h.
36092         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36093         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36094         utf8-ucs4-unsafe.h.
36095         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36096         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36097         utf16-ucs4-unsafe.h.
36098         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36099         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36100         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36101         * lib/unistr/u8-strchr.c: Likewise.
36102         * lib/unistr/u8-strrchr.c: Likewise.
36103         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36104         * lib/unistr/u16-strchr.c: Likewise.
36105         * lib/unistr/u16-strrchr.c: Likewise.
36106         * lib/striconveh.c: Update.
36107         * lib/linebreak.c: Update.
36108
36109 2007-03-24  Bruno Haible  <bruno@clisp.org>
36110
36111         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36112         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36113
36114 2007-03-22  Bruno Haible  <bruno@clisp.org>
36115
36116         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36117
36118 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36119
36120         * MODULES.html.sh (File system functions): New module write-any-file.
36121         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36122         * m4/write-any-file.m4: New files.
36123
36124 2007-03-23  Eric Blake  <ebb9@byu.net>
36125
36126         * gnulib-tool: Rearrange space-tab sequences, since some editors
36127         like to eat them.
36128
36129 2007-03-23  Eric Blake  <ebb9@byu.net>
36130
36131         * lib/version-etc.c (version_etc_va): Update license wording to
36132         be more concise.  Recommended by Richard Stallman.
36133
36134 2007-03-22  Bruno Haible  <bruno@clisp.org>
36135
36136         * lib/poll.c (MSG_PEEK): New fallback definition.
36137
36138 2007-03-22  Bruno Haible  <bruno@clisp.org>
36139
36140         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36141         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36142         (main): Update.
36143         Fixes a compilation error on BeOS.
36144
36145 2007-03-22  Bruno Haible  <bruno@clisp.org>
36146
36147         * modules/frexpl-tests: New file.
36148         * tests/test-frexpl.c: New file.
36149
36150         * modules/frexpl: New file.
36151         * m4/frexpl.m4: New file.
36152         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36153         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36155         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36156         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36157         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36158
36159 2007-03-22  Bruno Haible  <bruno@clisp.org>
36160
36161         * lib/frexpl.c: Share code with lib/frexp.c.
36162         * modules/mathl (Files): Add lib/frexp.c.
36163         (Depends-on): Add isnanl-nolibm.
36164
36165 2007-03-22  Bruno Haible  <bruno@clisp.org>
36166
36167         * modules/printf-frexp (Files): Add m4/frexp.m4.
36168         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36169         only if the found frexp function actually works.
36170
36171 2007-03-22  Bruno Haible  <bruno@clisp.org>
36172
36173         * lib/frexp.c: Remove older implementation that uses divisions.
36174
36175 2007-03-21  Bruno Haible  <bruno@clisp.org>
36176
36177         * modules/frexp-tests: New file.
36178         * tests/test-frexp.c: New file.
36179
36180         * modules/frexp: New file.
36181         * lib/frexp.c: New file.
36182         * m4/frexp.m4: New file.
36183         * lib/math_.h (frexp): New declaration.
36184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36185         REPLACE_FREXP.
36186         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36187
36188 2007-03-21  Bruno Haible  <bruno@clisp.org>
36189
36190         * modules/isnanl-tests: New file.
36191         * tests/test-isnanl.c: New file.
36192
36193         * modules/isnanl: New file.
36194         * lib/isnanl.h: New file.
36195         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36196         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36197         gl_FUNC_ISNANL_WORKS.
36198         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36199         New macros.
36200
36201 2007-03-21  Bruno Haible  <bruno@clisp.org>
36202
36203         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36204         lib/isnanl.h.
36205         (Include): Update.
36206         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36207         * lib/vasnprintf.c: Update.
36208         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36209         tests/test-isnanl.h, remove tests/test-isnanl.c.
36210         (Makefile.am): Update.
36211         * tests/test-isnanl-nolibm.c: New file.
36212         * tests/test-isnanl.h: New file.
36213         * tests/test-isnanl.c: Remove file.
36214
36215 2007-03-21  Jim Meyering  <jim@meyering.net>
36216
36217         When trying to open ".", treat ESTALE like EACCES.
36218         * lib/savewd.c (savewd_save): Resort to forking not just upon
36219         failure with EACCES, but also when errno is ESTALE.
36220
36221 2007-03-20  Bruno Haible  <bruno@clisp.org>
36222
36223         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36224         Needed on AIX 5.1. Reported by Matthew Woehlke.
36225
36226 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36227
36228         Suggestions by Bruno Haible:
36229         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36230         our own.
36231         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36232         * modules/acl (Depends-on): Add gettext.
36233
36234 2007-03-19  Bruno Haible  <bruno@clisp.org>
36235
36236         * modules/iconvme: Remove file.
36237         * lib/iconvme.h: Remove file.
36238         * lib/iconvme.c: Remove file.
36239         * m4/iconvme.m4: Remove file.
36240
36241 2007-03-19  Bruno Haible  <bruno@clisp.org>
36242
36243         * doc/relocatable-maint.texi: Break long shell script line.
36244         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36245
36246 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36247
36248         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36249         handle file_has_acl.
36250         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36251         * lib/acl.c: Move header inclusions and related macro defns into
36252         lib/acl-internal.h.
36253         (S_ISLNK): Remove defn, since that's now done for us.
36254         (file_has_acl): Move to lib/file-has-acl.c.
36255         Call acl_trivial if available.  This is the crucial part of the fix.
36256         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36257         shared within the library.  Rewrite a bit, partly to make it compatible
36258         with the GNU coding style.
36259         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36260         Remove unnecessary double-quotes.
36261         Don't test for acl_to_text; the build will catch that.
36262         Replace acl_entries if it doesn't exist and it is needed.
36263         Check for -lsec and acl_trivial (as used on Solaris 10).
36264         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36265         lib/file-has-acl.c.
36266         (Depends-on): Add sys_stat, for S_ISLNK.
36267
36268 2007-03-19  Ben Pfaff  <blp@gnu.org>
36269
36270         * doc/gnulib.texi: Fix typos.
36271         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36272
36273 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36274
36275         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36276         If size is zero here, buf must be zero.
36277
36278 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36279
36280         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36281         <bruno@clisp.org>.
36282
36283 2007-03-18  Bruno Haible  <bruno@clisp.org>
36284
36285         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36286         Suggested by Eric Blake.
36287
36288 2007-03-18  Ben Pfaff  <blp@gnu.org>
36289
36290         * doc/relocatable.texi: Recommend using as prefix a directory
36291         that does not exist and will never be created.  Based on
36292         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36293         and others.
36294
36295 2007-03-17  Bruno Haible  <bruno@clisp.org>
36296
36297         * lib/fchownat.c: Include lchown.h.
36298
36299 2007-03-17  Bruno Haible  <bruno@clisp.org>
36300
36301         Fix endless loop when the given allocated size was > INT_MAX.
36302         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36303         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36304         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36305         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36306         * lib/sprintf.c (sprintf): Likewise.
36307
36308 2007-03-17  Bruno Haible  <bruno@clisp.org>
36309
36310         * tests/test-argp-2.sh (func_compare): Output a context diff.
36311
36312 2007-03-17  Bruno Haible  <bruno@clisp.org>
36313
36314         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36315         locale's decimal-point character.
36316
36317 2007-03-17  Bruno Haible  <bruno@clisp.org>
36318
36319         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36320         before comparing it. Needed because on some platforms (e.g. x86) a
36321         'long double' occupies less bytes than sizeof (long double).
36322
36323 2007-03-17  Bruno Haible  <bruno@clisp.org>
36324
36325         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36326         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36327         * tests/test-getaddrinfo.c (simple): Likewise.
36328         * tests/test-read-file.c (main): Likewise.
36329
36330 2007-03-17  Bruno Haible  <bruno@clisp.org>
36331
36332         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36333
36334 2007-03-17  Bruno Haible  <bruno@clisp.org>
36335
36336         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36337         unused variable.
36338
36339 2007-03-17  Bruno Haible  <bruno@clisp.org>
36340
36341         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36342         * tests/test-c-strncasecmp.c: Likewise.
36343
36344 2007-03-17  Bruno Haible  <bruno@clisp.org>
36345
36346         * modules/stdlib (Depends-on): Add unistd.
36347         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36348         Needed for MacOS X 10.3.
36349
36350 2007-03-17  Bruno Haible  <bruno@clisp.org>
36351
36352         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36353
36354 2007-03-17  Bruno Haible  <bruno@clisp.org>
36355
36356         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36357
36358 2007-03-17  Bruno Haible  <bruno@clisp.org>
36359
36360         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36361         to reflect files copied from gnulib (with or without modifications).
36362         Suggested by Jim Meyering.
36363
36364 2007-03-17  Eric Blake  <ebb9@byu.net>
36365
36366         * NEWS: Document stdlib change from 2007-02-18.
36367
36368 2007-03-17  Jim Meyering  <jim@meyering.net>
36369
36370         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36371         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36372         someone uses a name containing shell meta-characters.
36373         Reported by Alfred M. Szmidt.
36374
36375         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36376
36377 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36378
36379         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36380         and copy gettext configuration files only if configure.ac contains
36381         a use of AM_GNU_GETTEXT_VERSION.
36382
36383 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36384
36385         * build-aux/bootstrap (gnulib_name): New variable.
36386         (gnulib_tool_options): Use it.
36387
36388 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36389
36390         * tests/test-des.c: Use new namespace.
36391
36392 2007-03-15  Bruno Haible  <bruno@clisp.org>
36393
36394         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36395         Reported by James Youngman <jay@gnu.org>.
36396
36397 2007-03-15  Bruno Haible  <bruno@clisp.org>
36398
36399         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36400         declared prototype. Needed with cc on OSF/1 5.1.
36401
36402 2007-03-15  Bruno Haible  <bruno@clisp.org>
36403
36404         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36405         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36406         (struct gl_list_implementation): Add dispose_fn argument to the
36407         'create_empty', 'create' methods.
36408         (struct gl_list_impl_base): Add field 'dispose_fn'.
36409         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36410         argument.
36411         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36412         dispose_fn argument.
36413         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36414         dispose_fn on the dropped values.
36415         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36416         dispose_fn argument.
36417         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36418         dropped values.
36419         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36420         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36421         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36422         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36423         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36424         argument.
36425         (gl_tree_list_free): Call dispose_fn on the dropped values.
36426         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36427         the dropped values.
36428         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36429         Add dispose_fn argument.
36430         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36431         Call dispose_fn on the dropped values.
36432         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36433         Add dispose_fn argument.
36434         (gl_sublist_create): Initialize the 'dispose_fn' field.
36435         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36436         * tests/test-array_list.c (main): Update.
36437         * tests/test-carray_list.c (main): Update.
36438         * tests/test-avltree_list.c (main): Update.
36439         * tests/test-rbtree_list.c (main): Update.
36440         * tests/test-avltreehash_list.c (main): Update.
36441         * tests/test-rbtreehash_list.c (main): Update.
36442         * tests/test-linked_list.c (main): Update.
36443         * tests/test-linkedhash_list.c (main): Update.
36444         * tests/test-array_oset.c (main): Update.
36445
36446 2007-03-15  Bruno Haible  <bruno@clisp.org>
36447
36448         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36449         (gl_oset_create_empty): Add dispose_fn argument.
36450         (struct gl_oset_implementation): Add dispose_fn argument to
36451         'create_empty' method.
36452         (struct gl_oset_impl_base): Add dispose_fn field.
36453         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36454         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36455         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36456         values.
36457         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36458         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36459         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36460         dropped value.
36461         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36462         dropped value.
36463         * tests/test-array_oset.c (main): Update.
36464         * tests/test-avltree_oset.c (main): Update.
36465         * tests/test-rbtree_oset.c (main): Update.
36466         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36467
36468 2007-03-13  Bruno Haible  <bruno@clisp.org>
36469
36470         * tests/test-stdbool.c (i): Update after last patch.
36471
36472 2007-03-12  Bruno Haible  <bruno@clisp.org>
36473
36474         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36475         the iswprint macro. Needed on Solaris 2.5.1.
36476
36477 2007-03-12  Bruno Haible  <bruno@clisp.org>
36478
36479         * tests/test-printf-frexp.c (main): Declare x as volatile.
36480
36481 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36482
36483         * doc/gnulib.texi (Build robot for gnulib): New section.
36484
36485 2007-03-12  Jim Meyering  <jim@meyering.net>
36486
36487         * build-aux/bootstrap: New file.
36488         * build-aux/bootstrap.conf: New file, from coreutils.
36489
36490 2007-03-11  Bruno Haible  <bruno@clisp.org>
36491
36492         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36493
36494 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36495
36496         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36497         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36498         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36499
36500 2007-03-11  Bruno Haible  <bruno@clisp.org>
36501
36502         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36503         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36504
36505 2007-03-11  Bruno Haible  <bruno@clisp.org>
36506
36507         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36508         formula. Needed for SunPRO C 5.0.
36509
36510 2007-03-11  Bruno Haible  <bruno@clisp.org>
36511
36512         * modules/long-options (Depends-on): Add getopt.
36513
36514 2007-03-11  Bruno Haible  <bruno@clisp.org>
36515
36516         * modules/modechange (Depends-on): Add stdbool.
36517
36518 2007-03-11  Bruno Haible  <bruno@clisp.org>
36519
36520         * modules/i-ring (Depends-on): Add stdbool.
36521
36522 2007-03-11  Bruno Haible  <bruno@clisp.org>
36523
36524         * modules/gc-des (Depends-on): Add stdbool.
36525
36526 2007-03-11  Bruno Haible  <bruno@clisp.org>
36527
36528         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36529
36530 2007-03-11  Bruno Haible  <bruno@clisp.org>
36531
36532         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36533
36534 2007-03-11  Bruno Haible  <bruno@clisp.org>
36535
36536         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36537
36538 2007-03-11  Bruno Haible  <bruno@clisp.org>
36539
36540         * lib/vasnprintf.c (sprintf): Undefine.
36541
36542 2007-03-11  Bruno Haible  <bruno@clisp.org>
36543
36544         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36545         initializers in SunPRO C and Compaq C compilers.
36546
36547 2007-03-11  Bruno Haible  <bruno@clisp.org>
36548
36549         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36550         decrementing code ANSI C compliant.
36551
36552 2007-03-11  Bruno Haible  <bruno@clisp.org>
36553
36554         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36555         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36556
36557 2007-03-11  Bruno Haible  <bruno@clisp.org>
36558
36559         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36560         <stdbool.h> substitute doesn't pass.
36561
36562 2007-03-11  Bruno Haible  <bruno@clisp.org>
36563
36564         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36565
36566 2007-03-11  Bruno Haible  <bruno@clisp.org>
36567
36568         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36569         script, for submission to autobuild.josefsson.org.
36570
36571 2007-03-10  Bruno Haible  <bruno@clisp.org>
36572
36573         * modules/canonicalize-lgpl-tests: New file.
36574         * tests/test-canonicalize-lgpl.sh: New file.
36575         * tests/test-canonicalize-lgpl.c: New file.
36576
36577         * modules/c-strcase-tests: New file.
36578         * tests/test-c-strcase.sh: New file.
36579         * tests/test-c-strcasecmp.c: New file.
36580         * tests/test-c-strncasecmp.c: New file.
36581
36582         * modules/atexit-tests: New file.
36583         * tests/test-atexit.sh: New file.
36584         * tests/test-atexit.c: New file.
36585
36586 2007-03-10  Bruno Haible  <bruno@clisp.org>
36587
36588         * tests/test-binary-io.sh: Use temporary filenames that are not so
36589         likely to clash with those of other tests (in a parallel make).
36590         * tests/test-binary-io.c: Likewise.
36591
36592 2007-03-10  Bruno Haible  <bruno@clisp.org>
36593
36594         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36595         fallback; use #error instead.
36596         Suggested by Simon Josefsson.
36597
36598 2007-03-10  Bruno Haible  <bruno@clisp.org>
36599
36600         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36601         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36602         first and the last.
36603
36604 2007-03-10  Bruno Haible  <bruno@clisp.org>
36605
36606         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36607
36608 2007-03-10  Bruno Haible  <bruno@clisp.org>
36609
36610         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36611         "make distcheck".
36612         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36613         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36614         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36615
36616 2007-03-10  Bruno Haible  <bruno@clisp.org>
36617
36618         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36619         variable.
36620         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36621         variable.
36622
36623 2007-03-09  Eric Blake  <ebb9@byu.net>
36624         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36625
36626         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36627         types are not being provided by gnulib.
36628         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36629         types are supported.
36630
36631 2007-03-10  Bruno Haible  <bruno@clisp.org>
36632
36633         * lib/stdio_.h (__attribute__): New macro.
36634         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36635         vsprintf): Specify __attribute__ __format__ for GCC.
36636         Suggested by Eric Blake.
36637
36638 2007-03-09  Bruno Haible  <bruno@clisp.org>
36639
36640         * modules/printf-posix-tests: New file.
36641         * tests/test-printf-posix.sh: New file.
36642         * tests/test-printf-posix.c: New file.
36643
36644         * modules/printf-posix: New file.
36645         * lib/printf.c: New file.
36646         * m4/printf-posix-rpl.m4: New file.
36647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36648         REPLACE_PRINTF.
36649         * lib/stdio_.h (printf): New declaration.
36650         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36651         ____strfmon____): New macros.
36652         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36653         REPLACE_PRINTF.
36654
36655 2007-03-09  Bruno Haible  <bruno@clisp.org>
36656
36657         * tests/test-vasnprintf-posix2.sh: New file.
36658         * tests/test-vasnprintf-posix2.c: New file.
36659         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36660         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36661         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36662
36663         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36664         a locale dependent decimal point, rather than always '.'.
36665
36666 2007-03-09  Eric Blake  <ebb9@byu.net>
36667
36668         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36669         spite of platforms like Tandem/NSK that define it to -1.
36670
36671 2007-03-08  Bruno Haible  <bruno@clisp.org>
36672
36673         * modules/vprintf-posix-tests: New file.
36674         * tests/test-vprintf-posix.sh: New file.
36675         * tests/test-vprintf-posix.c: New file.
36676         * tests/test-printf-posix.h: New file.
36677
36678         * modules/vprintf-posix: New file.
36679         * lib/vprintf.c: New file.
36680         * m4/vprintf-posix.m4: New file.
36681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36682         REPLACE_VPRINTF.
36683         * lib/stdio_.h (vprintf): New declaration.
36684         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36685         REPLACE_VPRINTF.
36686
36687 2007-03-08  Bruno Haible  <bruno@clisp.org>
36688
36689         * modules/fprintf-posix-tests: New file.
36690         * tests/test-fprintf-posix.sh: New file.
36691         * tests/test-fprintf-posix.c: New file.
36692
36693         * modules/fprintf-posix: New file.
36694         * lib/fprintf.c: New file.
36695         * m4/fprintf-posix.m4: New file.
36696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36697         REPLACE_FPRINTF.
36698         * lib/stdio_.h (fprintf): New declaration.
36699         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36700         REPLACE_FPRINTF.
36701
36702 2007-03-08  Bruno Haible  <bruno@clisp.org>
36703
36704         * modules/vfprintf-posix-tests: New file.
36705         * tests/test-vfprintf-posix.sh: New file.
36706         * tests/test-vfprintf-posix.c: New file.
36707         * tests/test-fprintf-posix.h: New file.
36708         * tests/test-fprintf-posix.out: New file.
36709
36710         * modules/vfprintf-posix: New file.
36711         * lib/vfprintf.c: New file.
36712         * m4/vfprintf-posix.m4: New file.
36713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36714         REPLACE_VFPRINTF.
36715         * lib/stdio_.h (vfprintf): New declaration.
36716         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36717         REPLACE_VFPRINTF.
36718
36719 2007-03-08  Bruno Haible  <bruno@clisp.org>
36720
36721         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36722
36723 2007-03-08  Bruno Haible  <bruno@clisp.org>
36724
36725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36726         instead of 'expr' invocations.
36727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36728         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36731         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36732         Suggested by Paul Eggert.
36733
36734 2007-03-08  Bruno Haible  <bruno@clisp.org>
36735
36736         * modules/fseterr-tests: New file.
36737         * tests/test-fseterr.c: New file.
36738
36739         * modules/fseterr: New file.
36740         * lib/fseterr.h: New file.
36741         * lib/fseterr.c: New file.
36742
36743 2007-03-08  Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36746         * lib/getopt_.h: Likewise.
36747         * lib/mbswidth.h: Likewise.
36748         * lib/setenv.h: Likewise.
36749         * lib/vasnprintf.h: Likewise.
36750         * lib/vasprintf.h: Likewise.
36751         * lib/verror.h: Likewise.
36752         * lib/xsetenv.h: Likewise.
36753         * lib/xvasprintf.h: Likewise.
36754
36755 2007-03-08  Jim Meyering  <jim@meyering.net>
36756
36757         * users.txt: Add parted.
36758
36759         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36760
36761 2007-03-07  Bruno Haible  <bruno@clisp.org>
36762
36763         * m4/printf.m4: Make the shell script snippets copy&pastable.
36764
36765 2007-03-02  Bruno Haible  <bruno@clisp.org>
36766
36767         * lib/netinet_in_.h: New file.
36768         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36769         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36770         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36771         (Depends-on): Add absolute-header.
36772         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36773         into netinet/in.h.
36774
36775 2007-03-03  Bruno Haible  <bruno@clisp.org>
36776
36777         * lib/sys_select_.h: New file.
36778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36779         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36780         * modules/sys_select (Files): Add lib/sys_select_.h.
36781         (Depends-on): Add absolute-header.
36782         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36783         into sys/select.h.
36784
36785 2007-03-02  Bruno Haible  <bruno@clisp.org>
36786
36787         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36788         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36789         values.
36790         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36791         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36792         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36793         * modules/sys_socket (Depends-on): Add absolute-header.
36794         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36795         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36796         (Include): Remove requirement of inclusion of <sys/types.h>.
36797
36798 2007-03-02  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/byteswap_.h (bswap_32): Fix formula.
36801
36802 2007-03-06  Bruno Haible  <bruno@clisp.org>
36803
36804         * modules/sprintf-posix-tests: New file.
36805         * tests/test-sprintf-posix.c: New file.
36806
36807         * modules/sprintf-posix: New file.
36808         * lib/sprintf.c: New file.
36809         * m4/sprintf-posix.m4: New file.
36810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36811         REPLACE_SPRINTF.
36812         * lib/stdio_.h (sprintf): New declaration.
36813         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36814         REPLACE_SPRINTF.
36815
36816 2007-03-06  Bruno Haible  <bruno@clisp.org>
36817
36818         * modules/vsprintf-posix-tests: New file.
36819         * tests/test-vsprintf-posix.c: New file.
36820         * tests/test-sprintf-posix.h: New file.
36821
36822         * modules/vsprintf-posix: New file.
36823         * lib/vsprintf.c: New file.
36824         * m4/vsprintf-posix.m4: New file.
36825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36826         REPLACE_VSPRINTF.
36827         * lib/stdio_.h (vsprintf): New declaration.
36828         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36829         REPLACE_VSPRINTF.
36830
36831 2007-03-06  Bruno Haible  <bruno@clisp.org>
36832
36833         * modules/vsnprintf (Depend-on): Remove minmax.
36834
36835 2007-03-06  Bruno Haible  <bruno@clisp.org>
36836
36837         * modules/snprintf-posix-tests: New file.
36838         * tests/test-snprintf-posix.c: New file.
36839
36840         * modules/snprintf-posix: New file.
36841         * m4/snprintf-posix.m4: New file.
36842         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36843         gl_FUNC_SNPRINTF.
36844         (gl_FUNC_SNPRINTF): Invoke it.
36845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36846         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36847         is set.
36848         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36849
36850 2007-03-06  Bruno Haible  <bruno@clisp.org>
36851
36852         * modules/vsnprintf-posix-tests: New file.
36853         * tests/test-vsnprintf-posix.c: New file.
36854         * tests/test-snprintf-posix.h: New file.
36855
36856         * modules/vsnprintf-posix: New file.
36857         * m4/vsnprintf-posix.m4: New file.
36858         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36859         gl_FUNC_VSNPRINTF.
36860         (gl_FUNC_VSNPRINTF): Invoke it.
36861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36862         * lib/stdio_.h (vsnprintf): Define as a replacement if
36863         REPLACE_VSNPRINTF is set.
36864         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36865
36866 2007-03-06  Bruno Haible  <bruno@clisp.org>
36867
36868         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36870
36871 2007-03-06  Bruno Haible  <bruno@clisp.org>
36872
36873         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36874         (asinl): Declare also if HAVE_DECL_ASINL is set.
36875         (atanl): Declare also if HAVE_DECL_ATANL is set.
36876         (ceill): Declare also if HAVE_DECL_CEILL is set.
36877         (cosl): Declare also if HAVE_DECL_COSL is set.
36878         (expl): Declare also if HAVE_DECL_EXPL is set.
36879         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36880         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36881         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36882         (logl): Declare also if HAVE_DECL_LOGL is set.
36883         (sinl): Declare also if HAVE_DECL_SINL is set.
36884         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36885         (tanl): Declare also if HAVE_DECL_TANL is set.
36886         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36888         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36889         declaration of frexpl, ldexpl.
36890         * modules/printf-frexpl (Depends-on): Add math.
36891         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36892
36893 2007-03-05  Bruno Haible  <bruno@clisp.org>
36894
36895         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36896         frexpl and ldexpl are declared.
36897         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36898
36899 2007-03-05  Bruno Haible  <bruno@clisp.org>
36900
36901         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36902         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36903
36904 2007-03-05  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/stdio_.h: Include <stddef.h>.
36907
36908 2007-03-05  Bruno Haible  <bruno@clisp.org>
36909
36910         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36911
36912 2007-03-05  Bruno Haible  <bruno@clisp.org>
36913
36914         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36915         NetBSD 4, from Ralf Wildenhues.
36916
36917 2007-03-04  Bruno Haible  <bruno@clisp.org>
36918
36919         * lib/vasprintf.h: Update #if logic for the case when the functions
36920         exist but are overridden.
36921
36922 2007-03-04  Bruno Haible  <bruno@clisp.org>
36923
36924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36925         implementations: glibc-2.4 and MacOS X 10.3.
36926         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36927         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36928         * tests/test-vasprintf-posix.c (test_function): Likewise.
36929
36930 2007-03-04  Bruno Haible  <bruno@clisp.org>
36931
36932         * modules/vasprintf-posix-tests: New file.
36933         * tests/test-vasprintf-posix.c: New file.
36934
36935         * modules/vasprintf-posix: New file.
36936         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36937         defined.
36938         * m4/vasprintf-posix.m4: New file.
36939         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36940         gl_FUNC_VASPRINTF.
36941         (gl_FUNC_VASPRINTF): Invoke it.
36942         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36943         here.
36944         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36945
36946 2007-03-04  Bruno Haible  <bruno@clisp.org>
36947
36948         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36949         REPLACE_GETTIMEOFDAY.
36950         * modules/sys_time (Makefile.am): Likewise.
36951         * m4/sys_time_h.m4: Likewise.
36952         * m4/gettimeofday.m4: Likewise.
36953
36954 2007-03-04  Bruno Haible  <bruno@clisp.org>
36955
36956         * modules/vasnprintf-posix-tests: New file.
36957         * tests/test-vasnprintf-posix.c: New file.
36958
36959         * modules/vasnprintf-posix: New file.
36960         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36961         printf-frexpl.h.
36962         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36963         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36964         REPLACE_VASNPRINTF is defined.
36965         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36966         gl_FUNC_VASNPRINTF.
36967         (gl_FUNC_VASNPRINTF): Invoke it.
36968         * m4/vasnprintf-posix.m4: New file.
36969         * m4/printf.m4: New file.
36970
36971 2007-03-04  Bruno Haible  <bruno@clisp.org>
36972
36973         Compile progreloc.c only if --enable-relocatable is specified.
36974         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36975         if --enable-relocatable was specified.
36976         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36977         lib_SOURCES.
36978
36979 2007-03-04  Jim Meyering  <jim@meyering.net>
36980
36981         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36982         Use it consistently, rather than enumerating errno constants.
36983
36984 2007-03-04  Bruno Haible  <bruno@clisp.org>
36985
36986         * modules/xvasprintf-tests: New file.
36987         * tests/test-xvasprintf.c: New file.
36988
36989         * modules/vasprintf-tests: New file.
36990         * tests/test-vasprintf.c: New file.
36991
36992         * modules/vasnprintf-tests: New file.
36993         * tests/test-vasnprintf.c: New file.
36994
36995         * modules/vsnprintf-tests: New file.
36996         * tests/test-vsnprintf.c: New file.
36997
36998         * modules/snprintf-tests: New file.
36999         * tests/test-snprintf.c: New file.
37000
37001 2007-03-04  Bruno Haible  <bruno@clisp.org>
37002
37003         Compile relocatable.c only if --enable-relocatable is specified.
37004         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37005         gl_RELOCATABLE_LIBRARY.
37006         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37007         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37008         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37009         gl_RELOCATABLE_LIBRARY.
37010         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37011         (Makefile.am): Remove lib_SOURCES.
37012         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37013         gl_RELOCATABLE_LIBRARY.
37014         (Makefile.am): Remove lib_SOURCES.
37015         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37016         always.
37017         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37018         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37019
37020 2007-03-04  Bruno Haible  <bruno@clisp.org>
37021
37022         * modules/argmatch-tests: New file.
37023         * tests/test-argmatch.c: New file.
37024
37025         * tests/test-allocsa.c (main): Halve the number of loop runs.
37026
37027         * modules/alloca-opt-tests: New file.
37028         * tests/test-alloca-opt.c: New file.
37029
37030 2007-03-04  Jim Meyering  <jim@meyering.net>
37031
37032         Work around difference between Linux ACLs and Solaris 10 ZFS.
37033         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37034         for EINVAL.
37035
37036 2007-03-03  Bruno Haible  <bruno@clisp.org>
37037
37038         * modules/relocatable-prog (Depends-on): Add back progreloc's
37039         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37040
37041 2007-03-03  Bruno Haible  <bruno@clisp.org>
37042
37043         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37044         * modules/relocatable-lib: New file.
37045
37046 2007-03-03  Bruno Haible  <bruno@clisp.org>
37047
37048         * modules/relocatable-prog: Renamed from modules/relocatable.
37049         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37050
37051 2007-03-03  Bruno Haible  <bruno@clisp.org>
37052
37053         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37054         m4/relocatable-lib.m4.
37055         (Depends-on): Remove 'relocatable'.
37056         (configure.ac): Add gl_RELOCATABLE_NOP.
37057
37058 2007-03-03  Bruno Haible  <bruno@clisp.org>
37059
37060         * modules/relocatable-prog-wrapper: New file.
37061         * modules/relocatable (Depends-on): Add it. Remove all other
37062         dependencies except progname.
37063         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37064
37065         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37066         (gl_FUNC_STRERROR): Nop.
37067         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37068
37069         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37070         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37071
37072         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37073         (gl_FUNC_READLINK): Update.
37074
37075         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37076
37077 2007-03-03  Bruno Haible  <bruno@clisp.org>
37078
37079         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37080         * modules/xreadlink (Depends-on): Add unistd.
37081         * modules/xreadlink-with-size (Depends-on): Likewise.
37082
37083 2007-03-03  Bruno Haible  <bruno@clisp.org>
37084
37085         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37086         extracted from gt_FUNC_SETENV.
37087         (gt_FUNC_SETENV): Remove macro.
37088         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37089         remove gt_FUNC_SETENV.
37090
37091 2007-03-03  Bruno Haible  <bruno@clisp.org>
37092
37093         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37094         ENABLE_RELOCATABLE here.
37095         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37096
37097 2007-03-03  Bruno Haible  <bruno@clisp.org>
37098
37099         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37100         * tests/test-rbtreehash_list.c: Include progname.h.
37101         (main): Call set_program_name.
37102
37103         * modules/rbtree-oset-tests (Depends-on): Add progname.
37104         * tests/test-rbtree_oset.c: Include progname.h.
37105         (main): Call set_program_name.
37106
37107         * modules/rbtree-list-tests (Depends-on): Add progname.
37108         * tests/test-rbtree_list.c: Include progname.h.
37109         (main): Call set_program_name.
37110
37111         * modules/linked-list-tests (Depends-on): Add progname.
37112         * tests/test-linked_list.c: Include progname.h.
37113         (main): Call set_program_name.
37114
37115 2007-03-03  Bruno Haible  <bruno@clisp.org>
37116
37117         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37118         All uses of __restrict changed to _Restrict_.
37119         * lib/glob_.h (__restrict): Remove macro.
37120
37121 2007-03-02  Bruno Haible  <bruno@clisp.org>
37122
37123         * modules/gettext (configure.ac): Require gettext infrastructure
37124         from version 0.16.1.
37125
37126 2007-03-02  Bruno Haible  <bruno@clisp.org>
37127
37128         * modules/linkedhash-list-tests (Depends-on): Add progname.
37129         * tests/test-linkedhash_list.c: Include progname.h.
37130         (main): Call set_program_name.
37131
37132         * modules/carray-list-tests (Depends-on): Add progname.
37133         * tests/test-carray_list.c: Include progname.h.
37134         (main): Call set_program_name.
37135
37136         * modules/avltreehash-list-tests (Depends-on): Add progname.
37137         * tests/test-avltreehash_list.c: Include progname.h.
37138         (main): Call set_program_name.
37139
37140         * modules/avltree-oset-tests (Depends-on): Add progname.
37141         * tests/test-avltree_oset.c: Include progname.h.
37142         (main): Call set_program_name.
37143
37144         * modules/avltree-list-tests (Depends-on): Add progname.
37145         * tests/test-avltree_list.c: Include progname.h.
37146         (main): Call set_program_name.
37147
37148         * modules/array-oset-tests (Depends-on): Add progname.
37149         * tests/test-array_oset.c: Include progname.h.
37150         (main): Call set_program_name.
37151
37152         * modules/array-list-tests (Depends-on): Add progname.
37153         * tests/test-array_list.c: Include progname.h.
37154         (main): Call set_program_name.
37155
37156         * modules/argp-tests (Depends-on): Add progname.
37157         * tests/test-argp.c: Include argp.h first. Include progname.h.
37158         (main): Call set_program_name.
37159
37160 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37161
37162         * doc/gnulib-tool.texi (Initial import): Reword description of
37163         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37164         limited effect even if defined after the first system include.
37165
37166 2007-03-01  Bruno Haible  <bruno@clisp.org>
37167
37168         * build-aux/config.libpath: Update to libtool-1.5.22.
37169         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37170
37171 2007-03-01  Bruno Haible  <bruno@clisp.org>
37172
37173         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37174         foo_CFLAGS.
37175         Reported by Ralf Wildenhues.
37176
37177 2007-03-01  Bruno Haible  <bruno@clisp.org>
37178
37179         * build-aux/install-reloc: Remove object files left over by some
37180         compilers.
37181         Reported by Ralf Wildenhues.
37182
37183 2007-03-01  Bruno Haible  <bruno@clisp.org>
37184
37185         * build-aux/install-reloc: Break long lines.
37186
37187 2007-03-01  Bruno Haible  <bruno@clisp.org>
37188
37189         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37190         Reported by Ralf Wildenhues.
37191
37192 2007-03-01  Bruno Haible  <bruno@clisp.org>
37193
37194         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37195         include ordering constraints.
37196
37197 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37198
37199         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37201         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37202         as another example.
37203         * lib/time_.h: Fix misspelling.
37204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37205         Require gl_HEADER_TIME_H_DEFAULTS.
37206         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37207         * m4/time_r.m4 (gl_TIME_R): Likewise.
37208         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37209
37210 2007-03-01  Bruno Haible  <bruno@clisp.org>
37211
37212         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37213         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37214
37215 2007-03-01  Jim Meyering  <jim@meyering.net>
37216
37217         * modules/xreadlink (Maintainer): Add my name.
37218         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37219
37220 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37221             Bruno Haible  <bruno@clisp.org>
37222
37223         * build-aux/install-reloc: Compile also c-ctype.c.
37224         * build-aux/relocatable.sh.in: New file.
37225         * doc/relocatable.texi: New file.
37226         * doc/relocatable-maint.texi: New file.
37227         * doc/gnulib.texi: Include relocatable-maint.texi.
37228         * lib/progreloc.c: Include unistd.h unconditionally.
37229         * lib/relocwrapper.c: Include unistd.h unconditionally.
37230         Include c-ctype.h.
37231         (add_dotbin): Use c_tolower.
37232         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37233         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37234         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37235         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37236         to m4/relocatable-lib.m4.
37237         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37238         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37239         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37240         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37241         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37242         * modules/relocatable: New file.
37243         * modules/relocatable-lib: New file.
37244         * modules/relocatable-script: New file.
37245
37246 2007-02-28  Bruno Haible  <bruno@clisp.org>
37247
37248         Import --enable-relocatable infrastructure.
37249         * build-aux/config.libpath: New file, from GNU gettext.
37250         * build-aux/install-reloc: New file, from GNU gettext.
37251         * build-aux/reloc-ldflags: New file, from GNU gettext.
37252         * lib/relocatable.h: New file, from GNU gettext.
37253         * lib/relocatable.c: New file, from GNU gettext.
37254         * lib/relocwrapper.c: New file, from GNU gettext.
37255         * m4/relocatable.m4: New file, from GNU gettext.
37256
37257 2007-02-28  Bruno Haible  <bruno@clisp.org>
37258
37259         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37260
37261         * modules/xreadlink: New file, from GNU gettext with modifications.
37262         * lib/xreadlink.c: New file, from GNU gettext.
37263         * lib/xreadlink.h: Add comments.
37264         (xreadlink): New declaration.
37265
37266         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37267         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37268         lib/xreadlink-with-size.c.
37269         (configure.ac): Remove gl_XREADLINK invocation.
37270         (Makefile.am): Augment lib_SOURCES.
37271         * m4/xreadlink.m4: Remove file.
37272         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37273         (xreadlink_with_size): Renamed from xreadink.
37274         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37275         * modules/canonicalize (Depends-on): Replace xreadlink with
37276         xreadlink-with-size.
37277         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37278
37279 2007-02-25  Jim Meyering  <jim@meyering.net>
37280
37281         * build-aux/announce-gen: When complaining about excess arguments,
37282         list them.
37283
37284 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37285
37286         * README: Document signed integer overflow situation more
37287         accurately.
37288
37289 2007-02-25  Bruno Haible  <bruno@clisp.org>
37290
37291         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37292         'a' or 'A' conversion.
37293
37294 2007-02-25  Bruno Haible  <bruno@clisp.org>
37295
37296         * modules/filename: Renamed from modules/pathname.
37297         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37298         lib/concatpath.c with lib/concat-filename.c.
37299         (Makefile.am): Update.
37300         (Include): Replace pathname.h with filename.h.
37301         * lib/filename.h: Renamed from lib/pathname.h.
37302         (concatenated_filename): Renamed from concatenated_pathname.
37303         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37304         (concatenated_filename): Renamed from concatenated_pathname.
37305         * lib/findprog.c: Include filename.h instead of pathname.h.
37306         (find_in_path): Update.
37307         * lib/javacomp.c: Include filename.h instead of pathname.h.
37308         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37309         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37310         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37311         is_oldgcj_14_13_usable, is_javac_usable): Update.
37312         * lib/javaexec.c: Include filename.h instead of pathname.h.
37313         (execute_java_class): Update.
37314         * modules/findprog: Update.
37315         * modules/javacomp: Update.
37316         * modules/javaexec: Update.
37317         * MODULES.html.sh (File system functions): Add 'filename', remove
37318         'pathname'.
37319
37320 2007-02-25  Bruno Haible  <bruno@clisp.org>
37321
37322         * modules/printf-frexpl-tests: New file.
37323         * tests/test-printf-frexpl.c: New file.
37324
37325         * modules/printf-frexpl: New file.
37326         * lib/printf-frexpl.h: New file.
37327         * lib/printf-frexpl.c: New file.
37328         * m4/printf-frexpl.m4: New file.
37329
37330 2007-02-25  Bruno Haible  <bruno@clisp.org>
37331
37332         * modules/printf-frexp-tests: New file.
37333         * tests/test-printf-frexp.c: New file.
37334
37335         * modules/printf-frexp: New file.
37336         * lib/printf-frexp.h: New file.
37337         * lib/printf-frexp.c: New file.
37338         * m4/printf-frexp.m4: New file.
37339
37340 2007-02-25  Bruno Haible  <bruno@clisp.org>
37341
37342         Assume automake >= 1.10 for the tests.
37343         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37344         * modules/arctwo-tests: Likewise.
37345         * modules/argp-tests: Likewise.
37346         * modules/avltree-list-tests: Likewise.
37347         * modules/avltree-oset-tests: Likewise.
37348         * modules/avltreehash-list-tests: Likewise.
37349         * modules/carray-list-tests: Likewise.
37350         * modules/crc-tests: Likewise.
37351         * modules/des-tests: Likewise.
37352         * modules/gc-arcfour-tests: Likewise.
37353         * modules/gc-arctwo-tests: Likewise.
37354         * modules/gc-des-tests: Likewise.
37355         * modules/gc-hmac-md5-tests: Likewise.
37356         * modules/gc-hmac-sha1-tests: Likewise.
37357         * modules/gc-md2-tests: Likewise.
37358         * modules/gc-md4-tests: Likewise.
37359         * modules/gc-md5-tests: Likewise.
37360         * modules/gc-pbkdf2-sha1-tests: Likewise.
37361         * modules/gc-rijndael-tests: Likewise.
37362         * modules/gc-sha1-tests: Likewise.
37363         * modules/gc-tests: Likewise.
37364         * modules/getaddrinfo-tests: Likewise.
37365         * modules/hmac-md5-tests: Likewise.
37366         * modules/hmac-sha1-tests: Likewise.
37367         * modules/linked-list-tests: Likewise.
37368         * modules/linkedhash-list-tests: Likewise.
37369         * modules/lock-tests: Likewise.
37370         * modules/md2-tests: Likewise.
37371         * modules/md4-tests: Likewise.
37372         * modules/md5-tests: Likewise.
37373         * modules/rbtree-list-tests: Likewise.
37374         * modules/rbtree-oset-tests: Likewise.
37375         * modules/rbtreehash-list-tests: Likewise.
37376         * modules/read-file-tests: Likewise.
37377         * modules/rijndael-tests: Likewise.
37378         * modules/stdint-tests: Likewise.
37379         * modules/tls-tests: Likewise.
37380
37381 2007-02-24  Bruno Haible  <bruno@clisp.org>
37382
37383         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37384         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37385         function; instead check whether isnan with a double argument links.
37386         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37387         function; instead check whether isnan with a 'long double' argument
37388         links.
37389         Reported by Eric Blake <ebb9@byu.net>.
37390
37391 2007-02-24  Bruno Haible  <bruno@clisp.org>
37392
37393         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37394         defined.
37395         * lib/isnanl.c: Remove all code. Just include isnan.c.
37396         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37397
37398 2007-02-25  Jim Meyering  <jim@meyering.net>
37399
37400         Avoid conflicting types for 'unsetenv' on FreeBSD.
37401         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37402         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37403         in stdlib.h.
37404
37405 2007-02-24  Bruno Haible  <bruno@clisp.org>
37406
37407         * modules/isnanl-nolibm-tests: New file.
37408         * tests/test-isnanl.c: New file.
37409
37410         * modules/isnanl-nolibm: New file.
37411         * lib/isnanl.h: New file.
37412         * lib/isnanl.c: New file.
37413         * m4/isnanl.m4: New file.
37414
37415 2007-02-24  Bruno Haible  <bruno@clisp.org>
37416
37417         * modules/isnan-nolibm-tests: New file.
37418         * tests/test-isnan.c: New file.
37419
37420         * modules/isnan-nolibm: New file.
37421         * lib/isnan.h: New file.
37422         * lib/isnan.c: New file.
37423         * m4/isnan.m4: New file.
37424
37425 2007-02-24  Bruno Haible  <bruno@clisp.org>
37426
37427         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37428         assume that an exponent fits in 20 bits.
37429
37430 2007-02-24  Jim Meyering  <jim@meyering.net>
37431
37432         * m4/regex.m4: Update the description of the configure-time option,
37433         --without-included-regex, to state accurately what the defaults are,
37434         and perhaps to give people an idea why using this option is risky.
37435
37436 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37437
37438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37439         loops on small arguments.  This attempts to avoid the problem
37440         Bruno Haible reported for AIX 4.3.2 in
37441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37442
37443 2007-02-23  Bruno Haible  <bruno@clisp.org>
37444
37445         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37446         Needed for help2man.
37447
37448 2007-02-23  Karl Berry  <karl@gnu.org>
37449
37450         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37451         exists, foo.h should be cvs-ignored, not committed.
37452
37453 2007-02-23  Eric Blake  <ebb9@byu.net>
37454
37455         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37456         * lib/stat-time.h (includes): Likewise.
37457         * lib/utimecmp.c (includes): Likewise.
37458         * lib/utimens.h (includes): Likewise.
37459         * lib/getdate.y (includes): Also include "timespec.h" for use
37460         internal to the module.
37461         * modules/utimens (Depends-on): Revert yesterday's patch.
37462         * modules/nanosleep (Depends-on): Add missing dependency.
37463
37464 2007-02-22  Bruno Haible  <bruno@clisp.org>
37465
37466         * lib/glob.c: Don't include getlogin_r.h.
37467
37468 2007-02-22  Jim Meyering  <jim@meyering.net>
37469
37470         * modules/utimens (Depends-on): Add timespec, required for
37471         utimens.h's inclusion of timespec.h.
37472
37473 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37474
37475         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37476         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37477         Schwab in
37478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37479         I'll try to think of a better way to fix the Solaris problem.
37480
37481         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37482         like glibc; on Solaris 10, it fails with errno == EINVAL.
37483         POSIX says the behavior is unspecified if the first argument is NULL,
37484         so play it safe and never pass NULL to the system getcwd.
37485
37486 2007-02-21  Jim Meyering  <jim@meyering.net>
37487
37488         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37489         of gettimeofday.  It would conflict with the one now always
37490         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37491         an IRIX 6.5 build failure.
37492
37493 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37494
37495         Minor fixups to port to Solaris 10 with Sun C 5.8.
37496         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37497         * modules/getcwd (Depends-on): Add dirfd.
37498         * lib/putenv.c (putenv): #undef it.
37499         (rpl_putenv): New decl.
37500         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37501
37502 2007-02-20  Bruno Haible  <bruno@clisp.org>
37503
37504         * modules/stdio-tests: New file.
37505         * tests/test-stdio.c: New file.
37506
37507         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37508         (Depends-on): Add stdio.
37509         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37510         (Include): Use <stdio.h> instead of vsnprintf.h.
37511         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37512         HAVE_DECL_VSNPRINTF.
37513         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37514
37515         * modules/snprintf (Files): Remove lib/snprintf.h.
37516         (Depends-on): Add stdio.
37517         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37518         (Include): Use <stdio.h> instead of snprintf.h.
37519         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37520         HAVE_DECL_SNPRINTF.
37521         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37522         * lib/getaddrinfo.c: Likewise.
37523
37524         * modules/stdio: New file.
37525         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37526         * lib/snprintf.h: Remove file.
37527         * lib/vsnprintf.h: Remove file.
37528         * lib/.cppi-disable: Remove snprintf.h.
37529         * m4/stdio_h.m4: New file.
37530         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37531
37532 2007-02-20  Jim Meyering  <jim@meyering.net>
37533
37534         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37535         used by e.g., mingw.  From Bruno Haible.
37536
37537 2007-02-19  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37540         warnings.
37541         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37542
37543 2007-02-19  Bruno Haible  <bruno@clisp.org>
37544
37545         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37546         from mingw users.
37547
37548 2007-02-19  Bruno Haible  <bruno@clisp.org>
37549
37550         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37551         warnings.
37552         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37553
37554 2007-02-19  Jim Meyering  <jim@meyering.net>
37555
37556         Don't use FD after a successful "fdopendir (fd)".
37557         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37558         Reset it by calling dirfd on the just-obtained DIR*.
37559
37560         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37561         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37562
37563 2007-02-18  Bruno Haible  <bruno@clisp.org>
37564
37565         * lib/readlink.c: Include <unistd.h>.
37566         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37567         HAVE_READLINK.
37568         * modules/readlink (Depends-on): Add unistd.
37569         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37570         (Include): Add <unistd.h>.
37571
37572         * lib/getlogin_r.h: Remove file.
37573         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37574         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37575         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37576         HAVE_DECL_GETLOGIN_R.
37577         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37579         (Include): Use <unistd.h> instead of getlogin_r.h.
37580
37581         * lib/getcwd.h: Remove file.
37582         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37583         * lib/xgetcwd.c: Likewise.
37584         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37585         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37586         * modules/getcwd (Files): Remove lib/getcwd.h.
37587         (Depends-on): Add unistd.
37588         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37589         (Include): Use <unistd.h> instad of getcwd.h.
37590
37591         * lib/ftruncate.c: Include <unistd.h> first.
37592         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37593         Set HAVE_FTRUNCATE.
37594         * modules/ftruncate (Depends-on): Add unistd.
37595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37596
37597         * lib/fchdir.c: Include <unistd.h> first.
37598         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37600         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37601         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37602         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37603
37604         * lib/dup2.c: Include <unistd.h> first.
37605         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37606         HAVE_DUP2.
37607         * modules/dup2 (Depends-on): Add unistd.
37608         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37609
37610         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37611         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37612         REPLACE_CHOWN. Don't define chown as a macro here.
37613         * modules/chown (Depends-on): Add unistd.
37614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37615
37616         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37617         Add definition for GL_LINK_WARNING.
37618         (chown, dup2): New declarations.
37619         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37620         link warning.
37621         (ftruncate): New declaration.
37622         (getcwd): New declaration, taken from old getcwd.h.
37623         (getlogin_r): New declaration, taken from old getlogin_r.h.
37624         (readlink): New declaration.
37625         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37626         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37627         (gl_PREREQ_UNISTD): Remove macro.
37628         (gl_UNISTD_MODULE_INDICATOR): New macro.
37629         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37630         many new variables. Don't set UNISTD_H.
37631         * modules/unistd (Description): Change.
37632         (Depends-on): Add link-warning.
37633         (configure.ac): Update.
37634         (Makefile.am): Create unistd.h always. Substitute many new variables
37635         into it.
37636
37637 2007-02-18  Bruno Haible  <bruno@clisp.org>
37638
37639         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37640         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37641         HAVE_GETSUBOPT.
37642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37643         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37644         * lib/getsubopt.h: Remove file.
37645         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37646         (Depends-on): Add stdlib.
37647         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37648         (Includes): Use <stdlib.h> instead of getsubopt.h.
37649         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37650         Set HAVE_GETSUBOPT.
37651         * lib/getsubopt.c: Don't include getsubopt.h.
37652
37653 2007-02-18  Bruno Haible  <bruno@clisp.org>
37654
37655         * modules/fchdir (Depends-on): Add dup2.
37656
37657 2007-02-18  Bruno Haible  <bruno@clisp.org>
37658
37659         * lib/stdlib_.h: Handle glibc's special invocation convention
37660         specially.
37661
37662 2007-02-18  Bruno Haible  <bruno@clisp.org>
37663
37664         * modules/stdlib-tests: New file.
37665         * tests/test-stdlib.c: New file.
37666
37667         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37668         (Depends-on): Add stdlib.
37669         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37670         (Includes): Use <stdlib.h> instead of mkstemp.h.
37671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37672         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37673         * lib/mkstemp.c: Don't include mkstemp.h.
37674         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37675         * lib/stdlib--.h: Don't include mkstemp.h.
37676
37677         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37678         (Depends-on): Add stdlib.
37679         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37680         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37681         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37682         HAVE_MKDTEMP.
37683         * lib/mkdtemp.c: Don't include mkdtemp.h.
37684         * lib/clean-temp.c: Don't include mkdtemp.h.
37685
37686         * modules/exit (Files): Remove lib/exit.h.
37687         (Depends-on): Add stdlib.
37688         (Makefile.am): Remove lib_SOURCES.
37689         (Include): Use <stdlib.h> instead of exit.h.
37690         * lib/argmatch.c: Don't include exit.h.
37691         * lib/execute.c: Likewise.
37692         * lib/pagealign_alloc.c: Likewise.
37693         * lib/pipe.c: Likewise.
37694         * lib/wait-process.c: Likewise.
37695         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37696         * lib/exitfail.c: Likewise.
37697         * lib/savewd.c: Likewise.
37698         * lib/xsetenv.c: Likewise.
37699
37700         * modules/stdlib: New file.
37701         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37702         and extra comments about mkstemp().
37703         * lib/exit.h: Remove file.
37704         * lib/mkdtemp.h: Remove file.
37705         * lib/mkstemp.h: Remove file.
37706         * m4/stdlib_h.m4: New file.
37707         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37708
37709 2007-02-18  Bruno Haible  <bruno@clisp.org>
37710
37711         * modules/math-tests: New file.
37712         * tests/test-math.c: New file.
37713
37714         * modules/math: New file.
37715         * modules/mathl (Files): Remove lib/mathl.h.
37716         (Depends-on): Add math.
37717         (Makefile.am): Don't mention mathl.h.
37718         (Include): Use <math.h> instead of mathl.h.
37719         * lib/math_.h: New file.
37720         * lib/mathl.h: Remove file.
37721         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37722         mathl.h.
37723         * lib/asinl.c: Likewise.
37724         * lib/atanl.c: Likewise.
37725         * lib/ceill.c: Likewise.
37726         * lib/cosl.c: Likewise.
37727         * lib/expl.c: Likewise.
37728         * lib/floorl.c: Likewise.
37729         * lib/frexpl.c: Likewise.
37730         * lib/ldexpl.c: Likewise.
37731         * lib/logl.c: Likewise.
37732         * lib/sincosl.c: Likewise.
37733         * lib/sinl.c: Likewise.
37734         * lib/sqrtl.c: Likewise.
37735         * lib/tanl.c: Likewise.
37736         * lib/trigl.c: Likewise.
37737         * m4/math_h.m4: New file.
37738         * MODULES.html.sh (Mathematics): Add math.
37739
37740 2007-02-17  Bruno Haible  <bruno@clisp.org>
37741
37742         * modules/wctype-tests: New file.
37743         * tests/test-wctype.c: New file.
37744
37745         * modules/wchar-tests: New file.
37746         * tests/test-wchar.c: New file.
37747
37748         * modules/unistd-tests: New file.
37749         * tests/test-unistd.c: New file.
37750
37751         * modules/time-tests: New file.
37752         * tests/test-time.c: New file.
37753
37754         * modules/sysexits-tests: New file.
37755         * tests/test-sysexits.c: New file.
37756
37757         * modules/sys_time-tests: New file.
37758         * tests/test-sys_time.c: New file.
37759
37760         * modules/sys_stat-tests: New file.
37761         * tests/test-sys_stat.c: New file.
37762
37763         * modules/sys_socket-tests: New file.
37764         * tests/test-sys_socket.c: New file.
37765
37766         * modules/sys_select-tests: New file.
37767         * tests/test-sys_select.c: New file.
37768
37769         * modules/string-tests: New file.
37770         * tests/test-string.c: New file.
37771
37772         * modules/stdbool-tests: New file.
37773         * tests/test-stdbool.c: New file.
37774
37775         * modules/netinet_in-tests: New file.
37776         * tests/test-netinet_in.c: New file.
37777
37778         * modules/inttypes-tests: New file.
37779         * tests/test-inttypes.c: New file.
37780
37781         * modules/fcntl-tests: New file.
37782         * tests/test-fcntl.c: New file.
37783
37784         * modules/byteswap-tests: New file.
37785         * tests/test-byteswap.c: New file.
37786
37787         * modules/arpa_inet-tests: New file.
37788         * tests/test-arpa_inet.c: New file.
37789
37790 2007-02-17  Bruno Haible  <bruno@clisp.org>
37791
37792         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37793         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37794         if the corresponding module is not enabled. Emit link warnings if
37795         the function is used nevertheless.
37796         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37797         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37798         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37799         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37800         * modules/inttypes (Depends-on): Add link-warning.
37801         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37802         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37803         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37804         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37805         * modules/imaxdiv (configure.ac): Likewise.
37806         * modules/strtoimax (configure.ac): Likewise.
37807         * modules/strtoumax (configure.ac): Likewise.
37808
37809 2007-02-17  Bruno Haible  <bruno@clisp.org>
37810
37811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37812         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37813         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37814         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37815
37816 2007-02-17  Bruno Haible  <bruno@clisp.org>
37817
37818         * modules/link-warning: New file.
37819         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37820         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37821         * modules/string (Depends-on): Add link-warning.
37822         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37823         string.h.
37824         * MODULES.html.sh (Support for building libraries and executables): Add
37825         link-warning.
37826
37827 2007-02-17  Bruno Haible  <bruno@clisp.org>
37828
37829         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37830         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37831         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37832         long lines.
37833
37834 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37835             Bruno Haible  <bruno@clisp.org>
37836
37837         * modules/tmpfile: New file.
37838         * lib/tmpfile.c: New file.
37839         * m4/tmpfile.m4: New file.
37840         * MODULES.html.sh (func_all_modules): New section "Input/output".
37841
37842 2007-02-15  Bruno Haible  <bruno@clisp.org>
37843
37844         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37845         (supports_delete_on_close): New function.
37846         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37847
37848 2007-02-14  Bruno Haible  <bruno@clisp.org>
37849
37850         * modules/mbspcasecmp-tests: New file.
37851         * tests/test-mbspcasecmp.sh: New file.
37852         * tests/test-mbspcasecmp.c: New file.
37853
37854         New module mbspcasecmp.
37855         * modules/mbspcasecmp: New file.
37856         * lib/mbspcasecmp.c: New file.
37857         * lib/string_.h (strncasecmp): Change warning message.
37858         (mbspcasecmp): New declaration.
37859         * m4/mbspcasecmp.m4: New file.
37860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37861         GNULIB_MBSPCASECMP.
37862         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37863         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37864
37865 2007-02-14  Bruno Haible  <bruno@clisp.org>
37866
37867         * modules/mbsncasecmp-tests: New file.
37868         * tests/test-mbsncasecmp.sh: New file.
37869         * tests/test-mbsncasecmp.c: New file.
37870
37871         New module mbsncasecmp.
37872         * modules/mbsncasecmp: New file.
37873         * lib/mbsncasecmp.c: New file.
37874         * lib/string_.h (mbsncasecmp): New declaration.
37875         * m4/mbsncasecmp.m4: New file.
37876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37877         GNULIB_MBSNCASECMP.
37878         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37879         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37880
37881 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37882
37883         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37884         Verify that it doesn't overlap with our flags.
37885         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37886         do not have the desired effect in multibyte locales; instead, use
37887         mbscasecmp.
37888         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37889         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37890         we don't require GNU fnmatch ourselves (if our users require it, they
37891         should do so explicitly).
37892
37893         Fix regex code so it doesn't rely on strcasecmp.
37894         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37895         Otherwise, include gnulib's langinfo.h.
37896         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37897         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37898         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37899         * modules/regex (FILES): Remove m4/codeset.m4.
37900         (Depends-on): Add localcharset.  Remove strcase.
37901
37902 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37903
37904         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37905         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37906
37907 2007-02-13  Bruno Haible  <bruno@clisp.org>
37908
37909         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37910         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37911
37912 2007-02-12  Bruno Haible  <bruno@clisp.org>
37913
37914         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37915         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37916         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37917         time warning rather than a link error.
37918
37919 2007-02-12  Bruno Haible  <bruno@clisp.org>
37920
37921         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37922         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37924
37925 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37926
37927         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37928         args, not 2.
37929
37930 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37931
37932         New module 'time', so that apps can include <time.h> as per
37933         POSIX and GNU instead of separate include files like time_r.h
37934         and timegm.h.  This implementation tries out a simpler approach
37935         for replacing decls in standard include files (as compared to
37936         the string module), somewhat as an experiment.
37937
37938         * config/srclist.txt: Comment out mktime.c for now.
37939         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37940         since it doesn't apply any more.  Use generic wording instead.
37941         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37942         'time'.
37943         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37944         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37945         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37946         Don't include <sys/types.h>; no longer needed since we assume C89.
37947         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37948         * lib/strftime.c: Likewise.
37949         * lib/time_r.c: Likewise.
37950         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37951         * lib/nanosleep.c: Include <time.h> first, to check interface.
37952         * lib/strptime.c: Likewise.
37953         * lib/time_r.c: Likewise.
37954         * lib/timegm.c: Likewise.
37955         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37956         needed.
37957         * lib/timegm.c: Don't include timegm.h; no longer needed.
37958         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37959         time.h now handles any problems in that area.
37960         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37961         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37962         that time.h defines struct timespec.
37963         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37964         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37965         handles that.
37966         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37967         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37968         needed.  Set REPLACE_LOCALTIME.
37969         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37970         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37971         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37972         nanosleep; time_h.m4 now does that.  Don't require
37973         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37974         module handles this now.
37975         * modules/getdate (Depends-on): Remove timespec.  Add time.
37976         * modules/nanosleep (Depends-on): Likewise.
37977         * modules/stat-time (Depends-on): Likewise.
37978         * modules/nanosleep (Include): Include time.h, not timespec.h.
37979         * modules/strptime (Files): Remove lib/strptime.h.
37980         (Depends-on): Add extensions, time.
37981         (Include): Include time.h, not strptime.h.
37982         * modules/time_r (Files): Remove lib/time_r.h.
37983         (Depends-on): Add time.
37984         (Include): Include time.h, not time_r.h.
37985         * modules/timegm: Likewise.
37986         * modules/timespec (Description): Now does timespec-related decls
37987         of our own, instead of struct timespec itself.
37988         (Depends-on): Add time; remove extensions.
37989         (Maintainer): Add self.
37990         * modules/utimecmp (Depends-on): Add time; remove timespec.
37991         * modules/utimens (Depends-on): Likewise.
37992         * modules/xnanosleep (Depends-on): Likewise.
37993
37994 2007-02-11  Bruno Haible  <bruno@clisp.org>
37995
37996         * lib/c-strstr.c: Include allocsa.h.
37997         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37998         * lib/c-strcasestr.c: Include allocsa.h.
37999         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38000         * lib/strcasestr.c: Include allocsa.h.
38001         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38002         * lib/mbsstr.c: Include allocsa.h.
38003         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38004         allocsa/freesa instead of malloc/free.
38005         * lib/mbscasestr.c: Include allocsa.h.
38006         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38007         allocsa/freesa instead of malloc/free.
38008         * modules/c-strstr (Depends-on): Add allocsa.
38009         * modules/c-strcasestr (Depends-on): Likewise.
38010         * modules/strcasestr (Depends-on): Likewise.
38011         * modules/mbsstr (Depends-on): Likewise.
38012         * modules/mbscasestr (Depends-on): Likewise.
38013
38014 2007-02-11  Bruno Haible  <bruno@clisp.org>
38015
38016         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38017
38018         * modules/mbsspn-tests: New file.
38019         * tests/test-mbsspn.sh: New file.
38020         * tests/test-mbsspn.c: New file.
38021
38022 2007-02-11  Bruno Haible  <bruno@clisp.org>
38023
38024         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38025
38026         * modules/mbspbrk-tests: New file.
38027         * tests/test-mbspbrk.sh: New file.
38028         * tests/test-mbspbrk.c: New file.
38029
38030 2007-02-11  Bruno Haible  <bruno@clisp.org>
38031
38032         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38033         unneeded cast.
38034
38035         * modules/mbscspn-tests: New file.
38036         * tests/test-mbscspn.sh: New file.
38037         * tests/test-mbscspn.c: New file.
38038
38039 2007-02-11  Bruno Haible  <bruno@clisp.org>
38040
38041         * modules/mbscasecmp-tests: New file.
38042         * tests/test-mbscasecmp.sh: New file.
38043         * tests/test-mbscasecmp.c: New file.
38044
38045 2007-02-11  Bruno Haible  <bruno@clisp.org>
38046
38047         Ensure O(n) worst-case complexity of mbscasestr.
38048         * lib/mbscasestr.c: Include stdbool.h.
38049         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38050         functions.
38051         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38052         the bookkeeping indicates that it's worth it.
38053         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38054
38055         * modules/mbscasestr-tests: New file.
38056         * tests/test-mbscasestr1.c: New file.
38057         * tests/test-mbscasestr2.sh: New file.
38058         * tests/test-mbscasestr2.c: New file.
38059         * tests/test-mbscasestr3.sh: New file.
38060         * tests/test-mbscasestr3.c: New file.
38061         * tests/test-mbscasestr4.sh: New file.
38062         * tests/test-mbscasestr4.c: New file.
38063         * m4/locale-tr.m4: New file.
38064
38065 2007-02-11  Bruno Haible  <bruno@clisp.org>
38066
38067         Ensure O(n) worst-case complexity of mbsstr.
38068         * lib/mbsstr.c: Include stdbool.h.
38069         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38070         functions.
38071         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38072         bookkeeping indicates that it's worth it.
38073         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38074
38075         * modules/mbsstr-tests: New file.
38076         * tests/test-mbsstr1.c: New file.
38077         * tests/test-mbsstr2.sh: New file.
38078         * tests/test-mbsstr2.c: New file.
38079         * tests/test-mbsstr3.sh: New file.
38080         * tests/test-mbsstr3.c: New file.
38081         * m4/locale-fr.m4: New file.
38082
38083 2007-02-11  Bruno Haible  <bruno@clisp.org>
38084
38085         * lib/mbsrchr.c (mbsrchr): Fix bug.
38086
38087         * modules/mbsrchr-tests: New file.
38088         * tests/test-mbsrchr.sh: New file.
38089         * tests/test-mbsrchr.c: New file.
38090
38091 2007-02-11  Bruno Haible  <bruno@clisp.org>
38092
38093         * lib/mbschr.c (mbschr): Fix bug.
38094
38095         * modules/mbschr-tests: New file.
38096         * tests/test-mbschr.sh: New file.
38097         * tests/test-mbschr.c: New file.
38098         * m4/locale-zh.m4: New file.
38099
38100 2007-02-11  Bruno Haible  <bruno@clisp.org>
38101
38102         Support for copying multibyte string iterators.
38103         * lib/mbiter.h: Include <string.h>.
38104         (mbiter_multi_copy): New function.
38105         (mbi_copy): New macro.
38106         * lib/mbuiter.h: Include <string.h>.
38107         (mbuiter_multi_copy): New function.
38108         (mbui_copy): New macro.
38109
38110 2007-02-11  Bruno Haible  <bruno@clisp.org>
38111
38112         New module mbslen.
38113         * modules/mbslen: New file.
38114         * lib/mbslen.c: New file.
38115         * lib/string_.h (mbslen): New declaration.
38116         * m4/mbslen.m4: New file.
38117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38118         GNULIB_MBSLEN.
38119         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38120         * MODULES.html.sh (Internationalization functions): Add mbslen.
38121
38122 2007-02-11  Bruno Haible  <bruno@clisp.org>
38123
38124         Ensure O(n) worst-case complexity of strcasestr substitute.
38125         * lib/strcasestr.c: Include stdbool.h.
38126         (knuth_morris_pratt): New function.
38127         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38128         bookkeeping indicates that it's worth it.
38129         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38130
38131         * modules/strcasestr-tests: New file.
38132         * tests/test-strcasestr.c: New file.
38133
38134 2007-02-11  Bruno Haible  <bruno@clisp.org>
38135
38136         Ensure O(n) worst-case complexity of c_strcasestr.
38137         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38138         (knuth_morris_pratt): New function.
38139         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38140         the bookkeeping indicates that it's worth it.
38141         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38142
38143         * modules/c-strcasestr-tests: New file.
38144         * tests/test-c-strcasestr.c: New file.
38145
38146 2007-02-11  Bruno Haible  <bruno@clisp.org>
38147
38148         Ensure O(n) worst-case complexity of c_strstr.
38149         * lib/c-strstr.c: Include stdbool.h, string.h.
38150         (knuth_morris_pratt): New function.
38151         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38152         bookkeeping indicates that it's worth it.
38153         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38154
38155         * lib/c-strstr.c: Complete rewrite for maintainability.
38156
38157         * modules/c-strstr-tests: New file.
38158         * tests/test-c-strstr.c: New file.
38159
38160 2007-02-11  Bruno Haible  <bruno@clisp.org>
38161
38162         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38163         5.2.1 and earlier, whereby \055 was treated just like the range
38164         delimiter '-'.
38165         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38166
38167 2007-02-08  Bruno Haible  <bruno@clisp.org>
38168
38169         * modules/regex (Depends-on): Add stdbool.
38170         Reported by Dalibor Topic <robilad@kaffe.org>.
38171
38172 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38173
38174         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38175         Prefer returning from main to exiting from it.
38176         Remove unnecessary parens after sizeof.
38177
38178 2007-02-05  Bruno Haible  <bruno@clisp.org>
38179
38180         New module mbssep.
38181         * modules/mbssep: New file.
38182         * lib/mbssep.c: New file.
38183         * lib/string_.h (strsep): Add a conditional link warning.
38184         (mbssep): New declaration.
38185         * m4/mbssep.m4: New file.
38186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38187         GNULIB_MBSSEP.
38188         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38189         * MODULES.html.sh (Internationalization functions): Add mbssep.
38190
38191 2007-02-05  Bruno Haible  <bruno@clisp.org>
38192
38193         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38194         Optimize search in case of 1 delimiter.
38195
38196 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38197
38198         * lib/acl.h: Include sys/types.h before sys/acl.h.
38199
38200 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38201
38202         Merge upstream fix for glibc bugzilla #3957:
38203
38204         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38205
38206         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38207         bit for RE_HAT_LISTS_NOT_NEWLINE.
38208         (build_charclass_op): Remove bogus comment.
38209
38210 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38211
38212         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38213
38214 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38215
38216         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38217         * lib/memmem.c [!defined _LIBC]: Include config.h.
38218
38219 2007-02-04  Bruno Haible  <bruno@clisp.org>
38220
38221         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38222         warning message.
38223
38224 2007-02-04  Bruno Haible  <bruno@clisp.org>
38225
38226         New module mbstok_r.
38227         * modules/mbstok_r: New file.
38228         * lib/mbstok_r.c: New file.
38229         * lib/string_.h (strtok_r): Change argument names to match the
38230         comments. Add a conditional link warning.
38231         (mbstok_r): New declaration.
38232         * m4/mbstok_r.m4: New file.
38233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38234         GNULIB_MBSTOK_R.
38235         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38236         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38237
38238 2007-02-04  Bruno Haible  <bruno@clisp.org>
38239
38240         New module mbsspn.
38241         * modules/mbsspn: New file.
38242         * lib/mbsspn.c: New file.
38243         * lib/string_.h (strspn): Add a conditional link warning.
38244         (mbsspn): New declaration.
38245         * m4/mbsspn.m4: New file.
38246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38247         GNULIB_MBSSPN.
38248         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38249         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38250
38251 2007-02-04  Bruno Haible  <bruno@clisp.org>
38252
38253         New module mbspbrk.
38254         * modules/mbspbrk: New file.
38255         * lib/mbspbrk.c: New file.
38256         * lib/string_.h (strpbrk): Add a conditional link warning.
38257         (mbspbrk): New declaration.
38258         * m4/mbspbrk.m4: New file.
38259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38260         GNULIB_MBSPBRK.
38261         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38262         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38263
38264 2007-02-04  Bruno Haible  <bruno@clisp.org>
38265
38266         New module mbscspn.
38267         * modules/mbscspn: New file.
38268         * lib/mbscspn.c: New file.
38269         * lib/string_.h (strcspn): Add a conditional link warning.
38270         (mbscspn): New declaration.
38271         * m4/mbscspn.m4: New file.
38272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38273         GNULIB_MBSCSPN.
38274         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38275         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38276
38277 2007-02-04  Bruno Haible  <bruno@clisp.org>
38278
38279         New module mbscasestr, reduced goal of strcasestr.
38280         * modules/mbscasestr: New file.
38281         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38282         (mbscasestr): Renamed from strcasestr.
38283         * lib/strcasestr.c: Don't include mbuiter.h.
38284         (strcasestr): Remove support for multibyte locales.
38285         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38286         Change the conditional link warning.
38287         (mbscasestr): New declaration.
38288         * m4/mbscasestr.m4: New file.
38289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38290         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38291         REPLACE_STRCASESTR.
38292         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38294         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38295         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38296         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38297         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38298         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38299         (Depends-on): Remove mbuiter.
38300         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38301
38302 2007-02-04  Bruno Haible  <bruno@clisp.org>
38303
38304         Simplify handling of strncasecmp.
38305         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38306         the conditional link warning.
38307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38308         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38309         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38310         * modules/strcase (configure.ac): Don't invoke
38311         gl_STRING_MODULE_INDICATOR.
38312         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38313
38314 2007-02-04  Bruno Haible  <bruno@clisp.org>
38315
38316         New module mbscasecmp, reduced goal of strcasecmp.
38317         * modules/mbscasecmp: New file.
38318         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38319         (mbscasecmp): Renamed from strcasecmp.
38320         * lib/strcasecmp.c: Don't include mbuiter.h.
38321         (strcasecmp): Remove support for multibyte locales.
38322         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38323         Change the conditional link warning.
38324         (mbscasecmp): New declaration.
38325         * m4/mbscasecmp.m4: New file.
38326         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38327         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38328         REPLACE_STRCASECMP.
38329         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38331         GNULIB_MBSCASECMP.
38332         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38333         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38334         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38335         (Depends-on): Remove mbuiter.
38336         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38337
38338 2007-02-04  Bruno Haible  <bruno@clisp.org>
38339
38340         New module mbsstr. Remove module strstr.
38341         * modules/mbsstr: New file.
38342         * modules/strstr: Remove file.
38343         * lib/mbsstr.c: Renamed from lib/strstr.c.
38344         (mbsstr): Renamed from strstr.
38345         * lib/string_.h (strstr): Remove declaration. Change the conditional
38346         link warning.
38347         (mbsstr): New declaration.
38348         * m4/mbsstr.m4: New file.
38349         * m4/strstr.m4: Remove file.
38350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38351         REPLACE_STRSTR.
38352         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38353         Don't initialize GNULIB_STRSTR.
38354         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38355         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38356         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38357         (Support for systems lacking ANSI C 89): Remove strstr.
38358
38359 2007-02-04  Bruno Haible  <bruno@clisp.org>
38360
38361         New module mbsrchr.
38362         * modules/mbsrchr: New file.
38363         * lib/mbsrchr.c: New file.
38364         * lib/string_.h (strrchr): Add a conditional link warning.
38365         (mbsrchr): New declaration.
38366         * m4/mbsrchr.m4: New file.
38367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38368         GNULIB_MBSRCHR.
38369         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38370         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38371
38372 2007-02-04  Bruno Haible  <bruno@clisp.org>
38373
38374         New module mbschr.
38375         * modules/mbschr: New file.
38376         * lib/mbschr.c: New file.
38377         * lib/string_.h (strchr): Add a conditional link warning.
38378         (mbschr): New declaration.
38379         * m4/mbschr.m4: New file.
38380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38381         GNULIB_MBSCHR.
38382         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38383         * MODULES.html.sh (Internationalization functions): Add mbschr.
38384
38385 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38386
38387         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38388
38389         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38390
38391 2007-02-04  Bruno Haible  <bruno@clisp.org>
38392
38393         New module description section 'configure.ac-early'.
38394         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38395         (func_get_autoconf_early_snippet): New function.
38396         (func_import, func_create_testdir): Use it. Remove special cases for
38397         modules 'extensions' and 'lock'.
38398         * modules/extensions (configure.ac-early): Require
38399         gl_USE_SYSTEM_EXTENSIONS.
38400         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38401
38402 2007-02-04  Bruno Haible  <bruno@clisp.org>
38403
38404         Make use of gcj-4.3's -fsource and -ftarget option.
38405         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38406         and if so try the options -fsource and -ftarget.
38407         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38408         source_version, ftarget_option, target_version arguments.
38409         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38410         (is_envjavac_oldgcj_14_14_usable): Renamed from
38411         is_envjavac_gcj_14_14_usable.
38412         (is_envjavac_oldgcj_14_13_usable): Renamed from
38413         is_envjavac_gcj_14_13_usable.
38414         (is_gcj_present): Update.
38415         (is_gcj_43, is_gcj43_usable): New functions.
38416         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38417         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38418         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38419         try the options -fsource and -ftarget.
38420
38421 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38422
38423         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38424         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38425         larger value.
38426
38427 2007-02-03  Jim Meyering  <jim@meyering.net>
38428
38429         Give tools a better chance to allocate space for very large buffers.
38430         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38431
38432         Make pwd and readlink work also when run with an unreadable parent dir
38433         on systems with openat support.
38434         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38435         provided getcwd function, even when we have openat support.
38436         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38437
38438 2007-02-02  Bruno Haible  <bruno@clisp.org>
38439
38440         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38441         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38442         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38443         portability problems if one of these functions is only used on specific
38444         platforms.
38445         Reported by Paul Eggert.
38446
38447 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38448
38449         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38450         is causing more trouble than it's curing.
38451         * lib/regex_internal.h (__mempcpy): Remove.
38452         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38453         (and make the code a tad smaller to boot).
38454         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38455
38456 2007-02-02  Jim Meyering  <jim@meyering.net>
38457
38458         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38459         section, not in the Makefile.am: one.
38460
38461 2007-02-02  Eric Blake  <ebb9@byu.net>
38462
38463         * lib/strchrnul.c: Always include config.h first.
38464
38465         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38466         gnulib strstr is not necessary here.
38467
38468 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38469
38470         * m4/socklen.m4: Fix typo.
38471
38472 2007-02-02  Eric Blake  <ebb9@byu.net>
38473
38474         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38475         * modules/netinet_in (Makefile.am): Likewise.
38476
38477 2007-02-01  Bruno Haible  <bruno@clisp.org>
38478
38479         * lib/string_.h (GL_LINK_WARNING): New macro.
38480         (strcasecmp, strstr, strcasestr): If provided by the system,
38481         conditionally define as a macro that leads to a warning instead of to
38482         an error.
38483         (strncasecmp): Conditionally define as a macro that leads to a warning.
38484
38485 2007-02-01  Karl Berry  <karl@gnu.org>
38486
38487         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38488
38489 2007-02-01  Bruno Haible  <bruno@clisp.org>
38490
38491         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38492         renamings.
38493
38494 2007-02-01  Eric Blake  <ebb9@byu.net>
38495
38496         * modules/regex (Depends-on): Revert dependence on mempcpy.
38497         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38498         module's definition of mempcpy.
38499         Reported by Paul Eggert.
38500
38501 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38502
38503         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38504         the symbol XYZ before redefining it.  This fixes a problem with
38505         programs that don't use XYZ, when compiled on systems that define
38506         XYZ to something else.
38507
38508 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38509
38510         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38511         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38512         writeable to group or other and (2) is intended to have a special
38513         mode bit that is set or cleared.  In such a case, the directory
38514         should be neither group- nor other-writeable until the special
38515         mode bits are right.
38516
38517 2007-01-31  Eric Blake  <ebb9@byu.net>
38518
38519         * modules/mountlist (Depends-on): Add strstr.
38520
38521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38522         bug.
38523         * modules/string (Makefile.am): Remove redundant replacement.
38524         * modules/regex (Depends-on): Add mempcpy.
38525
38526 2007-01-31  Bruno Haible  <bruno@clisp.org>
38527
38528         New module description field 'Link'.
38529         * gnulib-tool (func_usage): Document --extract-link-directive.
38530         (sed_extract_prog): Recognize 'Link' directive.
38531         (func_get_link_directive): New function.
38532         (func_import): Show summary of link directives.
38533         Handle --extract-link-directive option.
38534         * modules/acl (Link): New section.
38535         * modules/clock-time (Link): New section.
38536         * modules/euidaccess (Link): New section.
38537         * modules/gettext (Link): New section.
38538         * modules/iconv (Link): New section.
38539         * modules/lock (Link): New section.
38540         * modules/nanosleep (Link): New section.
38541         * modules/readline (Link): New section.
38542
38543 2007-01-27  Bruno Haible  <bruno@clisp.org>
38544
38545         Enforce the use of gnulib modules for unportable <string.h> functions.
38546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38547         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38548         (gl_HEADER_STRING_H_BODY): Require it.
38549         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38550         the symbol XYZ to one that gives a link error.
38551         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38552         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38553         * modules/mempcpy (configure.ac): Likewise.
38554         * modules/memrchr (configure.ac): Likewise.
38555         * modules/stpcpy (configure.ac): Likewise.
38556         * modules/stpncpy (configure.ac): Likewise.
38557         * modules/strcase (configure.ac): Likewise.
38558         * modules/strcasestr (configure.ac): Likewise.
38559         * modules/strchrnul (configure.ac): Likewise.
38560         * modules/strdup (configure.ac): Likewise.
38561         * modules/strndup (configure.ac): Likewise.
38562         * modules/strnlen (configure.ac): Likewise.
38563         * modules/strpbrk (configure.ac): Likewise.
38564         * modules/strsep (configure.ac): Likewise.
38565         * modules/strstr (configure.ac): Likewise.
38566         * modules/strtok_r (configure.ac): Likewise.
38567
38568 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38569
38570         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38571
38572 2007-01-30  Jim Meyering  <jim@meyering.net>
38573
38574         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38575
38576 2007-01-29  Bruno Haible  <bruno@clisp.org>
38577
38578         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38579         * lib/execute.c: Likewise.
38580         * lib/pipe.c: Likewise.
38581         * lib/printf-args.h: Likewise.
38582         * lib/printf-args.c: Likewise.
38583         * lib/printf-parse.c: Likewise.
38584         * lib/vasnprintf.c: Likewise.
38585
38586 2007-01-29  Eric Blake  <ebb9@byu.net>
38587
38588         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38589         declaration.
38590
38591 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38592
38593         * lib/strptime.h (strptime): Use 'restrict' for args where
38594         POSIX requires this.
38595         * lib/strptime.c (strptime): Likewise.
38596         Change license notice from LGPL to GPL, since gnulib-tool will
38597         change this as needed.
38598         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38599         defined.
38600         Include "strptime.h" first, to check interface.
38601         Do not #undef _LIBC and _NL_CURRENT.
38602         Do not include <stdlib.h>; no longer needed.
38603         Include "time_r.h" and declare ptime_locale_status
38604         only if _LIBC is not defined.
38605         (__P): Remove unused macro.
38606         (match_string): Bring back glibc version, but use it only if _LIBC
38607         is defined.
38608         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38609         Remove unnecessary assertion and abort() call.
38610         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38611         * m4/strptime.m4: Fix serial number comment.
38612         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38613         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38614         (Depends-on): Add time_r.
38615
38616 2007-01-29  Bruno Haible  <bruno@clisp.org>
38617
38618         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38619         strptime.
38620         * modules/strptime (Depends-on): Add stdbool.
38621         * lib/strptime.h: Include <time.h> always. Add comments.
38622
38623 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38624
38625         * modules/strptime: New file.
38626         * lib/strptime.h: New file.
38627         * lib/strptime.c: New file.
38628         * m4/strptime.m4: New file.
38629
38630 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38631
38632         * MODULES.html.sh: New module mpsort.
38633         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38634
38635         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38636         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38637         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38638         All uses changed.
38639         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38640         All uses changed.
38641         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38642         to _Restrict_.
38643         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38644         the parameter matches the prototype.
38645
38646 2007-01-28  Jim Meyering  <jim@meyering.net>
38647
38648         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38649         sys/time.h here, reverting that part of the previous patch:
38650         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38651
38652 2007-01-28  Bruno Haible  <bruno@clisp.org>
38653
38654         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38655         value of $(SYS_TIME_H).
38656         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38657         remove it conditionally, too. [added by Jim Meyering]
38658         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38659         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38660         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38661         GETTIMEOFDAY_REPLACEMENT to 1.
38662
38663 2007-01-28  Bruno Haible  <bruno@clisp.org>
38664
38665         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38666         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38668         Set UNISTD_H instead of UNISTD_H2.
38669         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38670
38671 2007-01-28  Bruno Haible  <bruno@clisp.org>
38672
38673         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38674         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38675
38676 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38677
38678         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38679         (func_create_testdir): Ensure C locale for `grep' and `tr'
38680         character ranges.
38681         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38682         ACLOCAL_AMFLAGS parsing state machine.
38683
38684 2007-01-27  Bruno Haible  <bruno@clisp.org>
38685
38686         * modules/unistr/base: Update.
38687
38688 2007-01-27  Bruno Haible  <bruno@clisp.org>
38689
38690         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38691         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38692         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38693         modules/unistr/u32-mbtouc.
38694         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38695         * lib/unistr.h: Update.
38696         * lib/linebreak.c: Update.
38697         * modules/unistr/u32-mbtouc: Renamed from
38698         modules/unistr/u32-mbtouc-safe.
38699         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38700         * lib/unistr.h: Update.
38701         * lib/unistr/u32-to-u8.c: Update.
38702         * lib/unistr/u32-to-u16.c: Update.
38703
38704 2007-01-27  Bruno Haible  <bruno@clisp.org>
38705
38706         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38707         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38708         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38709         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38710         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38711         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38712         modules/unistr/u16-mbtouc.
38713         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38714         * lib/unistr.h: Update.
38715         * lib/linebreak.c: Update.
38716         * modules/linebreak: Update.
38717         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38718         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38719         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38720         * modules/unistr/u16-mbtouc: Renamed from
38721         modules/unistr/u16-mbtouc-safe.
38722         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38723         * lib/unistr.h: Update.
38724         * lib/unistr/u16-to-u8.c: Update.
38725         * modules/unistr/u16-to-u8: Update.
38726         * lib/unistr/u16-to-u32.c: Update.
38727         * modules/unistr/u16-to-u32: Update.
38728
38729 2007-01-27  Bruno Haible  <bruno@clisp.org>
38730
38731         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38732         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38733         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38734         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38735         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38736         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38737         modules/unistr/u8-mbtouc.
38738         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38739         * lib/unistr.h: Update.
38740         * lib/striconveh.c: Update.
38741         * modules/striconveh: Update.
38742         * lib/linebreak.c: Update.
38743         * modules/linebreak: Update.
38744         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38745         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38746         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38747         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38748         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38749         * lib/unistr.h: Update.
38750         * lib/striconveh.c: Update.
38751         * modules/striconveh: Update.
38752         * lib/unistr/u8-to-u16.c: Update.
38753         * modules/unistr/u8-to-u16: Update.
38754         * lib/unistr/u8-to-u32.c: Update.
38755         * modules/unistr/u8-to-u32: Update.
38756
38757 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38758
38759         Sync from Libtool.
38760         * lib/argz.c: Do not include strings.h nor memory.h, include
38761         string.h unconditionally.  Patch by Simon Josefsson.
38762
38763 2007-01-27  Bruno Haible  <bruno@clisp.org>
38764
38765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38766         from gl_HEADER_STRING_H_BODY.
38767         (gl_HEADER_STRING_H_BODY): Require it.
38768         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38770         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38771         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38772         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38773         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38774         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38775         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38776         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38777         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38778         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38779         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38780         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38781         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38782         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38783
38784 2007-01-27  Bruno Haible  <bruno@clisp.org>
38785
38786         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38787         check_PROGRAMS into noinst_PROGRAMS.
38788         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38789         check_PROGRAMS in this case.
38790         (func_import): Set for_test to false.
38791         (func_create_testdir): Set for_test to true.
38792
38793 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38794             Bruno Haible  <bruno@clisp.org>
38795
38796         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38797         (Depends-on): Add string.
38798         (Includes): Use <string.h> instead of strcasestr.h.
38799         * modules/string (Makefile.am): Also substitute the value of
38800         REPLACE_STRCASESTR.
38801         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38802         assume strcasestr is declared in <string.h> not <strings.h>. Also
38803         set REPLACE_STRCASESTR.
38804         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38805         REPLACE_STRCASESTR.
38806         * lib/strcasestr.h: Remove file.
38807         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38808         * lib/string_.h (strcasestr): New declaration.
38809
38810 2007-01-27  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/string_.h: Use 'extern'.
38813
38814 2007-01-27  Jim Meyering  <jim@meyering.net>
38815
38816         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38817         of set-but-not-used local, "q".
38818
38819         * lib/mempcpy.c: Include <config.h> before <string.h>.
38820         This fixes a compilation error on HP-UX, due to the system's
38821         "restrict"-using mempcpy prototype.
38822
38823 2007-01-26  Bruno Haible  <bruno@clisp.org>
38824
38825         Small optimization.
38826         * lib/javacomp.c: Include c-strstr.h.
38827          (is_envjavac_gcj): Use c_strstr instead of strstr.
38828         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38829
38830 2007-01-26  Bruno Haible  <bruno@clisp.org>
38831
38832         * MODULES.html.sh (Unicode string functions): Add the new modules.
38833
38834         * modules/uniconv/u32-strconv-to-locale: New file.
38835         * lib/uniconv/u32-strconv-to-locale.c: New file.
38836
38837         * modules/uniconv/u16-strconv-to-locale: New file.
38838         * lib/uniconv/u16-strconv-to-locale.c: New file.
38839
38840         * modules/uniconv/u8-strconv-to-locale: New file.
38841         * lib/uniconv/u8-strconv-to-locale.c: New file.
38842
38843         * modules/uniconv/u32-strconv-from-locale: New file.
38844         * lib/uniconv/u32-strconv-from-locale.c: New file.
38845
38846         * modules/uniconv/u16-strconv-from-locale: New file.
38847         * lib/uniconv/u16-strconv-from-locale.c: New file.
38848
38849         * modules/uniconv/u8-strconv-from-locale: New file.
38850         * lib/uniconv/u8-strconv-from-locale.c: New file.
38851
38852         * modules/uniconv/u32-strconv-to-enc: New file.
38853         * lib/uniconv/u32-strconv-to-enc.c: New file.
38854         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38855         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38856
38857         * modules/uniconv/u16-strconv-to-enc: New file.
38858         * lib/uniconv/u16-strconv-to-enc.c: New file.
38859         * lib/uniconv/u-strconv-to-enc.h: New file.
38860         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38861         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38862
38863         * modules/uniconv/u8-strconv-to-enc: New file.
38864         * lib/uniconv/u8-strconv-to-enc.c: New file.
38865         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38866         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38867
38868         * modules/uniconv/u32-strconv-from-enc: New file.
38869         * lib/uniconv/u32-strconv-from-enc.c: New file.
38870         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38871         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38872
38873         * modules/uniconv/u16-strconv-from-enc: New file.
38874         * lib/uniconv/u16-strconv-from-enc.c: New file.
38875         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38876         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38877
38878         * modules/uniconv/u8-strconv-from-enc: New file.
38879         * lib/uniconv/u8-strconv-from-enc.c: New file.
38880         * lib/uniconv/u-strconv-from-enc.h: New file.
38881         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38882         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38883
38884         * modules/uniconv/u32-conv-from-enc: New file.
38885         * lib/uniconv/u32-conv-from-enc.c: New file.
38886         * modules/uniconv/u32-conv-from-enc-tests: New file.
38887         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38888
38889         * modules/uniconv/u16-conv-from-enc: New file.
38890         * lib/uniconv/u16-conv-from-enc.c: New file.
38891         * lib/uniconv/u-conv-from-enc.h: New file.
38892         * modules/uniconv/u16-conv-from-enc-tests: New file.
38893         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38894
38895         * modules/uniconv/u8-conv-from-enc: New file.
38896         * lib/uniconv/u8-conv-from-enc.c: New file.
38897         * modules/uniconv/u8-conv-from-enc-tests: New file.
38898         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38899
38900         * modules/uniconv/base: New file.
38901         * lib/uniconv.h: New file.
38902
38903 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38904
38905         * doc/gnulib-tool.texi (Initial import): Update to match current
38906         behavior with strdup module.
38907         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38908         * lib/memmem.h: Remove; all uses removed.  This is now done
38909         by <string.h>.
38910         * lib/mempcpy.h: Likewise.
38911         * lib/memrchr.h: Likewise.
38912         * lib/stpcpy.h: Likewise.
38913         * lib/stpncpy.h: Likewise.
38914         * lib/strcase.h: Likewise.
38915         * lib/strchrnul.h: Likewise.
38916         * lib/strdup.h: Likewise.
38917         * lib/strndup.h: Likewise.
38918         * lib/strnlen.h: Likewise.
38919         * lib/strpbrk.h: Likewise.
38920         * lib/strsep.h: Likewise.
38921         * lib/strstr.h: Likewise.
38922         * lib/strtok_r.h: Likewise.
38923         * lib/string_.h: New file.
38924         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38925         Rely on <string.h> instead.
38926         * lib/canon-host.c: Likewise.
38927         * lib/chdir-long.c: Likewise.
38928         * lib/concatpath.c: Likewise.
38929         * lib/exclude.c: Likewise.
38930         * lib/fchdir.c: Likewise.
38931         * lib/getaddrinfo.c: Likewise.
38932         * lib/getcwd.c: Likewise.
38933         * lib/getsubopt.c: Likewise.
38934         * lib/glob.c: Likewise.
38935         * lib/hard-locale.c: Likewise.
38936         * lib/iconvme.c: Likewise.
38937         * lib/javacomp.c: Likewise.
38938         * lib/mempcpy.c: Likewise.
38939         * lib/memrchr.c: Likewise.
38940         * lib/regex_internal.h: Likewise.
38941         * lib/stpncpy.c: Likewise.
38942         * lib/strcasecmp.c: Likewise.
38943         * lib/strchrnul.c: Likewise.
38944         * lib/strdup.c: Likewise.
38945         * lib/striconv.c: Likewise.
38946         * lib/striconveh.c: Likewise.
38947         * lib/striconveha.c: Likewise.
38948         * lib/strncasecmp.c: Likewise.
38949         * lib/strndup.c: Likewise.
38950         * lib/strnlen.c: Likewise.
38951         * lib/strsep.c: Likewise.
38952         * lib/strstr.c: Likewise.
38953         * lib/strtok_r.c: Likewise.
38954         * lib/userspec.c: Likewise.
38955         * lib/w32spawn.h: Likewise.
38956         * lib/xstrndup.c: Likewise.
38957         * lib/mountlist.c (strstr): Remove decl.
38958         * m4/string_h.m4: New file.
38959         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38960         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38961         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38962         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38963         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38964         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38965         Set REPLACE_STRCASECMP if necessary.
38966         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38968         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38970         HAVE_DECL_STRDUP if necessary.
38971         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38972         since gl_FUNC_STRNDUP does that now.
38973         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38974         Check for decl here...
38975         (gl_PREREQ_STRNLEN): ... not here.
38976         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38977         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38978         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38979         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38980         necessary.
38981         * modules/string: New file.
38982         * modules/memmem (Files): Remove special-purpose include file.
38983         (Depends-on): Add string.
38984         (Include): Include <string.h>, not the removed file.
38985         * modules/mempcpy: Likewise.
38986         * modules/memrchr: Likewise.
38987         * modules/stpcpy: Likewise.
38988         * modules/stpncpy: Likewise.
38989         * modules/strcase: Likewise.
38990         * modules/strchrnul: Likewise.
38991         * modules/strdup: Likewise.
38992         * modules/strndup: Likewise.
38993         * modules/strnlen: Likewise.
38994         * modules/strpbrk: Likewise.
38995         * modules/strsep: Likewise.
38996         * modules/strstr: Likewise.
38997         * modules/strtok_r: Likewise.
38998         * tests/test-dirname.c: Don't include "strdup.h", since
38999         <string.h> now suffices.
39000         * tests/test-memmem.c: Don't include "memmem.h", since
39001         <string.h> now suffices.
39002
39003 2007-01-25  Bruno Haible  <bruno@clisp.org>
39004
39005         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39006         *resultp is 0.
39007
39008         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39009         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39010         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39011         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39012
39013         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39014         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39015         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39016         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39017         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39018         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39019
39020 2007-01-24  Bruno Haible  <bruno@clisp.org>
39021
39022         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39024         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39025         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39026         gl_FUNC_FTS_CORE.
39027         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39028         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39029         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39030         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39031         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39032         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39033         gl_FUNC_FCHOWNAT.
39034         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39035         gl_FUNC_STRFTIME.
39036         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39037         Reported by Ralf Wildenhues.
39038
39039 2007-01-24  Bruno Haible  <bruno@clisp.org>
39040
39041         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39042         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39043         gl_GETADDRINFO.
39044         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39045         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39046         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39047
39048 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39049
39050         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39051         Don't use 'exit'; just return from 'main'.
39052         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39053
39054         * lib/fnmatch_.h: Readjust white space and comments to match
39055         glibc, to avoid spurious diffs.
39056
39057 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39058
39059         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39060         2004-12-01 change by Jakub Jelinek, since this code won't compile
39061         if !LIBC.  Problem reported by Bob Proulx.
39062
39063 2007-01-23  Bruno Haible  <bruno@clisp.org>
39064
39065         * lib/striconveh.c: Include c-strcaseeq.h.
39066         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39067         * modules/striconveh (Depends-on): Add c-strcaseeq.
39068
39069 2007-01-23  Bruno Haible  <bruno@clisp.org>
39070
39071         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39072
39073         * modules/c-strcaseeq: New file.
39074         * lib/c-strcaseeq.h: New file.
39075
39076         * modules/streq: New file.
39077         * lib/streq.h: New file.
39078
39079 2007-01-23  Bruno Haible  <bruno@clisp.org>
39080
39081         * modules/striconveha-tests: New file.
39082         * tests/test-striconveha.c: New file.
39083
39084         * lib/striconveha.h: Include <stdbool.h>.
39085         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39086         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39087         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39088         (mem_iconveha): New function.
39089         (str_iconveha_notranslit): Renamed from str_iconveha.
39090         (str_iconveha): New function.
39091         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39092         c-strcase.
39093
39094 2007-01-23  Bruno Haible  <bruno@clisp.org>
39095
39096         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39097         encodings without forgiving before trying any encoding with handler.
39098         (str_iconveha): Try all encodings without forgiving before trying any
39099         encoding with handler.
39100
39101 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39102
39103         Import the following changes from libc.
39104
39105         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39106
39107         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39108
39109         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39110
39111         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39112         normal_bracket label.
39113
39114         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39115
39116         [BZ #361]
39117         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39118         to normal_bracket after fetching the next character.
39119
39120 2007-01-22  Bruno Haible  <bruno@clisp.org>
39121
39122         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39123         argument.
39124         * lib/striconveh.c (iconv_carefully_1): New function.
39125         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39126         argument.
39127         (str_cd_iconveh): Update.
39128         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39129         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39130         * tests/test-striconveh.c (MAGIC): New macro.
39131         (new_offsets): New function.
39132         (main): Test call with and without offsets.
39133
39134 2007-01-22  Bruno Haible  <bruno@clisp.org>
39135
39136         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39137         * modules/sys_select (Makefile.am): Likewise.
39138         * modules/sys_socket (Makefile.am): Likewise.
39139         * modules/sys_time (Makefile.am): Likewise.
39140
39141 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39142
39143         * modules/gettimeofday (License): Change from GPL to LGPL, since
39144         gettimeofday is a library function.
39145
39146 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39147
39148         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39149
39150 2007-01-21  Bruno Haible  <bruno@clisp.org>
39151
39152         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39153
39154 2007-01-21  Bruno Haible  <bruno@clisp.org>
39155
39156         * modules/striconveha: New file.
39157         * lib/striconveha.h: New file.
39158         * lib/striconveha.c: New file.
39159         * MODULES.html.sh (Internationalization functions): Add striconveha.
39160         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39161         string.
39162         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39163
39164 2007-01-21  Bruno Haible  <bruno@clisp.org>
39165
39166         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39167         * lib/striconveh.c (str_iconveh): Likewise.
39168
39169 2007-01-21  Bruno Haible  <bruno@clisp.org>
39170
39171         * lib/striconveh.h (mem_iconveh): New declaration.
39172         * lib/striconveh.c (mem_iconveh): New function.
39173         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39174
39175 2007-01-21  Bruno Haible  <bruno@clisp.org>
39176
39177         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39178
39179         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39180         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39181         original result buffer.
39182         (str_cd_iconveh): Update.
39183         * tests/test-striconveh.c (main): Update.
39184
39185         * lib/striconv.h (mem_cd_iconv): Change specification.
39186         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39187         result buffer.
39188         (str_cd_iconv): Update.
39189         * tests/test-striconv.c (main): Update.
39190
39191 2007-01-21  Bruno Haible  <bruno@clisp.org>
39192
39193         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39194
39195 2007-01-20  Jim Meyering  <jim@meyering.net>
39196
39197         * lib/userspec.c (parse_with_separator): If a user or group string
39198         starts with "+", skip the corresponding name-to-ID look-up, since
39199         such a look-up must fail: user and group names may not include "+".
39200
39201 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39202
39203         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39204         since we now assume the sys_time module.
39205         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39206         check for sys/time.h; no longer needed.
39207         * modules/poll (Depends-on): Depend on sys_time.
39208
39209 2007-01-18  Bruno Haible  <bruno@clisp.org>
39210
39211         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39212         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39213
39214         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39215         gettimeofday.
39216
39217         * tests/test-gettimeofday.c: Include <time.h>.
39218         (dummy): Remove variable.
39219
39220         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39221         gl_HEADER_SYS_TIME_H.
39222         (gl_HEADER_SYS_TIME_H): New macro.
39223
39224         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39225         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39227         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39228         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39230         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39231         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39232         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39233         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39234         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39235
39236         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39237         last change; it caused a compilation error when cross-compiling to
39238         Cygwin.
39239
39240 2007-01-18  Jim Meyering  <jim@meyering.net>
39241
39242         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39243         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39244         than the race-prone "test -d sys || mkdir sys".
39245         (configure.ac): Use AC_PROG_MKDIR_P.
39246         * modules/sys_select: Likewise.
39247         * modules/sys_socket: Likewise.
39248         * modules/sys_time: Likewise.
39249
39250 2007-01-18  Eric Blake  <ebb9@byu.net>
39251
39252         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39253         replace gettimeofday.
39254         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39255         name, to avoid infinite recursion.
39256
39257 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39258
39259         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39260         module sys_time.
39261         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39262         assume timespec.h defines struct timeval.
39263         * lib/settime.c: Likewise.
39264         * lib/utimens.c: Likewise.
39265         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39266         since we now assume the gettimeofday module.
39267         * lib/tempname.c (__gen_tempname): Likewise.
39268         * lib/gettimeofday.h: Remove.
39269         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39270         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39271         Include <time.h>, for 'time()'.
39272         (localtime_buffer_addr): Also use this workaround if
39273         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39274         to simplify the uses.  All uses changed.
39275         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39276         that #undef is inside {}, and 'const' follows type name consistently.
39277         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39278         (gettimeofday): Do not use the maximum possible value for
39279         tv->tv_usec, since that might break usages other than ls.c.
39280         Instead, we'll leave ls.c alone.  This undoes today's patch
39281         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39282         we've never observed the problem but might as well keep the
39283         canary.
39284         * lib/nanosleep.c: Include timespec.h first, for interface check.
39285         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39286         now assume the sys_time module.
39287         * lib/tempname.c: Likewise.
39288         * lib/timespec.h: Likewise.
39289         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39290         needed.
39291         * lib/strftime.c: Likewise.
39292         * lib/timespec.h: Likewise.
39293         * lib/posixtm.c: Include posixtm.h first, for interface check.
39294         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39295         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39296         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39297         * lib/sys_time_.h: New file.
39298         * lib/timespec.h (struct timespec): Use long int, not long.
39299         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39300         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39301         Remove obsolescent call to AC_HEADER_TIME.
39302         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39304         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39305         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39306         Likewise.
39307         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39308         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39309         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39310         into the sys_time module.  Check for gettimeofday just once.
39311         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39312         for gettimeofday signature to just check the signature.  Merely
39313         compile it, since linking doesn't test signature.  Improve test for
39314         whether gettimeofday.o is actually needed.
39315         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39316         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39317         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39318         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39319         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39320         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39321         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39322         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39323         than worrying about sys/time.h.
39324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39325         Don't bother worrying about TIME_WITH_SYS_TIME.
39326         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39327         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39328         * m4/sys_time_h.m4: New file.
39329         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39330         Don't include sys/time.h.  Return from main rather than exiting.
39331         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39332         all uses changed.
39333         * modules/gethrxtime (Depends-on): Add sys_time.
39334         * modules/gettime (Depends-on): Likewise.
39335         * modules/gettimeofday (Depends-on): Likewise.
39336         * modules/nanosleep (Depends-on): Likewise.
39337         * modules/settime (Depends-on): Likewise.
39338         * modules/tempname (Depends-on): Likewise.
39339         * modules/utimens (Depends-on): Likewise.
39340         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39341         (Include:) Change back to <sys/time.h>.
39342         (Maintainer:) Add self.
39343         * modules/sys_time: New file.
39344         * modules/tempname (Depends-on): Add gettimeofday.
39345         * tests/test-gettimeofday.c: Include <sys/time.h>
39346         rather than gettimeofday.h.
39347
39348 2007-01-17  Bruno Haible  <bruno@clisp.org>
39349
39350         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39351         the license default to GPL.
39352         (func_create_testdir): Don't complain if a module is LGPL and its
39353         tests module depends on GPLed modules.
39354
39355 2007-01-17  Bruno Haible  <bruno@clisp.org>
39356
39357         * lib/gettimeofday.c (gettimeofday): Add code for the case
39358         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39359         maximum possible value for tv->tv_usec, rather than the minimum one.
39360
39361 2005-10-08  Martin Lambers  <marlam@marlam.de>
39362 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39363 2007-01-16  Bruno Haible  <bruno@clisp.org>
39364
39365         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39366         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39367         gl_FUNC_GETTIMEOFDAY.
39368         (Include): Add gettimeofday.h.
39369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39370         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39371         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39372         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39373         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39374         * lib/gettimeofday.h: New file.
39375         * lib/gettimeofday.c: Include <sys/timeb.h>.
39376         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39377         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39378         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39379         fall back on time().
39380
39381         * tests/test-gettimeofday.c: New file.
39382         * modules/gettimeofday-tests: New file.
39383
39384 2007-01-16  Eric Blake  <ebb9@byu.net>
39385
39386         * modules/fnmatch (Depends-on): Depend on wchar.
39387         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39388         * m4/fnmatch.m4: Likewise.
39389         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39390         * m4/mbchar.m4: Likewise.
39391         * modules/mbswidth (Depends-on): Depend on wchar.
39392         * lib/mbswidth.c: Assume <wchar.h>.
39393         * m4/mbswidth.m4: Likewise.
39394         * modules/quotearg (Depends-on): Depend on wchar.
39395         * lib/quotearg.c: Assume <wchar.h>.
39396         * m4/quotearg.m4: Likewise.
39397         * modules/regex (Depends-on): Depend on wchar.
39398         * lib/regex_internal.h: Assume <wchar.h>.
39399         * m4/regex.m4: Likewise.
39400         * modules/stdint (Depends-on): Depend on wchar.
39401         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39402         * m4/stdint.m4: Likewise.
39403         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39404         * modules/strftime (Depends-on): Depend on wchar.
39405         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39406         * modules/strtol (Depends-on): Depend on wchar.
39407         * lib/strtol.c: Assume <wchar.h>.
39408         * modules/wcwidth (Depends-on): Depend on wchar.
39409         * lib/wcwidth.h: Assume <wchar.h>.
39410         * m4/wcwidth.m4: Likewise.
39411
39412 2007-01-16  Bruno Haible  <bruno@clisp.org>
39413
39414         * modules/csharpexec-script: New, created from...
39415         * modules/csharpexec: ... this.
39416
39417 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39418
39419         * modules/javaexec-script: New, created from...
39420         * modules/javaexec: ... this.
39421
39422 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39423
39424         * modules/poll (Dependencies): Add sys_select.
39425
39426 2007-01-15  Jim Meyering  <jim@meyering.net>
39427
39428         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39429         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39430         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39431         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39432
39433 2007-01-15  Bruno Haible  <bruno@clisp.org>
39434
39435         * modules/striconveh: New file.
39436         * lib/striconveh.h: New file.
39437         * lib/striconveh.c: New file.
39438         * MODULES.html.sh (Internationalization functions): Add striconveh.
39439
39440         * modules/striconveh-tests: New file.
39441         * tests/test-striconveh.c: New file.
39442
39443 2007-01-15  Bruno Haible  <bruno@clisp.org>
39444
39445         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39446         not from GNU libiconv or GNU libc.
39447
39448 2007-01-15  Bruno Haible  <bruno@clisp.org>
39449
39450         * doc/gnulib-intro.texi (Copyright): Explain the different license
39451         terms for module descriptions, autoconf macros, tests, documentation.
39452
39453 2007-01-14  Bruno Haible  <bruno@clisp.org>
39454
39455         * modules/striconv-tests: New file.
39456         * tests/test-striconv.c: New file.
39457
39458 2007-01-14  Bruno Haible  <bruno@clisp.org>
39459
39460         * modules/iconv-tests: New file.
39461         * tests/test-iconv.c: New file.
39462
39463 2007-01-14  Bruno Haible  <bruno@clisp.org>
39464
39465         * gnulib-tool (func_get_license): For test modules, use the license of
39466         the main module.
39467
39468 2007-01-14  Bruno Haible  <bruno@clisp.org>
39469
39470         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39471         if iconv is found to exist.
39472
39473 2007-01-14  Bruno Haible  <bruno@clisp.org>
39474
39475         * modules/c-ctype-tests: New file.
39476         * tests/test-c-ctype.c: New file.
39477
39478 2007-01-14  Bruno Haible  <bruno@clisp.org>
39479
39480         * modules/binary-io-tests: New file.
39481         * tests/test-binary-io.sh: New file.
39482         * tests/test-binary-io.c: New file.
39483
39484 2007-01-14  Bruno Haible  <bruno@clisp.org>
39485
39486         * modules/array-oset-tests: New file.
39487         * tests/test-array_oset.c: New file.
39488
39489 2007-01-14  Bruno Haible  <bruno@clisp.org>
39490
39491         * modules/array-list-tests: New file.
39492         * tests/test-array_list.c: New file.
39493
39494 2007-01-14  Bruno Haible  <bruno@clisp.org>
39495
39496         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39497         and make.
39498         Reported by Simon Josefsson in
39499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39500
39501 2007-01-14  Bruno Haible  <bruno@clisp.org>
39502
39503         * modules/allocsa-tests: New file.
39504         * tests/test-allocsa.c: New file.
39505
39506 2007-01-14  Bruno Haible  <bruno@clisp.org>
39507
39508         * modules/fchdir (Depends-on): Add absolute-header.
39509         * modules/unistd (Depends-on): Likewise.
39510
39511 2006-12-30  Bruno Haible  <bruno@clisp.org>
39512
39513         * modules/fchdir: New file.
39514         * modules/unistd (Files): Add lib/unistd_.h.
39515         (Makefile.am): Generate unistd.h from unistd_.h.
39516         * lib/fchdir.c: New file.
39517         * lib/dirent_.h: New file.
39518         * lib/unistd_.h: New file.
39519         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39520         * m4/fchdir.m4: New file.
39521         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39522         (gl_HEADER_UNISTD): Invoke it.
39523         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39524         function.
39525         * lib/backupfile.c (opendir, closedir): Undefine.
39526         * lib/chown.c (open, close): Undefine.
39527         * lib/clean-temp.c (open, close): Undefine.
39528         * lib/copy-file.c (open, close): Undefine.
39529         * lib/execute.c (open, close): Undefine.
39530         * lib/fsusage.c (open, close): Undefine.
39531         * lib/gc-gnulib.c (open, close): Undefine.
39532         * lib/getcwd.c (opendir, closedir): Undefine.
39533         * lib/glob.c (opendir, closedir): Undefine.
39534         * lib/javacomp.c (open, close): Undefine.
39535         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39536         * lib/openat-proc.c (open, close): Undefine.
39537         * lib/pagealign_alloc.c (open, close): Undefine.
39538         * lib/pipe.c (open, close): Undefine.
39539         * lib/progreloc.c (open, close): Undefine.
39540         * lib/savedir.c (opendir, closedir): Undefine.
39541         * lib/utime.c (open, close): Undefine.
39542         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39543
39544 2007-01-10  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39547
39548 2007-01-12  Eric Blake  <ebb9@byu.net>
39549
39550         Provide a robust <wchar.h>.  Further simplifications are now
39551         possible in other modules, but not included here.
39552         * modules/wchar: New module.
39553         * m4/wchar.m4: New file.
39554         * lib/wchar_.h: Likewise.
39555         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39556         of the new module.
39557         * MODULES.html.sh (Extended multibyte and wide character utilities):
39558         New section.
39559
39560 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39561
39562         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39563         to a reasonable default for memory allocation.
39564         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39565         file system that reports garbage st_size values for symlinks.
39566         Problem reported by Liyang Hu.
39567
39568 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39569
39570         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39571         Emacs .#* auto-save files).
39572
39573 2007-01-11  Bruno Haible  <bruno@clisp.org>
39574
39575         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39576         directory.
39577
39578 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39579
39580         Use @...@ consistently in lib/wctype_.h.
39581         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39582         on it being set to 1 or 0.
39583         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39584         go back to AC_SUBSTing it.
39585         * modules/wctype (Makefile.am): Undo previous change.
39586
39587 2007-01-10  Eric Blake  <ebb9@byu.net>
39588
39589         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39590         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39591         * modules/wctype (Makefile.am): Likewise.
39592         Reported by Chris McGuire.
39593
39594 2007-01-10  Jim Meyering  <jim@meyering.net>
39595
39596         fts.c: a small readability/maintainability improvement
39597         * lib/fts.c (fts_read): Make this code slightly more readable and
39598         maintainable by hoisting the "sp->fts_cur = p" assignments to
39599         immediately follow the statements that set P.  Derived from
39600         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39601
39602 2007-01-10  Eric Blake  <ebb9@byu.net>
39603
39604         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39605         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39607         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39608         Reported by Chris McGuire.
39609
39610 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39611
39612         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39613         in sed script.
39614
39615 2007-01-09  Bruno Haible  <bruno@clisp.org>
39616
39617         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39618         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39619         variables.
39620         (func_module): Use them.
39621
39622 2007-01-09  Bruno Haible  <bruno@clisp.org>
39623
39624         * modules/unistr/base: New file.
39625         * lib/unistr.h: New file.
39626
39627         * modules/unistr/u8-to-u16: New file.
39628         * lib/unistr/u8-to-u16.c: New file.
39629
39630         * modules/unistr/u8-to-u32: New file.
39631         * lib/unistr/u8-to-u32.c: New file.
39632
39633         * modules/unistr/u16-to-u8: New file.
39634         * lib/unistr/u16-to-u8.c: New file.
39635
39636         * modules/unistr/u16-to-u32: New file.
39637         * lib/unistr/u16-to-u32.c: New file.
39638
39639         * modules/unistr/u32-to-u8: New file.
39640         * lib/unistr/u32-to-u8.c: New file.
39641
39642         * modules/unistr/u32-to-u16: New file.
39643         * lib/unistr/u32-to-u16.c: New file.
39644
39645         * modules/unistr/u8-check: New file.
39646         * modules/unistr/u16-check: New file.
39647         * modules/unistr/u32-check: New file.
39648         * lib/unistr/u8-check.c: New file.
39649         * lib/unistr/u16-check.c: New file.
39650         * lib/unistr/u32-check.c: New file.
39651
39652         * modules/unistr/u8-chr: New file.
39653         * modules/unistr/u16-chr: New file.
39654         * modules/unistr/u32-chr: New file.
39655         * lib/unistr/u8-chr.c: New file.
39656         * lib/unistr/u16-chr.c: New file.
39657         * lib/unistr/u32-chr.c: New file.
39658
39659         * modules/unistr/u8-cmp: New file.
39660         * modules/unistr/u16-cmp: New file.
39661         * modules/unistr/u32-cmp: New file.
39662         * lib/unistr/u8-cmp.c: New file.
39663         * lib/unistr/u16-cmp.c: New file.
39664         * lib/unistr/u32-cmp.c: New file.
39665
39666         * modules/unistr/u8-cpy: New file.
39667         * modules/unistr/u16-cpy: New file.
39668         * modules/unistr/u32-cpy: New file.
39669         * lib/unistr/u8-cpy.c: New file.
39670         * lib/unistr/u16-cpy.c: New file.
39671         * lib/unistr/u32-cpy.c: New file.
39672         * lib/unistr/u-cpy.h: New file.
39673
39674         * modules/unistr/u8-cpy-alloc: New file.
39675         * modules/unistr/u16-cpy-alloc: New file.
39676         * modules/unistr/u32-cpy-alloc: New file.
39677         * lib/unistr/u8-cpy-alloc.c: New file.
39678         * lib/unistr/u16-cpy-alloc.c: New file.
39679         * lib/unistr/u32-cpy-alloc.c: New file.
39680         * lib/unistr/u-cpy-alloc.h: New file.
39681
39682         * modules/unistr/u8-endswith: New file.
39683         * modules/unistr/u16-endswith: New file.
39684         * modules/unistr/u32-endswith: New file.
39685         * lib/unistr/u8-endswith.c: New file.
39686         * lib/unistr/u16-endswith.c: New file.
39687         * lib/unistr/u32-endswith.c: New file.
39688         * lib/unistr/u-endswith.h: New file.
39689
39690         * modules/unistr/u8-mblen: New file.
39691         * modules/unistr/u16-mblen: New file.
39692         * modules/unistr/u32-mblen: New file.
39693         * lib/unistr/u8-mblen.c: New file.
39694         * lib/unistr/u16-mblen.c: New file.
39695         * lib/unistr/u32-mblen.c: New file.
39696
39697         * modules/unistr/u8-mbtouc: New file.
39698         * modules/unistr/u16-mbtouc: New file.
39699         * modules/unistr/u32-mbtouc: New file.
39700         * lib/unistr/u8-mbtouc.c: New file.
39701         * lib/unistr/u16-mbtouc.c: New file.
39702         * lib/unistr/u32-mbtouc.c: New file.
39703
39704         * modules/unistr/u8-mbtouc-safe: New file.
39705         * modules/unistr/u16-mbtouc-safe: New file.
39706         * modules/unistr/u32-mbtouc-safe: New file.
39707         * lib/unistr/u8-mbtouc-safe.c: New file.
39708         * lib/unistr/u16-mbtouc-safe.c: New file.
39709         * lib/unistr/u32-mbtouc-safe.c: New file.
39710
39711         * modules/unistr/u8-move: New file.
39712         * modules/unistr/u16-move: New file.
39713         * modules/unistr/u32-move: New file.
39714         * lib/unistr/u8-move.c: New file.
39715         * lib/unistr/u16-move.c: New file.
39716         * lib/unistr/u32-move.c: New file.
39717         * lib/unistr/u-move.h: New file.
39718
39719         * modules/unistr/u8-next: New file.
39720         * modules/unistr/u16-next: New file.
39721         * modules/unistr/u32-next: New file.
39722         * lib/unistr/u8-next.c: New file.
39723         * lib/unistr/u16-next.c: New file.
39724         * lib/unistr/u32-next.c: New file.
39725
39726         * modules/unistr/u8-prev: New file.
39727         * modules/unistr/u16-prev: New file.
39728         * modules/unistr/u32-prev: New file.
39729         * lib/unistr/u8-prev.c: New file.
39730         * lib/unistr/u16-prev.c: New file.
39731         * lib/unistr/u32-prev.c: New file.
39732
39733         * modules/unistr/u8-set: New file.
39734         * modules/unistr/u16-set: New file.
39735         * modules/unistr/u32-set: New file.
39736         * lib/unistr/u8-set.c: New file.
39737         * lib/unistr/u16-set.c: New file.
39738         * lib/unistr/u32-set.c: New file.
39739         * lib/unistr/u-set.h: New file.
39740
39741         * modules/unistr/u8-startswith: New file.
39742         * modules/unistr/u16-startswith: New file.
39743         * modules/unistr/u32-startswith: New file.
39744         * lib/unistr/u8-startswith.c: New file.
39745         * lib/unistr/u16-startswith.c: New file.
39746         * lib/unistr/u32-startswith.c: New file.
39747         * lib/unistr/u-startswith.h: New file.
39748
39749         * modules/unistr/u8-stpcpy: New file.
39750         * modules/unistr/u16-stpcpy: New file.
39751         * modules/unistr/u32-stpcpy: New file.
39752         * lib/unistr/u8-stpcpy.c: New file.
39753         * lib/unistr/u16-stpcpy.c: New file.
39754         * lib/unistr/u32-stpcpy.c: New file.
39755         * lib/unistr/u-stpcpy.h: New file.
39756
39757         * modules/unistr/u8-stpncpy: New file.
39758         * modules/unistr/u16-stpncpy: New file.
39759         * modules/unistr/u32-stpncpy: New file.
39760         * lib/unistr/u8-stpncpy.c: New file.
39761         * lib/unistr/u16-stpncpy.c: New file.
39762         * lib/unistr/u32-stpncpy.c: New file.
39763         * lib/unistr/u-stpncpy.h: New file.
39764
39765         * modules/unistr/u8-strcat: New file.
39766         * modules/unistr/u16-strcat: New file.
39767         * modules/unistr/u32-strcat: New file.
39768         * lib/unistr/u8-strcat.c: New file.
39769         * lib/unistr/u16-strcat.c: New file.
39770         * lib/unistr/u32-strcat.c: New file.
39771         * lib/unistr/u-strcat.h: New file.
39772
39773         * modules/unistr/u8-strchr: New file.
39774         * modules/unistr/u16-strchr: New file.
39775         * modules/unistr/u32-strchr: New file.
39776         * lib/unistr/u8-strchr.c: New file.
39777         * lib/unistr/u16-strchr.c: New file.
39778         * lib/unistr/u32-strchr.c: New file.
39779
39780         * modules/unistr/u8-strcmp: New file.
39781         * modules/unistr/u16-strcmp: New file.
39782         * modules/unistr/u32-strcmp: New file.
39783         * lib/unistr/u8-strcmp.c: New file.
39784         * lib/unistr/u16-strcmp.c: New file.
39785         * lib/unistr/u32-strcmp.c: New file.
39786
39787         * modules/unistr/u8-strcpy: New file.
39788         * modules/unistr/u16-strcpy: New file.
39789         * modules/unistr/u32-strcpy: New file.
39790         * lib/unistr/u8-strcpy.c: New file.
39791         * lib/unistr/u16-strcpy.c: New file.
39792         * lib/unistr/u32-strcpy.c: New file.
39793         * lib/unistr/u-strcpy.h: New file.
39794
39795         * modules/unistr/u8-strcspn: New file.
39796         * modules/unistr/u16-strcspn: New file.
39797         * modules/unistr/u32-strcspn: New file.
39798         * lib/unistr/u8-strcspn.c: New file.
39799         * lib/unistr/u16-strcspn.c: New file.
39800         * lib/unistr/u32-strcspn.c: New file.
39801         * lib/unistr/u-strcspn.h: New file.
39802
39803         * modules/unistr/u8-strdup: New file.
39804         * modules/unistr/u16-strdup: New file.
39805         * modules/unistr/u32-strdup: New file.
39806         * lib/unistr/u8-strdup.c: New file.
39807         * lib/unistr/u16-strdup.c: New file.
39808         * lib/unistr/u32-strdup.c: New file.
39809         * lib/unistr/u-strdup.h: New file.
39810
39811         * modules/unistr/u8-strlen: New file.
39812         * modules/unistr/u16-strlen: New file.
39813         * modules/unistr/u32-strlen: New file.
39814         * lib/unistr/u8-strlen.c: New file.
39815         * lib/unistr/u16-strlen.c: New file.
39816         * lib/unistr/u32-strlen.c: New file.
39817         * lib/unistr/u-strlen.h: New file.
39818
39819         * modules/unistr/u8-strmblen: New file.
39820         * modules/unistr/u16-strmblen: New file.
39821         * modules/unistr/u32-strmblen: New file.
39822         * lib/unistr/u8-strmblen.c: New file.
39823         * lib/unistr/u16-strmblen.c: New file.
39824         * lib/unistr/u32-strmblen.c: New file.
39825
39826         * modules/unistr/u8-strmbtouc: New file.
39827         * modules/unistr/u16-strmbtouc: New file.
39828         * modules/unistr/u32-strmbtouc: New file.
39829         * lib/unistr/u8-strmbtouc.c: New file.
39830         * lib/unistr/u16-strmbtouc.c: New file.
39831         * lib/unistr/u32-strmbtouc.c: New file.
39832
39833         * modules/unistr/u8-strncat: New file.
39834         * modules/unistr/u16-strncat: New file.
39835         * modules/unistr/u32-strncat: New file.
39836         * lib/unistr/u8-strncat.c: New file.
39837         * lib/unistr/u16-strncat.c: New file.
39838         * lib/unistr/u32-strncat.c: New file.
39839         * lib/unistr/u-strncat.h: New file.
39840
39841         * modules/unistr/u8-strncmp: New file.
39842         * modules/unistr/u16-strncmp: New file.
39843         * modules/unistr/u32-strncmp: New file.
39844         * lib/unistr/u8-strncmp.c: New file.
39845         * lib/unistr/u16-strncmp.c: New file.
39846         * lib/unistr/u32-strncmp.c: New file.
39847
39848         * modules/unistr/u8-strncpy: New file.
39849         * modules/unistr/u16-strncpy: New file.
39850         * modules/unistr/u32-strncpy: New file.
39851         * lib/unistr/u8-strncpy.c: New file.
39852         * lib/unistr/u16-strncpy.c: New file.
39853         * lib/unistr/u32-strncpy.c: New file.
39854         * lib/unistr/u-strncpy.h: New file.
39855
39856         * modules/unistr/u8-strnlen: New file.
39857         * modules/unistr/u16-strnlen: New file.
39858         * modules/unistr/u32-strnlen: New file.
39859         * lib/unistr/u8-strnlen.c: New file.
39860         * lib/unistr/u16-strnlen.c: New file.
39861         * lib/unistr/u32-strnlen.c: New file.
39862         * lib/unistr/u-strnlen.h: New file.
39863
39864         * modules/unistr/u8-strpbrk: New file.
39865         * modules/unistr/u16-strpbrk: New file.
39866         * modules/unistr/u32-strpbrk: New file.
39867         * lib/unistr/u8-strpbrk.c: New file.
39868         * lib/unistr/u16-strpbrk.c: New file.
39869         * lib/unistr/u32-strpbrk.c: New file.
39870         * lib/unistr/u-strpbrk.h: New file.
39871
39872         * modules/unistr/u8-strrchr: New file.
39873         * modules/unistr/u16-strrchr: New file.
39874         * modules/unistr/u32-strrchr: New file.
39875         * lib/unistr/u8-strrchr.c: New file.
39876         * lib/unistr/u16-strrchr.c: New file.
39877         * lib/unistr/u32-strrchr.c: New file.
39878
39879         * modules/unistr/u8-strspn: New file.
39880         * modules/unistr/u16-strspn: New file.
39881         * modules/unistr/u32-strspn: New file.
39882         * lib/unistr/u8-strspn.c: New file.
39883         * lib/unistr/u16-strspn.c: New file.
39884         * lib/unistr/u32-strspn.c: New file.
39885         * lib/unistr/u-strspn.h: New file.
39886
39887         * modules/unistr/u8-strstr: New file.
39888         * modules/unistr/u16-strstr: New file.
39889         * modules/unistr/u32-strstr: New file.
39890         * lib/unistr/u8-strstr.c: New file.
39891         * lib/unistr/u16-strstr.c: New file.
39892         * lib/unistr/u32-strstr.c: New file.
39893         * lib/unistr/u-strstr.h: New file.
39894
39895         * modules/unistr/u8-strtok: New file.
39896         * modules/unistr/u16-strtok: New file.
39897         * modules/unistr/u32-strtok: New file.
39898         * lib/unistr/u8-strtok.c: New file.
39899         * lib/unistr/u16-strtok.c: New file.
39900         * lib/unistr/u32-strtok.c: New file.
39901         * lib/unistr/u-strtok.h: New file.
39902
39903         * modules/unistr/u8-uctomb: New file.
39904         * modules/unistr/u16-uctomb: New file.
39905         * modules/unistr/u32-uctomb: New file.
39906         * lib/unistr/u8-uctomb.c: New file.
39907         * lib/unistr/u16-uctomb.c: New file.
39908         * lib/unistr/u32-uctomb.c: New file.
39909
39910         * MODULES.html.sh (Unicode string functions): Add the new modules.
39911
39912 2007-01-08  Bruno Haible  <bruno@clisp.org>
39913
39914         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39915         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39916         subdirectories.
39917
39918 2007-01-08  Karl Berry  <karl@gnu.org>
39919
39920         * doc/error.texi: mention that main() fns must set program_name
39921         when progname is used.
39922
39923 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39924
39925         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39926         WCTYPE_H is empty, for the benefit of builds from non-distclean
39927         directories.  Problem reported by Eric Blake in
39928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39929
39930 2007-01-08  Bruno Haible  <bruno@clisp.org>
39931
39932         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39933         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39934         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39935         PROVIDE_CANONICALIZE_FILENAME_MODE.
39936         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39937
39938 2007-01-08  Bruno Haible  <bruno@clisp.org>
39939
39940         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39941         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39942         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39943         * lib/fts.c: Likewise.
39944         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39945
39946 2006-12-25  Bruno Haible  <bruno@clisp.org>
39947
39948         * modules/utf8-ucs4-safe: New file.
39949         * lib/utf8-ucs4-safe.h: New file.
39950         * lib/unistr/utf8-ucs4-safe.c: New file.
39951
39952         * modules/utf16-ucs4-safe: New file.
39953         * lib/utf16-ucs4-safe.h: New file.
39954         * lib/unistr/utf16-ucs4-safe.c: New file.
39955
39956         * MODULES.html.sh (Unicode string functions): Add the new modules.
39957
39958 2007-01-08  Bruno Haible  <bruno@clisp.org>
39959
39960         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39961         (Depends-on): Add unitypes.
39962         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39963         (u8_mbtouc_aux): Move out to separate file.
39964         (u8_mbtouc): Use ucs4_t, uint8_t types.
39965         * lib/unistr/utf8-ucs4.c: New file.
39966
39967         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39968         (Depends-on): Add unitypes.
39969         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39970         (u16_mbtouc_aux): Move out to separate file.
39971         (u16_mbtouc): Use ucs4_t, uint16_t types.
39972         * lib/unistr/utf16-ucs4.c: New file.
39973
39974         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39975         (Depends-on): Add unitypes.
39976         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39977         (u8_uctomb_aux): Move out to separate file.
39978         (u8_uctomb): Use ucs4_t, uint8_t types.
39979         * lib/unistr/ucs4-utf8.c: New file.
39980
39981         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39982         (Depends-on): Add unitypes.
39983         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39984         (u16_uctomb_aux): Move out to separate file.
39985         (u16_uctomb): Use ucs4_t, uint16_t types.
39986         * lib/unistr/ucs4-utf16.c: New file.
39987
39988 2006-12-25  Bruno Haible  <bruno@clisp.org>
39989
39990         * modules/unitypes: New file.
39991         * lib/unitypes.h: New file.
39992         * MODULES.html.sh (func_all_modules): New section "Unicode string
39993         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39994         this section. Add unitypes.
39995
39996 2007-01-08  Bruno Haible  <bruno@clisp.org>
39997
39998         Avoid variable names that conflict with those from libtool.
39999         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40000         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40001         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40002         library_names_spec to acl_library_names_spec, hardcode_* to
40003         acl_hardcode_*.
40004         Reported by Ralf Wildenhues.
40005
40006 2007-01-08  Bruno Haible  <bruno@clisp.org>
40007
40008         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40009         definition.
40010         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40011         definition.
40012         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40013         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40014         definition.
40015         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40016         definition.
40017         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40018         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40019         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40020         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40021         definition.
40022         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40023         definition.
40024         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40025         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40026         GC_USE_<algorithm>.
40027         * lib/gc-libgcrypt.c: Likewise.
40028         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40029         * modules/gc-arctwo (configure.ac): Likewise.
40030         * modules/gc-des (configure.ac): Likewise.
40031         * modules/gc-hmac-md5 (configure.ac): Likewise.
40032         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40033         * modules/gc-md2 (configure.ac): Likewise.
40034         * modules/gc-md4 (configure.ac): Likewise.
40035         * modules/gc-md5 (configure.ac): Likewise.
40036         * modules/gc-random (configure.ac): Likewise.
40037         * modules/gc-rijndael (configure.ac): Likewise.
40038         * modules/gc-sha1 (configure.ac): Likewise.
40039
40040 2007-01-08  Bruno Haible  <bruno@clisp.org>
40041
40042         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40043         macro definition.
40044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40045         definition.
40046         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40047         definition.
40048         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40049         * modules/fcntl-safer (configure.ac): Likewise.
40050         * modules/fopen-safer (configure.ac): Likewise.
40051         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40052         GNULIB_FWRITEERROR macro definition.
40053
40054 2007-01-08  Bruno Haible  <bruno@clisp.org>
40055
40056         * m4/gnulib-common.m4: New file.
40057         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40058         (func_get_filelist): Add m4/gnulib-common.m4.
40059
40060 2007-01-08  Bruno Haible  <bruno@clisp.org>
40061
40062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40063         command.
40064
40065 2007-01-08  Jim Meyering  <jim@meyering.net>
40066
40067         Use a more robust test for a "can't happen" condition.
40068         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40069         narrowed the st_size value.  Presuming the "can't happen" condition
40070         is true, that narrowing could conceivably convert an invalid st_size
40071         value into a valid one.  Instead, use a change based on Matthew
40072         Woehlke's original patch.
40073
40074         Slight readability improvement: use an assert-like macro
40075         in place of literal "abort ()" uses.
40076         * lib/fts.c (fts_assert): Define.
40077         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40078         Use this macro instead of a bare 'abort'.
40079
40080 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40081
40082         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40083         simply work around them.
40084         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40085         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40086         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40087         declaring.
40088         Don't bother to define as macros, since the standard doesn't require it.
40089         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40090         longer worry about IRIX 5.3.
40091         (HAVE_WCTYPE_CTMP_BUG): Remove.
40092
40093 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40094
40095         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40096         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40097         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40098         Problems reported by Georg Schwarz for IRIX 5.3.
40099
40100         * gnulib-tool (autoconf_minversion): Take the maximum version number
40101         found, not the minimum.  Problem reported by James Youngman.
40102
40103 2007-01-03  Karl Berry  <karl@gnu.org>
40104
40105         * doc/error.texi: new file, explaining interaction with progname.
40106         * doc/gnulib.texi: include it.  Update copyright.
40107
40108 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40109
40110         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40111         AC_CANONICAL_HOST, to improve autobuild outputs.
40112
40113 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40114             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40115
40116         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40117         sockets, server sockets, and other file descriptors.  Count errors
40118         to compute the return value.  Reorder the code a bit to be easier
40119         to follow.  Don't set event bits that were not requested (except
40120         POLLERR and POLLHUP).
40121
40122 2007-01-01  Bruno Haible  <bruno@clisp.org>
40123
40124         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40125
40126 2007-01-03  Jim Meyering  <jim@meyering.net>
40127
40128         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40129
40130 2007-01-02  Bruno Haible  <bruno@clisp.org>
40131
40132         * modules/settime (Include): Require timespec.h.
40133         * modules/nanosleep (Include): Likewise.
40134
40135 2007-01-01  Bruno Haible  <bruno@clisp.org>
40136
40137         * gnulib-tool (func_emit_copyright_notice): Bump year.
40138         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40139
40140 2007-01-01  Bruno Haible  <bruno@clisp.org>
40141
40142         Improve support for OpenBSD.
40143         * build-aux/config.rpath (libname_spec): Export.
40144         (library_names_spec): New variable. Export.
40145         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40146         library_names_spec from the config.rpath output. Locate shared library
40147         through the name pattern in library_names_spec.
40148
40149 2007-01-01  Eric Blake  <ebb9@byu.net>
40150
40151         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40152
40153 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40154
40155         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40156         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40157         assume the C locale, and avoid an "eval" that could cause trouble.
40158         Problem with SORT reported by Bob Proulx.
40159
40160         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40161         Define.  Trivial patch from Henning Nielsen Lund, originally
40162         sent to bug-grep@gnu.org today.
40163
40164 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40165
40166         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40167         struct stat.  Problem reported by Henning Nielsen Lund.
40168         * lib/acl.c: Include acl.h first, to check interface.  Don't
40169         bother to include sys/types.h and sys/stat.h again.
40170
40171 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40172
40173         Import the following change from libc; problem reported by
40174         Sven Verdoolaege.
40175
40176         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40177
40178         [BZ #1373]
40179         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40180
40181 2006-12-28  Jim Meyering  <jim@meyering.net>
40182
40183         * build-aux/announce-gen: Do not assume that the package
40184         builds any of tar.gz, tar.bz2, and .xdelta files.
40185         Suggestion from Simon Josefsson.
40186
40187 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40188
40189         * modules/announce-gen: New file.
40190
40191 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40192
40193         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40194         handles its gotchas now.
40195         * lib/mbswidth.c: Likewise.
40196         * lib/wcwidth.h: Likewise.
40197         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40198         and iswcntrl; the wctype module does this stuff now.
40199         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40201         * modules/mbchar (Depends-on): Add wctype.
40202         * modules/mbswidth (Depends-on): Likewise.
40203         * modules/wcwidth (Depends-on): Likewise.
40204
40205 2006-12-27  Eric Blake  <ebb9@byu.net>
40206
40207         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40208         module uses more than what <wctype.h> is required to provide.
40209
40210 2006-12-26  Eric Blake  <ebb9@byu.net>
40211
40212         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40213
40214 2006-12-26  Eric Blake  <ebb9@byu.net>
40215
40216         * modules/absolute-header: New module.
40217         * modules/fcntl (Depends-on): Depend on it.
40218         * modules/inttypes (Depends-on): Likewise.
40219         * modules/stdint (Depends-on): Likewise.
40220         * modules/sys_stat (Depends-on): Likewise.
40221         * modules/wctype (Depends-on): Likewise.
40222         * MODULES.html.sh (Support for building libraries and
40223         executables): Document it.
40224
40225 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40226
40227         * gnulib-tool (SED): Remove, undoing previous change.
40228         The problem was that it broke coreutils on Solaris, because
40229         "sed --posix" leaked into a makefile.
40230         (sed): New alias, if 'alias' and GNU sed.
40231
40232 2006-12-24  Jim Meyering  <jim@meyering.net>
40233
40234         Work around an fchownat bug in glibc-2.4:
40235         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40236         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40237         in spite of the -P option.
40238         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40239         New macros.
40240         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40241         * modules/openat (Files): Add lib/fchownat.c.
40242         * lib/openat.c (fchownat): Don't define here.  Move to...
40243         * lib/fchownat.c: ...this new file.
40244
40245 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40246
40247         Fix bug reported by Bruno Haible in
40248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40249         where quotearg.c didn't compile on Mac OS X 10.2 because it
40250         lacks <wchar.h> and wint_t.
40251         * lib/wctype_.h (__wctype_wint_t): New type.
40252         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40253         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40254         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40255         Arg is now of type __wctype_wint_t, not wint_t.
40256         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40257         substitute HAVE_WINT_T.
40258         * modules/wctype (Files): Add m4/wint_t.m4.
40259         (wctype.h): Substitute HAVE_WINT_T.
40260
40261 2006-12-23  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40264
40265 2006-12-23  Bruno Haible  <bruno@clisp.org>
40266
40267         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40268         S_ISLNK.
40269         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40270         mingw.
40271
40272 2006-12-22  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/copy-file.c: Include acl.h.
40275         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40276         Close the file descriptors only after being done with copy_acl.
40277         * modules/copy-file (Depends-on): Add acl.
40278
40279 2006-12-22  Bruno Haible  <bruno@clisp.org>
40280
40281         * gnulib-tool (SED): New variable.
40282         Use $SED instead of sed everywhere.
40283
40284 2006-12-22  Bruno Haible  <bruno@clisp.org>
40285
40286         * modules/no-c++: New file.
40287         * m4/no-c++.m4: New file.
40288         * MODULES.html.sh (Support for building libraries and executables):
40289         Add no-c++.
40290
40291 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40292
40293         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40294         Include <limits.h>, and use its INT_MAX to rewrite the
40295         j loop so that it does not overflow 'int'.  Problem reported by
40296         Ralf Wildenhues in
40297         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40298         Play it safe by shifting left by 1 rather than multiplying by 2,
40299         as GCC is less likely to optimize this away when the value
40300         is signed (when it assumes overflow leads to undefined behavior).
40301         Also, don't assume time_t uses two's complement.
40302
40303 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40304
40305         * MODULES.html.sh: New module wctype.
40306         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40307         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40308         <wctype.h>, since the new wctype module should fix this.
40309         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40310         the wctype module should arrange for it.
40311         * lib/regex_internal.h: Likewise.
40312         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40313         since the wctype module should handle this now.
40314         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40315         * modules/fnmatch (Depends-on): Add wctype.
40316         * modules/quotearg (Depends-on): Likewise.
40317         * modules/regex (Depends-on): Likewise.
40318
40319 2006-12-19  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40322         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40323
40324 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40325
40326         * modules/savewd (Depends-on): Fix dependency on fcntl.
40327
40328 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40329
40330         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40331         conforms to C99, rather than relying on the user's environment
40332         setting of STDINT_H.
40333
40334 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40335         and Eric Blake  <ebb9@byu.net>
40336
40337         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40338         This is more consistent with the other defines here.
40339         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40340         Port to z/OS.  Problem reported by Paul Gilmartin.
40341         Change local vars to use gl_ prefix rather than ac_.
40342         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40343         with other defines.
40344         * modules/double-slash-root: New module.
40345         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40346         (Depends-on): Add double-slash-root.
40347         * MODULES.html.sh (File system functions): Mention new module.
40348
40349 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40350
40351         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40352         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40353         This is for the benefit of gzip, which doesn't do i18n.
40354
40355 2006-12-12  Jim Meyering  <jim@meyering.net>
40356
40357         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40358         Reported by Andreas Schwab <schwab@suse.de>.
40359
40360 2006-12-12  Bruno Haible  <bruno@clisp.org>
40361
40362         Merge these changes.
40363         2006-09-05  Bruno Haible  <bruno@clisp.org>
40364         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40365         iconv_alloc succeeded.
40366         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40367         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40368         test for " && dest " at the end - dest is always != NULL there. Call
40369         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40370         with 2xNULL arguments, also to flush the state storage. Handle the
40371         IRIX iconv behaviour. Realloc the final result, to throw away unused
40372         memory.
40373
40374 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40375
40376         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40377         and fchmodat unconditionally, since glibc 2.4 has them.
40378         Problem reported by Arkadiusz Miskiewicz.
40379
40380 2006-12-10  Bruno Haible  <bruno@clisp.org>
40381
40382         * gnulib-tool (func_import): Show the include files only for those
40383         modules that are copied and specified.
40384         Reported by Karl Berry.
40385
40386 2006-12-08  Jim Meyering  <jim@meyering.net>
40387
40388         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40389         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40390
40391         * build-aux/announce-gen: Add two new options, both optional:
40392         --bootstrap-tools=TOOL_LIST
40393               a comma-separated list of tools, e.g.,
40394               autoconf,automake,bison,gnulib
40395         --gnulib-snapshot-date=DATE
40396               if gnulib is in the bootstrap tool list,
40397               then report this as the snapshot date.
40398               If not specified, use the current date/time.
40399               If you specify a date here, be sure it's UTC.
40400
40401 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40402
40403         * tests/test-argp-2.sh: Fix test to match actual output.
40404         (func_compare): Fix sed script to be portable.
40405
40406 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40407
40408         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40409         workaround for this case.  It is not autoconfigured now; offhand
40410         it's hard to see how to autoconfigure it.
40411
40412 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40413
40414         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40415         a directory that is about to be chowned.  Such a directory's
40416         initial file permissions should permit the owner only and this
40417         should not be changed until after the chown, since the group and
40418         other bits would be incorrect if they granted permission before
40419         the chown.
40420
40421         Fix porting problem for iswctype reported by Georg Schwarz in:
40422         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40423         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40424         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40425         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40426         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40427
40428 2006-12-03  Jim Meyering  <jim@meyering.net>
40429
40430         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40431         p->fts_statp may not yet be defined.
40432         (fts_read): Instead, set it in the caller, once p->fts_statp is
40433         sure to be defined, and corresponds to a top-level directory.
40434         This bug made du -x fail.  Here's the coreutils test case:
40435         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40436         Reported by Mike Frysinger.
40437
40438 2006-12-01  Jim Meyering  <jim@meyering.net>
40439
40440         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40441         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40442         Reported by Simon Josefsson.
40443
40444 2006-11-30  Jim Meyering  <jim@meyering.net>
40445
40446         * m4/warning.m4: Use the all-permissive copyright notice
40447         recommended by RMS (rather than LGPL).
40448         * m4/vararrays.m4: Likewise.
40449         * m4/flexmember.m4: Likewise.
40450
40451 2006-11-29  Bruno Haible  <bruno@clisp.org>
40452
40453         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40454         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40455         using +=.
40456         Reported by Simon Josefsson <simon@josefsson.org>.
40457
40458 2006-11-28  James Youngman <jay@gnu.org>
40459
40460         * README: Advise users that they might find the bug-gnulib@gnu.org
40461         and autotools-announce@gnu.org mailing lists useful.
40462
40463 2006-11-28  Bruno Haible  <bruno@clisp.org>
40464
40465         * m4/ptrdiff_max.m4: Remove file.
40466
40467 2006-11-21  Bruno Haible  <bruno@clisp.org>
40468
40469         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40470         _AC_COMPUTE_INT.
40471         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40472         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40473         _AC_COMPUTE_INT.
40474         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40475         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40476         _AC_COMPUTE_INT.
40477         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40478
40479 2006-11-28  Jim Meyering  <jim@meyering.net>
40480
40481         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40482         warning from "gcc -Wshadow" about shadowing the builtin.
40483
40484 2006-11-27  Bruno Haible  <bruno@clisp.org>
40485
40486         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40487         _AC_COMPUTE_INT.
40488         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40489
40490 2006-11-27  Bruno Haible  <bruno@clisp.org>
40491             Paul Eggert  <eggert@cs.ucla.edu>
40492
40493         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40494
40495 2006-11-26  Bruno Haible  <bruno@clisp.org>
40496
40497         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40498         noinst_LTLIBRARIES.
40499
40500 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40501             Bruno Haible  <bruno@clisp.org>
40502
40503         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40504         if compiling with "gcc -ansi".
40505
40506 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40507
40508         Fix some incompatibilities with gcc -ansi -pedantic.
40509         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40510         if compiling pedantically with GCC, unless it's C99 or later.
40511         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40512         it mishandles gcc -ansi -pedantic as well.
40513         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40514         if gcc -pedantic.
40515         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40516         initializers for struct if -pedantic, unless it's C99 or later.
40517
40518 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40519
40520         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40521         Don't close an fd more than once. Identical atimes indicate
40522         success, not failure.
40523
40524 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40525
40526         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40527
40528 2006-11-23  Jim Meyering  <jim@meyering.net>
40529
40530         * build-aux/announce-gen: New file.  From coreutils.
40531
40532 2006-11-22  Jim Meyering  <jim@meyering.net>
40533
40534         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40535         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40536         (fts_read): Use a temporary to narrow the overused st_size member
40537         before using it in a switch statement.  Reported by Matthew Woehlke.
40538
40539         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40540         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40541
40542 2006-11-20  Bruno Haible  <bruno@clisp.org>
40543
40544         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40545         changequote instead of pairs of brackets.
40546         Reported by Andreas Schwab <schwab@suse.de>.
40547
40548 2006-11-21  Jim Meyering  <jim@meyering.net>
40549
40550         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40551         so as to remain compatible with older compilers.
40552         Patch from Michael Deutschmann.
40553
40554 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40555
40556         * MODULES.html.sh (File system functions): Add openat.
40557
40558         * lib/openat.h (rpl_fstatat): New macro, if
40559         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40560         (fstatat): Define to rpl_fstatat under the same conditions,
40561         unless COMPILING_FSTATAT.
40562         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40563         seems to have the bug.
40564         * lib/fstatat.c: New file.
40565         * modules/openat (Files): Add it.
40566
40567 2006-11-20  Bruno Haible  <bruno@clisp.org>
40568
40569         * Makefile: New file.
40570
40571 2006-11-20  Jim Meyering  <jim@meyering.net>
40572
40573         The beginnings of syntax-related checks for gnulib.
40574         * lib/Makefile: New file.
40575         * lib/t-idcache: New script.  Ensure that the two halves of
40576         idcache.c stay in sync.
40577
40578         * lib/idcache.c: Adjust comments in user- and group- portions to
40579         be more accurate, and to be consistent with one another.
40580
40581 2006-11-20  Jim Meyering  <jim@meyering.net>
40582
40583         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40584         continue using the flexible array member (thus, this module performs
40585         half as many malloc calls), with the addition that...
40586         (getgroup, getuser): Consistently record a non-match via an empty
40587         "name" string, and map an empty string match to a NULL return value.
40588         * modules/idcache (Depends-on): Re-add flexmember.
40589
40590         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40591         (getuidbyname, getgroup, getgidbyname): Likewise.
40592
40593         Use cleaner syntax: NULL rather than 0.
40594         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40595
40596 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40597
40598         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40599         It mishandled the case where the group was missing.
40600         Problem reported by Greg Schafer.
40601         * modules/idcache: Likewise.
40602
40603 2006-11-18  Jim Meyering  <jim@meyering.net>
40604
40605         * check-module (%exempt_header): Add exception for some
40606         conditionally-included headers.
40607
40608         * modules/i-ring (Depends-on): Add verify.
40609         (License): Change to LGPL.
40610
40611 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40612
40613         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40614         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40615         and inttostr.h.  Use snprintf rather than uinttostr, so that
40616         LGPLed code doesn't depend on GPLed.
40617
40618 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40619
40620         * modules/inline (License): Change from GPL to LGPL.
40621
40622 2006-11-17  Jim Meyering  <jim@meyering.net>
40623
40624         * modules/d-type (License): Switch to LGPL.
40625
40626 2006-11-15  Bruno Haible  <bruno@clisp.org>
40627
40628         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40629
40630 2006-11-15  Eric Blake  <ebb9@byu.net>
40631
40632         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40633         the module dependency.
40634
40635 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40636             Bruno Haible  <bruno@clisp.org>
40637
40638         * gnulib-tool (func_create_testdir): Add license consistency check.
40639
40640 2006-11-15  Eric Blake  <ebb9@byu.net>
40641
40642         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40643         random "(cached)" in configure output.
40644
40645 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40646
40647         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40648         test for conforming inttypes.h is both announced and cached.
40649
40650         * MODULES.html.sh (seen_modules, seen_files): New variables.
40651         (func_module): Rewrite to use a few less gnulib-tool and sed
40652         invocations.  Avoid a couple of quadratic algorithms for ...
40653         (missed_modules, missed_files): ... these, with ...
40654         (func_append, func_tmpdir): ... these new functions, from
40655         gnulib-tool.  Analogously, install traps for cleanup.
40656
40657         * tests/test-gc.c (main): Remove unused variables.
40658         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40659
40660 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40661
40662         * modules/inttostr (License): Change to LGPL.
40663
40664 2006-11-14  Eric Blake  <ebb9@byu.net>
40665
40666         * modules/tempname (License): Change to LGPL.
40667
40668 2006-11-14  Eric Blake  <ebb9@byu.net>
40669
40670         * doc/functions.texi (Function Portability): *printf functions on
40671         Cygwin now understand all POSIX size specifiers.
40672
40673 2006-11-14  Bruno Haible  <bruno@clisp.org>
40674
40675         * modules/c-ctype (License): Change to LGPL.
40676
40677 2006-11-12  Bruno Haible  <bruno@clisp.org>
40678
40679         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40680         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40681         for GNOME libraries, for which the include files are installed in
40682         subdirectories of $prefix/include.
40683
40684 2006-11-12  Bruno Haible  <bruno@clisp.org>
40685
40686         * m4/lib-link.m4: Require at least autoconf-2.54.
40687         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40688         name to underscores for the --with option.
40689
40690 2006-11-13  Bruno Haible  <bruno@clisp.org>
40691
40692         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40693         the tests directory.
40694         Reported by Ralf Wildenhues.
40695
40696 2006-11-13  Bruno Haible  <bruno@clisp.org>
40697
40698         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40699         (func_emit_initmacro_end): Undo the override here.
40700         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40701         Works around the famous automake error in coreutils.
40702
40703 2006-11-13  Eric Blake  <ebb9@byu.net>
40704
40705         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40706         element, not its node.
40707
40708 2006-11-12  Bruno Haible  <bruno@clisp.org>
40709
40710         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40711         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40712
40713 2006-11-12  Bruno Haible  <bruno@clisp.org>
40714
40715         * gnulib-tool: New option --local-symlink.
40716         (func_usage): Document it.
40717         (lsymbolic): New variable.
40718         (func_import, func_create_testdir): If --symlink was not specified,
40719         test whether --local-symlink was specified and the file comes from
40720         the local_gnulib_dir.
40721
40722 2006-11-12  Bruno Haible  <bruno@clisp.org>
40723
40724         * gnulib-tool (func_ln): New function.
40725         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40726
40727 2006-11-12  Bruno Haible  <bruno@clisp.org>
40728
40729         Finish support for source files in subdirectories.
40730         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40731         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40732         AUTOMAKE_OPTIONS.
40733         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40734
40735 2006-11-12  Bruno Haible  <bruno@clisp.org>
40736
40737         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40738         EXTRA_lib_SOURCES augmentation.
40739         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40740
40741 2006-11-12  Jim Meyering  <jim@meyering.net>
40742
40743         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40744         file descriptors.  This also averts a failure on systems with
40745         native openat support when a traversed directory lacks "x" access.
40746         * lib/fts_.h: Include "i-ring.h"
40747         (struct FTS) [fts_fd_ring]: New member.
40748         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40749         (FCHDIR): Add parentheses.
40750         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40751         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40752         When descending, rather than simply closing the previous
40753         fts_cwd_fd value, push that file descriptor onto the ring.
40754         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40755         (fts_open): Initialize the new fd_ring member.
40756         (fts_close): Clear the ring.
40757         (fts_safe_changedir): When possible, use our new fd_ring to skip
40758         the diropen and fstat and dev/ino comparison that would normally
40759         accompany a virtual `chdir ("..")'.
40760
40761         * modules/fts (Depends-on): Add i-ring.
40762         * modules/i-ring: New module.
40763         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40764         * m4/i-ring.m4: New file.
40765
40766 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40767
40768         * gnulib-tool (func_create_testdir): Fix replacement of
40769         `build-aux' in configure.ac.  Run autotools in gltests
40770         subdirectory.
40771         (func_create_testdir, func_create_megatestdir, test): There is
40772         no need for '--force' in most autotool invocations in a new
40773         tree.  Actually fail the whole test if any of the tools, or the
40774         configure or make stages fail.
40775
40776         Sync from Automake.
40777         * build-aux/gnupload: Revert last change.  Add pointer to upload
40778         instructions of the GNU Maintenance Instructions.
40779         Suggestion by Karl Berry.
40780
40781 2006-11-10  Jim Meyering  <jim@meyering.net>
40782
40783         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40784
40785 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40786
40787         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40788         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40789         (bind_textdomain_codeset) [! ENABLE_NLS]:
40790         Evaluate all the arguments.  That way, callers get compatible behavior
40791         if the arguments have side effects.  Also, it avoids some GCC
40792         diagnostics in some cases; Joel E. Denny reported problems when Bison
40793         was configured with --enable-gcc-warnigs.
40794
40795 2006-11-10  Jim Meyering  <jim@meyering.net>
40796
40797         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40798         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40799         account.
40800
40801 2006-11-10  Jim Meyering  <jim@meyering.net>
40802
40803         * modules/inline: New file/module.
40804         * modules/xalloc (Files): Remove m4/inline.m4.
40805         (Depends-on): Add inline, instead.
40806         * modules/oset: Likewise.
40807         * modules/list: Likewise.
40808
40809 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40810
40811         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40812         Problem reported by Matthew Woehlke.
40813
40814 2006-11-09  Bruno Haible  <bruno@clisp.org>
40815
40816         * lib/tempname.c (gen_tempname): Remove variant that invokes
40817         __gen_tempname.
40818         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40819         __gen_tempname.
40820
40821 2006-11-08  Bruno Haible  <bruno@clisp.org>
40822
40823         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40824         to 'yes' instead of 'cross-compiling'.
40825
40826 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40827
40828         * lib/quotearg.h (quotearg_free): New decl.
40829         * lib/quotearg.c (quotearg_free): New function.
40830         (slot0, nslots, slotvec0, slotvec):
40831         Now file-scope so that quotearg_free can get at them.
40832
40833 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40834
40835         Sync from Automake.
40836         * build-aux/gnupload: Add missing 'gnu' to example URL.
40837         Report by Karl Berry.
40838
40839 2006-11-08  Bruno Haible  <bruno@clisp.org>
40840
40841         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40842         Suggested by Paul Eggert.
40843
40844 2006-11-08  Jim Meyering  <jim@meyering.net>
40845
40846         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40847         It's already included if !_LIBC.
40848         (fts_safe_changedir): Add a comment.
40849
40850 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40851
40852         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40853         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40854         Matthew Woehlke.
40855
40856         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40857         definitions up, to avoid colliding with change below.
40858         (static_inline) [HAVE_INLINE]: New macro.
40859         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40860         Provide extern decls when !HAVE_INLINE.  Do not define unless
40861         static_inline is defined, either by us or by xmalloc.c.  Use
40862         static_inline rather than static inline.
40863         (XCALLOC): Optimize sizeof(T) = 1 case.
40864         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40865
40866 2006-11-07  Bruno Haible  <bruno@clisp.org>
40867
40868         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40869         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40870         AC_C_INLINE.
40871         * modules/xalloc (Files): Add m4/inline.m4.
40872
40873 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40874
40875         * README: Fix typo.
40876         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40877         (Miscellanous Notes): ...from this.
40878
40879 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40880
40881         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40882         Mention that offsetof should be used instead of sizeof.
40883         From Bruno Haible.
40884
40885 2006-11-07  Bruno Haible  <bruno@clisp.org>
40886
40887         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40888
40889 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40890
40891         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40892         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40893         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40894         (gl_tree_add_before, gl_tree_add_after):
40895         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40896         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40897         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40898         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40899         (gl_linked_add_after, gl_linked_add_at): Likewise.
40900         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40901         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40902         (gl_tree_add_before, gl_tree_add_after): Likewise.
40903         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40904         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40905         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40906
40907 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40908
40909         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40910
40911 2006-11-06  Bruno Haible  <bruno@clisp.org>
40912
40913         * m4/inline.m4: New file.
40914         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40915         * modules/list (Files): Add m4/inline.m4.
40916         * modules/oset (Files): Likewise.
40917
40918 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40919
40920         * lib/idcache.c: Include <stddef.h>, for offsetof.
40921         (struct userid.name): Change from char * to a flexible array member.
40922         All uses changed.
40923         * modules/idcache (Depends-on): Add flexmember.
40924
40925         * MODULES.html.sh (Core language properties): New module flexmember.
40926         * modules/flexmember, m4/flexmember.m4: New files.
40927
40928         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40929         inline functions that are identical with the old xnmalloc_inline,
40930         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40931         that we can avoid some unnecessary integer multiplications and
40932         divisions in the common case where the element size is known at
40933         compile time.
40934         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40935         needed.
40936         (xnboundedmalloc): Remove.
40937         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40938         arguments, for consistency with rest of this header.
40939         (xcharalloc): Rewrite using XNMALLOC.
40940         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40941         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40942         versions have been moved to lib/xalloc.h and renamed to be the
40943         non-*_inline versions.
40944         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40945         and xnrealloc functions, since those functions are now inline and
40946         now call us.
40947         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40948         renaming described above.
40949         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40950         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40951         captures the dependency in AC_C_INLINE.
40952
40953         New module canonicalize-lgpl, proposed by Charles Wilson in
40954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40955         with a few small changes afterwards.
40956         * MODULES.html.sh (File system functions): New module
40957         canonicalize-lgpl.
40958         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40959         and canonicalize_file_name.
40960         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40961         * modules/canonicalize-lgpl: New files.
40962
40963 2006-11-05  Bruno Haible  <bruno@clisp.org>
40964
40965         * gnulib-tool (func_import, func_create_testdir): Create directories
40966         also for files in subdirectories of lib/.
40967
40968 2006-11-05  Bruno Haible  <bruno@clisp.org>
40969
40970         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40971         ANSI C compliant.
40972
40973 2006-11-03  Bruno Haible  <bruno@clisp.org>
40974
40975         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40976         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40977         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40978         (xnboundedmalloc): New inline function.
40979         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40980         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40981         xmalloc.
40982         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40983         xmalloc.
40984         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40985         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40986         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40987         xmalloc.
40988         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40989         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40990         xmalloc.
40991         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40992         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40993         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40994         xmalloc.
40995         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40996         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40997         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40998         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40999         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41000         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41001         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41002
41003 2006-11-03  Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/c-ctype.h [C++]: Define functions without name mangling.
41006         * lib/fwriteerror.h [C++]: Likewise.
41007         * lib/gcd.h [C++]: Likewise.
41008         * lib/linebreak.h [C++]: Likewise.
41009
41010 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41011
41012         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41013         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41014         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41015         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41016         Check for functions and headers just once.
41017         Check for declaration of canonicalize_file_name.
41018         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41019
41020 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41021
41022         * gnulib-tool (func_import): Fix typo in actioncmd.
41023
41024 2006-11-02  Bruno Haible  <bruno@clisp.org>
41025
41026         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41027         newline sequence in the Makefile.am snippet as a space, like "make"
41028         does.
41029         Reported by Roger Persson <perrog@gmail.com>.
41030
41031 2006-11-01  Bruno Haible  <bruno@clisp.org>
41032
41033         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41034         already declared in <string.h>.
41035         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41036
41037 2006-11-01  Bruno Haible  <bruno@clisp.org>
41038
41039         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41040         * lib/strcase.h: Include <string.h>.
41041         (strcasecmp): Define to rpl_strcasecmp here.
41042
41043 2006-11-01  Bruno Haible  <bruno@clisp.org>
41044
41045         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41046
41047 2006-11-01  Eric Blake  <ebb9@byu.net>
41048
41049         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41050
41051         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41052
41053 2006-10-29  Bruno Haible  <bruno@clisp.org>
41054
41055         Make it compile in C++ mode.
41056         * lib/full-write.c (full_rw): Add a cast.
41057
41058 2006-11-01  Bruno Haible  <bruno@clisp.org>
41059
41060         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41061         be POSIX compliant.
41062         Reported by Roger Persson <perrog@gmail.com>.
41063
41064 2006-11-01  Eric Blake  <ebb9@byu.net>
41065
41066         * lib/getopt_.h: Fix comments.
41067
41068 2006-10-31  Eric Blake  <ebb9@byu.net>
41069
41070         * modules/tmpdir (Depends-on): Add sys_stat.
41071         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41072         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41073         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41074         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41075         tempname.
41076
41077 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41078
41079         Avoid some C++ diagnostics reported by Bruno Haible.
41080         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41081         xmalloc.
41082         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41083         (struct slotvec): Move to top level.
41084         (quotearg_n_options): Rewrite to avoid xmalloc.
41085         * lib/xalloc.h (xcharalloc): New function.
41086         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41087         [defined __cplusplus]: Add function template that provides result
41088         type propagation.  This part of the change is from Bruno Haible.
41089
41090 2006-10-29  Bruno Haible  <bruno@clisp.org>
41091
41092         Make it compile in C++ mode.
41093         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41094         * lib/strnlen1.c (strnlen1): Cast memchr result.
41095         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41096         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41097         (create_temp_dir): Rename local variable 'template'.
41098         (compile_csharp_using_sscli): Add cast.
41099         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41100         * lib/findprog.c (find_in_path): Likewise.
41101         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41102         * lib/wait-process.c (register_slave_subprocess): Likewise.
41103
41104 2006-10-22  Bruno Haible  <bruno@clisp.org>
41105
41106         * modules/tsearch: New file.
41107         * lib/tsearch.h: New file.
41108         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41109         * m4/tsearch.m4: New file.
41110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41111
41112 2006-10-29  Eric Blake  <ebb9@byu.net>
41113
41114         * lib/arcfour.c: Assume config.h.
41115         * lib/arctwo.c: Likewise.
41116         * lib/base64.c: Likewise.
41117         * lib/check-version.c: Likewise.
41118         * lib/crc.c: Likewise.
41119         * lib/des.c: Likewise.
41120         * lib/gc-gnulib.c: Likewise.
41121         * lib/gc-libgcrypt.c: Likewise.
41122         * lib/gc-pbkdf2-sha1.c: Likewise.
41123         * lib/getaddrinfo.c: Likewise.
41124         * lib/getdelim.c: Likewise.
41125         * lib/getline.c: Likewise.
41126         * lib/hmac-md5.c: Likewise.
41127         * lib/hmac-sha1.c: Likewise.
41128         * lib/iconvme.c: Likewise.
41129         * lib/md2.c: Likewise.
41130         * lib/md4.c: Likewise.
41131         * lib/memxor.c: Likewise.
41132         * lib/read-file.c: Likewise.
41133         * lib/readline.c: Likewise.
41134         * lib/rijndael-alg-fst.c: Likewise.
41135         * lib/rijndael-api-fst.c: Likewise.
41136         * lib/xgetdomainname.c: Likewise.
41137
41138 2006-10-28  Eric Blake  <ebb9@byu.net>
41139
41140         * lib/xstrndup.c: Assume config.h.
41141
41142 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41143
41144         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41145         stat-macros.h is now for our own macros, whereas stat_h is for
41146         macros in the <sys/stat.h> name space.
41147         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41148         (STAT_MACROS_H): Remove.
41149         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41150         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41151         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41152         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41153         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41154         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41155         Move these macros to ...
41156         * lib/stat_.h: here.  Don't include stat-macros.h.
41157         * lib/canonicalize.c: Don't include stat-macros.h.
41158         * lib/chown.c: Likewise.
41159         * lib/euidaccess.c: Likewise.
41160         * lib/file-type.c: Likewise.
41161         * lib/filemode.c: Likewise.
41162         * lib/glob.c: Likewise.
41163         * lib/isapipe.c: Likewise.
41164         * lib/lchown.c: Likewise.
41165         * lib/lstat.c: Likewise.
41166         * lib/mkdir-p.c: Likewise.
41167         * lib/rmdir.c: Likewise.
41168         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41169         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41170         unless mkdir isn't declared, to speed up 'configure'.
41171         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41172         would define all the S_* symbols.
41173         * modules/canonicalize (Depends-on):
41174         Depend on sys_stat, not stat-macros.
41175         * modules/chown: Likewise.
41176         * modules/euidaccess: Likewise.
41177         * modules/filemode: Likewise.
41178         * modules/file-type: Likewise.
41179         * modules/glob: Likewise.
41180         * modules/isapipe: Likewise.
41181         * modules/lchown: Likewise.
41182         * modules/lstat: Likewise.
41183         * modules/mkancesdirs: Likewise.
41184         * modules/rmdir: Likewise.
41185         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41186         * modules/modechange: Likewise.
41187         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41188         (configure.ac): Remove gl_STAT_MACROS.
41189         * modules/sys_stat (Depends-on): Remove stat-macros.
41190
41191 2006-10-27  Bruno Haible  <bruno@clisp.org>
41192
41193         * m4/signed.m4: Remove file.
41194         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41195         invocation.
41196         * modules/vasnprintf (Files): Remove m4/signed.m4.
41197
41198 2006-10-27  Bruno Haible  <bruno@clisp.org>
41199
41200         Update to GNU gettext 0.16.
41201         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41202         m4/inttypes-h.m4, m4/signed.m4.
41203         * m4/gettext.m4: Update to GNU gettext 0.16.
41204         * m4/intl.m4: New file, from GNU gettext.
41205         * m4/intldir.m4: New file, from GNU gettext.
41206         * config/srclist.txt: Update
41207
41208 2006-10-27  Eric Blake  <ebb9@byu.net>
41209
41210         * MODULES.html.sh: Document tempname.
41211         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41212         dependencies.
41213         (Files): Move lib/tempname.c...
41214         * modules/tempname: ...to this new module.
41215         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41216         (gl_PREREQ_TEMPNAME): Move...
41217         * m4/tempname.m4: ...to this new file.
41218         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41219         * modules/sys_stat (Depends-on): Add stat-macros.
41220         * lib/stat_.h (includes): Pick up stat macros.
41221         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41222         if stat macros are broken.
41223         * lib/tempname.c (includes): No need to include "stat-macros.h".
41224         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41225         (direxists, __path_search) [!_LIBC]: Don't compile these in
41226         gnulib; the tmpdir module covers that.
41227         * lib/tempname.h: New file.
41228
41229 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41230
41231         * COPYING: Explain how gnulib-tool converts licence headers.
41232         Almost all wording by Eric Blake.
41233
41234 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41235
41236         * lib/mbchar.h (is_basic_table): Make read-only.
41237         * lib/mbchar.c (is_basic_table): Likewise.
41238         Reported by John Darrington.
41239
41240 2006-10-25  Bruno Haible  <bruno@clisp.org>
41241
41242         * lib/progname.h (set_program_name): Undefine before defining.
41243
41244 2006-10-25  Bruno Haible  <bruno@clisp.org>
41245
41246         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41247         false for non-gcc C++ compilers.
41248         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41249
41250 2006-10-24  Bruno Haible  <bruno@clisp.org>
41251
41252         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41253         iconv implementations like Irix iconv.
41254
41255 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41256
41257         * modules/vararrays: New file.
41258         * m4/vararrays.m4: New file, taken from diffutils.
41259         * MODULES.html.sh: New module vararrays.
41260
41261 2006-10-24  Karl Berry  <karl@gnu.org>
41262
41263         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41264         Don't call GNU Unix.
41265
41266 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41267
41268         * users.txt: Add Libtool.
41269
41270         Sync from Libtool:
41271
41272         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41273
41274         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41275         to gnulib's policy of including config.h unconditionally.
41276
41277 2006-10-24  Bruno Haible  <bruno@clisp.org>
41278
41279         * modules/wcwidth (Files): Add m4/wint_t.m4.
41280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41281         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41282
41283 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41284
41285         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41286         to pacify GCC with some -W flags enabled.  Problem reported by
41287         Bruno Haible.
41288
41289 2006-10-24  Jim Meyering  <jim@meyering.net>
41290
41291         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41292         Reported by Karl Berry.
41293
41294 2006-10-23  Bruno Haible  <bruno@clisp.org>
41295
41296         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41297
41298 2006-10-24  Bruno Haible  <bruno@clisp.org>
41299
41300         * lib/gl_list.h: Use C comment style, not C++ comment style.
41301
41302 2006-10-23  Eric Blake  <ebb9@byu.net>
41303
41304         * lib/getaddrinfo.c (includes): Add missing include.
41305
41306 2006-10-23  Bruno Haible  <bruno@clisp.org>
41307             Paul Eggert  <eggert@cs.ucla.edu>
41308
41309         Ability to rename obstack_free.
41310         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41311         obstack_free.
41312         (obstack_free): Invoke the __obstack_free macro.
41313         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41314
41315 2006-10-23  Bruno Haible  <bruno@clisp.org>
41316             Paul Eggert  <eggert@cs.ucla.edu>
41317
41318         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41319         __argc, __argv from the declaration. (They are defined as macros on
41320         mingw.)
41321
41322 2006-10-22  Bruno Haible  <bruno@clisp.org>
41323
41324         * doc/gnulib-intro.texi: New file.
41325         * doc/gnulib.texi: Include it.
41326
41327 2006-10-21  Bruno Haible  <bruno@clisp.org>
41328
41329         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41330         "Introduction", "Miscellanous Notes", "Particular Modules".
41331
41332 2006-10-21  Bruno Haible  <bruno@clisp.org>
41333
41334         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41335         Change mostlyclean-local rule to avoid sh syntax error from bash
41336         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41337
41338 2006-10-23  Jim Meyering  <jim@meyering.net>
41339
41340         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41341         in place of snprintf.
41342
41343         * modules/inttostr (Files): Add lib/uinttostr.c.
41344         * lib/uinttostr.c (inttostr): New file/function.
41345         * lib/inttostr.h (uinttostr): Declare.
41346         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41347         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41348         Add uinttostr.
41349         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41350
41351 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41352
41353         * lib/canonicalize.c (ELOOP): Define if not already defined.
41354         Problem reported by Bruno Haible in
41355         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41356
41357 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41358
41359         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41360         Problem reported by Perry Smith and Ville Laurikari.
41361
41362         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41363         uses.
41364
41365 2006-10-19  Bruno Haible  <bruno@clisp.org>
41366
41367         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41368         for mingw.
41369
41370 2006-10-19  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41373         Needed for mingw.
41374
41375 2006-10-19  Bruno Haible  <bruno@clisp.org>
41376
41377         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41378
41379 2006-10-19  Bruno Haible  <bruno@clisp.org>
41380
41381         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41382         it.
41383
41384 2006-10-19  Bruno Haible  <bruno@clisp.org>
41385
41386         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41387         invocation.
41388
41389 2006-10-19  Bruno Haible  <bruno@clisp.org>
41390
41391         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41392         mountlist by default.
41393
41394 2006-10-16  Bruno Haible  <bruno@clisp.org>
41395
41396         * lib/c-strstr.c: Include c-strstr.h.
41397
41398 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41399
41400         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41401         in a slash.
41402
41403 2006-10-18  Bruno Haible  <bruno@clisp.org>
41404
41405         * lib/lock.h [C++]: Wrap definitions in extern "C".
41406
41407 2006-10-18  Bruno Haible  <bruno@clisp.org>
41408
41409         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41410         gl_LIBOBJS list.
41411
41412 2006-10-18  Bruno Haible  <bruno@clisp.org>
41413
41414         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41415
41416 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41417
41418         * lib/xstrtol.h: Include gettext.h.
41419         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41420         Problem reported by Eric Blake.
41421         * modules/xstrtol (Depends-on): Add gettext-h.
41422
41423 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41424
41425         * lib/strftime.c (advance): New macro.
41426         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41427         incomplete type, so you can't add 0 to it.  Problem and patch
41428         reported by Eelco Dolstra for dietlibc.
41429
41430 2006-10-18  Jim Meyering  <jim@meyering.net>
41431
41432         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41433         type for a local, and rename it: s/up/user_proc/.
41434
41435 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41436
41437         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41438         READ_UTMP_USER_PROCESS.
41439         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41440
41441 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41442
41443         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41444         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41445
41446 2006-10-17  Eric Blake  <ebb9@byu.net>
41447
41448         * lib/sigprocmask.c (sigprocmask): Fix typo.
41449
41450         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41451
41452         * modules/clean-temp (Makefile.am): Don't add to make output...
41453         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41454         config.h.
41455
41456 2006-10-17  Bruno Haible  <bruno@clisp.org>
41457
41458         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41459         differently if DEFAULT_TEXT_DOMAIN is set.
41460
41461 2006-10-16  Bruno Haible  <bruno@clisp.org>
41462
41463         * lib/clean-temp.c: Include fwriteerror.h.
41464
41465 2006-10-16  Bruno Haible  <bruno@clisp.org>
41466
41467         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41468
41469 2006-10-16  Bruno Haible  <bruno@clisp.org>
41470
41471         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41472         * lib/sigprocmask.h: Include <sys/types.h>.
41473         (sigset_t): Use the system's definition if present.
41474
41475 2006-10-17  Eric Blake  <ebb9@byu.net>
41476
41477         * lib/xvasprintf.c (includes): Assume config.h.
41478         * lib/xasprintf.c (includes): Likewise.
41479
41480 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41481
41482         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41483         at least as wide as intmax_t.
41484
41485 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41486
41487         (Imported from Automake.)
41488         * build-aux/gnupload: Update to version 1.1 of directive file.
41489
41490 2006-10-16  Eric Blake  <ebb9@byu.net>
41491
41492         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41493         match Automake 1.10a.
41494
41495 2006-10-14  Bruno Haible  <bruno@clisp.org>
41496
41497         * modules/sigprocmask: New file.
41498         * lib/sigprocmask.h: New file.
41499         * lib/sigprocmask.c: New file.
41500         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41501         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41502         request sigprocmask.o.
41503         (gl_PREREQ_SIGPROCMASK): New macro.
41504         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41505         (Depends-on): Add sigprocmask.
41506         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41507         gt_SIGNALBLOCKING. Test for 'raise' only once.
41508         * lib/fatal-signal.c: Include sigprocmask.h.
41509         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41510         unblock_fatal_signals): Define always.
41511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41512         sigprocmask.
41513
41514 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41515
41516         Sync from Automake.
41517         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41518         which incorrectly sets the mode of an existing destination
41519         directory.  In some cases the unpatched install-sh could do the
41520         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41521         system.  We hope this is rare in practice, but it's clearly worth
41522         fixing.  Problem reported by Alex Unleashed in
41523         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41524         Also, don't bother to check for -m bugs unless we're using -m;
41525         suggested by Stepan Kasal.
41526
41527 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41528
41529         Sync from Automake.
41530         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41531         `-c' flag, so they appear at the same position as in %FASTDEP%
41532         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41533         which ignores unknown options only after the first non-option.
41534         Bug report against M4 by Nelson H. F. Beebe.
41535
41536 2006-10-13  Jim Meyering  <jim@meyering.net>
41537
41538         Fix a bug in yesterday's change.
41539         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41540         p->fts_statp->st_dev would be used uninitialized.
41541         Ensures that we always call fts_stat on the very first entry.
41542         Miklos Szeredi reported that find -xdev stopped working.
41543
41544 2006-10-12  Bruno Haible  <bruno@clisp.org>
41545
41546         * gnulib-tool (func_get_automake_snippet): Append an automatically
41547         computed EXTRA_DIST augmentation.
41548         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41549         * modules/alloca-opt (Makefile.am): Likewise.
41550         * modules/allocsa (Makefile.am): Likewise.
41551         * modules/arcfour (Makefile.am): Likewise.
41552         * modules/arctwo (Makefile.am): Likewise.
41553         * modules/argmatch (Makefile.am): Likewise.
41554         * modules/argz (Makefile.am): Likewise.
41555         * modules/atexit (Makefile.am): Likewise.
41556         * modules/backupfile (Makefile.am): Likewise.
41557         * modules/byteswap (Makefile.am): Likewise.
41558         * modules/c-strtod (Makefile.am): Likewise.
41559         * modules/c-strtold (Makefile.am): Likewise.
41560         * modules/calloc (Makefile.am): Likewise.
41561         * modules/canon-host (Makefile.am): Likewise.
41562         * modules/canonicalize (Makefile.am): Likewise.
41563         * modules/chdir-long (Makefile.am): Likewise.
41564         * modules/chdir-safer (Makefile.am): Likewise.
41565         * modules/check-version (Makefile.am): Likewise.
41566         * modules/chown (Makefile.am): Likewise.
41567         * modules/cloexec (Makefile.am): Likewise.
41568         * modules/close-stream (Makefile.am): Likewise.
41569         * modules/closeout (Makefile.am): Likewise.
41570         * modules/crc (Makefile.am): Likewise.
41571         * modules/csharpexec (Makefile.am): Likewise.
41572         * modules/cycle-check (Makefile.am): Likewise.
41573         * modules/des (Makefile.am): Likewise.
41574         * modules/dev-ino (Makefile.am): Likewise.
41575         * modules/dirfd (Makefile.am): Likewise.
41576         * modules/dirname (Makefile.am): Likewise.
41577         * modules/dup2 (Makefile.am): Likewise.
41578         * modules/eealloc (Makefile.am): Likewise.
41579         * modules/error (Makefile.am): Likewise.
41580         * modules/euidaccess (Makefile.am): Likewise.
41581         * modules/exclude (Makefile.am): Likewise.
41582         * modules/exitfail (Makefile.am): Likewise.
41583         * modules/fcntl-safer (Makefile.am): Likewise.
41584         * modules/fcntl (Makefile.am): Likewise.
41585         * modules/file-type (Makefile.am): Likewise.
41586         * modules/fileblocks (Makefile.am): Likewise.
41587         * modules/filemode (Makefile.am): Likewise.
41588         * modules/filenamecat (Makefile.am): Likewise.
41589         * modules/fnmatch (Makefile.am): Likewise.
41590         * modules/fopen-safer (Makefile.am): Likewise.
41591         * modules/fpending (Makefile.am): Likewise.
41592         * modules/fprintftime (Makefile.am): Likewise.
41593         * modules/free (Makefile.am): Likewise.
41594         * modules/fsusage (Makefile.am): Likewise.
41595         * modules/ftruncate (Makefile.am): Likewise.
41596         * modules/fts (Makefile.am): Likewise.
41597         * modules/gc-arcfour (Makefile.am): Likewise.
41598         * modules/gc-des (Makefile.am): Likewise.
41599         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41600         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41601         * modules/gc-md4 (Makefile.am): Likewise.
41602         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41603         * modules/gc-sha1 (Makefile.am): Likewise.
41604         * modules/gc (Makefile.am): Likewise.
41605         * modules/getaddrinfo (Makefile.am): Likewise.
41606         * modules/getcwd (Makefile.am): Likewise.
41607         * modules/getdelim (Makefile.am): Likewise.
41608         * modules/getdomainname (Makefile.am): Likewise.
41609         * modules/getgroups (Makefile.am): Likewise.
41610         * modules/gethostname (Makefile.am): Likewise.
41611         * modules/gethrxtime (Makefile.am): Likewise.
41612         * modules/getline (Makefile.am): Likewise.
41613         * modules/getloadavg (Makefile.am): Likewise.
41614         * modules/getlogin_r (Makefile.am): Likewise.
41615         * modules/getndelim2 (Makefile.am): Likewise.
41616         * modules/getopt (Makefile.am): Likewise.
41617         * modules/getpagesize (Makefile.am): Likewise.
41618         * modules/getpass-gnu (Makefile.am): Likewise.
41619         * modules/getpass (Makefile.am): Likewise.
41620         * modules/getsubopt (Makefile.am): Likewise.
41621         * modules/gettime (Makefile.am): Likewise.
41622         * modules/gettimeofday (Makefile.am): Likewise.
41623         * modules/getugroups (Makefile.am): Likewise.
41624         * modules/getusershell (Makefile.am): Likewise.
41625         * modules/glob (Makefile.am): Likewise.
41626         * modules/group-member (Makefile.am): Likewise.
41627         * modules/hard-locale (Makefile.am): Likewise.
41628         * modules/hash (Makefile.am): Likewise.
41629         * modules/hmac-md5 (Makefile.am): Likewise.
41630         * modules/hmac-sha1 (Makefile.am): Likewise.
41631         * modules/human (Makefile.am): Likewise.
41632         * modules/idcache (Makefile.am): Likewise.
41633         * modules/imaxabs (Makefile.am): Likewise.
41634         * modules/imaxdiv (Makefile.am): Likewise.
41635         * modules/inet_ntop (Makefile.am): Likewise.
41636         * modules/inet_pton (Makefile.am): Likewise.
41637         * modules/intprops (Makefile.am): Likewise.
41638         * modules/inttostr (Makefile.am): Likewise.
41639         * modules/inttypes (Makefile.am): Likewise.
41640         * modules/isapipe (Makefile.am): Likewise.
41641         * modules/javaversion (Makefile.am): Likewise.
41642         * modules/lchmod (Makefile.am): Likewise.
41643         * modules/lchown (Makefile.am): Likewise.
41644         * modules/localcharset (Makefile.am): Likewise.
41645         * modules/long-options (Makefile.am): Likewise.
41646         * modules/lstat (Makefile.am): Likewise.
41647         * modules/malloc (Makefile.am): Likewise.
41648         * modules/mathl (Makefile.am): Likewise.
41649         * modules/mbchar (Makefile.am): Likewise.
41650         * modules/md2 (Makefile.am): Likewise.
41651         * modules/md4 (Makefile.am): Likewise.
41652         * modules/md5 (Makefile.am): Likewise.
41653         * modules/memcasecmp (Makefile.am): Likewise.
41654         * modules/memchr (Makefile.am): Likewise.
41655         * modules/memcmp (Makefile.am): Likewise.
41656         * modules/memcoll (Makefile.am): Likewise.
41657         * modules/memcpy (Makefile.am): Likewise.
41658         * modules/memmem (Makefile.am): Likewise.
41659         * modules/memmove (Makefile.am): Likewise.
41660         * modules/mempcpy (Makefile.am): Likewise.
41661         * modules/memrchr (Makefile.am): Likewise.
41662         * modules/memset (Makefile.am): Likewise.
41663         * modules/memxor (Makefile.am): Likewise.
41664         * modules/mkancesdirs (Makefile.am): Likewise.
41665         * modules/mkdir-p (Makefile.am): Likewise.
41666         * modules/mkdir (Makefile.am): Likewise.
41667         * modules/mkdtemp (Makefile.am): Likewise.
41668         * modules/mkstemp (Makefile.am): Likewise.
41669         * modules/mktime (Makefile.am): Likewise.
41670         * modules/modechange (Makefile.am): Likewise.
41671         * modules/mountlist (Makefile.am): Likewise.
41672         * modules/nanosleep (Makefile.am): Likewise.
41673         * modules/obstack (Makefile.am): Likewise.
41674         * modules/openat (Makefile.am): Likewise.
41675         * modules/pagealign_alloc (Makefile.am): Likewise.
41676         * modules/pathmax (Makefile.am): Likewise.
41677         * modules/physmem (Makefile.am): Likewise.
41678         * modules/poll (Makefile.am): Likewise.
41679         * modules/posixtm (Makefile.am): Likewise.
41680         * modules/posixver (Makefile.am): Likewise.
41681         * modules/putenv (Makefile.am): Likewise.
41682         * modules/quote (Makefile.am): Likewise.
41683         * modules/quotearg (Makefile.am): Likewise.
41684         * modules/raise (Makefile.am): Likewise.
41685         * modules/read-file (Makefile.am): Likewise.
41686         * modules/readline (Makefile.am): Likewise.
41687         * modules/readlink (Makefile.am): Likewise.
41688         * modules/readtokens (Makefile.am): Likewise.
41689         * modules/readutmp (Makefile.am): Likewise.
41690         * modules/realloc (Makefile.am): Likewise.
41691         * modules/regex (Makefile.am): Likewise.
41692         * modules/rename-dest-slash (Makefile.am): Likewise.
41693         * modules/rename (Makefile.am): Likewise.
41694         * modules/rijndael (Makefile.am): Likewise.
41695         * modules/rmdir (Makefile.am): Likewise.
41696         * modules/rpmatch (Makefile.am): Likewise.
41697         * modules/safe-read (Makefile.am): Likewise.
41698         * modules/safe-write (Makefile.am): Likewise.
41699         * modules/same-inode (Makefile.am): Likewise.
41700         * modules/same (Makefile.am): Likewise.
41701         * modules/save-cwd (Makefile.am): Likewise.
41702         * modules/savedir (Makefile.am): Likewise.
41703         * modules/setenv (Makefile.am): Likewise.
41704         * modules/settime (Makefile.am): Likewise.
41705         * modules/sha1 (Makefile.am): Likewise.
41706         * modules/sig2str (Makefile.am): Likewise.
41707         * modules/snprintf (Makefile.am): Likewise.
41708         * modules/stat-macros (Makefile.am): Likewise.
41709         * modules/stat-time (Makefile.am): Likewise.
41710         * modules/stdbool (Makefile.am): Likewise.
41711         * modules/stdint (Makefile.am): Likewise.
41712         * modules/stdlib-safer (Makefile.am): Likewise.
41713         * modules/stpcpy (Makefile.am): Likewise.
41714         * modules/stpncpy (Makefile.am): Likewise.
41715         * modules/strcase (Makefile.am): Likewise.
41716         * modules/strcasestr (Makefile.am): Likewise.
41717         * modules/strchrnul (Makefile.am): Likewise.
41718         * modules/strcspn (Makefile.am): Likewise.
41719         * modules/strdup (Makefile.am): Likewise.
41720         * modules/strerror (Makefile.am): Likewise.
41721         * modules/strftime (Makefile.am): Likewise.
41722         * modules/strndup (Makefile.am): Likewise.
41723         * modules/strnlen (Makefile.am): Likewise.
41724         * modules/strpbrk (Makefile.am): Likewise.
41725         * modules/strsep (Makefile.am): Likewise.
41726         * modules/strstr (Makefile.am): Likewise.
41727         * modules/strtod (Makefile.am): Likewise.
41728         * modules/strtoimax (Makefile.am): Likewise.
41729         * modules/strtok_r (Makefile.am): Likewise.
41730         * modules/strtol (Makefile.am): Likewise.
41731         * modules/strtoll (Makefile.am): Likewise.
41732         * modules/strtoul (Makefile.am): Likewise.
41733         * modules/strtoull (Makefile.am): Likewise.
41734         * modules/strtoumax (Makefile.am): Likewise.
41735         * modules/strverscmp (Makefile.am): Likewise.
41736         * modules/sys_socket (Makefile.am): Likewise.
41737         * modules/sys_stat (Makefile.am): Likewise.
41738         * modules/sysexits (Makefile.am): Likewise.
41739         * modules/time_r (Makefile.am): Likewise.
41740         * modules/timegm (Makefile.am): Likewise.
41741         * modules/timespec (Makefile.am): Likewise.
41742         * modules/tmpfile-safer (Makefile.am): Likewise.
41743         * modules/trim (Makefile.am): Likewise.
41744         * modules/unistd-safer (Makefile.am): Likewise.
41745         * modules/unlinkdir (Makefile.am): Likewise.
41746         * modules/unlocked-io (Makefile.am): Likewise.
41747         * modules/userspec (Makefile.am): Likewise.
41748         * modules/utime (Makefile.am): Likewise.
41749         * modules/utimecmp (Makefile.am): Likewise.
41750         * modules/utimens (Makefile.am): Likewise.
41751         * modules/vasnprintf (Makefile.am): Likewise.
41752         * modules/vasprintf (Makefile.am): Likewise.
41753         * modules/vsnprintf (Makefile.am): Likewise.
41754         * modules/xalloc (Makefile.am): Likewise.
41755         * modules/xgetcwd (Makefile.am): Likewise.
41756         * modules/xnanosleep (Makefile.am): Likewise.
41757         * modules/xreadlink (Makefile.am): Likewise.
41758         * modules/xstrtod (Makefile.am): Likewise.
41759         * modules/xstrtol (Makefile.am): Likewise.
41760         * modules/xstrtold (Makefile.am): Likewise.
41761         * modules/yesno (Makefile.am): Likewise.
41762         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41763
41764 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41765
41766         * modules/error (Makefile.am): Distribute files through
41767         EXTRA_DIST, not lib_SOURCES.
41768
41769 2006-10-12  Eric Blake  <ebb9@byu.net>
41770
41771         * modules/error (Makefile.am): Distribute files in /lib.
41772         * modules/obstack (Makefile.am): Likewise.
41773
41774 2006-10-12  Bruno Haible  <bruno@clisp.org>
41775
41776         * modules/acl (Makefile.am): Distribute all files in lib/ through
41777         EXTRA_DIST.
41778         * modules/arcfour (Makefile.am): Likewise.
41779         * modules/arctwo (Makefile.am): Likewise.
41780         * modules/argmatch (Makefile.am): Likewise.
41781         * modules/argz (Makefile.am): Likewise.
41782         * modules/atexit (Makefile.am): Likewise.
41783         * modules/backupfile (Makefile.am): Likewise.
41784         * modules/c-strtod (Makefile.am): Likewise.
41785         * modules/c-strtold (Makefile.am): Likewise.
41786         * modules/calloc (Makefile.am): Likewise.
41787         * modules/canon-host (Makefile.am): Likewise.
41788         * modules/canonicalize (Makefile.am): Likewise.
41789         * modules/chdir-long (Makefile.am): Likewise.
41790         * modules/chdir-safer (Makefile.am): Likewise.
41791         * modules/check-version (Makefile.am): Likewise.
41792         * modules/chown (Makefile.am): Likewise.
41793         * modules/cloexec (Makefile.am): Likewise.
41794         * modules/close-stream (Makefile.am): Likewise.
41795         * modules/closeout (Makefile.am): Likewise.
41796         * modules/crc (Makefile.am): Likewise.
41797         * modules/cycle-check (Makefile.am): Likewise.
41798         * modules/des (Makefile.am): Likewise.
41799         * modules/dirfd (Makefile.am): Likewise.
41800         * modules/dirname (Makefile.am): Likewise.
41801         * modules/dup2 (Makefile.am): Likewise.
41802         * modules/euidaccess (Makefile.am): Likewise.
41803         * modules/exclude (Makefile.am): Likewise.
41804         * modules/exitfail (Makefile.am): Likewise.
41805         * modules/fcntl-safer (Makefile.am): Likewise.
41806         * modules/file-type (Makefile.am): Likewise.
41807         * modules/fileblocks (Makefile.am): Likewise.
41808         * modules/filemode (Makefile.am): Likewise.
41809         * modules/filenamecat (Makefile.am): Likewise.
41810         * modules/fnmatch (Makefile.am): Likewise.
41811         * modules/fopen-safer (Makefile.am): Likewise.
41812         * modules/fpending (Makefile.am): Likewise.
41813         * modules/fprintftime (Makefile.am): Likewise.
41814         * modules/free (Makefile.am): Likewise.
41815         * modules/fsusage (Makefile.am): Likewise.
41816         * modules/ftruncate (Makefile.am): Likewise.
41817         * modules/fts (Makefile.am): Likewise.
41818         * modules/gc (Makefile.am): Likewise.
41819         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41820         * modules/getaddrinfo (Makefile.am): Likewise.
41821         * modules/getcwd (Makefile.am): Likewise.
41822         * modules/getdelim (Makefile.am): Likewise.
41823         * modules/getdomainname (Makefile.am): Likewise.
41824         * modules/getgroups (Makefile.am): Likewise.
41825         * modules/gethostname (Makefile.am): Likewise.
41826         * modules/gethrxtime (Makefile.am): Likewise.
41827         * modules/getline (Makefile.am): Likewise.
41828         * modules/getloadavg (Makefile.am): Likewise.
41829         * modules/getlogin_r (Makefile.am): Likewise.
41830         * modules/getopt (Makefile.am): Likewise.
41831         * modules/getpass (Makefile.am): Likewise.
41832         * modules/getpass-gnu (Makefile.am): Likewise.
41833         * modules/getsubopt (Makefile.am): Likewise.
41834         * modules/gettime (Makefile.am): Likewise.
41835         * modules/gettimeofday (Makefile.am): Likewise.
41836         * modules/getugroups (Makefile.am): Likewise.
41837         * modules/getusershell (Makefile.am): Likewise.
41838         * modules/glob (Makefile.am): Likewise.
41839         * modules/group-member (Makefile.am): Likewise.
41840         * modules/hard-locale (Makefile.am): Likewise.
41841         * modules/hash (Makefile.am): Likewise.
41842         * modules/hmac-md5 (Makefile.am): Likewise.
41843         * modules/hmac-sha1 (Makefile.am): Likewise.
41844         * modules/human (Makefile.am): Likewise.
41845         * modules/idcache (Makefile.am): Likewise.
41846         * modules/imaxabs (Makefile.am): Likewise.
41847         * modules/imaxdiv (Makefile.am): Likewise.
41848         * modules/inet_ntop (Makefile.am): Likewise.
41849         * modules/inet_pton (Makefile.am): Likewise.
41850         * modules/inttostr (Makefile.am): Likewise.
41851         * modules/isapipe (Makefile.am): Likewise.
41852         * modules/lchown (Makefile.am): Likewise.
41853         * modules/long-options (Makefile.am): Likewise.
41854         * modules/lstat (Makefile.am): Likewise.
41855         * modules/malloc (Makefile.am): Likewise.
41856         * modules/mathl (Makefile.am): Likewise.
41857         * modules/mbchar (Makefile.am): Likewise.
41858         * modules/md2 (Makefile.am): Likewise.
41859         * modules/md4 (Makefile.am): Likewise.
41860         * modules/md5 (Makefile.am): Likewise.
41861         * modules/memcasecmp (Makefile.am): Likewise.
41862         * modules/memchr (Makefile.am): Likewise.
41863         * modules/memcmp (Makefile.am): Likewise.
41864         * modules/memcoll (Makefile.am): Likewise.
41865         * modules/memcpy (Makefile.am): Likewise.
41866         * modules/memmem (Makefile.am): Likewise.
41867         * modules/memmove (Makefile.am): Likewise.
41868         * modules/mempcpy (Makefile.am): Likewise.
41869         * modules/memrchr (Makefile.am): Likewise.
41870         * modules/memset (Makefile.am): Likewise.
41871         * modules/memxor (Makefile.am): Likewise.
41872         * modules/mkancesdirs (Makefile.am): Likewise.
41873         * modules/mkdir (Makefile.am): Likewise.
41874         * modules/mkdir-p (Makefile.am): Likewise.
41875         * modules/mkdtemp (Makefile.am): Likewise.
41876         * modules/mkstemp (Makefile.am): Likewise.
41877         * modules/mktime (Makefile.am): Likewise.
41878         * modules/modechange (Makefile.am): Likewise.
41879         * modules/mountlist (Makefile.am): Likewise.
41880         * modules/nanosleep (Makefile.am): Likewise.
41881         * modules/openat (Makefile.am): Likewise.
41882         * modules/pagealign_alloc (Makefile.am): Likewise.
41883         * modules/physmem (Makefile.am): Likewise.
41884         * modules/poll (Makefile.am): Likewise.
41885         * modules/posixtm (Makefile.am): Likewise.
41886         * modules/posixver (Makefile.am): Likewise.
41887         * modules/putenv (Makefile.am): Likewise.
41888         * modules/quote (Makefile.am): Likewise.
41889         * modules/quotearg (Makefile.am): Likewise.
41890         * modules/raise (Makefile.am): Likewise.
41891         * modules/read-file (Makefile.am): Likewise.
41892         * modules/readline (Makefile.am): Likewise.
41893         * modules/readlink (Makefile.am): Likewise.
41894         * modules/readtokens (Makefile.am): Likewise.
41895         * modules/readutmp (Makefile.am): Likewise.
41896         * modules/realloc (Makefile.am): Likewise.
41897         * modules/regex (Makefile.am): Likewise.
41898         * modules/rename (Makefile.am): Likewise.
41899         * modules/rename-dest-slash (Makefile.am): Likewise.
41900         * modules/rijndael (Makefile.am): Likewise.
41901         * modules/rmdir (Makefile.am): Likewise.
41902         * modules/rpmatch (Makefile.am): Likewise.
41903         * modules/safe-read (Makefile.am): Likewise.
41904         * modules/safe-write (Makefile.am): Likewise.
41905         * modules/same (Makefile.am): Likewise.
41906         * modules/save-cwd (Makefile.am): Likewise.
41907         * modules/savedir (Makefile.am): Likewise.
41908         * modules/setenv (Makefile.am): Likewise.
41909         * modules/settime (Makefile.am): Likewise.
41910         * modules/sha1 (Makefile.am): Likewise.
41911         * modules/sig2str (Makefile.am): Likewise.
41912         * modules/snprintf (Makefile.am): Likewise.
41913         * modules/stdlib-safer (Makefile.am): Likewise.
41914         * modules/stpcpy (Makefile.am): Likewise.
41915         * modules/stpncpy (Makefile.am): Likewise.
41916         * modules/strcase (Makefile.am): Likewise.
41917         * modules/strcasestr (Makefile.am): Likewise.
41918         * modules/strchrnul (Makefile.am): Likewise.
41919         * modules/strcspn (Makefile.am): Likewise.
41920         * modules/strdup (Makefile.am): Likewise.
41921         * modules/strerror (Makefile.am): Likewise.
41922         * modules/strftime (Makefile.am): Likewise.
41923         * modules/strndup (Makefile.am): Likewise.
41924         * modules/strnlen (Makefile.am): Likewise.
41925         * modules/strpbrk (Makefile.am): Likewise.
41926         * modules/strsep (Makefile.am): Likewise.
41927         * modules/strstr (Makefile.am): Likewise.
41928         * modules/strtod (Makefile.am): Likewise.
41929         * modules/strtoimax (Makefile.am): Likewise.
41930         * modules/strtok_r (Makefile.am): Likewise.
41931         * modules/strtol (Makefile.am): Likewise.
41932         * modules/strtoll (Makefile.am): Likewise.
41933         * modules/strtoul (Makefile.am): Likewise.
41934         * modules/strtoull (Makefile.am): Likewise.
41935         * modules/strtoumax (Makefile.am): Likewise.
41936         * modules/strverscmp (Makefile.am): Likewise.
41937         * modules/time_r (Makefile.am): Likewise.
41938         * modules/timegm (Makefile.am): Likewise.
41939         * modules/tmpfile-safer (Makefile.am): Likewise.
41940         * modules/unistd-safer (Makefile.am): Likewise.
41941         * modules/unlinkdir (Makefile.am): Likewise.
41942         * modules/userspec (Makefile.am): Likewise.
41943         * modules/utime (Makefile.am): Likewise.
41944         * modules/utimecmp (Makefile.am): Likewise.
41945         * modules/utimens (Makefile.am): Likewise.
41946         * modules/vasnprintf (Makefile.am): Likewise.
41947         * modules/vasprintf (Makefile.am): Likewise.
41948         * modules/vsnprintf (Makefile.am): Likewise.
41949         * modules/xalloc (Makefile.am): Likewise.
41950         * modules/xgetcwd (Makefile.am): Likewise.
41951         * modules/xnanosleep (Makefile.am): Likewise.
41952         * modules/xreadlink (Makefile.am): Likewise.
41953         * modules/xstrtod (Makefile.am): Likewise.
41954         * modules/xstrtol (Makefile.am): Likewise.
41955         * modules/xstrtold (Makefile.am): Likewise.
41956         * modules/yesno (Makefile.am): Likewise.
41957
41958 2006-10-12  Jim Meyering  <jim@meyering.net>
41959
41960         * m4/getloadavg.m4: Revert the change below.
41961
41962         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41963         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41964         fail with a symlink, which is what coreutils' ./bootstrap now
41965         creates by default.
41966
41967 2006-10-12  Bruno Haible  <bruno@clisp.org>
41968
41969         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41970         mingw.
41971         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41972         MSVC and mingw explicitly.
41973
41974 2006-10-11  Simon Josefsson  <jas@extundo.com>
41975             Bruno Haible  <bruno@clisp.org>
41976
41977         Add support for multiple gnulib-tool invocations in the scope of a
41978         single configure.ac file.
41979         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41980         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41981         with the same contents as the _LIBADD variable.
41982         (func_emit_initmacro_start, func_emit_initmacro_end,
41983         func_emit_initmacro_done): New functions.
41984         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41985         gl_LIBOBJS and gl_LTLIBOBJS.
41986
41987 2006-10-11  Bruno Haible  <bruno@clisp.org>
41988
41989         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41990         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41991         autoreconf. Instead, invoke autopoint explicitly but move back the
41992         *.m4 files from gnulib.
41993
41994 2006-10-11  Bruno Haible  <bruno@clisp.org>
41995
41996         * gnulib-tool (func_usage): Make module names after --create-testdir
41997         optional.
41998         (func_create_testdir): If no module was specified, use nearly all
41999         modules.
42000
42001 2006-10-12  Jim Meyering  <jim@meyering.net>
42002
42003         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42004         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42005         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42006         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42007         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42008         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42009         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42010         (fts_set_stat_required): New function.
42011         (fts_open): Defer the calls to fts_stat, if possible or requested.
42012         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42013         into fts_stat itself.
42014         (fts_read): Perform any required (deferred) fts_stat call.
42015         (fts_build): Likewise, for the directory we're about to open and read.
42016         In the readdir loop, carefully decide whether each entry will require
42017         an eventual call to fts_stat, using dirent.d_type info if available.
42018         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42019         a command line argument into this function.  Update all callers.
42020         Map a return value of FTS_DOT to FTS_D for a command line argument.
42021         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42022         Thanks to Miklos Szeredi for his tenacity and for the initial
42023         bug report about "find" failing on a FUSE-based file system.
42024
42025         * lib/fts.c (fts_open): Use consistent indentation.
42026
42027 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42028
42029         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42030         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42031         reported by Jim Meyering.  All uses of cache variables renamed
42032         to match Autoconf's.
42033         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42034         the other one.
42035
42036         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42037         Fix misspelling in diagnostic.
42038
42039 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42040
42041         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42042         defined.  Problem reported by Matthew Woehlke.
42043
42044         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42045         Add support for Tandem NonStop R series.
42046         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42047         Use new macro.
42048
42049         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42050         (has_trailing_slash): Omit size arg; all callers changed.
42051         Omit 'inline', since it doesn't help performance and we'd
42052         need to configure it.
42053         Don't count //, ///, etc. as having a trailing slash.
42054         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42055         (rpl_rename_dest_slash): On failure, use rename's errno rather
42056         than (in some cases) an incorrect or junk errno.
42057         Simplify code by removing need to compute length; this does
42058         cause it to make two passes instead of one over the file name,
42059         but it's worth it.
42060
42061         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42062         change, since Autoconf's version may no longer be appropriate now
42063         that we are using CVS Autoconf's version.  Add support for Tandem.
42064
42065 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42066             Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42069         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42070         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42071         gl_AC_TYPE_LONG_LONG.
42072
42073         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42074         instead of HAVE_LONG_LONG.
42075         * lib/printf-args.c (printf_fetchargs): Likewise.
42076         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42077         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42078         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42079         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42080         gl_AC_TYPE_LONG_LONG.
42081
42082 2006-10-11  Bruno Haible  <bruno@clisp.org>
42083
42084         * m4/longlong.m4: Add comments.
42085         * m4/ulonglong.m4: Likewise.
42086
42087 2006-10-10  Bruno Haible  <bruno@clisp.org>
42088
42089         Make it possible to #define stpcpy, strdup to aliases.
42090         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42091         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42092
42093 2006-10-10  Bruno Haible  <bruno@clisp.org>
42094
42095         Make it possible to #define gcd to an alias.
42096         * lib/gcd.c: Include config.h.
42097
42098 2006-10-10  Bruno Haible  <bruno@clisp.org>
42099
42100         Make it possible to #define c_isascii to an alias.
42101         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42102         defined. Undefine the macros before defining them, to avoid gcc
42103         warnings.
42104         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42105         define NO_C_CTYPE_MACROS early.
42106
42107 2006-10-10  Bruno Haible  <bruno@clisp.org>
42108
42109         Make it possible to #define set_program_name to an alias.
42110         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42111         ENABLE_RELOCATABLE early.
42112
42113 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42114
42115         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42116         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42117         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42118         More generally, don't assume that 64-bit signed int is available
42119         if unsigned int is, and vice versa.
42120         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42121         unsigned symbols, not on their signed counterparts.
42122         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42123         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42124         (UINT64_C, UINTMAX_C):
42125         Likewise.
42126         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42127         unsigned counterparts.
42128         (Have_long_long, Unsigned): New macros.
42129         (Int): Renamed from INT.
42130         (strtoimax): Use the new macros.
42131         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42132         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42133         * modules/inttypes (inttypes.h): Substitute
42134         HAVE_UNSIGNED_LONG_LONG_INT.
42135         * modules/stdint (stdint.h): Likewise.
42136         (Files): Add m4/ulonglong.m4.
42137
42138 2006-10-10  Bruno Haible  <bruno@clisp.org>
42139
42140         Fix a gcc -Wshadow warning.
42141         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42142         to 'bucket'.
42143         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42144         gl_linked_indexof_from_to): Likewise.
42145         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42146         Likewise.
42147         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42148         Likewise.
42149         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42150         Reported by Eric Blake.
42151
42152 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42153
42154         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42155         for NetBSD.  Problem reported by Bruno Haible.
42156
42157 2006-10-09  Jim Meyering  <jim@meyering.net>
42158
42159         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42160         Patch from Bruno Haible.
42161
42162 2006-10-09  Jim Meyering  <jim@meyering.net>
42163
42164         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42165         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42166         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42167
42168 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42169
42170         Don't include <config.h> twice; this doesn't work in some cases,
42171         e.g., when config.h has "#define intmax_t long long int" and
42172         we include <config.h>, <inttypes.h>, <config.h> in that order.
42173         Problem reported by Matthew Woehlke in:
42174         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42175         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42176         * lib/fts-cycle.c: Don't include config.h.
42177         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42178         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42179         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42180         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42181         inttypes.h.
42182         * lib/xstrtoumax.c: Likewise.
42183         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42184         __strtol and the like, so that this module is more like its siblings.
42185         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42186         Remove; no longer needed now that we assume gnulib inttypes.h.
42187
42188 2006-10-08  Bruno Haible  <bruno@clisp.org>
42189
42190         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42191         option.
42192
42193 2006-10-07  Jim Meyering  <jim@meyering.net>
42194
42195         * modules/inttypes (inttypes.h): Revert what seems to have been
42196         an inadvertent part of today's change: use "|", not "/" in the
42197         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42198
42199 2006-10-07  Bruno Haible  <bruno@clisp.org>
42200
42201         * modules/sublist: New file.
42202
42203 2006-10-07  Bruno Haible  <bruno@clisp.org>
42204
42205         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42206         * modules/argz (argz.h): Likewise.
42207         * modules/arpa_inet (arpa/inet.h): Likewise.
42208         * modules/byteswap (byteswap.h): Likewise.
42209         * modules/configmake (configmake.h): Likewise.
42210         * modules/fcntl (fcntl.h): Likewise.
42211         * modules/fnmatch (fnmatch.h): Likewise.
42212         * modules/getopt (getopt.h): Likewise.
42213         * modules/glob (glob.h): Likewise.
42214         * modules/inttypes (inttypes.h): Likewise.
42215         * modules/netinet_in (netinet/in.h): Likewise.
42216         * modules/poll (poll.h): Likewise.
42217         * modules/stdbool (stdbool.h): Likewise.
42218         * modules/stdint (stdint.h): Likewise.
42219         * modules/sys_select (sys/select.h): Likewise.
42220         * modules/sys_socket (sys/socket.h): Likewise.
42221         * modules/sys_stat (sys/stat.h): Likewise.
42222         * modules/sysexits (sysexits.h): Likewise.
42223         * modules/unistd (unistd.h): Likewise.
42224         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42225         Add a "DO NOT EDIT" comment to the generated file.
42226         (func_import): Likewise for gnulib-comp.m4.
42227
42228 2006-10-07  Bruno Haible  <bruno@clisp.org>
42229
42230         * lib/gl_sublist.h: New file.
42231         * lib/gl_sublist.c: New file.
42232
42233 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42234
42235         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42236         name (relative to the original working directory) and the file
42237         name component (relative to the temporary working directory).  All
42238         callers changed.
42239         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42240         * lib/mkdir-p.c (make_dir_parents): Likewise.
42241         * lib/mkdir-p.h (make_dir_parents): Likewise.
42242
42243 2006-10-06  Eric Blake  <ebb9@byu.net>
42244
42245         Define several macros for use by the clean-temp module.
42246         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42247         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42248         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42249
42250         * lib/clean-temp.h (close_stream_temp): New declaration.
42251         * lib/clean-temp.c (includes): Pull in headers according to what
42252         other modules are in use.
42253         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42254
42255 2006-10-06  Bruno Haible  <bruno@clisp.org>
42256
42257         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42258         instead of fopen, fwriteerror.
42259
42260 2006-10-06  Bruno Haible  <bruno@clisp.org>
42261
42262         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42263         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42264         int.
42265         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42266         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42267         Return an error indicator.
42268         Suggested by Eric Blake.
42269
42270 2006-10-06  Bruno Haible  <bruno@clisp.org>
42271
42272         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42273         Reported by Eric Blake.
42274
42275 2006-10-06  Bruno Haible  <bruno@clisp.org>
42276
42277         * modules/closeout (Description): Mention stderr too.
42278
42279 2006-10-06  Bruno Haible  <bruno@clisp.org>
42280         and Paul Eggert  <eggert@cs.ucla.edu>
42281
42282         * lib/closeout.c (close_stdout): Also close stderr.
42283         * lib/closeout.h: Update comment.
42284
42285 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42286
42287         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42288         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42289         * lib/dirchownmod.c: Include lchown.h.
42290         * lib/lchown.c: Don't include files that lchown.h now includes.
42291         Don't declare chown, since lchown.h now does that.
42292         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42293         (lchown): Define to rpl_chown if lchown is declared but
42294         does not exist.  Declare using a prototype if lchown is not
42295         declared.  Add a copyright notice.
42296         * lib/mkstemp.h: Include <unistd.h>.
42297         * lib/openat.c: Include lchown.h.
42298
42299         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42300         we now test for that separately.
42301         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42302         rather than O_NOFOLLOW, when testing whether it's possible to
42303         avoid a race condition reliably.
42304         * lib/savewd.c (savewd_chdir): Likewise.
42305
42306         Remove macros that are no longer needed now that stdint.h is
42307         reliable.
42308         * lib/fsusage.c (UINTMAX_MAX): Remove.
42309         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42310         * lib/utimecmp.c (SIZE_MAX): Remove.
42311
42312         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42313
42314         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42315         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42316         O_NOATIME works.
42317
42318 2006-10-05  Bruno Haible  <bruno@clisp.org>
42319
42320         * lib/gl_list.h (gl_sortedlist_search_from_to,
42321         gl_sortedlist_indexof_from_to): New declarations.
42322         (gl_list_implementation): New fields sortedlist_search_from_to,
42323         sortedlist_indexof_from_to.
42324         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42325         inline functions.
42326         * lib/gl_list.c (gl_sortedlist_search_from_to,
42327         gl_sortedlist_indexof_from_to): New functions.
42328         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42329         function.
42330         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42331         (gl_array_sortedlist_search_from_to): New function.
42332         (gl_array_list_implementation): Update.
42333         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42334         function.
42335         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42336         (gl_carray_sortedlist_search_from_to): New function.
42337         (gl_carray_list_implementation): Update.
42338         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42339         gl_linked_sortedlist_indexof_from_to): New functions.
42340         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42341         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42342         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42343         gl_tree_sortedlist_indexof_from_to): New functions.
42344         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42345         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42346         Update.
42347         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42348         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42349         Update.
42350
42351 2006-10-05  Bruno Haible  <bruno@clisp.org>
42352
42353         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42354         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42355         (struct gl_list_implementation): Add fields search_from_to,
42356         indexof_from_to. Remove fields search, indexof.
42357         (gl_list_search): Use the search_from_to method.
42358         (gl_list_search_from, gl_list_search_from_to): New functions.
42359         (gl_list_indexof): Use the indexof_from_to method.
42360         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42361         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42362         (gl_list_search_from, gl_list_search_from_to): New functions.
42363         (gl_list_indexof): Use the indexof_from_to method.
42364         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42365         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42366         gl_array_indexof. Add start_index, end_index arguments.
42367         (gl_array_search_from_to): Renamed from gl_array_search. Add
42368         start_index, end_index arguments.
42369         (gl_array_remove, gl_array_list_implementation): Update.
42370         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42371         gl_carray_indexof. Add start_index, end_index arguments.
42372         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42373         start_index, end_index arguments.
42374         (gl_carray_remove, gl_carray_list_implementation): Update.
42375         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42376         gl_linked_search. Add start_index, end_index arguments.
42377         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42378         start_index, end_index arguments.
42379         (gl_linked_remove): Update.
42380         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42381         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42382         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42383         field to 'size_t'.
42384         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42385         gl_tree_search. Add start_index, end_index arguments.
42386         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42387         start_index, end_index arguments.
42388         (gl_tree_remove): Update.
42389         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42390         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42391         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42392         function.
42393         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42394         gl_tree_search. Add start_index, end_index arguments.
42395         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42396         start_index, end_index arguments.
42397         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42398         Update.
42399         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42400
42401 2006-10-05  Bruno Haible  <bruno@clisp.org>
42402
42403         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42404
42405         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42406         fwriteerror_temp): New declarations.
42407         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42408         (descriptors): New variable.
42409         (cleanup): First, close the descriptors.
42410         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42411         fclose_temp, fwriteerror_temp): New functions.
42412
42413 2006-10-04  Jim Meyering  <jim@meyering.net>
42414
42415         * lib/fts.c (fts_open): Tiny comment change.
42416
42417 2006-10-04  Bruno Haible  <bruno@clisp.org>
42418
42419         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42420         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42421         gl_LOCK_BODY.
42422         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42423         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42424         gl_LOCK_EARLY_BODY.
42425         (gl_LOCK): Require gl_LOCK_BODY.
42426
42427 2006-10-04  Bruno Haible  <bruno@clisp.org>
42428
42429         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42430         (gl_oset_search_atleast): New declaration.
42431         (struct gl_oset_implementation): Add field 'search_atleast'.
42432         (gl_oset_search_atleast): New inline function.
42433         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42434         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42435         (gl_array_oset_implementation): Update.
42436         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42437         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42438         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42439
42440 2006-10-04  Bruno Haible  <bruno@clisp.org>
42441
42442         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42443
42444 2006-10-03  Bruno Haible  <bruno@clisp.org>
42445
42446         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42447         from gl_avltreehash_list_implementation.
42448
42449 2006-10-03  Bruno Haible  <bruno@clisp.org>
42450
42451         * lib/gl_oset.c (gl_oset_add): Fix return type.
42452
42453 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42454
42455         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42456
42457 2006-10-02  Eric Blake  <ebb9@byu.net>
42458
42459         * modules/strnlen (Depends-on): Add extensions.
42460
42461 2006-10-02  Eric Blake  <ebb9@byu.net>
42462
42463         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42464         definition in 2.60+.
42465
42466 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42467
42468         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42469         checks.
42470
42471 2006-10-02  Bruno Haible  <bruno@clisp.org>
42472
42473         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42474         to the AUTOMAKE_OPTIONS.
42475         Reported by Jim Meyering.
42476
42477 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42478
42479         Work around bug in Solaris 10 /proc file system:
42480         /proc/self/fd/NNN/.. isn't the parent directory of
42481         the directory whose file descriptor is NNN.  This needs to
42482         be worked around at run time, not compile time, since a
42483         program might be built on Solaris 8, where things work, and
42484         run on Solaris 10.
42485         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42486         to use the following interface instead:
42487         (OPENAT_BUFFER_SIZE): New macro.
42488         (openat_proc_name): New function.
42489         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42490         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42491         Likewise.
42492         * lib/openat-proc.c: New file.
42493         * modules/openat (Files): Add lib/openat-proc.c.
42494         (Depends-on): Add same-inode, stdbool.
42495         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42496
42497 2006-09-29  Bruno Haible  <bruno@clisp.org>
42498
42499         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42500         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42501         argument. Set stdout_closed before testing for ferror, not after.
42502         (fwriteerror, fwriteerror_no_ebadf): New functions.
42503
42504 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42505
42506         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42507
42508 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42509
42510         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42511         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42512
42513 2006-09-28  Jim Meyering  <jim@meyering.net>
42514
42515         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42516         Include <unistd.h>.
42517
42518 2006-09-28  Bruno Haible  <bruno@clisp.org>
42519
42520         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42521         * modules/linkedhash-list (Depends-on): Likewise.
42522         * modules/rbtreehash-list (Depends-on): Likewise.
42523
42524 2006-09-28  Bruno Haible  <bruno@clisp.org>
42525
42526         * lib/strndup.h: Simplify the redefinition of strndup.
42527         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42528         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42529
42530 2006-09-28  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42533         * lib/gl_linkedhash_list.c: Likewise.
42534         * lib/gl_rbtreehash_list.c: Likewise.
42535
42536 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42537
42538         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42539         getaddrinfo.
42540
42541         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42542         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42543         it causes <stdio_ext.h> to cause a compile-time error.
42544         Problem reported by Nelson H. F. Beebe.
42545         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42546         of HAVE_DECL___PENDING.
42547
42548         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42549         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42550         declaration.
42551
42552 2006-09-27  Jim Meyering  <jim@meyering.net>
42553
42554         This file could end up with a definition for a function
42555         named __strndup, rather than rpl_strndup on a system with
42556         incomplete weak_alias support.
42557         * lib/strndup.c (strndup): Rename from __strndup.
42558         Remove #defines that used to map __strndup to strndup.
42559         Don't use K&R prototypes.
42560         Remove LIBC-related code, since this file is not sync'd with glibc.
42561         * lib/strndup.h: Revamp, accordingly.
42562         * m4/strndup.m4: Modernize.
42563
42564 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42565
42566         * modules/savewd (Depends-on): Add 'raise'.
42567         * lib/savewd.c: Include <signal.h>, for 'raise'.
42568
42569 2006-09-26  Jim Meyering  <jim@meyering.net>
42570
42571         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42572         when we detect Darwin 8.7.0's acl_get_file bug.
42573         Rearrange to perform the new (below) run-test while $LIBS
42574         contains any acl-related library.  Set USE_ACL at the end.
42575         (gl_ACL_GET_FILE): New function.
42576
42577 2006-09-26  Eric Blake  <ebb9@byu.net>
42578
42579         * lib/verror.c: Include <config.h> unconditionally.
42580
42581 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42582
42583         * modules/clock-time (Maintainer): Add self.
42584         * modules/getlogin_r (Depends-on): Add extensions.
42585
42586 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42587
42588         * modules/clock-time: New module.
42589         * modules/nanosleep (Depends-on): Add clock-time.
42590         * modules/gethrxtime (Depends-on): Likewise.
42591         * modules/gettime (Depends-on): Likewise.
42592         * modules/settime (Depends-on): Likewise.
42593
42594         * modules/fts-lgpl: Depend on openat.
42595         * modules/mkancesdirs: Depend on savewd.
42596         * modules/mkdir-p: Likewise.
42597
42598 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42599
42600         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42601
42602         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42603         `gl_have_arbitrary_file_name_length_limit' to
42604         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42605         actually works between configure runs.
42606
42607 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42608             Bruno Haible  <bruno@clisp.org>
42609
42610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42611
42612 2006-09-25  Jim Meyering  <jim@meyering.net>
42613
42614         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42615         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42616
42617 2006-09-25  Eric Blake  <ebb9@byu.net>
42618
42619         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42620         exec's in 2006-09-18 patch when shuffling fds.
42621
42622 2006-09-25  Bruno Haible  <bruno@clisp.org>
42623
42624         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42625         Reported by Jim Meyering.
42626
42627 2006-09-24  Jim Meyering  <jim@meyering.net>
42628
42629         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42630         compare a pointer against a literal "0".  That caused failures with
42631         at least HP-UX's hpcc.
42632
42633 2006-09-22  Simon Josefsson  <jas@extundo.com>
42634
42635         * modules/gc-sha1:
42636         * modules/gc-md4:
42637         * modules/gc-hmac-sha1:
42638         * modules/gc-hmac-md5:
42639         * modules/gc-des:
42640         * modules/gc-arcfour: Distribute more files.
42641
42642 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42643
42644         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42645         (gl_linked_iterator_from_to): Initialize struct completely.
42646         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42647         (gl_tree_iterator_from_to): Likewise
42648         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42649         * lib/gl_array_list.c [lint] (gl_array_iterator)
42650         (gl_array_iterator_from_to): Likewise.
42651         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42652         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42653         (gl_carray_iterator_from_to): Likewise.
42654
42655         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42656         * lib/md4.c (md4_process_block): Remove unused variable.
42657         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42658         parentheses for clarity.
42659
42660 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42661
42662         * modules/bison-i18n (Depends-on): Add gettext.
42663
42664 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42665
42666         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42667         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42668         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42669         also add missing comma that caused broken test.
42670         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42671         stdlib.h, for `abort'.
42672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42673         variables.
42674         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42675         include unistd.h if present, for `rmdir'.
42676         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42677         variables.
42678         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42679         in the process include standard headers for prototypes.
42680         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42681         gets declared on GNU/Linux.
42682         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42683         unistd.h, for `rmdir'.
42684         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42685
42686         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42687         always true.
42688         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42689
42690         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42691
42692 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42693
42694         * gnulib-tool (func_version): Create output all at once.  This
42695         may help avoid triggering unnecessary SIGPIPEs, and at any
42696         rate it doesn't hurt.
42697
42698 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42699             Bruno Haible  <bruno@clisp.org>
42700
42701         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42702         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42703         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42704
42705         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42706         (gl_FUNC_VASPRINTF): Invoke it.
42707
42708 2006-09-22  Bruno Haible  <bruno@clisp.org>
42709
42710         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42711         getloadavg.c as first argument.
42712
42713 2006-09-22  Bruno Haible  <bruno@clisp.org>
42714
42715         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42716         at the beginning of the gl_INIT macro.
42717         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42718         gl_GETLOADAVG.
42719
42720 2006-09-22  Bruno Haible  <bruno@clisp.org>
42721
42722         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42723         module.
42724         Suggested by Ralf Wildenhues.
42725
42726 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42727
42728         Import this patch from libc:
42729
42730         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42731
42732         * lib/regex_internal.c (re_string_reconstruct): Handle
42733         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42734         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42735         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42736         re_string_context_at.
42737
42738         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42739         now requires it.
42740         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42741         gl_REGEX now does it for us.
42742         (gl_REGEX): Add test taken from
42743         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42744
42745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42746         Check that large offsets work.  Modernize Autoconf usages.
42747         Prefer "yes" to mean a good thing rather than a bad.
42748         Don't put "#define mkstemp" in config.h, as this might interfere
42749         with standard system headers that "#define mkstemp mkstemp64".
42750
42751         * modules/mkstemp (Depends-on): Add extensions, so that
42752         mkstemp is visible on some platforms.
42753         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42754         (Include): Change to "mkstemp.h" from <stdlib.h>.
42755         (Files): Add mkstemp.h.
42756
42757         * lib/mkstemp.h: New file, since some standard headers
42758         #define mkstemp.
42759         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42760         Include "mkstemp.h".
42761         Make the _LIBC code resemble glibc original more,
42762         e.g., use K&R style.
42763         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42764         (mkstemp): Remove, since mkstemp.h does this for us.
42765         * lib/stdlib--.h: Include mkstemp.h.
42766
42767         Import this patch from libc:
42768
42769         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42770
42771         * lib/tempname.c (__gen_tempname): Change attempts_min
42772         into a macro.  Use preprocessor to decide how to initialize
42773         attempts [Coverity CID 67].
42774
42775 2006-09-20  Bruno Haible  <bruno@clisp.org>
42776
42777         * lib/mkdtemp.c: Import from libc.
42778         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42779                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42780                 attempts_min into a macro.  Use preprocessor to decide how to
42781                 initialize attempts [Coverity CID 67].
42782         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42783                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42784                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42785
42786 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42787
42788         * gnulib-tool (func_exit): New function, to allow to pass the
42789         exit status portably through the trap.  Use everywhere.
42790         (--help, --version): Signal a write error.
42791         (trap): catch SIGPIPE, for write errors.
42792         Exit at the end of the trap, with the correct exit status.
42793
42794 2006-09-19  Karl Berry  <karl@gnu.org>
42795
42796         * doc/gnulib.texi: note about the license texinfo files.
42797
42798 2006-09-19  Eric Blake  <ebb9@byu.net>
42799
42800         * gnulib-tool: Avoid space-tab.
42801
42802 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42803
42804         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42805         that prevented coreutils 6.1 from building.  Problem reported
42806         by Petter Reinholdtsen.
42807
42808 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42809
42810         * gnulib-tool (avoidlist): Fix typo that broke options like
42811         --avoid=lock that are used by coreutils bootstrap.
42812
42813 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42814
42815         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42816         more systematically.
42817
42818 2006-09-18  Jim Meyering  <jim@meyering.net>
42819
42820         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42821
42822 2006-09-18  Bruno Haible  <bruno@clisp.org>
42823
42824         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42825
42826 2006-09-18  Bruno Haible  <bruno@clisp.org>
42827
42828         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42829         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42830         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42831         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42832         * m4/gettext.m4: Require autoconf >= 2.52.
42833         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42834         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42835         of gl_cv_header_inttypes_h.
42836
42837 2006-09-18  Bruno Haible  <bruno@clisp.org>
42838
42839         * lib/javaversion.c: Include configmake.h.
42840
42841 2006-09-18  Bruno Haible  <bruno@clisp.org>
42842
42843         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42844         avoid that the while loops be executed in a subshell.
42845
42846 2006-09-18  Bruno Haible  <bruno@clisp.org>
42847
42848         * MODULES.html.sh (func_module): Break long lines.
42849         Suggested by Bruce Korb <bkorb@gnu.org>.
42850
42851 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42852
42853         Speed up by a factor of 1.12.
42854         * gnulib-tool (nl): New variable.
42855         (func_import): Rewrite include directive extraction to only read each
42856         directive once.
42857
42858 2006-09-17  Bruno Haible  <bruno@clisp.org>
42859
42860         * modules/javaversion (Makefile.am): Remove DEFS setting.
42861         (Depends-on): Add configmake, for PKGDATADIR definition.
42862
42863 2006-09-17  Bruno Haible  <bruno@clisp.org>
42864
42865         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42866
42867 2006-09-17  Bruno Haible  <bruno@clisp.org>
42868
42869         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42870         (func_modules_transitive_closure, func_modules_add_dummy,
42871         func_modules_to_filelist, func_import, func_create_testdir,
42872         func_create_megatestdir, ...): Use it wherever possible.
42873         Suggested by Ralf Wildenhues.
42874
42875 2006-09-16  Karl Berry  <karl@gnu.org>
42876
42877         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42878         to avoid sectioning errors.
42879         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42880         [ifinfo]: blank line after @center-ed titles.
42881         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42882         Spell FSF address consistently with others.
42883         (These changes approved by rms.)
42884
42885 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42886
42887         Speed up by a factor of 1.61.
42888         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42889         already checked module names again.
42890
42891 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42892
42893         Speed up by a factor of 1.13.
42894         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42895         for new_files, and the input to func_add_or_update.
42896
42897 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42898
42899         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42900         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42901
42902 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42903
42904         * modules/mkancesdirs (Depends-on): Add fcntl.
42905         * modules/savewd: New file.
42906         * MODULES.html.sh (File system functions): Add savewd.
42907
42908         * modules/configmake (Makefile.am): Add support for the
42909         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42910
42911 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42912
42913         * m4/savewd.m4: New file.
42914
42915 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42916
42917         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42918         (dirchownmod): New arg FD.  All callers changed.
42919         Use FD rather than opening the directory ourself, as opening is
42920         now the caller's responsibility.
42921         * lib/dirchownmod.h: Likewise.
42922         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42923         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42924         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42925         (test_dir): Remove.
42926         (mkancesdirs): Return length of prefix of FILE that has already
42927         been made, or -2 if there is a child doing the work.  Redo
42928         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42929         ".", and treat ".." specially since it might stray back into
42930         already-created areas.  Use a subprocess if necessary.  New arg
42931         WD; all users changed.  MAKE_DIR function should now return 1
42932         if it creates a directory that is not readable.  Return -2 if
42933         a child process is spun off.
42934         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42935         Adjust signature to match code.
42936         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42937         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42938         all users changed.
42939         * lib/savewd.c, lib/savewd.h: New files.
42940
42941 2006-09-15  Jim Meyering  <jim@meyering.net>
42942
42943         * modules/rename-dest-slash: New module.
42944         * MODULES.html.sh (posix_compat): Add it here.
42945
42946         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42947
42948 2006-09-15  Jim Meyering  <jim@meyering.net>
42949
42950         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42951         file.
42952
42953         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42954
42955 2006-09-15  Jim Meyering  <jim@meyering.net>
42956
42957         * lib/rename-dest-slash.c (has_trailing_slash): Use
42958         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42959         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42960         test before testing whether SRC is a directory.
42961         Suggestions from Bruno Haible.
42962
42963         Avoid a warning about an unused variable.
42964         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42965         into the #ifdef block where it's used.
42966
42967         * lib/rename-dest-slash.c: New file.
42968
42969 2006-09-14  Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/allocsa.c: Include <config.h> unconditionally.
42972         * lib/asnprintf.c: Likewise.
42973         * lib/asprintf.c: Likewise.
42974         * lib/c-strcasecmp.c: Likewise.
42975         * lib/c-strcasestr.c: Likewise.
42976         * lib/c-strncasecmp.c: Likewise.
42977         * lib/c-strstr.c: Likewise.
42978         * lib/classpath.c: Likewise.
42979         * lib/clean-temp.c: Likewise.
42980         * lib/concatpath.c: Likewise.
42981         * lib/copy-file.c: Likewise.
42982         * lib/csharpcomp.c: Likewise.
42983         * lib/csharpexec.c: Likewise.
42984         * lib/execute.c: Likewise.
42985         * lib/fatal-signal.c: Likewise.
42986         * lib/findprog.c: Likewise.
42987         * lib/fwriteerror.c: Likewise.
42988         * lib/gl_array_list.c: Likewise.
42989         * lib/gl_array_oset.c: Likewise.
42990         * lib/gl_avltree_list.c: Likewise.
42991         * lib/gl_avltree_oset.c: Likewise.
42992         * lib/gl_avltreehash_list.c: Likewise.
42993         * lib/gl_carray_list.c: Likewise.
42994         * lib/gl_linked_list.c: Likewise.
42995         * lib/gl_linkedhash_list.c: Likewise.
42996         * lib/gl_list.c: Likewise.
42997         * lib/gl_oset.c: Likewise.
42998         * lib/gl_rbtree_list.c: Likewise.
42999         * lib/gl_rbtree_oset.c: Likewise.
43000         * lib/gl_rbtreehash_list.c: Likewise.
43001         * lib/imaxabs.c: Likewise.
43002         * lib/imaxdiv.c: Likewise.
43003         * lib/javacomp.c: Likewise.
43004         * lib/javaexec.c: Likewise.
43005         * lib/javaversion.c: Likewise.
43006         * lib/linebreak.c: Likewise.
43007         * lib/localcharset.c: Likewise.
43008         * lib/lock.c: Likewise.
43009         * lib/mbchar.c: Likewise.
43010         * lib/mbswidth.c: Likewise.
43011         * lib/mkdtemp.c: Likewise.
43012         * lib/pipe.c: Likewise.
43013         * lib/printf-args.c: Likewise.
43014         * lib/printf-parse.c: Likewise.
43015         * lib/progname.c: Likewise.
43016         * lib/progreloc.c: Likewise.
43017         * lib/readlink.c: Likewise.
43018         * lib/sh-quote.c: Likewise.
43019         * lib/stpcpy.c: Likewise.
43020         * lib/stpncpy.c: Likewise.
43021         * lib/strcasecmp.c: Likewise.
43022         * lib/strcasestr.c: Likewise.
43023         * lib/strcspn.c: Likewise.
43024         * lib/striconv.c: Likewise.
43025         * lib/strncasecmp.c: Likewise.
43026         * lib/strnlen1.c: Likewise.
43027         * lib/strstr.c: Likewise.
43028         * lib/strtok_r.c: Likewise.
43029         * lib/tls.c: Likewise.
43030         * lib/tmpdir.c: Likewise.
43031         * lib/unicodeio.c: Likewise.
43032         * lib/unsetenv.c: Likewise.
43033         * lib/vasnprintf.c: Likewise.
43034         * lib/vasprintf.c: Likewise.
43035         * lib/wait-process.c: Likewise.
43036         * lib/xallocsa.c: Likewise.
43037         * lib/xsetenv.c: Likewise.
43038         * lib/xstriconv.c: Likewise.
43039
43040 2006-09-13  Simon Josefsson  <jas@extundo.com>
43041
43042         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43043         that internally, suggested by Ralf Wildenhues
43044         <Ralf.Wildenhues@gmx.de>.
43045
43046 2006-09-13  Simon Josefsson  <jas@extundo.com>
43047
43048         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43049         @LIBOBJS@.
43050         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43051
43052 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43053
43054         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43055         longer worry about uses that don't define HAVE_CONFIG_H.
43056         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43057         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43058         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43059         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43060         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43061         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43062         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43063         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43064         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43065         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43066         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43067         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43068         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43069         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43070         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43071         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43072         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43073         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43074         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43075         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43076         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43077         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43078         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43079         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43080         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43081         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43082         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43083         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43084         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43085         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43086         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43087         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43088         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43089         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43090         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43091         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43092         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43093         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43094         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43095         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43096         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43097         Likewise.
43098
43099 2006-09-13  Eric Blake  <ebb9@byu.net>
43100
43101         * lib/getopt.c: Fix typo in last commit.
43102
43103 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43104
43105         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43106         dgettext.
43107
43108 2006-09-12  Jim Meyering  <jim@meyering.net>
43109
43110         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43111         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43112         Reported by Nelson H. F. Beebe.
43113
43114 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43115
43116         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43117         program_invocation_name and program_invocation_short_name are
43118         initialized.
43119         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43120         and program_invocation_short_name to argp.h, so they are visible
43121         to user programs.
43122         * lib/argp.h: Likewise
43123
43124 2006-09-10  Bruno Haible  <bruno@clisp.org>
43125
43126         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43127         m4/inttypes_h.m4, m4/uintmax_t.m4.
43128
43129 2006-09-10  Bruno Haible  <bruno@clisp.org>
43130
43131         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43132         gl_AC_TYPE_UINTMAX_T.
43133
43134 2006-09-10  Bruno Haible  <bruno@clisp.org>
43135
43136         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43137
43138 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43139
43140         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43141         convention.  Text proposed by Bruno Haible.
43142         (struct argp_option): Document the use of N_() wrappers.
43143
43144         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43145         '\v', and translate the two parts separately, instead of feeding
43146         the whole string to gettext.  This allows to exclude
43147         '\v' from the strings visible to the translator by writing doc
43148         strings as N_("..") "\v" N_("..").
43149
43150 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43151
43152         * config/srclist.txt: Undo latest change; the bug was fixed.
43153
43154 2006-09-09  Bruno Haible  <bruno@clisp.org>
43155
43156         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43157         assignments if building a library without libtool.
43158         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43159         in func_emit_lib_Makefile_am.
43160         (func_import): When building a static library libfoo.a, arrange to
43161         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43162         (func_create_testdir): Likewise.
43163         * modules/gc (configure.ac, Makefile.am): If building statically,
43164         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43165         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43166         * modules/striconv (configure.ac, Makefile.am): Likewise.
43167         Based on a suggestion by Ralf Wildenhues.
43168
43169 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43170
43171         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43172         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43173         Also:
43174
43175         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43176         Add year_2050_test to catch glibc bug 2821
43177         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43178
43179         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43180         Prefer #ifdef to #if.
43181
43182         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43183         Return from 'main' instead of calling 'exit'.
43184
43185 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43186
43187         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43188         returned the maximum time_t value rather than (time_t) -1.
43189         Problem originally reported by William Bardwell
43190         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43191
43192         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43193         Moved to here ...
43194         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43195         ... from here.
43196
43197 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43198
43199         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43200         2821 is fixed.
43201
43202 2006-09-08  Jim Meyering  <jim@meyering.net>
43203
43204         Don't make generated files read-only.  That would bother too many
43205         people.  However, do retain the ability to work when targets are
43206         read-only: remove the destination and temporary files before writing
43207         them (when generated via sed or echo), or by using the -f option for
43208         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43209         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43210         * modules/byteswap, modules/configmake, modules/fcntl:
43211         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43212         * modules/localcharset, modules/netinet_in, modules/poll:
43213         * modules/stdbool, modules/stdint, modules/sys_select:
43214         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43215
43216 2006-09-08  Jim Meyering  <jim@meyering.net>
43217
43218         Avoid new build failure on FreeBSD 6.0.
43219         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43220         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43221         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43222
43223 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43224
43225         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43226
43227 2006-09-07  Jim Meyering  <jim@meyering.net>
43228
43229         Fix global typo in last change: use chmod u-w, not chmod u-x.
43230         Spotted by Paul Eggert and Bruce Korb.
43231         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43232         * modules/byteswap, modules/configmake, modules/fcntl:
43233         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43234         * modules/localcharset, modules/netinet_in, modules/poll:
43235         * modules/stdbool, modules/stdint, modules/sys_select:
43236         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43237
43238 2006-09-06  Jim Meyering  <jim@meyering.net>
43239
43240         Make generated files be read-only.
43241         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43242         Ensure that each generated file is now read-only.
43243         * modules/argz: Likewise.
43244         * modules/arpa_inet: Likewise.
43245         * modules/byteswap: Likewise.
43246         * modules/configmake: Likewise.
43247         * modules/fcntl: Likewise.
43248         * modules/fnmatch: Likewise.
43249         * modules/getopt: Likewise.
43250         * modules/glob: Likewise.
43251         * modules/inttypes: Likewise.
43252         * modules/netinet_in: Likewise.
43253         * modules/poll: Likewise.
43254         * modules/stdbool: Likewise.
43255         * modules/stdint: Likewise.
43256         * modules/sys_select: Likewise.
43257         * modules/sys_socket: Likewise.
43258         * modules/sys_stat: Likewise.
43259         * modules/sysexits: Likewise.
43260         * modules/localcharset: Same as above, but continue using temporary
43261         file named "t-$@" (why different?) rather than the "$@-t" used
43262         everywhere else.
43263
43264         * modules/sysexits (Makefile.am): Replace literal occurrences
43265         of "sysexit.h" more readable, and more consistent, "$@".
43266
43267 2006-09-06  Bruno Haible  <bruno@clisp.org>
43268
43269         * modules/striconv: New file.
43270         * modules/xstriconv: New file.
43271         * MODULES.html.sh (Internationalization functions): Add striconv,
43272         xstriconv.
43273
43274 2006-09-06  Bruno Haible  <bruno@clisp.org>
43275
43276         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43277         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43278         not using libtool correctly.
43279
43280 2006-09-06  Bruno Haible  <bruno@clisp.org>
43281
43282         * lib/striconv.h: New file.
43283         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43284         iconvstring.c.
43285         * lib/xstriconv.h: New file.
43286         * lib/xstriconv.c: New file.
43287
43288 2006-09-06  Bruno Haible  <bruno@clisp.org>
43289
43290         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43291         lib_..._LDFLAGS.
43292
43293 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43294
43295         * lib/argz_.h: Sync from Libtool.
43296
43297         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43298                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43299
43300         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43301
43302 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43303
43304         * modules/trim: New file.
43305
43306 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43307
43308         * lib/trim.h: New file.
43309         * lib/trim.c: New file.
43310
43311 2006-09-05  Bruno Haible  <bruno@clisp.org>
43312
43313         * MODULES.html.sh (String handling): Add trim.
43314
43315 2006-09-04  Karl Berry  <karl@gnu.org>
43316
43317         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43318         until next release.
43319
43320 2006-09-03  Bruno Haible  <bruno@clisp.org>
43321
43322         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43323         correctly.
43324
43325 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43326
43327         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43328         not gl_GETLOADAVG.  Omit unneeded semicolons.
43329         Problems reported by Ralf Wildenhues in
43330         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43331         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43332         at the end, which is the usual gnulib style.
43333
43334         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43335         of doing all the work ourselves.
43336         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43337         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43338
43339 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43340
43341         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43342         Problem reported by Ralf Wildenhues in
43343         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43344
43345         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43346         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43347
43348 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43349
43350         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43351         yesterday's patch by changing test -n to test -z.
43352
43353 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43354
43355         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43356         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43357         the former is now obsolescent.
43358
43359         * modules/chdir-long (Depends-on): Add fcntl.
43360
43361 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43362
43363         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43364         obsolescent, and programs should use gnulib instead.
43365         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43366         but with prefixes changed.
43367
43368 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43369
43370         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43371         or stdbool.h, because they might not exist while configuring.
43372
43373         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43374         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43375         does that for us.
43376         (O_DIRECTORY): Remove.
43377
43378 2006-08-31  Eric Blake  <ebb9@byu.net>
43379
43380         * gnulib-tool: Don't let emacs change spaces to TAB.
43381
43382 2006-08-31  Bruno Haible  <bruno@clisp.org>
43383
43384         * gnulib-tool: When calling func_import more than once, do it in a
43385         subshell.
43386         Reported by Eric Blake <ebb9@byu.net>.
43387
43388 2006-08-31  Bruno Haible  <bruno@clisp.org>
43389
43390         * gnulib-tool (nl): Remove variable.
43391         (sed_transform_lib_file): Use more robust test for config-h module.
43392         (func_import): Fix typo in 2006-08-25 patch.
43393
43394 2006-08-31  Bruno Haible  <bruno@clisp.org>
43395
43396         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43397         specified, augment Makefile.am variables instead of assigning them.
43398
43399 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43400
43401         Work around a bug in both the Linux and SunOS 64-bit kernels:
43402         nanosleep mishandles sleeps for longer than 2**31 seconds.
43403         Problem reported by Frank v Waveren in
43404         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43406         Check for nanosleep bug.
43407         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43408
43409 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43410
43411         Work around a bug in both the Linux and SunOS 64-bit kernels:
43412         nanosleep mishandles sleeps for longer than 2**31 seconds.
43413         Problem reported by Frank v Waveren in
43414         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43415         * lib/nanosleep.c (BILLION): New constant.
43416         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43417         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43418         implementation.
43419
43420 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43421
43422         * modules/nanosleep (Depends-on): Add gettime.
43423
43424 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43425         and Simon Josefsson  <jas@extundo.com>
43426         and Oskar Liljeblad  <oskar@osk.mine.nu>
43427
43428         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43429         * gnulib-tool (func_import): New license type 'unmodifiable license
43430         text'.
43431         * modules/fdl: Use it.  Longer description.
43432         * module/gpl, module/lgpl: New files.
43433
43434 2006-08-30  Jim Meyering  <jim@meyering.net>
43435
43436         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43437         shadowing the parameter.
43438
43439 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43440
43441         Sync from Libtool:
43442
43443         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43444
43445         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43446         sharing with gnulib.  Report by Eric Blake.
43447
43448 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43449
43450         * modules/isapipe: New file.
43451         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43452
43453 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43454
43455         * modules/configmake (Makefile.am): Add a comment, and omit
43456         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43457         by Bruno Haible.
43458
43459 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43460
43461         * m4/isapipe.m4: New file.
43462
43463 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43464
43465         * lib/isapipe.c, lib/isapipe.h: New files.
43466
43467 2006-08-29  Jim Meyering  <jim@meyering.net>
43468
43469         * modules/configmake (Makefile.am): Make configmake.h depend on
43470         Makefile.  Otherwise, a stale configmake.h could hang around.
43471
43472 2006-08-29  Eric Blake  <ebb9@byu.net>
43473
43474         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43475         resolution of upstream bug 3044.
43476
43477 2006-08-29  Bruno Haible  <bruno@clisp.org>
43478
43479         * modules/localcharset (Depends-on): Add configmake.
43480         (Makefile.am): Remove setting of LIBDIR through DEFS.
43481
43482 2006-08-29  Bruno Haible  <bruno@clisp.org>
43483
43484         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43485         defined.
43486
43487 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43488
43489         * modules/fcntl: New file.
43490         * modules/chdir-safer (Depends-on): Add fcntl.
43491         * modules/fts: Likewise.
43492         * modules/mkdir-p: Likewise.
43493
43494         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43495         This undoes the most recent change, since we're now addressing the
43496         problem in a different way.
43497
43498         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43499         into output, since the output might be called Makefile.am even
43500         if $makefile_name is something different.
43501         (func_import): Use $makefile_am rather than
43502         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43503         empty.
43504
43505         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43506
43507 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43508
43509         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43510         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43511         recent change to stdint.m4, since we're now addressing the problem in a
43512         different way.
43513
43514 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43515
43516         * m4/fcntl_h.m4: New file.
43517
43518 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43519
43520         * lib/fcntl_.h: New file.
43521         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43522         the fcntl module.
43523         * lib/dirchownmod.c: Likewise.
43524         * lib/fts.c: Likewise.
43525
43526         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43527         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43528         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43529         just before including <inttypes.h>, to avoid circular inclusion.
43530
43531 2006-08-28  Jim Meyering  <jim@meyering.net>
43532
43533         * doc/visibility.texi: Actually read and correct the grammar of the
43534         sentence affected by yesterday's change.
43535
43536 2006-08-28  Eric Blake  <ebb9@byu.net>
43537
43538         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43539         needs wrapper.
43540
43541 2006-08-28  Eric Blake  <ebb9@byu.net>
43542
43543         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43544
43545 2006-08-28  Eric Blake  <ebb9@byu.net>
43546
43547         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43548
43549 2006-08-28  Bruno Haible  <bruno@clisp.org>
43550
43551         * modules/c-strstr: New file, from GNU gettext.
43552         * MODULES.html.sh (String handling): Add c-strstr.
43553
43554 2006-08-28  Bruno Haible  <bruno@clisp.org>
43555
43556         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43557         macros.
43558         Reported by Eric Blake.
43559
43560 2006-08-28  Bruno Haible  <bruno@clisp.org>
43561
43562         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43563         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43564         * lib/vasprintf.c: Include errno.h, limits.h.
43565         (EOVERFLOW): New fallback definition.
43566         (vasprintf): Test here whether the string length is > INT_MAX.
43567         * lib/vsnprintf.c: Include errno.h, limits.h.
43568         (EOVERFLOW): New fallback definition.
43569         (vsnprintf): Fix bug when generated string was too long for the buffer.
43570         Test here whether the string length is > INT_MAX.
43571
43572 2006-08-28  Bruno Haible  <bruno@clisp.org>
43573
43574         * lib/inttypes_.h (SCNX*): Remove definitions.
43575         Reported by Eric Blake.
43576
43577 2006-08-28  Bruno Haible  <bruno@clisp.org>
43578
43579         * lib/c-strstr.h: New file, from GNU gettext.
43580         * lib/c-strstr.c: New file, from GNU gettext.
43581
43582 2006-08-28  Bruno Haible  <bruno@clisp.org>
43583
43584         * gnulib-tool: Reorder some statements.
43585
43586 2006-08-28  Bruno Haible  <bruno@clisp.org>
43587
43588         * gnulib-tool: New option --makefile-name.
43589         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43590         $makefile_name.
43591         (func_import): Write $makefile_name to the cache file, and read it from
43592         there unless explicitly specified. Use $makefile_name as file name
43593         instead of Makefile.am. Adjust the recommendations accordingly.
43594
43595 2006-08-28  Bruno Haible  <bruno@clisp.org>
43596
43597         * gnulib-tool (func_verify_module): Check against misapplying patch.
43598
43599 2006-08-28  Bruno Haible  <bruno@clisp.org>
43600
43601         * gnulib-tool (func_relativize, func_relconcat): New functions.
43602         Give an error if --local-dir is given with --update.
43603         Remove trailing slashes from $local_gnulib_dir.
43604         (func_import): Store the relativized $local_gnulib_dir in
43605         gnulib-cache.m4, and read it from there if not specified explicitly.
43606
43607 2006-08-28  Bruno Haible  <bruno@clisp.org>
43608
43609         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43610         is the current directory. Respect also $local_gnulib_dir.
43611
43612 2006-08-28  Bruno Haible  <bruno@clisp.org>
43613             Simon Josefsson  <jas@extundo.com>
43614
43615         BeOS portability.
43616         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43617
43618 2006-08-27  Jim Meyering  <jim@meyering.net>
43619
43620         * doc/visibility.texi: Remove duplicate word: "pointer".
43621
43622 2006-08-26  Bruno Haible  <bruno@clisp.org>
43623
43624         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43625         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43626         (Makefile.am): Create inttypes.h from inttypes_.h.
43627         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43628
43629         * modules/imaxabs: New file.
43630
43631         * modules/imaxdiv: New file.
43632
43633 2006-08-26  Bruno Haible  <bruno@clisp.org>
43634
43635         * m4/inttypes.m4: New file.
43636         * m4/_inttypes_h.m4: Remove file.
43637         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43638         PRI_MACROS_BROKEN.
43639         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43640
43641         * m4/imaxabs.m4: New file.
43642
43643         * m4/imaxdiv.m4: New file.
43644
43645 2006-08-26  Bruno Haible  <bruno@clisp.org>
43646
43647         * lib/inttypes_.h: New file.
43648         * lib/inttypes.h: Remove file.
43649         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43650
43651         * lib/imaxabs.c: New file.
43652
43653         * lib/imaxdiv.c: New file.
43654
43655 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43656
43657         New config-h module, so that "make" output needn't be cluttered
43658         by -DHAVE_CONFIG_H.
43659         * MODULES.html.sh (Support for building libraries and executables):
43660         Add config-h.
43661         * modules/config-h: New file.
43662         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43663         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43664         the config-h module is used.
43665
43666         New configmake module, so that "make" output needn't be cluttered
43667         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43668         * MODULES.html.sh (Support for building libraries and executables):
43669         Add configmake.
43670         * modules/configmake: New file.
43671
43672 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43673
43674         * m4/config-h.m4: New file.
43675
43676 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43677
43678         * config/srclist.txt: Add elisp-comp.
43679
43680 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43681
43682         * MODULES.html.sh (Support for building libraries and executables):
43683         Add elisp-comp.
43684         * build-aux/elisp-comp: New file.
43685         * modules/elisp-comp: New file.
43686
43687 2006-08-24  Bruno Haible  <bruno@clisp.org>
43688
43689         * gnulib-tool (func_create_testdir): Use non-default values of
43690         sourcebase and m4base.
43691
43692 2006-08-24  Bruno Haible  <bruno@clisp.org>
43693
43694         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43695         HTML structure.
43696
43697 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43698
43699         * modules/openat (Depends-on): Add lchown.
43700
43701 2006-08-23  Bruno Haible  <bruno@clisp.org>
43702
43703         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43704         of gl_LOCK_EARLY instead of gl_LOCK.
43705
43706 2006-08-23  Bruno Haible  <bruno@clisp.org>
43707
43708         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43709         on OSF/1 to no.
43710         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43711
43712 2006-08-23  Bruno Haible  <bruno@clisp.org>
43713
43714         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43715         as unusable.
43716
43717         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43718         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43719         (gl_LOCK): New macro.
43720
43721 2006-08-22  Simon Josefsson  <jas@extundo.com>
43722
43723         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43724         to md5 module.
43725
43726 2006-08-22  Simon Josefsson  <jas@extundo.com>
43727
43728         * MODULES.html.sh: Add "Support for maintaining and release
43729         projects".
43730
43731         * build-aux/gnupload: New file, from coreutils.
43732
43733 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43734
43735         Avoid the need for AC_LIBSOURCES in m4 macros.
43736         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43737         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43738         * modules/check-version (EXTRA_DIST): Add check-version.h.
43739         * modules/crc (EXTRA_DIST): Add crc.h.
43740         * modules/des (EXTRA_DIST): Add des.h.
43741         * modules/gc (EXTRA_DIST): Add gc.h.
43742         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43743         * modules/getline (EXTRA_DIST): Add getline.h.
43744         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43745         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43746         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43747         * modules/md2 (EXTRA_DIST): Add md2.h.
43748         * modules/md4 (EXTRA_DIST): Add md4.h.
43749         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43750         * modules/read-file (EXTRA_DIST): Add read-file.h.
43751         * modules/readline (EXTRA_DIST): Add readline.h.
43752         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43753         rijndael-api-fst.h.
43754
43755 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43756
43757         * m4/rijndael.m4 (gl_ARCFOUR):
43758         * m4/arctwo.m4 (gl_ARCTWO):
43759         * m4/check-version.m4 (gl_CHECK_VERSION):
43760         * m4/crc.m4 (gl_CRC):
43761         * m4/des.m4 (gl_DES):
43762         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43763         * m4/gc.m4 (gl_GC):
43764         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43765         * m4/getline.m4 (gl_FUNC_GETLINE):
43766         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43767         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43768         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43769         * m4/md2.m4 (gl_MD2):
43770         * m4/md4.m4 (gl_MD4):
43771         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43772         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43773         * m4/readline.m4 (gl_FUNC_READLINE):
43774         * m4/rijndael.m4 (gl_RIJNDAEL):
43775         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43776         to get the necessary .h files and whatnot.
43777
43778 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43779
43780         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43781         gnulib rather than the other way around.
43782         * config/srclistvars.sh (COREUTILS): Remove.
43783
43784 2006-08-22  Jim Meyering  <jim@meyering.net>
43785
43786         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43787
43788         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43789
43790 2006-08-22  Eric Blake  <ebb9@byu.net>
43791
43792         * modules/regexprops-generic: New file.
43793         * MODULES.html.sh (Support for building documentation): List it.
43794
43795 2006-08-22  Eric Blake  <ebb9@byu.net>
43796
43797         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43798         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43799         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43800         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43801
43802 2006-08-22  Bruno Haible  <bruno@clisp.org>
43803
43804         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43805         and lib_LTLIBRARIES like the other lib_* variables.
43806
43807 2006-08-22  Bruno Haible  <bruno@clisp.org>
43808
43809         * build-aux/x-to-1.in: New file, from GNU gettext.
43810
43811 2006-08-22  Bruno Haible  <bruno@clisp.org>
43812
43813         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43814         <utmpx.h> exists.
43815
43816 2006-08-22  Bruno Haible  <bruno@clisp.org>
43817
43818         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43819         <utmpx.h> exists.
43820
43821 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43822
43823         BeOS portability.
43824         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43825         exist.
43826         Problem reported by Bruno Haible.
43827
43828 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43829
43830         Avoid the need for AC_LIBSOURCES in m4 macros.
43831         * modules/acl (EXTRA_DIST): Add acl.h.
43832         * modules/argmatch (Files): Add m4/argmatch.m4.
43833         (configure.ac): Add gl_ARGMATCH.
43834         (EXTRA_DIST): Renamed from lib_SOURCES, for
43835         consistency with the other modules.  Remove argmatch.c.
43836         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43837         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43838         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43839         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43840         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43841         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43842         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43843         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43844         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43845         * modules/closeout (EXTRA_DIST): Add closeout.h.
43846         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43847         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43848         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43849         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43850         dirname.h; remove basename.c and stripslash.c.
43851         * modules/exclude (EXTRA_DIST): Add exclude.h.
43852         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43853         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43854         * modules/file-type (EXTRA_DIST): Add file-type.h.
43855         * modules/filemode (EXTRA_DIST): Add filemode.h.
43856         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43857         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43858         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43859         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43860         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43861         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43862         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43863         * modules/getdate (EXTRA_DIST): Add getdate.c.
43864         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43865         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43866         * modules/getpass (EXTRA_DIST): Add getpass.h.
43867         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43868         * modules/group-member (EXTRA_DIST): Add group-member.h.
43869         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43870         * modules/hash (EXTRA_DIST): Add hash.h.
43871         * modules/human (EXTRA_DIST): Add human.h.
43872         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43873         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43874         * modules/lchown (EXTRA_DIST): Add lchown.h.
43875         * modules/long-options (EXTRA_DIST): Add long-options.h.
43876         * modules/lstat (EXTRA_DIST): Add lstat.h.
43877         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43878         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43879         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43880         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43881         * modules/memxor (EXTRA_DIST): Add memxor.h.
43882         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43883         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43884         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43885         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43886         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43887         * modules/physmem (EXTRA_DIST): Add physmem.h.
43888         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43889         * modules/posixver (EXTRA_DIST): Add posixver.h.
43890         * modules/quote (EXTRA_DIST): Add quote.h.
43891         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43892         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43893         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43894         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43895         regex_internal.h regexec.c.
43896         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43897         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43898         * modules/same (EXTRA_DIST): Add same.h.
43899         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43900         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43901         * modules/savedir (EXTRA_DIST): Add savedir.h.
43902         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43903         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43904         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43905         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43906         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43907         * modules/strdup (EXTRA_DIST): Add strdup.h.
43908         * modules/strftime (EXTRA_DIST): Add strftime.h.
43909         * modules/strndup (EXTRA_DIST): Add strndup.h.
43910         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43911         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43912         * modules/time_r (EXTRA_DIST): Add time_r.h.
43913         * modules/timespec (EXTRA_DIST): Add timespec.h.
43914         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43915         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43916         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43917         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43918         * modules/userspec (EXTRA_DIST): Add userspec.h.
43919         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43920         * modules/utimens (EXTRA_DIST): Add utimens.h.
43921         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43922         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43923         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43924         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43925         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43926         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43927         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43928         * modules/yesno (EXTRA_DIST): Add yesno.h.
43929
43930 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43931
43932         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43933
43934         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43935         * m4/dev-ino.m4, same-inode.m4: Remove.
43936
43937         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43938         * m4/acl.m4 (AC_FUNC_ACL):
43939         * m4/backupfile.m4 (gl_BACKUPFILE):
43940         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43941         * m4/canon-host.m4 (gl_CANON_HOST):
43942         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43943         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43944         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43945         * m4/cloexec.m4 (gl_CLOEXEC):
43946         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43947         * m4/closeout.m4 (gl_CLOSEOUT):
43948         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43949         * m4/dirname.m4 (gl_DIRNAME):
43950         * m4/exclude.m4 (gl_EXCLUDE):
43951         * m4/exitfail.m4 (gl_EXITFAIL):
43952         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43953         * m4/file-type.m4 (gl_FILE_TYPE):
43954         * m4/filemode.m4 (gl_FILEMODE):
43955         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43956         * m4/fpending.m4 (gl_FUNC_FPENDING):
43957         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43958         * m4/fts.m4 (gl_FUNC_FTS):
43959         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43960         * m4/getdate.m4 (gl_GETDATE):
43961         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43962         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43963         * m4/getpass.m4 (gl_FUNC_GETPASS):
43964         * m4/gettime.m4 (gl_GETTIME):
43965         * m4/getugroups.m4 (gl_GETUGROUPS):
43966         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43967         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43968         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43969         * m4/hash.m4 (gl_HASH):
43970         * m4/idcache.m4 (gl_IDCACHE):
43971         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43972         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43973         * m4/long-options.m4 (gl_LONG_OPTIONS):
43974         * m4/lstat.m4 (gl_FUNC_LSTAT):
43975         * m4/md5.m4 (gl_MD5):
43976         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43977         * m4/memcoll.m4 (gl_MEMCOLL):
43978         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43979         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43980         * m4/memxor.m4 (gl_MEMXOR):
43981         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43982         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43983         * m4/modechange.m4 (gl_MODECHANGE):
43984         * m4/mountlist.m4 (gl_MOUNTLIST):
43985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43986         * m4/openat.m4 (gl_FUNC_OPENAT):
43987         * m4/pathmax.m4 (gl_PATHMAX):
43988         * m4/physmem.m4 (gl_PHYSMEM):
43989         * m4/posixtm.m4 (gl_POSIXTM):
43990         * m4/posixver.m4 (gl_POSIXVER):
43991         * m4/quote.m4 (gl_QUOTE):
43992         * m4/quotearg.m4 (gl_QUOTEARG):
43993         * m4/readtokens.m4 (gl_READTOKENS):
43994         * m4/readutmp.m4 (gl_READUTMP):
43995         * m4/regex.m4 (gl_REGEX):
43996         * m4/safe-read.m4 (gl_SAFE_READ):
43997         * m4/safe-write.m4 (gl_SAFE_WRITE):
43998         * m4/same.m4 (gl_SAME):
43999         * m4/save-cwd.m4 (gl_SAVE_CWD):
44000         * m4/savedir.m4 (gl_SAVEDIR):
44001         * m4/settime.m4 (gl_SETTIME):
44002         * m4/sha1.m4 (gl_SHA1):
44003         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44004         * m4/stat-macros.m4 (gl_STAT_MACROS):
44005         * m4/stat-time.m4 (gl_STAT_TIME):
44006         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44007         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44008         * m4/strdup.m4 (gl_FUNC_STRDUP):
44009         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44010         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44011         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44012         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44013         * m4/time_r.m4 (gl_TIME_R):
44014         * m4/timespec.m4 (gl_TIMESPEC):
44015         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44016         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44017         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44018         * m4/userspec.m4 (gl_USERSPEC):
44019         * m4/utimecmp.m4 (gl_UTIMECMP):
44020         * m4/utimens.m4 (gl_UTIMENS):
44021         * m4/xalloc.m4 (gl_XALLOC):
44022         * m4/xgetcwd.m4 (gl_XGETCWD):
44023         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44024         * m4/xreadlink.m4 (gl_XREADLINK):
44025         * m4/xstrtod.m4 (gl_XSTRTOD):
44026         * m4/yesno.m4 (gl_YESNO):
44027         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44028         to get the necessary .h files and whatnot.
44029
44030 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44031             Bruno Haible  <bruno@clisp.org>
44032
44033         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44034         /bin/sh understanding of '!' conditional negation.
44035
44036 2006-08-21  Jim Meyering  <jim@meyering.net>
44037
44038         * modules/openat (Depends-on): Really alphabetize.
44039
44040         * modules/acl (Depends-on): Add error and quote.
44041
44042         * check-module (find_included_lib_files): Add at-func.c to the
44043         ok-to-include-more-than-once white list.
44044
44045         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44046
44047 2006-08-21  Bruno Haible  <bruno@clisp.org>
44048
44049         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44050         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44051         Reported by Martin Lambers <marlam@marlam.de>.
44052
44053 2006-08-21  Bruno Haible  <bruno@clisp.org>
44054
44055         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44056         specify an installation location, don't emit a noinst_LIBRARIES or
44057         noinst_LTLIBRARIES assignment.
44058
44059 2006-08-21  Bruno Haible  <bruno@clisp.org>
44060
44061         BeOS portability.
44062         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44063         BeOS has mbrtowc() but no <wctype.h>.
44064
44065 2006-08-21  Bruno Haible  <bruno@clisp.org>
44066
44067         BeOS portability.
44068         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44069         exist.
44070
44071 2006-08-21  Bruno Haible  <bruno@clisp.org>
44072
44073         BeOS portability.
44074         * lib/mbchar.h: Include <wctype.h> only if it exists.
44075
44076 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44077
44078         Remove files that are no longer needed by their respective modules.
44079         * m4/obstack.m4: Remove.
44080         * m4/strerror_r.m4: Remove.
44081         * m4/uint32_t.m4: Remove.
44082         * m4/uintptr_t.m4: Remove.
44083         * m4/ullong_max.m4: Remove.
44084         * m4/xstrtoimax.m4: Remove.
44085         * m4/xstrtoumax.m4: Remove.
44086
44087         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44088         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44089         dependencies now capture this.
44090
44091         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44092         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44093         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44094         * m4/human.m4 (gl_HUMAN): Likewise.
44095         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44096         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44097
44098         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44099
44100         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44101         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44102         stdint.
44103         * m4/human.m4 (gl_HUMAN): Likewise.
44104         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44105         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44106         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44107         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44108         * m4/xstrtol (gl_XSTRTOL): Likewise.
44109
44110         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44111         AC_TYPE_LONG_LONG_INT.
44112         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44113         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44114         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44115         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44116
44117         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44118         on stdbool.
44119
44120         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44121         (gl_PREREQ_XSTRTOUL): Remove.
44122
44123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44124
44125         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44126         mode.
44127
44128 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44129
44130         Add and change modules to make it easier for coreutils to use
44131         gnulib-tool.
44132         * modules/backupfile (Files): Remove m4/d-ino.m4.
44133         (Depends-on): Add d-ino.
44134         * modules/cycle-check (Depends-on): Add stdint.
44135         (lib_SOURCES): Add cycle-check.h.
44136         * modules/d-ino: New module.
44137         * modules/d-type: New module.
44138         * modules/error (Files): Remove m4/strerror_r.m4.
44139         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44140         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44141         m4/inttypes_h.m4, m4/uintmax_t.m4.
44142         (Depends-on): Add stdint.
44143         (lib_SOURCES): Add fsusage.h.
44144         * modules/getcwd (Files): Remove d-ino.m4.
44145         (Depends-on): Add d-ino.
44146         * modules/getndelim2 (Depends-on): Add stdint.
44147         * modules/glob (Files): Remove m4/d-type.m4.
44148         (Depends-on): Add d-type.
44149         * modules/host-os: New module.
44150         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44151         m4/inttypes_h.m4, m4/uintmax_t.m4.
44152         * Depends-on: Add stdint.
44153         (lib_SOURCES): Add human.h.
44154         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44155         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44156         m4/uintmax_t.m4, m4/ulonglong.m4.
44157         (Depends-on): Add stdint.
44158         (EXTRA_DIST): Add inttostr.h.
44159         * modules/lchmod: New module.
44160         * modules/link-follow: New module.
44161         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44162         (Depends-on): Add lchmod.
44163         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44164         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44165         (Depends-on): Add stdint.
44166         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44167         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44168         (Depends-on): Add stdint.
44169         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44170         * modules/perl: New module.
44171         * modules/regex (Depends-on): Add stdint.
44172         * modules/rmdir-errno: New module.
44173         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44174         m4/intmax_t.m4.
44175         (Depends-on): Add stdint.
44176         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44177         m4/uintmax_t.m4.
44178         (Depends-on): Add stdint.
44179         * modules/unlink-busy: New module.
44180         * modules/utimecmp (Depends-on): Add stdint.
44181         * modules/uptime: New module.
44182         * modules/winsz-ioctl: New module.
44183         * modules/winsz-termios: New module.
44184         * modules/xnanosleep (Depends-on): Add nanosleep.
44185         * modules/ullong_max: Remove.
44186         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44187         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44188         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44189         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44190         (Depends-on): Add inttypes.
44191         (lib_SOURCES): Add xstrtol.h.
44192         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44193         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44194         * MODULES.html.sh: Move 'assert' into the assert section.
44195         Move 'dummy' into the linking section.
44196         Remove ullong_max.
44197         Add section for compatibility checks for POSIX:2001 functions,
44198         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44199         winsz-ioctl, and winsz-termios into it.
44200         Add lchmod.
44201         Add top-level Misc section and put host-os, perl, and uptime
44202         into it.
44203
44204 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44205
44206         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44207         now assume the stdint module.  Do not include inttypes.h.
44208         * lib/fsusage.h: Likewise.
44209         * lib/getndelim2.c: Likewise.
44210         * lib/human.h: Likewise.
44211         * lib/inttostr.h: Likewise.
44212         * lib/obstack.c: Likewise.
44213         * lib/regex_internal.h: Likewise.
44214         * lib/tempname.c: Likewise.
44215         * lib/utimecmp.c: Likewise.
44216         * lib/xstrtol.h: Likewise.
44217
44218         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44219
44220         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44221         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44222         * lib/xtime.h: Likewise.
44223
44224 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44225
44226         * modules/openat (Files): Add lib/fchmodat.c.
44227         Fixes problem reported by Jay Youngman.
44228
44229 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44230
44231         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44232         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44233
44234 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44235             Bruno Haible  <bruno@clisp.org>
44236
44237         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44238         and is a script that invokes bison. Tighten the code. Add comments.
44239
44240 2006-08-18  Jim Meyering  <jim@meyering.net>
44241
44242         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44243         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44244         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44245         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44246
44247 2006-08-18  Bruno Haible  <bruno@clisp.org>
44248
44249         * modules/bison-i18n: New file.
44250         * MODULES.html.sh (Internationalization functions): Add it.
44251
44252 2006-08-18  Bruno Haible  <bruno@clisp.org>
44253
44254         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44255         sys/statvfs.h. When getmntinfo was found, check its declaration and
44256         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44257
44258 2006-08-18  Bruno Haible  <bruno@clisp.org>
44259
44260         * m4/bison-i18n.m4: New file, from bison.
44261
44262 2006-08-18  Bruno Haible  <bruno@clisp.org>
44263
44264         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44265         (ME_DUMMY): Treat "kernfs" as a dummy.
44266         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44267
44268 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44269
44270         Update from coreutils.
44271
44272         2006-08-15  Jim Meyering  <jim@meyering.net>
44273
44274         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44275
44276         2006-01-17  Jim Meyering  <jim@meyering.net>
44277
44278         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44279
44280         2006-01-11  Jim Meyering  <jim@meyering.net>
44281
44282         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44283         Check for the lchmod function.
44284
44285 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44286
44287         Update from coreutils.
44288
44289         * lib/__fpending.h: Add copyright notice.
44290         * lib/fprintftime.h: Likewise.
44291         * lib/savedir.c: Use (C) in copyright notice.
44292         * lib/savedir.h: Likewise.
44293
44294         2006-08-15  Jim Meyering  <jim@meyering.net>
44295
44296         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44297         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44298         in support of the EXPECTED_ERRNO macro.
44299         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44300         definitions.  Instead, define the appropriate symbols and include
44301         "at-func.c".
44302         * lib/mkdirat.c (mkdirat): Likewise.
44303         * lib/fchmodat.c (fchmodat): Likewise.
44304         (ENOSYS): Remove definition.
44305         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44306         it.  Don't include "unistd--.h" -- it wasn't ever used.
44307
44308         2006-01-17  Jim Meyering  <jim@meyering.net>
44309
44310         Rewrite fts.c not to change the current working directory,
44311         by using openat, fstatat, fdopendir, etc..
44312
44313         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44314         (HAVE_OPENAT_SUPPORT): Define.
44315         [_LIBC] (fchdir): Don't undef or define; no longer used.
44316         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44317         Now, this `function' always succeeds, and consumes its file descriptor
44318         parameter -- so callers must not close such FDs.  Update callers.
44319         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44320         (diropen): Add parameter, SP.  Adjust all callers.
44321         Implement using diropen_fd, rather than open.
44322         (fts_open): Initialize new member, fts_cwd_fd.
44323         Remove fts_rft-setting code.
44324         (fts_close): Close fts_cwd_fd, if necessary.
44325         (__opendir2): Define in terms of opendir or opendirat,
44326         depending on whether the FST_NOCHDIR flag is set.
44327         (fts_build): Since fts_safe_changedir consumes its FD, and since
44328         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44329         and close the dup'd file descriptor upon failure.
44330         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44331         (fts_safe_changedir): Tweak semantics to reflect that this function
44332         now calls cwd_advance_fd and hence consumes its FD argument.
44333         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44334         [struct FTS] (fts_rft): Remove now-unused member.
44335         [struct FTS] (fts_cycle.state): Improve comment.
44336
44337         * lib/openat.c (openat_needs_fchdir): New function.
44338         * lib/openat.h (openat_needs_fchdir): Declare it.
44339
44340 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44341
44342         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44343         Problem and fix reported by Pádraig Brady in
44344         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44345
44346 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44347
44348         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44349
44350 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44351
44352         * lib/memcoll.c (memcoll): Optimize for the common case where the
44353         arguments are bytewise equal.
44354
44355 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44356
44357         * doc/regexprops-generic.texi: Add a copyright notice.
44358
44359 2006-08-15  Bruno Haible  <bruno@clisp.org>
44360
44361         * modules/tmpdir (License): Change to LGPL.
44362
44363 2006-08-15  Bruno Haible  <bruno@clisp.org>
44364
44365         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44366         module.
44367
44368 2006-08-14  Simon Josefsson  <jas@extundo.com>
44369
44370         * config/srclist.txt: Add gnupload.
44371
44372 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44373
44374         Change copyright notice from LGPL 2 to GPL 2, since that's the
44375         standard form used in the gnulib repository.
44376         * tests/test-lock.c: Likewise.
44377         * tests/test-stdint.c: Likewise.
44378         * tests/test-tls.c: Likewise.
44379
44380         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44381         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44382         Add copyright notice.
44383
44384         * check-module: Add copyright notice.  Output a copyright
44385         notice if "--version" is specified.
44386         * modules/COPYING: New file.
44387         * tests/test-getaddrinfo.c: Add copyright notice.
44388         * tests/test-verify.c: Likewise.
44389
44390 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44391
44392         Change copyright notice from LGPL 2 to GPL 2, since that's the
44393         standard form used in the gnulib repository.
44394         * lib/lock.c: LGPL -> GPL.
44395         * lib/lock.h: Likewise.
44396         * lib/strnlen1.c: Likewise.
44397         * lib/strnlen1.h: Likewise.
44398         * lib/tls.c: Likewise.
44399         * lib/tls.h: Likewise.
44400         * lib/tmpdir.c: Likewise.
44401
44402         * lib/TODO: Remove; this belongs only in coreutils.
44403
44404 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         Add copyright notices to long-enough files that lack them, since
44407         otherwise the files aren't clearly free.  Use the same notice that
44408         getdate.texi already uses.
44409         * doc/alloca-opt.texi: Add copyright notice.
44410         * doc/alloca.texi: Likewise.
44411         * doc/ctime.texi: Likewise.
44412         * doc/functions.texi: Likewise.
44413         * doc/gcd.texi: Likewise.
44414         * doc/gnulib-tool.texi: Likewise.
44415         * doc/inet_ntoa.texi: Likewise.
44416         * doc/visibility.texi: Likewise.
44417
44418         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44419         * doc/quote.texi: Add copyright notice.
44420
44421         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44422         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44423         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44424         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44425         is now obsolete, and give a pointer to the Sun list.
44426         Add copyright notice.
44427
44428 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44429
44430         * config/srclistvars.sh: Add copyright notice.
44431
44432 2006-08-14  Eric Blake  <ebb9@byu.net>
44433
44434         Import the following change from libc:
44435
44436         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44437
44438         Upstream bug 2997.
44439         * lib/misc/error.c: Add space between program name and message if file
44440         name is missing.
44441
44442 2006-08-12  Karl Berry  <karl@gnu.org>
44443
44444         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44445         remove, these originate in gnulib now.
44446
44447 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44448
44449         * doc/Makefile (standards.info standards.html standards.dvi):
44450         Also depend on make-stds.texi.
44451
44452 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44453
44454         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44455         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44456
44457         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44458         in wchar_t.  Problem reported by Eric Blake.
44459
44460         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44461         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44462         Also, help the compiler to keep LEN in a register.
44463
44464 2006-08-11  Eric Blake  <ebb9@byu.net>
44465
44466         * users.txt: Sort.  Add tar.
44467
44468 2006-08-11  Bruno Haible  <bruno@clisp.org>
44469
44470         * users.txt: New file.
44471
44472 2006-08-11  Bruno Haible  <bruno@clisp.org>
44473
44474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44475         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44476
44477 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44478
44479         * modules/snprintf (Depends-on): Remove minmax.
44480         (Maintainer): Add self and Bruno.
44481
44482 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44483
44484         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44485         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44486         (EOVERFLOW): Define if the system does not.
44487         Do not include "minmax.h"; it wasn't used.
44488         (snprintf): Don't assume size_t promotes to an unsigned type.
44489         Fix bug when generated string was too long for the buffer: the
44490         buffer's contents are supposed to be the initial prefix of the
44491         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44492         exceeds INT_MAX; do the check ourselves.
44493
44494         Import the following changes from libc:
44495
44496         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44497
44498         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44499         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44500         set wc to the byte which couldn't be converted.
44501         (re_string_reconstruct): Don't clear valid_raw_len before calling
44502         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44503         tip_context using re_string_context_at.
44504
44505         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44506
44507         * lib/posix/regex.h: g++ still cannot handled [restrict].
44508
44509         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44510
44511         * lib/posix/regex.h: Remove special handling for VMS.
44512
44513 2006-08-10  Jim Meyering  <jim@meyering.net>
44514
44515         * modules/same-inode: New module.
44516         * modules/dev-ino: New module.
44517         * modules/cycle-check: Depend on these modules, rather than simply
44518         including their .h files.
44519         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44520         required via m4/cycle-check.m4.
44521         * modules/same: Depend on new same-inode module, rather than
44522         including same-inode.h.
44523         * modules/chdir-safer: New file.
44524
44525         * modules/chown (Depends-on): Add stat-macros.
44526
44527 2006-08-10  Jim Meyering  <jim@meyering.net>
44528
44529         * m4/cycle-check.m4: New file.
44530         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44531         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44532
44533 2006-08-10  Eric Blake  <ebb9@byu.net>
44534
44535         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44536         in from original proposal.
44537
44538 2006-08-10  Eric Blake  <ebb9@byu.net>
44539         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44540
44541         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44542         namespace.
44543
44544 2006-08-10  Bruno Haible  <bruno@clisp.org>
44545
44546         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44547         as well.
44548
44549 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44550
44551         Sync from coreutils.
44552
44553         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44554
44555         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44556         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44557
44558 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44559
44560         * modules/restrict: Remove; no longer needed now that we assume
44561         Autoconf 2.59 or later.
44562         * MODULES.html.sh: Remove 'restrict'.
44563         * modules/argp (Depends-on): Remove 'restrict'.
44564         * modules/base64 (Depends-on): Likewise.
44565         * modules/gc (Depends-on): Likewise.
44566         * modules/getaddrinfo (Depends-on): Likewise.
44567         * modules/glob (Depends-on): Likewise.
44568         * modules/inet_ntop (Depends-on): Likewise.
44569         * modules/inet_pton (Depends-on): Likewise.
44570         * modules/memxor (Depends-on): Likewise.
44571         * modules/regex (Depends-on): Likewise.
44572         * modules/strtok_r (Depends-on): Likewise.
44573         * modules/time_r (Depends-on): Likewise.
44574
44575 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44576
44577         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44578         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44579         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44580         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44581         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44582         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44583         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44584         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44585
44586         Merge from coreutils.
44587         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44588         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44589         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44590         * m4/time_r.m4 (gl_TIME_R): Likewise.
44591
44592 2006-08-09  Karl Berry  <karl@gnu.org>
44593
44594         * config/srclist.txt: no more gettext-tools, per Bruno.
44595
44596 2006-08-08  Eric Blake  <ebb9@byu.net>
44597
44598         * modules/verror: New module.
44599         * MODULES.html.sh: Document it.
44600
44601 2006-08-08  Eric Blake  <ebb9@byu.net>
44602
44603         * lib/verror.h, lib/verror.c: New files.
44604
44605 2006-08-08  Eric Blake  <ebb9@byu.net>
44606
44607         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44608         verror_at_line output complies with GNU Coding Standards even when
44609         file is NULL.
44610
44611 2006-08-07  Bruno Haible  <bruno@clisp.org>
44612
44613         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44614         versions of AIX.
44615         Reported by Ralf Wildenhues.
44616
44617 2006-08-07  Bruno Haible  <bruno@clisp.org>
44618
44619         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44620         in an AC_DEFUN. Needed so that the autoconf snippets can use
44621         AC_REQUIRE.
44622
44623 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44624
44625         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44626         Initialize pkgdata_DATA.
44627         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44628         overriding it.
44629
44630 2006-08-06  Eric Blake  <ebb9@byu.net>
44631
44632         * lib/error.h: Fold in some upstream changes from glibc.
44633         * lib/error.c: Likewise.
44634
44635 2006-08-04  Bruno Haible  <bruno@clisp.org>
44636
44637         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44638         Make the mostlyclean-local rule depend on mostlyclean-generic.
44639         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44640
44641 2006-07-31  Bruno Haible  <bruno@clisp.org>
44642
44643         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44644         <stdlib.h>, <string.h>.
44645
44646 2006-07-30  Bruno Haible  <bruno@clisp.org>
44647
44648         * modules/readlink (License): Change to LGPL.
44649
44650 2006-07-30  Bruno Haible  <bruno@clisp.org>
44651
44652         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44653         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44654         set PKGDATADIR to point to it.
44655
44656 2006-07-30  Bruno Haible  <bruno@clisp.org>
44657
44658         * modules/csharpexec (configure.ac): Comment out macro invocation.
44659         * modules/javaexec (configure.ac): Likewise.
44660         * modules/javacomp-script (configure.ac): Likewise.
44661
44662         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44663
44664 2006-07-30  Bruno Haible  <bruno@clisp.org>
44665
44666         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44667         linked-list.
44668
44669 2006-07-30  Bruno Haible  <bruno@clisp.org>
44670
44671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44672
44673 2006-07-30  Bruno Haible  <bruno@clisp.org>
44674
44675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44676         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44677         get removed.
44678
44679 2006-07-29  Bruno Haible  <bruno@clisp.org>
44680
44681         Make it possible for gnulib-tool to work with locally modified or
44682         augmented gnulib repositories.
44683         * gnulib-tool (func_usage): Document --local-dir option.
44684         (local_gnulib_dir): New variable.
44685         Handle --local-dir option.
44686         (func_lookup_file): New function.
44687         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44688         (func_get_description, func_get_filelist, func_get_description,
44689         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44690         func_get_automake_snippet, func_get_include_directive,
44691         func_get_license, func_get_maintainer): Use func_lookup_file.
44692         (func_import, func_create_testdir): Use func_lookup_file.
44693
44694 2006-07-29  Bruno Haible  <bruno@clisp.org>
44695
44696         * modules/setenv (Depends-on): Add unistd.
44697
44698 2006-07-29  Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44701
44702 2006-07-29  Bruno Haible  <bruno@clisp.org>
44703
44704         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44705
44706 2006-07-29  Bruno Haible  <bruno@clisp.org>
44707
44708         * gnulib-tool (import, update): If there is no Makefile.am, look at
44709         aclocal.m4, instead of bailing out.
44710
44711 2006-07-29  Bruno Haible  <bruno@clisp.org>
44712
44713         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44714         Categorize the options by when they are useful.
44715
44716 2006-07-29  Bruno Haible  <bruno@clisp.org>
44717
44718         * gnulib-tool (func_usage): Document option --no-libtool.
44719         Handle option --no-libtool.
44720         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44721         for changed semantics of $libtool variable.
44722         (func_import): Likewise. If libtool is not used, show this through
44723         an option --no-libtool.
44724         (func_create_testdir): Update.
44725
44726 2006-07-29  Bruno Haible  <bruno@clisp.org>
44727
44728         * gnulib-tool (func_import): Extend error message about missing
44729         --doc-base.
44730
44731 2006-07-29  Bruno Haible  <bruno@clisp.org>
44732
44733         * gnulib-tool (func_import): Don't create the $docbase directory if
44734         there is no file to store there.
44735
44736 2006-07-29  Bruno Haible  <bruno@clisp.org>
44737
44738         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44739         relevant, look for configure.ac there, not in the current directory.
44740         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44741
44742 2006-07-29  Bruno Haible  <bruno@clisp.org>
44743
44744         * gnulib-tool (SORT): New variable.
44745         (func_usage): Undocument --assume-autoconf option.
44746         Remove --assume-autoconf option handling.
44747         (autoconf_minversion): Determine from the contents of configure.ac.
44748         (func_import): Remove autoconf_minversion handling.
44749         Suggested by Eric Blake.
44750
44751 2006-07-29  Bruno Haible  <bruno@clisp.org>
44752
44753         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44754
44755 2006-07-29  Bruno Haible  <bruno@clisp.org>
44756
44757         * config/srclist.txt (*setenv.[ch]): Remove rules.
44758
44759 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44760
44761         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44762
44763 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44764
44765         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44766         arpa/inet.h.
44767
44768 2006-07-28  Simon Josefsson  <jas@extundo.com>
44769
44770         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44771         * modules/inet_pton (Depends-on): Likewise.
44772
44773 2006-07-28  Simon Josefsson  <jas@extundo.com>
44774
44775         * m4/netinet_in_h.m4: New file.
44776
44777 2006-07-28  Simon Josefsson  <jas@extundo.com>
44778
44779         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44780         #include's.
44781
44782 2006-07-28  Simon Josefsson  <jas@extundo.com>
44783
44784         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44785         #include's.
44786
44787 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44788
44789         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44790         setgid on directories only if they set these bits.
44791         * lib/modechange.h: Remove obsolete comment about masks.
44792
44793 2006-07-28  Eric Blake  <ebb9@byu.net>
44794
44795         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44796         macro expansion.
44797
44798 2006-07-28  Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44801
44802 2006-07-28  Bruno Haible  <bruno@clisp.org>
44803
44804         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44805
44806 2006-07-28  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44809         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44810         Define fallbacks.
44811         Avoids link error on FreeBSD 4.x.
44812         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44813
44814         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44815         encoding.
44816         * lib/mbswidth.c (iswcntrl): Likewise.
44817
44818 2006-07-27  Bruno Haible  <bruno@clisp.org>
44819
44820         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44821         test.
44822
44823 2006-07-27  Bruno Haible  <bruno@clisp.org>
44824
44825         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44826         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44827         defined.
44828
44829 2006-07-26  Eric Blake  <ebb9@byu.net>
44830
44831         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44832
44833 2006-07-26  Eric Blake  <ebb9@byu.net>
44834
44835         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44836         like mingw that lack mkstemp.
44837         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44838         avoid compilation warning on mingw.
44839
44840 2006-07-26  Bruno Haible  <bruno@clisp.org>
44841
44842         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44843         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44844         INT_FAST*_MIN, INTPTR_MIN.
44845
44846 2006-07-25  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/version-etc (Depends-on): Add stdarg.
44849
44850 2006-07-25  Bruno Haible  <bruno@clisp.org>
44851
44852         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44853         complex commands.
44854
44855 2006-07-25  Bruno Haible  <bruno@clisp.org>
44856
44857         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44858         defined in <stdarg.h> or config.h.
44859
44860 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44861
44862         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44863         (gl_STDIO_SAFER): Remove.
44864
44865 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44866
44867         * MODULES.html.sh (File stream based Input/Output):
44868         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44869         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44870         * modules/fopen-safer, modules/tmpfile-safer: New files.
44871         * modules/stdio-safer: Remove.
44872
44873 2006-07-24  Bruno Haible  <bruno@clisp.org>
44874
44875         * modules/tmpdir: New file.
44876         * MODULES.html.sh (File system functions): Add it.
44877
44878 2006-07-24  Bruno Haible  <bruno@clisp.org>
44879
44880         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44881         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44882
44883 2006-07-24  Bruno Haible  <bruno@clisp.org>
44884
44885         * modules/clean-temp: New file.
44886
44887 2006-07-24  Bruno Haible  <bruno@clisp.org>
44888
44889         * m4/tmpdir.m4: New file, from GNU gettext.
44890
44891 2006-07-24  Bruno Haible  <bruno@clisp.org>
44892
44893         * lib/tmpdir.h: New file, from GNU gettext.
44894         * lib/tmpdir.c: New file, from GNU gettext.
44895
44896 2006-07-24  Bruno Haible  <bruno@clisp.org>
44897
44898         * lib/clean-temp.h: New file, from GNU gettext.
44899         * lib/clean-temp.c: New file, from GNU gettext.
44900
44901 2006-07-23  Eric Blake  <ebb9@byu.net>
44902
44903         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44904         (Depends-on): Add binary-io.
44905
44906 2006-07-23  Eric Blake  <ebb9@byu.net>
44907
44908         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44909
44910 2006-07-23  Eric Blake  <ebb9@byu.net>
44911
44912         * lib/tmpfile-safer.c: New file.
44913         * lib/stdio-safer.h (fopen_safer): Add prototype.
44914         * lib/stdio--.h (tmpfile): Make safer.
44915
44916 2006-07-23  Bruno Haible  <bruno@clisp.org>
44917
44918         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44919         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44920         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44921         gl_linked_remove_at): Use it.
44922
44923 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44924         and Simon Josefsson <jas@extundo.com>
44925
44926         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44927
44928         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44929
44930 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44931
44932         * modules/close-stream: New file.
44933         * modules/closeout (Description): Make it clear that it exits
44934         with a diagnostic on error.
44935         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44936         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44937
44938 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44939
44940         * m4/close-stream.m4: New file.
44941
44942 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44943
44944         * lib/close-stream.c, lib/close-stream.h: New files.
44945
44946 2006-07-22  Bruno Haible  <bruno@clisp.org>
44947
44948         Merge from GNU gettext 0.15.
44949
44950         2006-05-01  Bruno Haible  <bruno@clisp.org>
44951
44952                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44953
44954         2006-07-22  Bruno Haible  <bruno@clisp.org>
44955
44956                 * modules/javaversion: New file.
44957                 * MODULES.html.sh (Java): Add javaversion.
44958
44959         2006-03-12  Bruno Haible  <bruno@clisp.org>
44960
44961                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44962
44963         2005-12-04  Bruno Haible  <bruno@clisp.org>
44964
44965                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44966                 (untested).
44967
44968         2006-06-21  Bruno Haible  <bruno@clisp.org>
44969
44970                 Avoid warnings from recent versions of mcs.
44971                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44972                 -o, -L, -r any more. Use options documented since mcs-1.0
44973                 instead. Similarly for -g.
44974
44975         2005-12-04  Bruno Haible  <bruno@clisp.org>
44976
44977                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44978                 .resources, not .resource.
44979
44980         2005-07-09  Bruno Haible  <bruno@clisp.org>
44981
44982                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44983                 add a .dll suffix.
44984                 Reported by Mark Junker <mjscod@gmx.de>.
44985
44986         2006-07-22  Bruno Haible  <bruno@clisp.org>
44987
44988                 * modules/gettext: Upgrade to gettext-0.15.
44989                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44990                 m4/visibility.m4.
44991                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44992
44993 2006-07-22  Bruno Haible  <bruno@clisp.org>
44994
44995         Merge from GNU gettext 0.15.
44996
44997         2006-03-25  Bruno Haible  <bruno@clisp.org>
44998
44999                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45000
45001         2006-07-21  Bruno Haible  <bruno@clisp.org>
45002
45003                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45004                 "1.1".
45005
45006         2006-05-09  Bruno Haible  <bruno@clisp.org>
45007
45008                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45009                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45010                 for the conftestver execution.
45011
45012         2006-05-01  Bruno Haible  <bruno@clisp.org>
45013
45014                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45015                 optional target-version argument. Verify that the compiler
45016                 groks source of the specified source-version, or add -source
45017                 option as necessary. Verify that the compiler produces
45018                 bytecode in the specified target-version, or add -target and
45019                 -source options as necessary. Make the result of the test
45020                 available as variable CONF_JAVAC. Also log error output in
45021                 config.log.
45022
45023         2006-03-11  Bruno Haible  <bruno@clisp.org>
45024
45025                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45026
45027         2006-05-09  Bruno Haible  <bruno@clisp.org>
45028
45029                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45030                 CLASSPATH_SEPARATOR to a semicolon.
45031
45032         2006-03-12  Bruno Haible  <bruno@clisp.org>
45033
45034                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45035                 available as variable CONF_JAVA, for subsequent autoconf
45036                 tests. Also log error output in config.log.
45037
45038         2006-07-19  Bruno Haible  <bruno@clisp.org>
45039
45040                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45041                 that getline works on glibc2 systems. Needed to avoid trouble
45042                 in relocatable.c.
45043                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45044
45045         2005-12-04  Bruno Haible  <bruno@clisp.org>
45046
45047                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45048                 launcher (untested).
45049
45050         2005-12-04  Bruno Haible  <bruno@clisp.org>
45051
45052                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45053
45054         2006-07-22  Bruno Haible  <bruno@clisp.org>
45055
45056                 * gettext.m4: Update from GNU gettext-0.15.
45057                 * nls.m4: Likewise.
45058                 * po.m4: Likewise.
45059                 * inttypes-pri.m4: Likewise.
45060                 * inttypes-h.m4: Renamed from inttypes.m4.
45061                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45062
45063 2006-07-22  Bruno Haible  <bruno@clisp.org>
45064
45065         Merge from GNU gettext 0.15.
45066
45067         2005-07-05  Bruno Haible  <bruno@clisp.org>
45068
45069                 * printf-args.c (printf_fetchargs): Work around broken
45070                 definition of wint_t on mingw.
45071
45072         2005-02-12  Bruno Haible  <bruno@clisp.org>
45073
45074                 * xallocsa.h: Add extern "C" for C++.
45075
45076         2006-05-17  Bruno Haible  <bruno@clisp.org>
45077
45078                 Cygwin portability.
45079                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45080
45081         2006-04-30  Bruno Haible  <bruno@clisp.org>
45082
45083                 * progreloc.c: Include <mach-o/dyld.h> if available.
45084                 (find_executable): Use _NSGetExecutablePath when possible.
45085
45086         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45087
45088                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45089                 function.
45090
45091         2005-12-29  Bruno Haible  <bruno@clisp.org>
45092
45093                 * progreloc.c (set_program_name_and_installdir): Fix
45094                 compilation error.
45095
45096         2005-12-04  Bruno Haible  <bruno@clisp.org>
45097
45098                 Cygwin portability.
45099                 * progreloc.c: Include <windows.h> also on Cygwin.
45100                 (find_executable): Add support for Cygwin.
45101                 (set_program_name_and_installdir): Handle also platforms with
45102                 nonempty EXEEXT.
45103
45104         2006-07-11  Bruno Haible  <bruno@clisp.org>
45105
45106                 * javacomp.c: Fix a comment.
45107                 Reported by Jim Meyering.
45108
45109         2006-04-30  Bruno Haible  <bruno@clisp.org>
45110
45111                 * javacomp.h (compile_java_class): Add source_version,
45112                 target_version arguments.
45113                 * javacomp.c: Rewritten to choose only a compiler that
45114                 respects the specified source_version and target_version.
45115
45116         2006-06-27  Bruno Haible  <bruno@clisp.org>
45117
45118                 Assume correct S_ISDIR macro.
45119                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45120
45121         2006-07-22  Bruno Haible  <bruno@clisp.org>
45122
45123                 * javaversion.h: New file, from GNU gettext.
45124                 * javaversion.c: New file, from GNU gettext.
45125                 * javaversion.java: New file, from GNU gettext.
45126                 * javaversion.class: New file, from GNU gettext.
45127
45128         2006-05-17  Bruno Haible  <bruno@clisp.org>
45129
45130                 Cygwin portability.
45131                 * javaexec.c (execute_java_class): Test for jview program
45132                 also on Cygwin.
45133
45134         2006-04-09  Bruno Haible  <bruno@clisp.org>
45135
45136                 * fatal-signal.c: Don't include string.h.
45137                 (at_fatal_signal): Use a copying loop instead of memcpy.
45138
45139         2005-12-04  Bruno Haible  <bruno@clisp.org>
45140
45141                 * csharpexec.c: Add support for 'clix' launcher (untested).
45142                 (execute_csharp_using_sscli): New function.
45143                 (execute_csharp_program): Call it.
45144
45145         2006-06-21  Bruno Haible  <bruno@clisp.org>
45146
45147                 Avoid warnings from recent versions of mcs.
45148                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45149                 -o, -L, -r any more. Use options documented since mcs-1.0
45150                 instead. Similarly for -g.
45151
45152         2005-07-09  Bruno Haible  <bruno@clisp.org>
45153
45154                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45155                 add a .dll suffix.
45156                 Reported by Mark Junker <mjscod@gmx.de>.
45157
45158         2006-06-17  Bruno Haible  <bruno@clisp.org>
45159
45160                 * config.charset: Update for NetBSD 3.0.
45161
45162         2006-05-17  Bruno Haible  <bruno@clisp.org>
45163
45164                 Cygwin portability.
45165                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45166
45167         2006-05-16  Bruno Haible  <bruno@clisp.org>
45168
45169                 * localcharset.c [CYGWIN]: Include <windows.h>.
45170                 (get_charset_aliases): For Cygwin, return the same CPxxx
45171                 aliases list as under WIN32.
45172                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45173                 the environment variables. Fall back to GetACP().
45174
45175         2006-04-05  Bruno Haible  <bruno@clisp.org>
45176
45177                 * config.charset: Update Juan Manuel Guerrero's address.
45178
45179         2005-02-12  Bruno Haible  <bruno@clisp.org>
45180
45181                 * allocsa.h: Add extern "C" for C++.
45182
45183         2005-02-10  Bruno Haible  <bruno@clisp.org>
45184
45185                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45186                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45187
45188         2006-07-22  Bruno Haible  <bruno@clisp.org>
45189
45190                 * gettext.h: Update to GNU gettext-0.15.
45191
45192 2006-07-22  Bruno Haible  <bruno@clisp.org>
45193
45194         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45195         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45196         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45197
45198 2006-07-21  Eric Blake  <ebb9@byu.net>
45199
45200         * modules/stdlib-safer: New file.
45201         * MODULES.html.sh (File stream based Input/Output): Add
45202         stdlib-safer.
45203
45204 2006-07-21  Eric Blake  <ebb9@byu.net>
45205
45206         * lib/stdlib-safer.h: New file from coreutils, required by
45207         stdlib--.h.
45208
45209 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45210
45211         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45212
45213 2006-07-20  Bruno Haible  <bruno@clisp.org>
45214
45215         * gnulib-tool: Recognize new option --assume-autoconf.
45216         (autoconf_minversion): New variable.
45217         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45218
45219 2006-07-20  Bruno Haible  <bruno@clisp.org>
45220
45221         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45222
45223 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45224
45225         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45226         Reindent and repaginate.
45227
45228 2006-07-19  Derek Price  <derek@ximbiot.com>
45229
45230         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45231         Correct grammar.
45232
45233 2006-07-17  Bruno Haible  <bruno@clisp.org>
45234
45235         * modules/list: New file.
45236         * modules/array-list: New file.
45237         * modules/carray-list, modules/carray-list-tests: New files.
45238         * modules/linked-list, modules/linked-list-tests: New files.
45239         * modules/avltree-list, modules/avltree-list-tests: New files.
45240         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45241         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45242         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45243         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45244         * modules/oset: New file.
45245         * modules/array-oset: New file.
45246         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45247         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45248         * tests/test-carray_list.c: New file.
45249         * tests/test-linked_list.c: New file.
45250         * tests/test-avltree_list.c: New file.
45251         * tests/test-rbtree_list.c: New file.
45252         * tests/test-linkedhash_list.c: New file.
45253         * tests/test-avltreehash_list.c: New file.
45254         * tests/test-rbtreehash_list.c: New file.
45255         * tests/test-avltree_oset.c: New file.
45256         * tests/test-rbtree_oset.c: New file.
45257         * MODULES.html.sh (Container data structures): New section.
45258
45259 2006-07-17  Bruno Haible  <bruno@clisp.org>
45260
45261         * m4/gl_list.m4: New file.
45262
45263 2006-07-17  Bruno Haible  <bruno@clisp.org>
45264
45265         * lib/gl_list.h: New file.
45266         * lib/gl_list.c: New file.
45267         * lib/gl_array_list.h: New file.
45268         * lib/gl_array_list.c: New file.
45269         * lib/gl_carray_list.h: New file.
45270         * lib/gl_carray_list.c: New file.
45271         * lib/gl_linked_list.h: New file.
45272         * lib/gl_linked_list.c: New file.
45273         * lib/gl_anylinked_list1.h: New file.
45274         * lib/gl_anylinked_list2.h: New file.
45275         * lib/gl_avltree_list.h: New file.
45276         * lib/gl_avltree_list.c: New file.
45277         * lib/gl_anyavltree_list1.h: New file.
45278         * lib/gl_anyavltree_list2.h: New file.
45279         * lib/gl_rbtree_list.h: New file.
45280         * lib/gl_rbtree_list.c: New file.
45281         * lib/gl_anyrbtree_list1.h: New file.
45282         * lib/gl_anyrbtree_list2.h: New file.
45283         * lib/gl_anytree_list1.h: New file.
45284         * lib/gl_anytree_list2.h: New file.
45285         * lib/gl_linkedhash_list.h: New file.
45286         * lib/gl_linkedhash_list.c: New file.
45287         * lib/gl_anyhash_list1.h: New file.
45288         * lib/gl_anyhash_list2.h: New file.
45289         * lib/gl_avltreehash_list.h: New file.
45290         * lib/gl_avltreehash_list.c: New file.
45291         * lib/gl_rbtreehash_list.h: New file.
45292         * lib/gl_rbtreehash_list.c: New file.
45293         * lib/gl_anytreehash_list1.h: New file.
45294         * lib/gl_anytreehash_list2.h: New file.
45295
45296         * lib/gl_oset.h: New file.
45297         * lib/gl_oset.c: New file.
45298         * lib/gl_array_oset.h: New file.
45299         * lib/gl_array_oset.c: New file.
45300         * lib/gl_avltree_oset.h: New file.
45301         * lib/gl_avltree_oset.c: New file.
45302         * lib/gl_rbtree_oset.h: New file.
45303         * lib/gl_rbtree_oset.c: New file.
45304         * lib/gl_anytree_oset.h: New file.
45305
45306 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45307
45308         * m4/mkancesdirs.m4: New file.
45309         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45310         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45311         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45312         it.
45313
45314 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45315
45316         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45317         * lib/mkancesdirs.h: New files.
45318         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45319         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45320         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45321         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45322         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45323         callers changed.  Revamp internals significantly, by not
45324         attempting to create directories that are temporarily more
45325         permissive than the final results.  Do not attempt to use
45326         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45327         This removes some race conditions, fixes some bugs, and simplifies
45328         things.  Use new dirchownmod function to do owner and mode changes.
45329         * lib/mkdir-p.h: Likewise.
45330         * lib/modechange.c (octal_to_mode): New function.
45331         (struct mode_change): New member mentioned.
45332         (make_node_op_equals): New arg mentioned.  All callers changed.
45333         (mode_compile): Keep track of which mode bits the user has explicitly
45334         mentioned.
45335         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45336         New arg PMODE_BITS, to keep track of which mode bits the user
45337         mentioned; it treats S_ISUID and S_ISGID speciall.
45338         All callers changed.
45339         * lib/modechange.h: Likewise.
45340
45341 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45342
45343         * MODULES.html.sh: Add mkancestors.
45344         * modules/mkancesdirs: New module.
45345         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45346         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45347         The chdir-safer and afs files are now orphans; I'll remove them
45348         unless someone speaks up.
45349         Add lib/dirchownmod.c, lib/dirchownmod.h.
45350         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45351         Add lchown, mkancesdirs.
45352         (Maintainer): Add self.
45353
45354 2006-07-15  Karl Berry  <karl@gnu.org>
45355
45356         * gnulib-tool: help message wording/arrangement.
45357
45358 2006-07-14  Simon Josefsson  <jas@extundo.com>
45359
45360         * doc/gnulib.texi (Libtool and Windows): New section.
45361
45362 2006-07-12  Simon Josefsson  <jas@extundo.com>
45363
45364         * modules/gendocs (License): Fix license, approved by Karl.
45365
45366 2006-07-12  Eric Blake  <ebb9@byu.net>
45367
45368         * MODULES.html.sh: Add gendocs.
45369
45370 2006-07-11  Eric Blake  <ebb9@byu.net>
45371
45372         * modules/fdl: New module, to install doc/fdl.texi.
45373         * MODULES.html.sh: Add new section for documentation modules.
45374         * gnulib-tool: Avoid space-tab.
45375         (--doc-base): New option, to manage files from doc.
45376
45377 2006-07-11  Eric Blake  <ebb9@byu.net>
45378
45379         * m4/absolute-header.m4: Fix comments to match recent change.
45380
45381 2006-07-11  Eric Blake  <ebb9@byu.net>
45382
45383         * gnulib-tool: List --doc-base before --tests-base.
45384
45385 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45386
45387         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45388
45389 2006-07-11  Bruno Haible  <bruno@clisp.org>
45390
45391         * README: Mention where to put documentation.
45392
45393 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45394
45395         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45396
45397 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45398
45399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45400         to stdint.m4.
45401
45402 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45403
45404         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45405         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45406         "no/such/file/stdint.h" when there is no such file, so that
45407         the resulting C code can be parsed by dodgy compilers.
45408         Problems reported by Bob Proulx.
45409
45410 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45411
45412         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45413         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45414         macros into the GNU _D_EXACT_NAMLEN.
45415         * lib/savedir.c:  Likewise.
45416         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45417
45418 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45419         and Paul Eggert  <eggert@cs.ucla.edu>
45420
45421         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45422         * m4/savedir.m4:
45423         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45424         macros into the GNU _D_EXACT_NAMLEN.
45425
45426 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45427
45428         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45429         around the absolute name, to work around a problem with the HP-UX
45430         11.23 native C compiler, reported by Bob Proulx.
45431
45432 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45433
45434         * doc/maintain.texi, make-stds.texi: Sync from
45435         <http://savannah.gnu.org/projects/gnustandards>.
45436
45437 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45438
45439         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45440
45441 2006-07-09  Jim Meyering  <jim@meyering.net>
45442
45443         * m4/glob.m4: Remove a doubled word in a comment.
45444
45445 2006-07-09  Jim Meyering  <jim@meyering.net>
45446
45447         * lib/argp-pv.c: Remove a doubled word in a comment.
45448         * lib/check-version.c (check_version): Likewise.
45449         * lib/javacomp.c (compile_java_class): Likewise.
45450
45451 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45452
45453         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45454         for the benefit of people using Autoconf 2.60.  If you want to
45455         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45456         (or m4/onceonly.m4, if pre-2.57) manually.
45457
45458 2006-07-08  Jim Meyering  <jim@meyering.net>
45459
45460         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45461         comment.
45462         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45463         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45464         comment.
45465
45466 2006-07-08  Jim Meyering  <jim@meyering.net>
45467
45468         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45469
45470 2006-07-07  Simon Josefsson  <jas@extundo.com>
45471
45472         * tests/test-crc.c: Change expected crc value, the test vector
45473         were probably computed using the old broken crc.c?
45474
45475 2006-07-06  Simon Josefsson  <jas@extundo.com>
45476
45477         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45478         now the canonical place for the M4 file).
45479
45480         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45481         from the sys_socket dependency now.
45482
45483         * modules/inet_pton (Files): Ditto.
45484
45485         * modules/inet_ntop (Files): Ditto.
45486
45487 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45488
45489         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45490         not gl_PREREQ_GETUSERSHELL.
45491
45492 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45493
45494         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45495         with only one argument, for Autoconf 2.60.
45496         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45497         expand to nothing, so add a shell command to avoid syntax error.
45498         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45499
45500 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45501
45502         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45503
45504 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45505
45506         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45507         no longer needed.  Check for isblank decl.
45508         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45509         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45510         of existence.
45511
45512 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45513
45514         * lib/getloadavg.c: Use __VMS, not VMS.
45515         * lib/getopt.c: Likewise.
45516         * lib/getpagesize.h: Likewise.
45517         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45518         and probably does not work.
45519
45520 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45521
45522         * lib/.cppi-disable: Add wcwidth.
45523         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45524         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45525         (ISGRAPH): Remove.  All uses changed to isgraph.
45526         (FOLD) [!defined _LIBC]: Remove special case.
45527         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45528         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45529         HAVE_ISBLANK.
45530         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45531         case.
45532
45533 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45534
45535         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45536         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45537         brackets.  Other minor changes to suppress some compiler
45538         warnings.
45539
45540 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45541         and Paul Eggert  <eggert@cs.ucla.edu>
45542
45543         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45544         of invoking obsolescent AC_HEADER_DIRENT macro.
45545         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45546         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45547         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45548         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45549         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45550         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45551         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45552         * m4/readdir.m4: Remove; no longer needed.
45553
45554 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45555         and Paul Eggert  <eggert@cs.ucla.edu>
45556
45557         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45558         Don't worry about this obsolete case any more.
45559         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45560         directories.
45561         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45562         worry about this obsolete case any more.
45563         * lib/fts.c: Likewise.
45564         * lib/getcwd.c: Likewise.
45565         * lib/glob.h: Likewise.
45566         * lib/savedir.c: Likewise.
45567
45568 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45569
45570         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45571         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45572         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45573         needed.
45574         All uses removed.
45575         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45576         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45577         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45578         needed.
45579         * m4/getdate.m4 (gl_GETDATE): Likewise.
45580         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45581         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45582         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45583         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45584         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45585         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45586         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45587         needed.
45588
45589 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45590
45591         * lib/memcasecmp.c: Include <limits.h>.
45592         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45593         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45594         Don't assume isdigit succeeds only on '0' through '9'.
45595
45596 2006-07-05  Eric Blake  <ebb9@byu.net>
45597
45598         * modules/getaddrinfo (Depends-on): Add snprintf.
45599
45600 2006-07-05  Eric Blake  <ebb9@byu.net>
45601
45602         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45603         to avoid 'header present but could not be compiled' on cygwin.
45604
45605 2006-07-05  Eric Blake  <ebb9@byu.net>
45606
45607         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45608         missing from netdb.h.
45609         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45610
45611 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45612
45613         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45614         no longer needed.
45615         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45616         * m4/getdate.m4 (gl_GETDATE): Likewise.
45617         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45618         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45619         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45620         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45621         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45622
45623 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45624
45625         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45626         All uses of is_space replaced by isspace.
45627         * lib/exit.h: Don't talk about STDC_HEADERS.
45628         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45629         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45630         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45631         replaced by isprint etc.
45632         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45633         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45634         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45635         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45636         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45637         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45638
45639 2006-07-05  Bruno Haible  <bruno@clisp.org>
45640
45641         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45642         the function exists, before testing against AIX.
45643         Reported by Martin Lambers <marlam@marlam.de>.
45644
45645 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45646
45647         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45648         From Mark D. Baushke.
45649
45650 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45651
45652         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45653         to the absolute name, not just one, to bypass Sun C 5.8's
45654         "warning: #include of /usr/include/... may be non-portable".
45655
45656 2006-07-04  Eric Blake  <ebb9@byu.net>
45657
45658         * modules/dirname-tests: New test module.
45659         * tests/test-dirname.c: New file, replacing dirname.c
45660         TEST_DIRNAME section that was recently deleted.
45661
45662 2006-07-04  Bruno Haible  <bruno@clisp.org>
45663
45664         Assume ANSI C header files and <ctype.h> functions.
45665         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45666         (mbsnwidth): Use isprint, iscntrl instead.
45667
45668 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45669
45670         Merge from coreutils.
45671         * MODULES.html.sh: Add xstrtold.
45672         * modules/xstrtold: New file.
45673         * modules/cycle-check (Files): Add lib/same-inode.h.
45674         * modules/dirname (Files): Add m4/double-slash-root.m4.
45675         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45676         * modules/mkdir-p (Files): Add lib/same-inode.h.
45677         * modules/same (Files): Add lib/same-inode.h.
45678
45679 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45680
45681         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45682         This is to keep the terminology clean; POSIX talks about
45683         "absolute pathnames", not "full pathnames", but the GNU
45684         Coding Standards say to use "path" for something else;
45685         so use "absolute" to keep both sides happy.
45686         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45687         Set gl_absolute_header, not gl_full_header_path.
45688         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45689         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45690         All uses changed.
45691
45692         Merge from coreutils.
45693
45694         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45695
45696         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45697         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45698         want to require the building of c-strtod.o.
45699         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45700         needs -lm directly.
45701         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45702
45703         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45704
45705         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45706         --as-needed option if available.  Problem reported by Albert Chin in
45707         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45708         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45709         cc merely issues a bunch of annoying warnings for --as-needed
45710         (this problem was reported by Bob Proulx).  Also, try linking with
45711         -lm to detect a bug in binutils 2.16 (this problem was reported
45712         by Ralf Wildenhues).
45713
45714         2006-06-18  Jim Meyering  <jim@meyering.net>
45715
45716         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45717         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45718         macro.
45719         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45720         also check for glibc-2.4's abort-inducing bug.
45721
45722         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45723         Low-probability clean-up should be to use rmdir to get rid of
45724         the just-created directory, not unlink.
45725
45726         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45727         configure fail, and request a bug report to inform us about it.
45728         Add a comment that, barring reports to the contrary, in 2007 we'll
45729         assume ftruncate is universally available.
45730
45731         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45732
45733         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45734
45735         2006-03-12  Jim Meyering  <jim@meyering.net>
45736
45737         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45738         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45739         * m4/same.m4 (gl_SAME): Likewise.
45740         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45741
45742         2006-03-11  Eric Blake  <ebb9@byu.net>
45743
45744         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45745         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45746         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45747         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45748
45749 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45750
45751         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45752         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45753         reported by Mark D. Baushke, one in
45754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45755
45756         Merge from coreutils.
45757
45758         * lib/.cppi-disable: Add stdint_.h.
45759         * lib/.cvsignore: Add stdint.h.
45760
45761         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45762
45763         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45764         both double and long double versions.
45765         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45766         * lib/xstrtold.c: New file.
45767         * lib/xstrtod.h (xstrtold): New decl.
45768
45769         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45770
45771         * lib/filemode.c (setst): Remove.
45772         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45773         (arguably) clearer, and the generated code is a bit smaller on my
45774         Debian GNU/Linux stable x86 host.
45775
45776         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45777
45778         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45779         Assume that filemode.h includes sys/types.h and sys/stat.h.
45780         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45781         (ftypelet): Reorder to put common cases first, for efficiency.
45782         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45783         to do 'M'.
45784         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45785         of 10, for compatibility with FreeBSD.  All callers changed.
45786         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45787         types that can't be deduced solely from st_mode.  First arg is now a
45788         const pointer.
45789         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45790         (strmode): Renamed from mode_string.
45791         (filemodestring): New decl.
45792         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45793         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45794         needed.
45795         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45796
45797         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45798
45799         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45800         fsusage.h now does that.  Include fsusage.h first, to test interface.
45801         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45802         at most one method (the old code could have generated decls that
45803         didn't conform to C89, not that this was ever exercised).
45804         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45805
45806         2006-03-19  Jim Meyering  <jim@meyering.net>
45807
45808         Work even in a chroot where d_ino values for entries in "/"
45809         don't match the stat.st_ino values for the same names.
45810         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45811         number, iterate through all entries again, using lstat instead.
45812         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45813         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45814
45815         * lib/getcwd.c (__getcwd): Clarify a comment.
45816         Use memcpy in place of a call to strcpy.
45817
45818         2006-03-12  Jim Meyering  <jim@meyering.net>
45819
45820         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45821         matches that of the current directory (which we're about to chdir ".."
45822         out of), then save the dev-ino of the parent, instead.
45823
45824         * lib/same-inode.h (SAME_INODE): New file/macro.
45825         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45826         Include "same-inode.h", instead.
45827         * lib/same.c: Likewise.
45828         * lib/cycle-check.h: Include "same-inode.h".
45829         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45830         * lib/cycle-check.c (SAME_INODE): Remove definition.
45831         * lib/root-dev-ino.h: Include "same-inode.h".
45832
45833         2006-03-11  Eric Blake  <ebb9@byu.net>
45834
45835         * lib/same.c (same_name): s/base_name/last_component/
45836         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45837         * lib/filenamecat.c (file_name_concat): Likewise.
45838
45839         2006-03-11  Eric Blake  <ebb9@byu.net>,
45840                     Paul Eggert  <eggert@cs.ucla.edu>
45841
45842         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45843         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45844         drive prefix.
45845         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45846         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45847         (last_component): New method.
45848         * lib/dirname.c (dir_len): Determine when drive letters need a
45849         subsequent slash.  Preserve // when it is special.
45850         (dir_name): Don't append dot when drive letter is absolute.
45851         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45852         * lib/basename.c (base_name): New semantics - malloc the result.
45853         Preserve // when it is special.  Preserve relative files that look
45854         like drive letters.
45855         (base_len): Preserve // when it is special.
45856         (last_component): New method, similar to old base_name semantics.
45857         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45858         base_name.  Strip redundant slashes from ///.
45859
45860 2006-07-03  Jim Meyering  <jim@meyering.net>
45861
45862         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45863         macro is used before the first cycle_check call.
45864
45865 2006-07-03  Eric Blake  <ebb9@byu.net>
45866
45867         * modules/dirname (Depends-on): Add xstrndup.
45868
45869 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45870
45871         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45872         test cases, so that config.log is a bit easier to follow.
45873
45874 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45875
45876         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45877         both are 64 bits, since this seems to be the tradition, and this
45878         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45879         we ever run into a host that prefers long long to long in this
45880         case, we'll need another configure-time test.  Problem reported by
45881         Jim Meyering.
45882
45883 2006-07-02  Eric Blake  <ebb9@byu.net>
45884
45885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45886
45887 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45888
45889         * modules/inttypes (Depends-on): No longer depends on stdint.
45890         * modules/stdint (Description): Say more about assumptions.
45891         Say that the fast types might differ.  Say macros are used.
45892         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45893         (Makefile.am): Revise list of substituted symbols to match
45894         new stdint.m4.
45895         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45896         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45897         * tests/test-stdint.c (verify_same_types)
45898         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45899         the code conforms to C99/C89.
45900         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45901         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45902
45903 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45904
45905         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45906         but fix a bug, by requiring at least 64 bits.
45907         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45908         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45909         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45910         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45911
45912         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45913         changes.  Make 2.59 a prerequisite.  Check and substitute for
45914         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45915         inttypes.h.  Do not use special include files; just use the
45916         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45917         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45918         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45919         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45920         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45921         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45922         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45923         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45924         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45925         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45926         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45927         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45928         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45929         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45930         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45931         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45932         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45933         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45934         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45935         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45936         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45937         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45938         not check for things that C99 does not require, e.g., int8_t.  If
45939         a test isn't needed unless <stdint.h> isn't working, and is
45940         unlikely to be needed for any other reason, then don't do it
45941         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45942         size_t, since we assume C89 freestanding at least.  Do not check
45943         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45944         the right thing even if the types are not defined.  Instead use:
45945         (gl_STDINT_TYPE_PROPERTIES): New macro.
45946         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45947         testing whether <sys/types.h> clashes, as Autoconf does this for
45948         us now.  All uses removed.
45949         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45950         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45951         (gl_CHECK_TYPE_SAME):
45952         Remove; no longer needed.
45953         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45954         exists, since we'll return 0 anyway in that case.
45955         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45956
45957 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45958
45959         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45960         possible collision with system files.
45961         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45962         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45963         WCHAR_MIN and WCHAR_MAX in this case.
45964         (<stddef.h>): Do not include; no longer needed.
45965         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45966         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45967         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45968         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45969         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45970         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45971         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45972         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45973         !defined(__c99))]: Include in this case too, since it's harmless
45974         now.
45975         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45976         dangerous to do so.
45977         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45978         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45979         (_STDINT_MIN, _STDINT_MAX): New macros.
45980         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45981         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45982         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45983         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45984         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45985         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45986         macros, not typedefs; this simplifies things quite a bit.
45987         Use long int for all types narrower than int64_t.
45988         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45989         Define in terms of long long int or int64_t or long int,
45990         not int64_t or int32_t.  This saves some compile-time testing.
45991         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45992         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45993         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45994         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45995         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45996         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45997         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45998         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45999         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46000         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46001         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46002         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46003         undef any previous version and define our own version, for
46004         simplicity and consistency with the new macros for types.
46005         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46006         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46007         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46008         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46009         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46010         @WINT_T_SUFFIX@ to keep things simple here.
46011         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46012         Simplify by assuming typical 8/16/32/64 host, since we're
46013         already doing that elsewhere anyway.
46014         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46015         and assume long long int is 64 bits if available.  This
46016         speeds up 'configure'.
46017
46018 2006-07-01  Eric Blake  <ebb9@byu.net>
46019
46020         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46021         Reported by Andreas Buening.
46022
46023 2006-07-01  Eric Blake  <ebb9@byu.net>
46024
46025         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46026
46027 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46028
46029         * lib/getaddrinfo.c: fixed typo
46030
46031 2006-06-29  Jim Meyering  <jim@meyering.net>
46032
46033         * modules/strftime (Maintainer): Add my name, since with the
46034         FPRINTFTIME changes strftime.c has forked from glibc.
46035
46036 2006-06-29  Eric Blake  <ebb9@byu.net>
46037
46038         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46039
46040 2006-06-29  Eric Blake  <ebb9@byu.net>
46041
46042         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46043
46044 2006-06-29  Eric Blake  <ebb9@byu.net>
46045
46046         * lib/stat_.h: New file.
46047
46048 2006-06-29  Eric Blake  <ebb9@byu.net>
46049
46050         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46051         unused static function.
46052
46053 2006-06-29  Eric Blake  <ebb9@byu.net>
46054
46055         * doc/functions.texi (Function Portability): Document missing lstat
46056         on mingw.
46057
46058 2006-06-29  Eric Blake  <ebb9@byu.net>
46059
46060         * MODULES.html.sh: Add sys_stat.
46061         * modules/sys_stat: New module.
46062         * modules/mkstemp (Depends-on): Add sys_stat.
46063
46064 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46065
46066         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46067
46068 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46069
46070         * m4/c-bs-a.m4: Removed.
46071
46072 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46073
46074         * lib/strftime.c: Assume strftime() exists.
46075
46076 2006-06-29  Derek Price  <derek@ximbiot.com>
46077
46078         * modules/c-bs-a: Removed - \a is C89.
46079         * MODULES.html.sh: Remove c-bs-a.
46080
46081 2006-06-29  Bruno Haible  <bruno@clisp.org>
46082
46083         * modules/wcwidth (License): Change to LGPL.
46084
46085 2006-06-28  Simon Josefsson  <jas@extundo.com>
46086
46087         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46088         on _WIN32.
46089
46090         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46091         getnameinfo.
46092
46093 2006-06-28  Simon Josefsson  <jas@extundo.com>
46094
46095         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46096
46097 2006-06-28  Simon Josefsson  <jas@extundo.com>
46098
46099         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46100         functions there.  It will succeed on Windows XP, but on Windows
46101         2000 and (presumably) earlier, it will fail, and use the internal
46102         re-implementation.
46103         (use_win32_p): New function.
46104         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46105         Support AI_NUMERICSERV to disable getservbyname.
46106         (getnameinfo): New function, only supports
46107         NI_NUMERICHOST|NI_NUMERICSERV for now.
46108
46109         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46110         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46111         getnameinfo.
46112
46113 2006-06-28  Eric Blake  <ebb9@byu.net>
46114
46115         * modules/wcwidth: New file.
46116         * modules/mbchar (Depends-on): Add wcwidth.
46117         * modules/mbswidth (Depends-on): Add wcwidth.
46118         * MODULES.html.sh: Add wcwidth.
46119
46120 2006-06-28  Eric Blake  <ebb9@byu.net>
46121
46122         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46124
46125 2006-06-28  Eric Blake  <ebb9@byu.net>
46126
46127         * lib/xvasprintf.h: Fix comments.
46128
46129 2006-06-28  Eric Blake  <ebb9@byu.net>
46130
46131         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46132         * lib/mbswidth.c (wcwidth): Move from here...
46133         * lib/wcwidth.h: ...to this new file.
46134
46135 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46136
46137         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46138
46139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46140         it's obsolete.
46141         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46142
46143 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46144
46145         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46146         Autoconf 2.60 says this stuff was obsolete.
46147
46148 2006-06-28  Bruno Haible  <bruno@clisp.org>
46149
46150         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46151
46152 2006-06-28  Bruno Haible  <bruno@clisp.org>
46153
46154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46155         gt_TYPE_WCHAR_T.
46156
46157 2006-06-28  Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46160         declaration for wcwidth.
46161         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46162
46163 2006-06-28  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46166         (mkdir): Define using _mkdir.
46167
46168 2006-06-28  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/getaddrinfo.h: Fix POSIX URL.
46171         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46172         _WIN32.
46173         (use_win32_p): Make static.
46174         (getaddrinfo): Reject service name if it is empty or does not consist
46175         solely of decimal digits, or if its value is > 65535.
46176         (getnameinfo): Remove useless casts.
46177
46178 2006-06-27  Simon Josefsson  <jas@extundo.com>
46179
46180         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46181         Eggert and Martin Lambers.
46182
46183 2006-06-27  Simon Josefsson  <jas@extundo.com>
46184
46185         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46186         Eggert and Martin Lambers.
46187
46188 2006-06-27  Bruno Haible  <bruno@clisp.org>
46189
46190         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46191         result to 0, not to empty.
46192         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46193
46194 2006-06-27  Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46197
46198 2006-06-26  Simon Josefsson  <jas@extundo.com>
46199
46200         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46201         present.
46202
46203 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46204
46205         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46206         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46207         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46208
46209 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46210
46211         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46212
46213 2006-06-26  Bruno Haible  <bruno@clisp.org>
46214
46215         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46216
46217 2006-06-26  Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46220
46221 2006-06-26  Bruno Haible  <bruno@clisp.org>
46222
46223         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46224         SGI C compiler in pre-C99 mode.
46225         Suggested by Mark D. Baushke and Larry Jones.
46226
46227 2006-06-26  Bruno Haible  <bruno@clisp.org>
46228
46229         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46230         WCHAR_MAX.
46231         Reported by Mark D. Baushke and Larry Jones.
46232
46233 2006-06-26  Bruno Haible  <bruno@clisp.org>
46234
46235         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46236         in pre-C99 mode.
46237         Suggested by Mark D. Baushke and Larry Jones.
46238
46239 2006-06-23  Simon Josefsson  <jas@extundo.com>
46240             Bruno Haible  <bruno@clisp.org>
46241
46242         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46243         Emit mostlyclean-local rule.
46244         (func_emit_tests_Makefile_am): Likewise.
46245         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46246
46247 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46248
46249         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46250
46251 2006-06-23  Bruno Haible  <bruno@clisp.org>
46252
46253         * tests/test-stdint.c: Update to match ISO C 99 Technical
46254         Corrigendum 1.
46255
46256 2006-06-23  Bruno Haible  <bruno@clisp.org>
46257
46258         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46259
46260 2006-06-23  Bruno Haible  <bruno@clisp.org>
46261
46262         * lib/stdint_.h: Treat IRIX like OpenBSD.
46263
46264 2006-06-23  Bruno Haible  <bruno@clisp.org>
46265
46266         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46267         ISO C 99 Technical Corrigendum 1.
46268
46269 2006-06-22  Simon Josefsson  <jas@extundo.com>
46270
46271         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46272         MinGW.
46273
46274 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46275
46276         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46277         needed.  Some compiler complained about some of them.  Problem reported
46278         by Larry Jones in
46279         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46280
46281 2006-06-21  Simon Josefsson  <jas@extundo.com>
46282
46283         * tests/test-getaddrinfo.c: New file.
46284
46285         * modules/getaddrinfo-tests: New file.
46286
46287         * MODULES.html.sh: Add inet_pton.
46288
46289         * modules/inet_pton: New file.
46290
46291 2006-06-21  Simon Josefsson  <jas@extundo.com>
46292
46293         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46294         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46295         of using the (limited) gnulib implementation on Windows XP.
46296
46297         * m4/inet_pton.m4: New file.
46298
46299 2006-06-21  Simon Josefsson  <jas@extundo.com>
46300
46301         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46302         variable.
46303
46304         * lib/socket_.h: Don't define WINVER.
46305
46306         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46307         slightly modified to work in gnulib.
46308
46309 2006-06-21  Simon Josefsson  <jas@extundo.com>
46310
46311         * doc/gnulib.texi (Windows sockets): Add.
46312
46313 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46314
46315         * lib/read-file.c (fread_file): Start with buffer allocation of
46316         0 bytes rather than 1 byte; this simplifies the code.
46317         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46318         code to free buffer and save/restore errno.
46319         (internal_read_file): Remove unused local.
46320
46321 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46322
46323         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46324         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46325         Problem reported by Denis Excoffier in
46326         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46327
46328 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46329
46330         * modules/sys_socket, modules/socklen: Include sys/types since
46331         FreeBSD 4.x's sys/socket.h needs it.
46332
46333 2006-06-19  Simon Josefsson  <jas@extundo.com>
46334
46335         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46336
46337 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46338
46339         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46340
46341 2006-06-19  Bruno Haible  <bruno@clisp.org>
46342
46343         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46344         and FULL_PATH_INTTYPES_H in angle brackets.
46345         Reported by Mark D. Baushke <mdb@gnu.org>.
46346
46347 2006-06-17  Eric Blake  <ebb9@byu.net>
46348
46349         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46350         errno.
46351
46352 2006-06-17  Bruno Haible  <bruno@clisp.org>
46353
46354         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46355         <sys/inttypes.h>.
46356
46357 2006-06-17  Bruno Haible  <bruno@clisp.org>
46358
46359         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46360         whether errno is declared. Assume <errno.h> declares errno.
46361
46362 2006-06-17  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46365
46366 2006-06-17  Bruno Haible  <bruno@clisp.org>
46367
46368         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46369         problem on Solaris 2.5.1.
46370
46371 2006-06-16  Eric Blake  <ebb9@byu.net>
46372
46373         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46374         * lib/unicodeio.c [!defined errno]: Likewise.
46375         * lib/strtol.c [!defined errno]: Likewise.
46376         * lib/strtod.c [!defined errno]: Likewise.
46377
46378 2006-06-15  Eric Blake  <ebb9@byu.net>
46379
46380         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46381
46382 2006-06-15  Eric Blake  <ebb9@byu.net>
46383
46384         * config/srclist.txt (ssize_t.m4): Lose sync.
46385
46386 2006-06-15  Bruno Haible  <bruno@clisp.org>
46387
46388         * modules/stdint (Files): Include m4/full-header-path.m4,
46389         m4/size_max.m4, m4/wchar_t.m4.
46390         (Makefile.am): Many more substitutions.
46391         * modules/stdint-tests: New file.
46392         * tests/test-stdint.c: New file.
46393
46394 2006-06-15  Bruno Haible  <bruno@clisp.org>
46395
46396         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46397         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46398         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46399         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46400         gl_CHECK_TYPE_SAME): New macros.
46401
46402 2006-06-15  Bruno Haible  <bruno@clisp.org>
46403
46404         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46405
46406 2006-06-15  Bruno Haible  <bruno@clisp.org>
46407
46408         * lib/stdint_.h: Rewritten to be fully auto-configured.
46409         Fixes bug on HP-UX/IA64.
46410
46411 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46412
46413         * lib/getdate.y (__attribute__): Don't define if already defined.
46414         Problem reported by Larry Jones.
46415         * lib/utimens.c (__attribute__): Likewise.
46416
46417 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46418
46419         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46420         reported by Andreas Schwab.
46421
46422 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46423             Bruno Haible  <bruno@clisp.org>
46424
46425         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46426         check for the declaration of strnlen and a run test that exposes the
46427         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46428         rpl_strndup.
46429
46430 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46431             Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46434
46435 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46436
46437         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46438         compile test, for Tru64 4.0D.
46439
46440 2006-05-28  Karl Berry  <karl@gnu.org>
46441
46442         * config/srclist.txt (printf-args.c): lose sync.
46443
46444 2006-05-26  Martin Lambers  <marlam@marlam.de>
46445
46446         * lib/getpass.c: Updates the test for the native W32 API, and adds
46447         missing includes, thus fixing compilation warnings.
46448
46449 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46450
46451         * lib/exclude.c (exclude_fnmatch): New function.
46452         (excluded_file_name): Call exclude_fnmatch.
46453         * lib/exclude.h (excluded_file_name): New prototype
46454
46455 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46456
46457         * lib/tempname.c (small_open, large_open): New macros.
46458         (__open, __open64) [!_LIBC]: Remove.
46459         (__gen_tempname): Use small_open and large_open instead of __open
46460         and __open64.  This fixes a portability bug on HP-UX 11.11i
46461         reported by Simon Wing-Tang in
46462         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46463
46464 2006-05-24  Bruno Haible  <bruno@clisp.org>
46465
46466         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46467         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46468         Reported by Thorsten Maerz <torte@netztorte.de> via
46469         Aaron Stone <aaron@serendipity.cx>.
46470
46471 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46472
46473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46474         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46475         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46476         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46477         not really conditional on the cache.
46478         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46479
46480 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46481
46482         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46483         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46484         (my_usleep): Don't mishandle maximum value.
46485
46486 2006-05-19  Jim Meyering  <jim@meyering.net>
46487
46488         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46489
46490 2006-05-17  Bruno Haible  <bruno@clisp.org>
46491
46492         Cygwin portability.
46493         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46494
46495 2006-05-17  Bruno Haible  <bruno@clisp.org>
46496
46497         * lib/stdint_.h: Fix recognition of Cygwin.
46498
46499 2006-05-15  Bruno Haible  <bruno@clisp.org>
46500
46501         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46502         on libtool patch by Ralf Wildenhues.
46503
46504 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46505
46506         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46507         test for C99 conformance; (bool) 0.5 is an integer constant
46508         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46509         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46510
46511 2006-05-11  Simon Josefsson  <jas@extundo.com>
46512
46513         * m4/xvasprintf.m4: Fix obvious typo.
46514
46515 2006-05-11  Jim Meyering  <jim@meyering.net>
46516
46517         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46518         James Lemley.
46519
46520 2006-05-10  Simon Josefsson  <jas@extundo.com>
46521
46522         * lib/md4.c: Typo fix, update copyright years.
46523         (K1, K2): Don't use L because it turn computations into 64-bit on
46524         64-bit platforms.
46525
46526 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46527
46528         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46529         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46530         unwanted sign propagation, e.g., on hosts with 64-bit int.
46531         There still are some problems with reeelly weird theoretical hosts
46532         (e.g., 33-bit int) but it's not worth worrying about now.
46533         * lib/sha1.c (rol): Likewise.
46534         (K1, K2, K3, K4): Remove unnecessary L suffix.
46535
46536 2006-05-10  Bruno Haible  <bruno@clisp.org>
46537
46538         * lib/des.c: Cast to avoid warnings.
46539
46540 2006-05-09  Bruno Haible  <bruno@clisp.org>
46541
46542         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46543         (Depends-on): Depend also on xsize, stdarg.
46544         (configure.ac): Add gl_XVASPRINTF.
46545
46546 2006-05-09  Bruno Haible  <bruno@clisp.org>
46547
46548         * m4/xvasprintf.m4: New file.
46549
46550 2006-05-09  Bruno Haible  <bruno@clisp.org>
46551
46552         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46553         (EOVERFLOW): Define fallback value.
46554         (xstrcat): New function.
46555         (xvasprintf): Recognize the special case of a string concatenation.
46556
46557 2006-05-08  Eric Blake  <ebb9@byu.net>
46558
46559         * gnulib-tool (func_version): Base copyright year on CVS date.
46560         (func_emit_copyright_notice): New function.
46561         (func_emit_lib_Makefile_am): Use it.
46562         (func_emit_tests_Makefile_am): Likewise.
46563         (func_import): Likewise.
46564
46565 2006-05-08  Bruno Haible  <bruno@clisp.org>
46566
46567         * modules/stdarg: New file.
46568         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46569
46570 2006-05-08  Bruno Haible  <bruno@clisp.org>
46571
46572         * m4/stdarg.m4: New file, from GNU gettext.
46573
46574 2006-05-08  Bruno Haible  <bruno@clisp.org>
46575
46576         * config/srclist.txt (build-aux/config.rpath): different from latest
46577         release.
46578
46579 2006-05-08  Bruno Haible  <bruno@clisp.org>
46580
46581         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46582
46583 2006-05-05  Jim Meyering  <jim@meyering.net>
46584
46585         * m4/warning.m4: New file, derived from bison's file by the same name.
46586
46587 2006-05-03  Bruno Haible  <bruno@clisp.org>
46588
46589         * lib/stdint_.h: Shorter URL.
46590         * lib/inttypes.h: Likewise.
46591
46592 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46593
46594         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46595
46596 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46597
46598         * lib/verify.h: Document the internals better.  Most of this change
46599         was written by Bruno Haible.
46600
46601 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46602
46603         * doc/verify.texi: New file, partly based on a proposal by
46604         Bruno Haible.
46605
46606 2006-05-02  Bruno Haible  <bruno@clisp.org>
46607
46608         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46609         test from here...
46610         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46611
46612 2006-04-29  Bruno Haible  <bruno@clisp.org>
46613
46614         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46615         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46616
46617 2006-04-29  Bruno Haible  <bruno@clisp.org>
46618
46619         * gnulib-tool: Make --update option actually work.
46620
46621 2006-04-29  Bruno Haible  <bruno@clisp.org>
46622
46623         * doc/gcd.texi: New file.
46624         * doc/gnulib.texi: Include it.
46625
46626 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46627
46628         * lib/getdate.y (get_date): When adding relative date, start with the
46629         initial time, not with the result of the first mktime call.
46630
46631 2006-04-25  Bruno Haible  <bruno@clisp.org>
46632
46633         * gnulib-tool (func_import): Output the include directives in three
46634         blocks, sorted separately.
46635         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46636
46637 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46638
46639         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46640         to define main with arguments, for C++.  Reported by Eric Blake.
46641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46642         Prefer 'int main ()' to 'int main (void)', for C++.
46643         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46645         for 'main', for C99 and C++.
46646
46647 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46648
46649         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46650         Don't assume that exit status -1 is valid.
46651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46652         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46653         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46654         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46655         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46656         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46657         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46658         functions can be used without declaring them, or that you can
46659         exit with status -1.
46660         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46661
46662 2006-04-24  Karl Berry  <karl@gnu.org>
46663
46664         * config/srclist.txt (longdouble.m4): sync lost.
46665
46666 2006-04-24  Eric Blake  <ebb9@byu.net>
46667
46668         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46669
46670 2006-04-24  Bruno Haible  <bruno@clisp.org>
46671
46672         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46673         poll() implementation in AIX.
46674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46675
46676 2006-04-24  Bruno Haible  <bruno@clisp.org>
46677
46678         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46679         assigned exactly once.
46680
46681 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46682             Bruno Haible  <bruno@clisp.org>
46683
46684         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46685         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46686         for AM_CPPFLAGS.
46687
46688 2006-04-23  Bruno Haible  <bruno@clisp.org>
46689
46690         * modules/copy-file: Depend on unistd.
46691         * modules/execute: Likewise.
46692         * modules/fatal-signal: Likewise.
46693         * modules/findprog: Likewise.
46694         * modules/mkdtemp : Likewise.
46695         * modules/pipe: Likewise.
46696         * modules/wait-process: Likewise.
46697
46698 2006-04-23  Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46701         condition was already detected.
46702         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46703
46704 2006-04-23  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/copy-file.c: Include <unistd.h> unconditionally.
46707         * lib/execute.c: Likewise.
46708         * lib/fatal-signal.c: Likewise.
46709         * lib/findprog.c: Likewise.
46710         * lib/mkdtemp.c: Likewise.
46711         * lib/pipe.h: Likewise.
46712         * lib/pipe.c: Likewise.
46713         * lib/wait-process.h: Likewise.
46714
46715 2006-04-23  Bruno Haible  <bruno@clisp.org>
46716
46717         * gnulib-tool (func_usage): Fix --import description. Document
46718         --update.
46719         (func_import): Create temporary file in a temporary directory, if
46720         --dry-run is specified. Silence errors from 'grep' when there are no
46721         m4 files in $m4dir.
46722         (func_create_testdir): Silence errors from 'grep' when there are no
46723         m4 files in $m4dir.
46724         Reported by Karl Berry <karl@freefriends.org>.
46725
46726 2006-04-20  Bruno Haible  <bruno@clisp.org>
46727
46728         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46729         one argument, so that the code will be portable to Autoconf 2.60.
46730         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46731         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46732         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46733
46734 2006-04-19  Derek Price  <derek@ximbiot.com>
46735             Eric Blake  <ebb9@byu.net>
46736
46737         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46738         rather than "/full/path.h".  Update comment to match.  Shorten &
46739         generalize m4_translit call via AS_TR_CPP.
46740
46741 2006-04-19  Derek Price  <derek@ximbiot.com>
46742             Eric Blake  <ebb9@byu.net>
46743
46744         * lib/inttypes.h: Correct grammar in comment.
46745
46746 2006-04-18  Derek Price  <derek@ximbiot.com>
46747             Paul Eggert  <eggert@cs.ucla.edu>
46748
46749         * modules/inttypes: New file.
46750         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46751
46752 2006-04-18  Derek Price  <derek@ximbiot.com>
46753             Paul Eggert  <eggert@cs.ucla.edu>
46754
46755         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46756         New files.
46757
46758 2006-04-18  Derek Price  <derek@ximbiot.com>
46759             Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         * lib/inttypes.h: New file.
46762         * lib/strtoimax.c: Assume <inttypes.h>.
46763
46764 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46765
46766         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46767         isn't mounted.  Problem reported by Kir Kolyshkin.
46768
46769 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46770
46771         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46772         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46773         Derek R. Price.
46774         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46775         implementation.
46776
46777 2006-04-12  Eric Blake  <ebb9@byu.net>
46778
46779         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46780         is now done automatically by the corresponding Autoconf macro.
46781
46782 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46783
46784         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46785         time_r.h.
46786
46787 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46788
46789         Merge regex changes from libc, removing some of our
46790         POSIX-conformance changes that were rejected and redoing them in a
46791         less-intrusive way.
46792
46793         * lib/regcomp.c (re_compile_internal, init_dfa):
46794         Length arg is now size_t, not Idx.  All uses changed.
46795         (peek_token): Forward decl now says internal_function.
46796         (__re_error_msgid, __re_error_msgid_idx):
46797         Now static rather than extern with attribute_hidden.
46798         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46799         For some reason libc prefers K&R style defns for external functions.
46800         (regerror) [!defined _LIBC]: Likewise.
46801         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46802         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46803         (build_range_exp, build_collating_symbol):
46804         Use K&R-style defn.
46805         (re_compile_fastmap): Use '\0' to memset, not 0.
46806         (utf8_sb_map): Make the calculations more obvious.
46807         (init_dfa, parse_bracket_exp, build_charclass_op):
46808         Call calloc and cast result, as glibc does.
46809         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46810         (build_range_exp, build_collating_symbol):
46811         Now internal functions.
46812
46813         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46814
46815         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46816         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46817         Don't depend on VMS; depend on __VMS instead, for POSIX
46818         namespace cleanness.
46819         (regoff_t): Define to ssize_t, not long int.
46820
46821         Remove the REG_ macros named below.  Instead, make the old names
46822         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46823         __USE_GNU_REGEX.
46824         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46825         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46826         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46827         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46828         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46829         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46830         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46831         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46832         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46833         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46834         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46835         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46836         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46837         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46838         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46839         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46840         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46841         (REG_NREGS):
46842         Remove.  All uses replaced by the old RE_* names.
46843         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46844         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46845         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46846         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46847         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46848         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46849         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46850         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46851         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46852         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46853         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46854         Don't bother having these macros be independent of each others'
46855         values, since they no longer exist in the POSIX name space.
46856
46857         Rename the following member names back to their old names,
46858         unless !__USE_GNU_REGEX.  All uses changed back.
46859         (buffer): Renamed from re_buffer.
46860         (allocated): Renamed from re_allocated.
46861         (used): Renamed from re_used.
46862         (syntax): Renamed from re_syntax.
46863         (fastmap): Renamed from re_fastmap.
46864         (translate): Renamed from re_translate.
46865         (can_be_null): Renamed from re_can_be_null.
46866         (regs_allocated): Renamed from re_regs_allocated.
46867         (fastmap_accurate): Renamed from re_fastmap_accurate.
46868         (no_sub): Renamed from re_no_sub.
46869         (not_bol): Renamed from re_not_bol.
46870         (not_eol): Renamed from re_not_eol.
46871         (newline_anchor): Renamed from re_newline_anchor.
46872         (num_regs): Renamed from rm_num_regs.
46873         (start): Renamed from rm_start.
46874         (end): Renamed from rm_end.
46875
46876         (free_state): Move up a bit.
46877
46878         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46879         #define to be empty.
46880         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46881         when that is what is intended.
46882         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46883         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46884         (MAX): New macro.
46885         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46886         All uses changed back to re_malloc, etc.  It's now the caller's
46887         responsibility to check for overflow; all callers changed.
46888         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46889         (re_x2nrealloc): Remove.
46890         (free_state): Remove decl.
46891
46892         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46893         (re_set_registers, re_exec):
46894         Use K&R-style defn.
46895
46896         2006-01-31  Roland McGrath  <roland@redhat.com>
46897
46898         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46899         Reported by Mike Frysinger <vapier@gentoo.org>.
46900
46901         2006-01-15  Andreas Jaeger  <aj@suse.de>
46902
46903         [BZ #1950]
46904         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46905         build_wcs_upper_buffer change.
46906         (build_wcs_upper_buffer): Change return type.
46907
46908         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46909
46910         * lib/regex_internal.h: Include <stdint.h> if available.
46911
46912         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46913
46914         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46915
46916         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46917
46918         * lib/regcomp.c: Adjust for changed secondary hash function.
46919
46920         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46921
46922         * lib/regex.h: Pretty printing.
46923         Clean up namespace a bit.
46924
46925         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46926
46927         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46928         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46929
46930         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46931                     Ulrich Drepper  <drepper@redhat.com>
46932
46933         [BZ #1302]
46934         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46935         changed.
46936         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46937
46938         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46939
46940         [BZ #281]
46941         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46942         * lib/regcomp.c: Remove unnecessary uses of
46943         unsigned RE_TRANSLATE_TYPE.
46944         * lib/regex_internal.h: Likewise.
46945         * lib/regex_internal.c: Likewise.
46946         * lib/regexec.c: Likewise.
46947         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46948
46949         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46950
46951         * lib/regexec.c (find_recover_state): Remove unnecessary
46952         initialization.
46953         (transit_state_bkref): Make DFA a const pointer.
46954         (get_subexp): Likewise.
46955         (check_arrival): Likewise.
46956         (update_cur_sifted_state): Likewise.
46957         (re_search_internal): Likewise.
46958         (prune_impossible_nodes): Likewise.
46959         (acquire_init_state_context): Likewise.
46960         (proceed_next_node): Likewise.
46961         (set_regs): Likewise.
46962         (free_fail_stack_return): Likewise.
46963         (check_arrival_expand_ecl): Mark DFA parameter as const.
46964         (check_arrival_expand_ecl_sub): Likewise.
46965         (check_subexp_limits): Likewise.
46966         (sub_epsilon_src_nodes):  Likewise.
46967         (add_epsilon_src_nodes):  Likewise.
46968         (merge_state_array): Likewise.
46969         (update_regs): Likewise.
46970         (build_trtable): Likewise.
46971         (sift_states_backward): Mark MCTX parameter as const.
46972         (build_sifted_states): Likewise.
46973         (update_cur_sifted_state): Likewise.
46974         (sift_states_mkref): Likewise.
46975         (check_arrival_expand_ecl): Mark eclosure as const.
46976         (check_dst_limits_calc_pos_1): Likewise.
46977         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46978         pointer.
46979
46980         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46981
46982         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46983         (transit_state_sb): Likewise.
46984         (transit_state_mb): Likewise.
46985         (sift_states_iter_mb): Likewise.
46986         (check_arrival_add_next_nodes): Likewise.
46987         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46988         [_LIBC] (re_search_2_stub): Use mempcpy.
46989
46990         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46991         mbrtowc for very simple UTF-8 case.
46992
46993         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46994         a pointer-to-const.
46995         (re_acquire_state_context): Likewise.
46996         * lib/regex_internal.h: Adjust prototypes.
46997
46998         * lib/regex.c: Prevent using C++ compilers.
46999
47000         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47001         (re_acquire_state_context): Likewise.
47002
47003 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47004
47005         * modules/regex (Depends-on): Add ssize_t.
47006
47007 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47008
47009         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47010         translation table.
47011
47012 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47013
47014         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47015
47016 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47017             Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47020         <sys/types.h> and <inttypes.h>.
47021
47022 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47023
47024         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47025         `__error_t_defined', so argp.h will not typedef the former.
47026
47027 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47028
47029         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47030         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47031         glibc names.  Even if glibc is changed to conform to POSIX, the
47032         traditional names will be available anyway, since regex depends on
47033         the extensions module.  Also, fix a longstanding typo in the
47034         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47035         reported by Emanuele Giaquinta.  Also, change sense of cached
47036         variable, so that the message makes sense.
47037
47038 2006-03-24  Simon Josefsson  <jas@extundo.com>
47039
47040         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47041         including some doc fixes.
47042         (base64_encode_alloc): Fix +1 bug on allocation failures.
47043
47044 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47045
47046         * lib/base64.c (base64_encode): Do not read past end of array with
47047         unsanitized input on systems with CHAR_BIT > 8.
47048
47049 2006-03-24  Eric Blake  <ebb9@byu.net>
47050
47051         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47052
47053 2006-03-22  Karl Berry  <karl@gnu.org>
47054
47055         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47056         * config/srclistvars.sh (COREUTILS): new var.
47057
47058 2006-03-17  Jim Meyering  <jim@meyering.net>
47059
47060         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47061         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47062
47063 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47064
47065         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47066         no longer needs it.  Instead, check that regoff_t is as least
47067         as wide as ptrdiff_t.
47068
47069         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47070         so that our regex.h stays compatible with the installed regex.
47071         This is helpful for installers who configure --without-included-regex.
47072         Problem reported by Emanuele Giaquinta.
47073
47074 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47075
47076         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47077         Typedef to long int, not to off_, as POSIX will likely change
47078         in that direction.
47079
47080 2006-03-15  Eric Blake  <ebb9@byu.net>
47081
47082         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47083
47084 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47085
47086         * lib/argp-help.c (validate_uparams): Fix typo
47087         * lib/argp-parse.c (argp_default_options): Consistently begin help
47088         messages with a lowercase letter.
47089
47090 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47091
47092         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47093         overrun buffers and shouldn't be used (much as gets shouldn't be
47094         used).
47095         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47096
47097 2006-03-08  Simon Josefsson  <jas@extundo.com>
47098
47099         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47100         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47101
47102 2006-03-08  Simon Josefsson  <jas@extundo.com>
47103
47104         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47105         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47106
47107 2006-03-08  Simon Josefsson  <jas@extundo.com>
47108
47109         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47110         signal that configure disabled the device.
47111
47112 2006-03-08  Simon Josefsson  <jas@extundo.com>
47113
47114         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47115         languages.
47116
47117 2006-03-07  Simon Josefsson  <jas@extundo.com>
47118
47119         * modules/getopt (Depends-on): Add unistd.
47120
47121         * modules/unistd: New file.
47122
47123 2006-03-07  Simon Josefsson  <jas@extundo.com>
47124
47125         * modules/gc-random: New file.
47126
47127 2006-03-07  Simon Josefsson  <jas@extundo.com>
47128
47129         * m4/unistd_h.m4: New file.
47130
47131 2006-03-07  Simon Josefsson  <jas@extundo.com>
47132
47133         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47134         test to be side-effect free by storing the result in the cache
47135         variable gl_cv_lib_readline, and moving the assignment of
47136         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47137         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47138
47139 2006-03-07  Simon Josefsson  <jas@extundo.com>
47140
47141         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47142         error on missing devices (the functions will return an error).
47143
47144         * m4/gc.m4: Move random stuff to gc-random.m4
47145
47146 2006-03-07  Simon Josefsson  <jas@extundo.com>
47147
47148         * lib/unistd_.h: New file.
47149
47150 2006-03-07  Simon Josefsson  <jas@extundo.com>
47151
47152         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47153
47154 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47155
47156         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47157         Problem reported by Juan Manuel Guerrero.
47158
47159 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47160
47161         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47162         the unistd module.
47163         * lib/getlogin_r.c: Likewise.
47164         * lib/getlogin_r.h: Likewise.
47165         * lib/glob.c: Likewise.
47166         * lib/pagealign_alloc.c: Likewise.
47167         * lib/unistd_.h: Remove; no longer needed.
47168
47169 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47170
47171         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47172         Add unistd.
47173         * modules/c-stack (Depends-on): Add unistd.
47174         * modules/getlogin_r: Likewise.
47175         * modules/glob: Likewise.
47176         * modules/pagealign_alloc: Likewise.
47177         * modules/unistd (Files): Remove lib/unistd_.h.
47178         (EXTRA_DIST): Remove.
47179         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47180         need unistd_.h.
47181         (MOSTLYCLEANFILES): Remove unistd.h-t.
47182
47183 2006-03-03  Simon Josefsson  <jas@extundo.com>
47184
47185         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47186
47187 2006-03-03  Simon Josefsson  <jas@extundo.com>
47188
47189         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47190         libidn and bison.
47191
47192 2006-03-03  Simon Josefsson  <jas@extundo.com>
47193
47194         * build-aux/maint.mk: Add indent target.
47195
47196 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47197
47198         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47199         our replacement poll.h in any case, to avoid a differing
47200         declaration from a system header.  Seen on AIX.
47201
47202 2006-03-01  Simon Josefsson  <jas@extundo.com>
47203
47204         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47205         <kasal@ucw.cz>.
47206
47207 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * modules/gettime (Depends-on): Add extensions module.
47210         * modules/nanosleep (Depends-on): Likewise.
47211         * modules/settime (Depends-on): Likewise.
47212
47213 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47214
47215         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47216         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47217         pedantically.
47218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47219         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47220
47221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47222         not "==".  Reported by Ralf Wildenhues.
47223
47224 2006-03-01  Karl Berry  <karl@gnu.org>
47225
47226         * doc/Copyright/request-*: new files, synced from gnuorg.
47227
47228 2006-03-01  Karl Berry  <karl@gnu.org>
47229
47230         * config/srclist.txt (Copyright/*): new entries.
47231
47232 2006-02-28  Simon Josefsson  <jas@extundo.com>
47233
47234         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47235
47236 2006-02-27  Simon Josefsson  <jas@extundo.com>
47237
47238         * lib/base64.h: Indent #define's.  From Jim Meyering
47239         <jim@meyering.net>.
47240
47241 2006-02-27  Jim Meyering  <jim@meyering.net>
47242
47243         Revert the change of 2006-02-24, so these files can continue
47244         to be sync'd from gettext.
47245         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47246         of `config.h'.
47247
47248 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47249
47250         * modules/intprops: New file.
47251         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47252         Add intprops.
47253         * modules/getloadavg (Files): Remove lib/intprops.h.
47254         (Depends-on): Add intprops.
47255         * modules/human: Likewise.
47256         * modules/inttostr: Likewise.
47257         * modules/openat: Likewise.
47258         * modules/sig2str: Likewise.
47259         * modules/userspec: Likewise.
47260         * modules/utimecmp: Likewise.
47261         * modules/xnanosleep: Likewise.
47262         * modules/xstrtol: Likewise.
47263
47264 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47265
47266         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47267         * modules/lock-tests (TESTS): Use $(EXEEXT).
47268         * modules/tls-tests: Likewise.
47269         * modules/argp-tests: Likewise.
47270         (check_PROGRAMS): New var, replacing...
47271         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47272
47273 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47274
47275         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47276         `config.h'.
47277
47278 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47279
47280         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47281
47282 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47283
47284         Sync from coreutils.
47285         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47286         gl_CHDIR_SAFER.
47287
47288 2006-02-22  Jim Meyering  <jim@meyering.net>
47289
47290         Sync from coreutils.
47291         * m4/chdir-safer.m4: New file.
47292
47293 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47294
47295         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47296         AT_FDCWD exceeds INT_MAX.
47297         * lib/openat.h (AT_FDCWD): Likewise.
47298
47299 2006-02-17  Eric Blake  <address@hidden>
47300
47301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47302
47303 2006-02-16  Simon Josefsson  <jas@extundo.com>
47304
47305         * modules/getaddrinfo (Depends-on): Add sys_socket.
47306
47307 2006-02-15  Simon Josefsson  <jas@extundo.com>
47308
47309         * build-aux/maint.mk: Add dsyntax-check rule.
47310
47311 2006-02-15  Eric Blake  <ebb9@byu.net>
47312
47313         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47314         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47315         'present but cannot compile' warnings on cygwin.
47316         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47317         use ws2tcpip.h if sys/socket.h works.
47318         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47319         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47320
47321 2006-02-14  Simon Josefsson  <jas@extundo.com>
47322
47323         * modules/maintainer-makefile (Files): Rename.
47324
47325         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47326         and (the local) Makefile.cfg to maint-cfg.mk.
47327
47328         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47329         to the latter.
47330
47331         * modules/maintainer-makefile: New module.
47332
47333         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47334         severaly stripped to make it possible to build it up from scratch
47335         with reliable tests.
47336
47337         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47338         fixes to permit overriding the default actions when configure and
47339         makefile are not available.
47340
47341 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47342
47343         Sync from coreutils.
47344         * modules/lstat (Depends-on): Don't depend on xalloc.
47345         (License): Change from GPL to LGPL, since this is now simply a
47346         replacement for a libc function.
47347
47348 2006-02-14  Jim Meyering  <jim@meyering.net>
47349
47350         Sync from coreutils.
47351
47352         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47353         failure on deficient systems, and simplify gnulib lgpl dependencies.
47354         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47355         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47356
47357         * lib/xalloc-die.c: Remove unused definition of N_.
47358
47359 2006-02-14  Jim Meyering  <jim@meyering.net>
47360
47361         Sync from coreutils.
47362         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47363         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47364         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47365         double-quote uses of that variable, to accommodate the rare case in
47366         which getmntent is available in none of the libraries checked.  This
47367         happens at least on FreeBSD 5.0.
47368
47369 2006-02-13  Simon Josefsson  <jas@extundo.com>
47370
47371         * gnulib-tool (Usage): Fix --import, from
47372         karl@freefriends.org (Karl Berry).
47373
47374 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47375
47376         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47377
47378 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47379
47380         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47381         "autoupdate" on 2005-12-12.
47382
47383 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47384
47385         * modules/closeout (Depends-on): Remove atexit.
47386
47387 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47388
47389         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47390         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47391
47392 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47393
47394         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47395         __EXTENSIONS__ if this causes compilation to fail.  Problem
47396         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47397         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47398
47399 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47400
47401         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47402         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47403         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47404         All uses changed.
47405
47406 2006-01-26  Simon Josefsson  <jas@extundo.com>
47407
47408         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47409         prototype is visible on mingw32.
47410
47411         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47412         for mingw32.
47413
47414         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47415         mingw32).
47416
47417 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47418
47419         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47420         attempt to open for write; this always fails, at least on POSIX
47421         hosts.  This reinstates the 2006-01-09 change, which was
47422         inadvertently removed.
47423
47424 2006-01-26  Bruno Haible  <bruno@clisp.org>
47425
47426         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47427         Reported by Paul Eggert.
47428
47429 2006-01-26  Bruno Haible  <bruno@clisp.org>
47430             Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * lib/stdbool_.h (_Bool)
47433         [(! (defined __cplusplus || defined __BEOS__)
47434           && !defined __GNUC__
47435           && !(defined __HP_cc || defined __xlc__
47436                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47437                || defined __sgi))]:
47438         #define to signed char in these cases too; this simplifies
47439         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47440         etc., separately) and makes it more conservative.
47441
47442 2006-01-25  Simon Josefsson  <jas@extundo.com>
47443
47444         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47445         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47446         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47447
47448 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47449
47450         * lib/argp-namefrob.h: Bugfix. Remove stray #
47451
47452 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47453
47454         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47455         so that we test the test.
47456         Check for yet another HP-UX cc bug involving *bool |= bool.
47457
47458 2006-01-25  Karl Berry  <karl@gnu.org>
47459
47460         * config/srclist.txt (vasnprintf.c): sync lost.
47461
47462 2006-01-25  Jim Meyering  <jim@meyering.net>
47463
47464         Sync from the stable (b5) branch of coreutils:
47465
47466         * lib/fts.c (fts_children): Don't let close() clobber errno from
47467         failed fchdir().
47468
47469         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47470         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47471         a dangling symlink.  That can also happen at least for ELOOP.
47472         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47473         FYI, this bug predates the inclusion of fts.c in coreutils.
47474
47475         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47476         in their own block, so pre-c99 compilers don't object.
47477
47478         Avoid the double-free (first in fts_read, second in fts_close) that
47479         would occur when an `active' directory is made inaccessible (e.g.,
47480         via chmod a-x) during a traversal.
47481         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47482         before returning.  Reproduce this failure by
47483         mkdir -p a/b; cd a; chmod a-x . b
47484         Reported by Stavros Passas.
47485
47486 2006-01-25  Jim Meyering  <jim@meyering.net>
47487
47488         * lib/fileblocks.c: Remove more useless parentheses.
47489         * lib/readutmp.h: Likewise.
47490
47491 2006-01-25  Bruno Haible  <bruno@clisp.org>
47492
47493         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47494         warnings.
47495         Reported by Paul Eggert.
47496
47497 2006-01-25  Bruno Haible  <bruno@clisp.org>
47498
47499         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47500         rid of a trap command. For Solaris sh.
47501         Reported by Mark D. Baushke <mdb@gnu.org>.
47502
47503 2006-01-24  Simon Josefsson  <jas@extundo.com>
47504
47505         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47506         Bruno.
47507
47508 2006-01-24  Karl Berry  <karl@gnu.org>
47509
47510         * config/srclist.txt (argp-namefrob.h): sync lost.
47511
47512 2006-01-24  Jim Meyering  <jim@meyering.net>
47513
47514         * modules/openat (Files): Add lib/intprops.h.
47515         From Mark D. Baushke.
47516
47517 2006-01-24  Jim Meyering  <jim@meyering.net>
47518
47519         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47520         Reported by Mark D. Baushke.
47521
47522 2006-01-24  Jim Meyering  <jim@meyering.net>
47523
47524         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47525
47526 2006-01-24  Bruno Haible  <bruno@clisp.org>
47527
47528         * modules/strnlen (Maintainer): Change from glibc to all.
47529
47530 2006-01-24  Bruno Haible  <bruno@clisp.org>
47531
47532         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47533         Patch by Paul Eggert.
47534
47535 2006-01-24  Bruno Haible  <bruno@clisp.org>
47536
47537         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47538         already has it.
47539         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47540         2005-11-26.
47541
47542         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47543         'signed char' to avoid problems with the built-in _Bool type.
47544         Reported by Paul Eggert on 2005-11-26.
47545
47546 2006-01-24  Bruno Haible  <bruno@clisp.org>
47547
47548         * gnulib-tool (func_import): Avoid constructing complicated sed
47549         expressions inside backquote.
47550         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47551
47552 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47553
47554         These changes imported from libc.
47555         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47556         test and two separate function calls.
47557         * lib/strndup.c (__strndup): Add libc_hidden_def.
47558
47559 2006-01-23  Simon Josefsson  <jas@extundo.com>
47560
47561         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47562         Remove the test_*_SOURCES variable: automake infers it by default.
47563         * modules/tls-tests: Likewise.
47564
47565 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47566
47567         Work around porting bugs reported by Dieter in
47568         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47569         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47570         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47571         Include "getopt.h" first, to check interface.
47572         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47573         !HAVE_DECL_GETENV.
47574         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47575         (__strndup): Revert to K&R-style function dfns, the glibc style.
47576         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47577         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47578         Include strnlen.h first, to get prototype properly.
47579         (strnlen): Renamed from __strnlen.
47580         Remove weak alias.
47581
47582 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47583
47584         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47585
47586 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47587
47588         * config/srclist.txt: Adjust to reflect glibc reorganization.
47589         This affects only comments.
47590
47591 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47592
47593          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47594          Reported by Bruce Korb <bkorb@gnu.org>.
47595
47596 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47597
47598         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47599         to pacify gcc -Wswitch-default.
47600
47601 2006-01-22  Bruno Haible  <bruno@clisp.org>
47602
47603         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47604         temporary buffer for sprintf, take into account the precision also
47605         for 'd', 'i', 'u', 'o', 'x', 'X'.
47606
47607 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47608
47609         * modules/argp-tests: New module
47610         * tests/test-argp.c: New file
47611         * tests/test-argp-2.sh: New file
47612
47613 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47614
47615         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47616         (__argp_base_name): Removed
47617         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47618         typo.
47619         (__argp_base_name): Provide macro definition or extern declaration
47620         depending on the configuration
47621
47622 2006-01-20  Simon Josefsson  <jas@extundo.com>
47623
47624         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47625
47626 2006-01-20  Simon Josefsson  <jas@extundo.com>
47627
47628         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47629
47630 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47631
47632         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47633         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47634         Suggested by Bruno Haible.
47635
47636 2006-01-20  Karl Berry  <karl@gnu.org>
47637
47638         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47639         until changes propagate, I guess.
47640
47641 2006-01-19  Simon Josefsson  <jas@extundo.com>
47642
47643         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47644
47645 2006-01-19  Simon Josefsson  <jas@extundo.com>
47646
47647         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47648
47649 2006-01-19  Simon Josefsson  <jas@extundo.com>
47650
47651         * gnulib-tool: Set check_PROGRAMS.
47652
47653         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47654         modules/des-tests, modules/gc-arcfour-tests,
47655         modules/gc-arctwo-tests, modules/gc-des-tests,
47656         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47657         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47658         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47659         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47660         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47661         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47662         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47663         test_*_SOURCES.
47664
47665 2006-01-18  Simon Josefsson  <jas@extundo.com>
47666
47667         * modules/socklen (Depends-on): Depend on sys_socket.
47668
47669 2006-01-18  Simon Josefsson  <jas@extundo.com>
47670
47671         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47672         modules/des-tests, modules/gc-arcfour-tests,
47673         modules/gc-arctwo-tests, modules/gc-des-tests,
47674         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47675         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47676         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47677         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47678         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47679         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47680         $(EXEEXT) to automake TESTS variable, for mingw32.
47681
47682 2006-01-17  Simon Josefsson  <jas@extundo.com>
47683
47684         * modules/socklen (Include): Need sys/socket.h.
47685
47686 2006-01-17  Bruno Haible  <bruno@clisp.org>
47687
47688         * modules/ssize_t (Include): Add <sys/types.h>.
47689
47690 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47691
47692         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47693         it's not portable and it doesn't work with cross-compiles.
47694         Problem reported by Bruno Haible.  Fix missing-$ typo in
47695         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47696         -zignore from being used with Sun's C compiler.
47697
47698 2006-01-12  Simon Josefsson  <jas@extundo.com>
47699
47700         * lib/base64.c: Fix warning, reported by Bruno Haible
47701         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47702
47703 2006-01-12  Bruno Haible  <bruno@clisp.org>
47704
47705         * modules/ldd: New file.
47706         * build-aux/ldd.sh.in: New file.
47707         * MODULES.html.sh (Support for building libraries and executables): Add
47708         ldd.
47709
47710 2006-01-12  Bruno Haible  <bruno@clisp.org>
47711
47712         * m4/ldd.m4: New file.
47713
47714 2006-01-12  Bruno Haible  <bruno@clisp.org>
47715
47716         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47717         endless loop while replacing $auxdir with build-aux.
47718
47719 2006-01-11  Simon Josefsson  <jas@extundo.com>
47720
47721         * lib/stdint_.h (SIZE_MAX): Add missing (.
47722
47723 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47724
47725         Sync from coreutils.
47726         * lib/md5.c: Fix commentary typos.
47727         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47728         * lib/md5.h (__attribute__): Remove; unused.
47729         * lib/sha1.c: Fix commentary to match md5 better.
47730         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47731         so that we don't need to worry about alignment.  All uses changed.
47732         This merges the 2005-10-28 md5 change into sha1.
47733
47734 2006-01-11  Jim Meyering  <jim@meyering.net>
47735
47736         Sync from coreutils.
47737         * lib/md5.c (OP): Fix spacing.
47738
47739 2006-01-11  Bruno Haible  <bruno@clisp.org>
47740
47741         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47742         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47743         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47744
47745 2006-01-11  Bruno Haible  <bruno@clisp.org>
47746
47747         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47748         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47749         the "early" section as well.
47750
47751 2006-01-11  Bruno Haible  <bruno@clisp.org>
47752
47753         Avoid "ar: no archive members specified" error on MacOS X.
47754         * gnulib-tool (func_modules_add_dummy): New function.
47755         (func_import, func_create_testdir): Invoke it.
47756
47757 2006-01-11  Bruno Haible  <bruno@clisp.org>
47758
47759         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47760         with $auxdir in AC_CONFIG_FILES statements.
47761
47762 2006-01-11  Bruno Haible  <bruno@clisp.org>
47763
47764         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47765         Initialize also noinst_HEADERS to empty.
47766
47767 2006-01-11  Bruno Haible  <bruno@clisp.org>
47768
47769         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47770         variables.
47771         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47772         autoreconf.
47773
47774 2006-01-11  Bruno Haible  <bruno@clisp.org>
47775
47776         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47777         overridable by the user.
47778         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47779
47780 2006-01-10  Simon Josefsson  <jas@extundo.com>
47781
47782         * modules/sys_socket: New file.
47783
47784 2006-01-10  Simon Josefsson  <jas@extundo.com>
47785
47786         * m4/sys_socket_h.m4: New file.
47787
47788 2006-01-10  Simon Josefsson  <jas@extundo.com>
47789
47790         * lib/socket_.h: New file.
47791
47792 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47793
47794         * modules/readutmp (Maintainer): Add myself.
47795
47796 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47797
47798         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47799         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47800         People who are still concerned with buggy memcmp implementations
47801         can invoke gl_FUNC_MEMCMP themselves.
47802
47803 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47804
47805         * lib/regex_internal.h (BITSET_WORD_BITS):
47806         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47807         preprocessor mishandles large unsigned values as if they were signed.
47808         Problem reported by Claudio Fontana in
47809         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47810
47811 2006-01-10  Jim Meyering  <jim@meyering.net>
47812
47813         Avoid the double-free (first in fts_read, second in fts_close) that
47814         would occur when an `active' directory is made inaccessible (e.g.,
47815         via chmod a-x) during a traversal.
47816         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47817         before returning.  Reproduce this failure by
47818         mkdir -p a/b; cd a; chmod a-x . b
47819         Reported by Stavros Passas.
47820
47821         Sync from coreutils.
47822         * lib/sha1.c: Tweak grammar in a comment.
47823
47824 2006-01-10  Jim Meyering  <jim@meyering.net>
47825
47826         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47827         Patch by Joerg Sonnenberger.
47828
47829 2006-01-10  Bruno Haible  <bruno@clisp.org>
47830
47831         * modules/readutmp: Depend on module free.
47832         * modules/strtok_r: Depend on module restrict.
47833
47834 2006-01-10  Bruno Haible  <bruno@clisp.org>
47835
47836         * modules/gettext (configure.ac): Add an invocation of
47837         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47838
47839 2006-01-10  Bruno Haible  <bruno@clisp.org>
47840
47841         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47842         Reported by Werner Lemberg <wl@gnu.org>.
47843
47844 2006-01-10  Bruno Haible  <bruno@clisp.org>
47845
47846         * lib/localcharset.c: Update from GNU gettext.
47847
47848 2006-01-10  Bruno Haible  <bruno@clisp.org>
47849
47850         * lib/argp.h (__const): Remove macro. Use const instead.
47851         * lib/argp-fmtstream.h (__const): Likewise.
47852         * lib/glob_.h (__const): Remove macro.
47853         * lib/glob-libc.h: Use const instead of __const.
47854
47855 2006-01-10  Bruno Haible  <bruno@clisp.org>
47856
47857         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47858         variable.
47859         Needed to avoid an automake error regarding the 'gettext' module.
47860
47861 2006-01-09  Simon Josefsson  <jas@extundo.com>
47862
47863         * modules/inet_ntop (Depends-on): Add restrict.
47864
47865 2006-01-09  Simon Josefsson  <jas@extundo.com>
47866
47867         * modules/gc-rijndael-tests (License): Put under LGPL.
47868
47869         * modules/gc-des-tests (License): Likewise.
47870
47871         * modules/gc-arcfour-tests (License): Likewise.
47872
47873         * modules/gc-arctwo-tests (License): Likewise.
47874
47875         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47876
47877         * modules/gc-hmac-sha1-tests (Files): Likewise.
47878
47879         * modules/gc-hmac-md5-tests (License): Likewise.
47880
47881         * modules/gc-sha1-tests (License): Likewise.
47882
47883         * modules/gc-md5-tests (License): Likewise.
47884
47885         * modules/gc-md4-tests (License): Likewise.
47886
47887         * modules/gc-md2-tests (License): Likewise.
47888
47889         * modules/gc-tests (License): Likewise.
47890
47891         * modules/des-tests (License): Likewise.
47892
47893         * modules/md4-tests (License): Likewise.
47894
47895         * modules/md2-tests (License): Likewise.
47896
47897 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47898
47899         Sync from coreutils:
47900
47901         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47902         * modules/lib-ignore: New file.
47903         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47904         chdir-safer.m4, lchmod.m4.
47905         * modules/openat: Add mkdirat.c, openat-priv.h.
47906
47907 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47908
47909         Sync from coreutils.
47910         * m4/lib-ignore.m4: New file.
47911         * m4/lchmod.m4: New file.
47912
47913 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47914
47915         Sync from coreutils.
47916         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47917         for write access: POSIX says that must fail.
47918         * lib/fts.c (diropen): Likewise.
47919         * lib/save-cwd.c (save_cwd): Likewise.
47920         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47921         well, for minor improvements on hosts that lack O_DIRECTORY.
47922         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47923         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47924         Fall back on chown if open failed with EACCES.
47925
47926         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47927         Report an error at compile-time if only a 1-second nominal clock
47928         resolution is found.
47929
47930         * lib/lchmod.h: New file.
47931         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47932         (make_dir_parents): Use lchown rather than chown, and
47933         lchmod rather than chmod.
47934
47935         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47936         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47937         "proc" reported by n0dalus.
47938
47939         * lib/mountlist.c: Include <limits.h>.
47940         (dev_from_mount_options)
47941         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47942         New function.  It no longer assumes "dev=" has the System V meaning
47943         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47944         (read_file_system_list)
47945         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47946         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47947         dev= in that case.
47948
47949         * lib/posixtm.h (PDS_PRE_2000): New macro.
47950         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47951         allow_century.  All usages changed.  Reject dates outside the range
47952         1969-1999 if PDS_PRE_2000 is used.
47953
47954 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47955
47956         Sync from coreutils.
47957         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47958         (Time of day items): Mention the possibility of leap seconds.
47959         Problem reported by Dr. David Alan Gilbert.
47960
47961 2006-01-09  Jim Meyering  <jim@meyering.net>
47962
47963         Sync from coreutils.
47964
47965         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47966
47967         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47968
47969         * lib/modechange.c (mode_compile): Reject an invalid mode string
47970         that starts with an octal digit.  From Andreas Gruenbacher.
47971
47972         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47973         and dup to open_safer and dup_safer, respectively.
47974         (openat_permissive): Fix typo in comment.
47975
47976         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47977         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47978         (_): Remove; no longer needed.
47979         (openat): Renamed from rpl_openat; no need for rpl_openat
47980         since openat.h renames openat for us.
47981         Replace most of the body with a call to openat_permissive,
47982         to avoid duplicate code.
47983         Port to (probably hypothetical) environments were mode_t is
47984         wider than int.
47985         (openat_permissive): Require mode arg, so that we can check
47986         types better.  Put it just after flags.  Change cwd failure
47987         indicator from pointer-to-bool to pointer-to-errno-value.
47988         All callers changed.
47989         Invoke openat_save_fail and/or openat_restore_fail if
47990         cwd_errno is null, so that openat can call us.
47991         (openat_permissive, fdopendir, fstatat, unlinkat):
47992         Simplify errno handling to avoid some duplicate code,
47993         as it's OK to set errno on success.
47994         * lib/openat.h: Revamp code so that function macros depend on
47995         __OPENAT_PREFIX only, not also on AT_FDCWD.
47996         (openat_ro): Remove.  Caller changed to use openat_permissive.
47997         (openat_permissive): Now a macro, if not a function.
47998         (openat_restore_fail, openat_save_fail): Now always functions,
47999         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48000
48001         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48002         and openat.c.
48003         * lib/mkdirat.c: Include openat-priv.h.
48004         Remove definitions of macros defined therein.
48005         * lib/openat.c: Likewise.
48006
48007         * lib/mkdirat.c (mkdirat): New file and function.
48008         * lib/openat.h (mkdirat): Declare.
48009
48010         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48011
48012         * lib/openat.h (openat_permissive): Declare.
48013         (openat_ro): Define.
48014
48015         * lib/openat.c (EXPECTED_ERRNO): New macro.
48016         (openat_permissive): New function -- used in remove.c rewrite.
48017         (all functions): Set errno just before returning, only if there
48018         was an actual failure.
48019         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48020
48021         Emulate openat-family functions using Linux's procfs, if possible.
48022         Idea and some code based on Ulrich Drepper's glibc changes.
48023
48024         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48025         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48026         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48027         before falling back on save_cwd and restore_cwd.
48028         (fdopendir, fstatat, unlinkat): Likewise.
48029
48030         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48031         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48032
48033         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48034         as second argument to va_arg.  Otherwise, some versions of gcc
48035         warn that `if this code is reached, the program will abort'.
48036
48037 2006-01-09  Jim Meyering  <jim@meyering.net>
48038
48039         Sync from coreutils.
48040         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48041         Require openat-priv.h.
48042
48043 2006-01-09  Bruno Haible  <bruno@clisp.org>
48044
48045         * modules/strnlen (Include): Use strnlen.h.
48046
48047 2006-01-09  Bruno Haible  <bruno@clisp.org>
48048
48049         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48050
48051 2006-01-09  Bruno Haible  <bruno@clisp.org>
48052
48053         * lib/sysexit_.h (EX_OK): New macro.
48054         Suggested by Martin Lambers <marlam@marlam.de>.
48055
48056 2006-01-09  Bruno Haible  <bruno@clisp.org>
48057
48058         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48059         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48060
48061 2006-01-09  Bruno Haible  <bruno@clisp.org>
48062
48063         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48064         numbers.
48065
48066 2006-01-09  Bruno Haible  <bruno@clisp.org>
48067
48068         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48069         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48070         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48071         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48072
48073 2006-01-09  Bruno Haible  <bruno@clisp.org>
48074
48075         * build-aux/javacomp.sh.in: New file, moved from lib/.
48076         * modules/javacomp-script (Files): Update.
48077         (configure.ac): Add AC_CONFIG_FILES invocation.
48078         (EXTRA_DIST): Remove variable.
48079
48080         * build-aux/javaexec.sh.in: New file, moved from lib/.
48081         * modules/javaexec (Files): Update.
48082         (configure.ac): Add AC_CONFIG_FILES invocation.
48083         (EXTRA_DIST): Remove javaexec.sh.in.
48084
48085         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48086         * modules/csharpcomp-script (Files): Update.
48087         (configure.ac): Add AC_CONFIG_FILES invocation.
48088         (EXTRA_DIST): Remove variable.
48089
48090         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48091         * modules/csharpexec (Files): Update.
48092         (configure.ac): Add AC_CONFIG_FILES invocation.
48093         (EXTRA_DIST): Remove csharpexec.sh.in.
48094
48095 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48096
48097         Sync from coreutils.
48098
48099         Add POSIX ACL support
48100         * lib/acl.h (copy_acl, set_acl): Add declarations.
48101         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48102         systems other than Linux.
48103         (chmod_or_fchmod): New function: use fchmod when possible,
48104         and chmod otherwise.
48105         (file_has_acl): Add a POSIX ACL implementation, with a
48106         Linux-specific subcase.
48107         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48108         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48109         acls are unsupported.
48110         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48111         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48112         are unsupported.
48113
48114 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48115
48116         Sync from coreutils.
48117         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48118
48119 2006-01-07  Bruno Haible  <bruno@clisp.org>
48120
48121         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48122         gl_EARLY.
48123
48124 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48125
48126         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48127         Problem reported for Mingw by Mark Junker.
48128
48129 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48130
48131         * README: Gnulib normally doesn't generate a tarball.
48132
48133 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48134
48135         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48136         long int, not int, for nanosecond counts, so that people who are
48137         used to POSIX struct timespec won't be surprised.  Reported by Jim
48138         Meyering.
48139
48140 2005-12-28  Bruno Haible  <bruno@clisp.org>
48141
48142         * build-aux/config.rpath: Update from GNU gettext.
48143
48144 2005-12-16  Jim Meyering  <jim@meyering.net>
48145
48146         * modules/fprintftime: New module.
48147         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48148
48149 2005-12-16  Jim Meyering  <jim@meyering.net>
48150
48151         * m4/fprintftime.m4: New file.
48152
48153 2005-12-16  Jim Meyering  <jim@meyering.net>
48154
48155         * lib/fprintftime.c, lib/fprintftime.h: New files.
48156
48157 2005-12-15  Simon Josefsson  <jas@extundo.com>
48158
48159         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48160         new m4/socklen.m4.
48161
48162 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48163
48164         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48165         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48166
48167 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48168
48169         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48170         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48171         struct uparams is valid. Fall back to the default values if it is
48172         not.
48173
48174 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48175
48176         * modules/argp (Files): Add argp-pin.c
48177         (Depends-on): dirname
48178         (lib_SOURCES): Add argp-pin.c
48179
48180 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48181
48182         * m4/argp.m4:  Check if program_invocation_name and
48183         program_invocation_short_name are declared and define appropriate
48184         macros if they are not.
48185
48186 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48187
48188         * lib/argp-help.c (__argp_base_name): New function
48189         (__argp_short_program_name): Rewrite using __argp_base_name
48190         * lib/argp-namefrob.h: Define program_invocation_name and
48191         program_invocation_short_name if requested
48192         (__argp_base_name): Add prototype
48193         * lib/argp-parse.c (argp_def): Use gettext wrappers
48194         (argp_default_parser): Use __argp_base_name
48195         * lib/argp-pin.c: New file. Defines program_invocation_name and
48196         program_invocation_short_name on systems that lack them.
48197
48198 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48199
48200         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48201         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48202         porting problem reported by Georg Schwarz in
48203         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48204
48205 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48206
48207         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48208         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48209         porting problem reported by Georg Schwarz in
48210         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48211
48212 2005-12-05  Bruno Haible  <bruno@clisp.org>
48213
48214         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48215         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48216         Reported by Mark Junker <mjscod@gmx.de>.
48217
48218 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48221         Use implementation from Albert Chin, with some
48222         comments/corrections by Stepan Kasal and myself.
48223
48224 2005-12-02  Bruno Haible  <bruno@clisp.org>
48225
48226         * gnulib-tool (func_import): Accept GPLed build tool modules when
48227         --lgpl is given.
48228         * modules/csharpcomp-script: New file.
48229         * modules/csharpcomp: Depend on it.
48230         * modules/javacomp-script: New file.
48231         * modules/javacomp: Depend on it.
48232         Suggested by Simon Josefsson.
48233
48234 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48235
48236         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48237         statement, to work around an HP-UX 10.20 compiler bug reported by
48238         Peter O'Gorman.
48239
48240 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48241
48242         * modules/savedir (Depends-on): Add openat.
48243
48244 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48245
48246         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48247         (uintmax_t) [defined uintmax_t]: Do not declare.
48248         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48249         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48250         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48251         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48252         sake of portability to weird hosts that C allows (though we don't
48253         know of any practical examples).
48254
48255         * lib/savedir.h (fdsavedir): New decl.
48256         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48257         contains most of the former guts of savedir.
48258         (savedir): Use savedirstream.
48259         Include "openat.h".
48260
48261 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48262
48263         * modules/obstack (Files): Add m4/ulonglong.m4.
48264         Problem reported by Davide Angelocola.
48265
48266 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48267
48268         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48269         coreutils no longer futzes with rounding modes.
48270
48271 2005-11-14  Jim Meyering  <jim@meyering.net>
48272
48273         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48274         replacement of mkstemp.
48275
48276 2005-11-10  Simon Josefsson  <jas@extundo.com>
48277
48278         * lib/readline.c: Remove EOL.
48279
48280 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48281
48282         * modules/gethrxtime (Depends-on): Add gettime.
48283
48284 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48285
48286         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48287         or gettimeofday; no longer needed.
48288
48289 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48290
48291         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48292         time business.
48293         (gethrxtime) [! (HAVE_NANOUPTIME
48294         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48295         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48296         our own approximation.
48297
48298 2005-11-08  Eric Blake  <ebb9@byu.net>
48299
48300         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48301
48302 2005-11-08  Eric Blake  <ebb9@byu.net>
48303
48304         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48305
48306 2005-11-04  Bruno Haible  <bruno@clisp.org>
48307
48308         * gnulib-tool: Implement --update mode.
48309
48310 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         Fix porting problem reported by Theodoros V. Kalamatianos.
48313         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48314         Don't assume that futimes failing means we must fail.
48315
48316 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48317
48318         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48319         variables to suggest the intended function of the PATH_MAX check.
48320
48321 2005-10-30  Kean Johnston  <jkj@sco.com>
48322
48323         Trivial changes to support SCO systems.
48324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48325         as PATH_MAX.
48326         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48327         where __ptr is null when no I/O is pending.
48328
48329 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48330
48331         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48332         leave errno alone.  Problem reported by Dmitry V. Levin.
48333
48334 2005-10-28  Simon Josefsson  <jas@extundo.com>
48335
48336         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48337         Test more.
48338
48339         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48340
48341         * modules/md2, modules/md2-tests: New files.
48342
48343 2005-10-28  Simon Josefsson  <jas@extundo.com>
48344
48345         * m4/inet_ntop.m4: More tests.
48346
48347         * m4/gc-md2.m4, md2.m4: New file.
48348
48349 2005-10-28  Simon Josefsson  <jas@extundo.com>
48350
48351         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48352         "restrict" keywords, as per POSIX.  Protect the function
48353         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48354         Don't use K&R prototypes.  Check the sprintf return values.
48355         Re-define EAFNOSUPPORT if not present.  Indent.
48356
48357         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48358         suggested by Bruno Haible <bruno@clisp.org>.
48359
48360         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48361
48362         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48363
48364         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48365         libgcrypt).
48366
48367         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48368
48369         * lib/md2.h, lib/md2.c: New files.
48370
48371 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48372
48373         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48374         errno alone.  Problem reported by Frederic Jolliton.
48375
48376 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48377
48378         * modules/verify (License): Change from GPL to LGPL.  This is a
48379         tiny module and there are apparently near-equivalents that are
48380         under the BSD license.
48381
48382 2005-10-24  Simon Josefsson  <jas@extundo.com>
48383
48384         * modules/sha1: Relicense to LGPL.
48385
48386 2005-10-24  Simon Josefsson  <jas@extundo.com>
48387
48388         * lib/md4.h: Shrink buffer size, now that we changed the type.
48389
48390 2005-10-23  Simon Josefsson  <jas@extundo.com>
48391
48392         * gnulib-tool (func_import): Fix --tests-base.
48393
48394 2005-10-22  Simon Josefsson  <jas@extundo.com>
48395
48396         * modules/arcfour (Depends-on): Need stdint.
48397
48398 2005-10-22  Simon Josefsson  <jas@extundo.com>
48399
48400         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48401         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48402
48403 2005-10-22  Simon Josefsson  <jas@extundo.com>
48404
48405         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48406         suggested by Bruno Haible <bruno@clisp.org>.
48407
48408 2005-10-22  Simon Josefsson  <jas@extundo.com>
48409
48410         * lib/crc.h: Include stddef.h, for size_t.
48411
48412 2005-10-22  Simon Josefsson  <jas@extundo.com>
48413
48414         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48415         arcfour_context struct (simplify test vector testing in GNU
48416         Shishi).
48417
48418 2005-10-21  Simon Josefsson  <jas@extundo.com>
48419
48420         * modules/des, modules/des-tests: New files.
48421
48422         * modules/gc-des, modules/gc-des-tests: New files.
48423
48424         * tests/test-des.c, tests/test-gc-des.c: New file.
48425
48426 2005-10-21  Simon Josefsson  <jas@extundo.com>
48427
48428         * modules/arctwo, modules/arctwo-tests: New files.
48429
48430         * tests/test-arctwo.c: New file.
48431
48432         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48433
48434         * tests/test-gc-arctwo.c: New file.
48435
48436 2005-10-21  Simon Josefsson  <jas@extundo.com>
48437
48438         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48439         Bruno Haible <bruno@clisp.org>.
48440
48441         * m4/gc-des.m4: New file.
48442
48443 2005-10-21  Simon Josefsson  <jas@extundo.com>
48444
48445         * m4/arctwo.m4: New file.
48446
48447         * m4/gc-arctwo.m4: New file.
48448
48449 2005-10-21  Simon Josefsson  <jas@extundo.com>
48450
48451         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48452         block.
48453
48454 2005-10-21  Simon Josefsson  <jas@extundo.com>
48455
48456         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48457         <bruno@clisp.org>.
48458
48459         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48460
48461         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48462         Bruno Haible <bruno@clisp.org>.
48463
48464         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48465         <bruno@clisp.org>.
48466
48467 2005-10-21  Simon Josefsson  <jas@extundo.com>
48468
48469         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48470
48471 2005-10-21  Simon Josefsson  <jas@extundo.com>
48472
48473         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48474
48475 2005-10-21  Simon Josefsson  <jas@extundo.com>
48476
48477         * lib/des.h, lib/des.c: New files.
48478
48479         * lib/gc-gnulib.c: Support DES.c
48480
48481 2005-10-21  Simon Josefsson  <jas@extundo.com>
48482
48483         * lib/arctwo.h, lib/arctwo.c: New files.
48484
48485         * lib/gc-gnulib.c: Support ARCTWO.
48486
48487 2005-10-21  Simon Josefsson  <jas@extundo.com>
48488
48489         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48490         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48491
48492 2005-10-21  Simon Josefsson  <jas@extundo.com>
48493
48494         * gnulib-tool (func_import, func_create_testdir): Define automake
48495         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48496         Makefile.am snippet),
48497         suggested by Bruno Haible <bruno@clisp.org>.
48498
48499         * modules/gc (Makefile.am): Use it.
48500
48501 2005-10-21  Bruno Haible  <bruno@clisp.org>
48502
48503         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48504         patch.
48505
48506 2005-10-19  Simon Josefsson  <jas@extundo.com>
48507
48508         * tests/test-gc-rijndael.c: New file.
48509
48510         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48511
48512 2005-10-19  Simon Josefsson  <jas@extundo.com>
48513
48514         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48515         interface too.
48516
48517 2005-10-19  Simon Josefsson  <jas@extundo.com>
48518
48519         * tests/test-gc-arcfour.c: New file.
48520
48521         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48522
48523 2005-10-19  Simon Josefsson  <jas@extundo.com>
48524
48525         * modules/gc-md4, modules/gc-md4-tests: New file.
48526
48527         * tests/test-gc-md4.c: New file.
48528
48529 2005-10-19  Simon Josefsson  <jas@extundo.com>
48530
48531         * m4/gc-md4.m4: New file.
48532
48533 2005-10-19  Simon Josefsson  <jas@extundo.com>
48534
48535         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48536         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48537         <kasal@ucw.cz>.
48538
48539 2005-10-19  Simon Josefsson  <jas@extundo.com>
48540
48541         * m4/gc-arcfour.m4: New file.
48542
48543         * m4/gc-rijndael.m4: New file.
48544
48545 2005-10-19  Simon Josefsson  <jas@extundo.com>
48546
48547         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48548
48549 2005-10-19  Simon Josefsson  <jas@extundo.com>
48550
48551         * lib/gc-gnulib.c: Support ARCFOUR.
48552
48553 2005-10-19  Simon Josefsson  <jas@extundo.com>
48554
48555         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48556         support.
48557
48558         * lib/gc.h: Add ECB enum type.
48559
48560         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48561
48562 2005-10-18  Simon Josefsson  <jas@extundo.com>
48563
48564         * tests/test-md5.c: New file.
48565
48566         * modules/md5-tests: New file.
48567
48568 2005-10-18  Simon Josefsson  <jas@extundo.com>
48569
48570         * tests/test-md4.c: New file.
48571
48572         * modules/md4, modules/md4-tests: New files.
48573
48574 2005-10-18  Simon Josefsson  <jas@extundo.com>
48575
48576         * m4/md4.m4: New file.
48577
48578 2005-10-18  Simon Josefsson  <jas@extundo.com>
48579
48580         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48581
48582 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48583
48584         * gnulib-tool (func_create_testdir): Omit the second check whether
48585         BUILT_SOURCES in nonempty.
48586
48587 2005-10-17  Simon Josefsson  <jas@extundo.com>
48588
48589         * tests/test-rijndael.c: New file.
48590
48591 2005-10-17  Simon Josefsson  <jas@extundo.com>
48592
48593         * modules/sha1: Depend on stdint instead of md5.
48594
48595         * modules/md5: Depend on stdint, remove uint32_t.
48596
48597 2005-10-17  Simon Josefsson  <jas@extundo.com>
48598
48599         * modules/gc-sha1-tests: New file.
48600
48601         * tests/test-gc-sha1.c: New file.
48602
48603 2005-10-17  Simon Josefsson  <jas@extundo.com>
48604
48605         * m4/md5.m4: Remove call to uint32_t.m4.
48606
48607 2005-10-17  Simon Josefsson  <jas@extundo.com>
48608
48609         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48610
48611         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48612         md5.h.
48613
48614         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48615
48616         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48617
48618 2005-10-17  Simon Josefsson  <jas@extundo.com>
48619
48620         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48621
48622 2005-10-17  Simon Josefsson  <jas@extundo.com>
48623
48624         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48625
48626 2005-10-17  Simon Josefsson  <jas@extundo.com>
48627
48628         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48629
48630         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48631
48632 2005-10-17  Bruno Haible  <bruno@clisp.org>
48633
48634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48635         that it can also be used in a test.
48636
48637 2005-10-16  Bruno Haible  <bruno@clisp.org>
48638
48639         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48640         TESTS_ENVIRONMENT, so that individual tests can augment it.
48641
48642         * gnulib-tool (func_create_testdir): Use an intermediate target for
48643         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48644         macros, like $(ALLOCA_H), which cannot be passed through the command
48645         line.
48646
48647 2005-10-15  Simon Josefsson  <jas@extundo.com>
48648
48649         * modules/rijndael-tests: New file.
48650
48651         * modules/rijndael: New file.
48652
48653 2005-10-15  Simon Josefsson  <jas@extundo.com>
48654
48655         * m4/rijndael.m4: New file.
48656
48657 2005-10-15  Simon Josefsson  <jas@extundo.com>
48658
48659         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48660
48661         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48662
48663 2005-10-14  Simon Josefsson  <jas@extundo.com>
48664
48665         * tests/test-arcfour.c: New file.
48666
48667         * modules/arcfour, modules/arcfour-tests: New files.
48668
48669 2005-10-14  Simon Josefsson  <jas@extundo.com>
48670
48671         * m4/arcfour.m4: New file.
48672
48673 2005-10-14  Simon Josefsson  <jas@extundo.com>
48674
48675         * lib/arcfour.h, lib/arcfour.c: New files.
48676
48677 2005-10-14  Roland McGrath  <roland@redhat.com>
48678
48679         Import from libc.  [BZ #1331]
48680         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48681         macro argument.
48682         Reported by Matej Vela <vela@debian.org>.
48683
48684 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48685
48686         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48687         include <wchar.h>; no longer needed.
48688
48689 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48690
48691         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48692
48693 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48694         and  Ulrich Drepper  <drepper@redhat.com>
48695
48696         Import from libc.
48697         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48698         instead of inline stream orientation test and two separate
48699         function calls.  Pay no attention to USE_IN_LIBIO.
48700
48701 2005-10-13  Simon Josefsson  <jas@extundo.com>
48702
48703         * modules/gc-hmac-md5-tests: New file.
48704
48705         * tests/test-gc-hmac-sha1.c: New file.
48706
48707         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48708
48709         * modules/gc-hmac-md5-tests: New file.
48710
48711         * tests/test-gc-md5.c: New file.
48712
48713         * modules/gc-md5-tests: New file.
48714
48715 2005-10-13  Simon Josefsson  <jas@extundo.com>
48716
48717         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48718         Move memory allocation outside of loop.
48719
48720 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48721
48722         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48723         intermediate directory is in a read-only file system.  Problem
48724         reported by Eric Blake.
48725
48726 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48727
48728         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48729
48730 2005-10-12  Simon Josefsson  <jas@extundo.com>
48731
48732         * tests/test-hmac-sha1.c: New file.
48733
48734         * modules/hmac-sha1-tests: New file.
48735
48736         * modules/hmac-sha1: New file.
48737
48738 2005-10-12  Simon Josefsson  <jas@extundo.com>
48739
48740         * modules/gc-sha1: New file.
48741
48742 2005-10-12  Simon Josefsson  <jas@extundo.com>
48743
48744         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48745
48746         * tests/test-gc-pbkdf2-sha1.c: New file.
48747
48748 2005-10-12  Simon Josefsson  <jas@extundo.com>
48749
48750         * modules/gc-md5, modules/gc-hmac-md5: New files.
48751
48752         * modules/gc (Files): Remove md5, memxor and hmac files.
48753
48754 2005-10-12  Simon Josefsson  <jas@extundo.com>
48755
48756         * m4/gc-pbkdf2-sha1.m4: New file.
48757
48758         * m4/gc-hmac-sha1.m4: New file.
48759
48760         * m4/gc-sha1: New file.
48761
48762         * m4/hmac-sha1.m4: New file.
48763
48764 2005-10-12  Simon Josefsson  <jas@extundo.com>
48765
48766         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48767
48768         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48769
48770 2005-10-12  Simon Josefsson  <jas@extundo.com>
48771
48772         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48773         suggested by Bruno Haible <bruno@clisp.org>.
48774
48775 2005-10-12  Simon Josefsson  <jas@extundo.com>
48776
48777         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48778
48779 2005-10-12  Simon Josefsson  <jas@extundo.com>
48780
48781         * lib/gc-pbkdf2-sha1.c: New file.
48782
48783         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48784
48785 2005-10-12  Simon Josefsson  <jas@extundo.com>
48786
48787         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48788
48789         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48790
48791 2005-10-12  Simon Josefsson  <jas@extundo.com>
48792
48793         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48794         GC_USE_HMAC_MD5, respectively.
48795
48796         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48797         (gc_md5): Fix typo.
48798
48799         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48800
48801         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48802
48803         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48804
48805 2005-10-12  Bruno Haible  <bruno@clisp.org>
48806
48807         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48808         Reported by Stepan Kasal <kasal@ucw.cz>.
48809
48810 2005-10-11  Simon Josefsson  <jas@extundo.com>
48811
48812         * tests/test-crc.c: New file.
48813
48814         * modules/crc, modules/crc-tests: New files.
48815
48816 2005-10-11  Simon Josefsson  <jas@extundo.com>
48817
48818         * m4/crc.m4: New file.
48819
48820 2005-10-11  Simon Josefsson  <jas@extundo.com>
48821
48822         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48823
48824         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48825
48826         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48827
48828 2005-10-11  Simon Josefsson  <jas@extundo.com>
48829
48830         * lib/crc.h, lib/crc.c: New files.
48831
48832         * lib/gc.h (gc_hash_buffer): Add doc.
48833
48834 2005-10-11  Bruno Haible  <bruno@clisp.org>
48835
48836         * modules/c-strcasestr: New file.
48837         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48838
48839 2005-10-11  Bruno Haible  <bruno@clisp.org>
48840
48841         * modules/c-strcase: New file.
48842         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48843
48844 2005-10-11  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/strcasecmp.c: Include limits.h.
48847         (strcasecmp): Avoid integer overflow on exotic platforms.
48848         * lib/strncasecmp.c: Include limits.h.
48849         (strncasecmp): Avoid integer overflow on exotic platforms.
48850         Reported by Paul Eggert.
48851
48852 2005-10-11  Bruno Haible  <bruno@clisp.org>
48853
48854         * lib/c-strcasestr.h: New file, from GNU gettext.
48855         * lib/c-strcasestr.c: New file, from GNU gettext.
48856
48857 2005-10-11  Bruno Haible  <bruno@clisp.org>
48858
48859         * lib/c-strcase.h: New file, from GNU gettext.
48860         * lib/c-strcasecmp.c: New file, from GNU gettext.
48861         * lib/c-strncasecmp.c: New file, from GNU gettext.
48862
48863 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48864
48865         * modules/mempcpy (License): GPL -> LGPL.
48866         * modules/strchrnul (License): Likewise.
48867         * modules/sysexits (License): Likewise.
48868
48869 2005-10-08  Simon Josefsson  <jas@extundo.com>
48870
48871         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48872
48873 2005-10-07  Simon Josefsson  <jas@extundo.com>
48874
48875         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48876
48877 2005-10-06  Simon Josefsson  <jas@extundo.com>
48878
48879         * tests/test-hmac-md5.c: New file.
48880
48881         * modules/hmac-md5-tests: New file.
48882
48883         * modules/hmac-md5: New file.
48884
48885 2005-10-06  Simon Josefsson  <jas@extundo.com>
48886
48887         * m4/hmac-md5.m4: New file.
48888
48889         * m4/memxor.m4: Require gl_C_RESTRICT.
48890
48891 2005-10-06  Simon Josefsson  <jas@extundo.com>
48892
48893         * lib/memxor.c (memxor): Avoid casts and warnings.
48894
48895 2005-10-06  Simon Josefsson  <jas@extundo.com>
48896
48897         * lib/hmac-md5.c: New file.
48898
48899         * lib/hmac.h: New file.
48900
48901 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48902
48903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48904         promotes to int, not unsigned int, to catch the AIX 5.3
48905         compiler bug.
48906
48907 2005-10-05  Simon Josefsson  <jas@extundo.com>
48908
48909         * modules/memxor: New file.
48910
48911         * modules/iconv (Files): Move config.rpath to havelib, it is used
48912         there.
48913
48914         * modules/havelib (Files): Add config.rpath.
48915
48916 2005-10-05  Simon Josefsson  <jas@extundo.com>
48917
48918         * m4/memxor.m4: New file.
48919
48920 2005-10-05  Simon Josefsson  <jas@extundo.com>
48921
48922         * lib/memxor.c (memxor): Fix compiler error.
48923
48924         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48925         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48926
48927         * lib/memxor.h, lib/memxor.c: New files.
48928
48929         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48930         we assume all systems have it, suggested by Jim Meyering
48931         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48932         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48933         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48934         same reasons.
48935
48936 2005-10-05  Simon Josefsson  <jas@extundo.com>
48937
48938         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48939
48940 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48941
48942         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48943         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48944         needed, since the source code now assumes these .h files.
48945
48946 2005-10-05  Derek Price  <derek@ximbiot.com>
48947
48948         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48949
48950 2005-10-05  Bruno Haible  <bruno@clisp.org>
48951
48952         * modules/stdint (License): Change to LGPL.
48953
48954 2005-10-04  Simon Josefsson  <jas@extundo.com>
48955
48956         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48957         D. Baushke" <mdb@gnu.org>.
48958
48959 2005-10-04  Bruno Haible  <bruno@clisp.org>
48960
48961         * lib/verify.h (verify_true): Provide alternative definition for C++.
48962
48963 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48964
48965         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48966         (SSIZE_MAX): New macro, if not already defined.
48967         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48968         than 2 GiB.
48969
48970 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48971
48972         Sync from coreutils.
48973         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48974         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48975         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48976         ULLONG_MAX doesn't work with 2.7.2.1.
48977
48978 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48979
48980         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48981         From Ben Pfaff.
48982
48983         * modules/exclude (Depends-on): Depend on verify.
48984         * modules/strtoimax (Depends-on): Likewise.
48985         * modules/utimecmp (Depends-on): Likewise.
48986
48987 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48988
48989         * lib/exclude.c: Include verify.h.
48990         (verify): Remove.  All callers changed to use verify.h's version.
48991         * lib/strtoimax.c: Likewise.
48992         * lib/utimecmp.c: Likewis.e
48993
48994         Sync from coreutils.
48995         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48996         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48997         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48998         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48999         bother returning ENOSYS if settimeofday or stime fails; just let
49000         them return whatever errno they want to return.
49001         * lib/utimens.c: Include unistd.h, for dup2.
49002         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49003         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49004
49005 2005-10-02  Jim Meyering  <jim@meyering.net>
49006
49007         Sync from coreutils.
49008         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49009         from glibc-2.2.5 that fails for read-only files.
49010
49011 2005-10-02  Jim Meyering  <jim@meyering.net>
49012
49013         Sync from coreutils.
49014         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49015         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49016         `#if HAVE_CONFIG_H'.
49017         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49018         Remove AT_FDCWD test.
49019         Do not consume the fd unless successful.
49020         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49021         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49022         block, so that we don't even try to compile it if settimeofday is
49023         available.  This works around a compilation failure on OSF1 V5.1,
49024         due to stime requiring a `long int*' while tv_sec is `int'.
49025
49026 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49027
49028         Sync from coreutils.
49029         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49030         against `yes', rather than just testing for nonempty.
49031
49032 2005-10-01  Simon Josefsson  <jas@extundo.com>
49033
49034         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49035         and Darwin.
49036
49037         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49038         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49039         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49040         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49041         Check if struct addrinfo is declared.
49042
49043 2005-10-01  Simon Josefsson  <jas@extundo.com>
49044
49045         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49046         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49047         AI_* and EAI_* definitions.  Protect function declarations.
49048
49049 2005-10-01  Jim Meyering  <jim@meyering.net>
49050
49051         Sync from coreutils.
49052
49053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49054         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49055         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49057         in the inet and nsl libraries.  Required on Solaris 5.7.
49058
49059 2005-10-01  Jim Meyering  <jim@meyering.net>
49060
49061         Sync from coreutils.
49062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49063         in the inet and nsl libraries.  Required on Solaris 5.7.
49064
49065 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49066
49067         * lib/getdelim.c (getdelim): Remove unused variables.
49068
49069 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49070
49071         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49072         so that the code works even with ancient cpp.  Portability problem
49073         with GCC 2.7.2.1 reported by Thomas M.Ott.
49074
49075 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         * modules/regex (Depends-on): Add strcase.
49078
49079         * modules/gethostname (Licence): Change from GPL to LGPL, since
49080         gethostname.c is a trivial implementation of a standard library
49081         function.
49082         * modules/poll (License): Change from GPL to LGPL, since it's
49083         derived from LGPL code.
49084
49085 2005-09-27  Jim Meyering  <jim@meyering.net>
49086
49087         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49088         HAVE_CONFIG_H.
49089
49090         * lib/intprops.h (signed_type_or_expr__): Define.
49091         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49092         for unsigned types.
49093
49094 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49095
49096         * lib/verify.h (verify_expr): Remove, replacing with:
49097         (verify_true): New macro that returns true instead of void.
49098         (verify_type__): Remove.
49099         (verify): Use verify_true rather than verify_type__.
49100
49101 2005-09-26  Bruno Haible  <bruno@clisp.org>
49102
49103         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49104         is necessary.
49105         (lib_SOURCES): Remove mbchar.c.
49106         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49107         (Files): Add m4/mbrtowc.m4.
49108         * modules/mbiter: Likewise.
49109         * modules/mbuiter: Likewise.
49110
49111 2005-09-26  Bruno Haible  <bruno@clisp.org>
49112
49113         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49114         compile mbchar.c if they are not both present.
49115         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49116         * m4/mbiter.m4 (gl_MBITER): Likewise.
49117         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49118         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49119         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49120
49121 2005-09-25  Jim Meyering  <jim@meyering.net>
49122
49123         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49124         also uses socklen_t.
49125
49126 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         * lib/utimens.c (ENOSYS): Define if not already defined.
49129         (futimens): Support having a null PATH if the file descriptor
49130         is nonnegative.
49131
49132         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49133         Remove.
49134         (__attribute): Define to empty unless GCC 3.1 or later.
49135         This works around a core dump on OpenBSD 3.4, which has GCC
49136         2.95.3, which dumps core when given __attribute__(()).  It also
49137         simplifies other tests, since we really don't want to bother with
49138         worrying about which ancient version of GCC supported what.
49139         Original problem reported by Yoann Vandoorselaere, with part of
49140         the fix suggested by Derek Price.
49141
49142 2005-09-24  Jim Meyering  <jim@meyering.net>
49143
49144         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49145         so we can once again use a positive bitfield width of 1 -- now we
49146         don't have to explain why we were using a bitfield width of 2.
49147
49148 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49149
49150         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49151         and similarly for the other external symbols.  Problem reported
49152         by James Gallager.
49153
49154         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49155         bug reported by Jim Meyering.
49156
49157         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49158         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49159         not needed, since socklen is a prerequisite module.
49160
49161 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49162
49163         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49164         Problem reported by Eric Blake.
49165         (getaddrinfo): Initialize se so that it's not garbage.
49166         Redo internal storage allocation so that it doesn't make unportable
49167         assumptions about alignment.
49168         Fix a memory leak.
49169
49170         * lib/utimens.c (futimens): Use futimesat if available.
49171         Prefer it to futimes since it doesn't have the futimes bug.
49172
49173         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49174         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49175         Instead, declare a function that returns a pointer to an array,
49176         and use verify_type__ to declare the size of the array.
49177         Problem and germ of a solution reported by Bruno Haible.
49178         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49179         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49180
49181 2005-09-23  Jim Meyering  <jim@meyering.net>
49182
49183         Sync from coreutils.
49184         Correct build failure (socklen_t not defined) on at least
49185         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49186         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49187
49188 2005-09-23  Jim Meyering  <jim@meyering.net>
49189
49190         * modules/getaddrinfo (Depends-on): Add socklen.
49191
49192 2005-09-23  Bruno Haible  <bruno@clisp.org>
49193
49194         * tests/test-verify.c: New file.
49195
49196 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49197
49198         Sync from coreutils.
49199
49200         * modules/argmatch (Depends-on): Add verify.
49201         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49202         unistd-safer.
49203         * modules/save-cwd (Depends-on): Likewise.
49204
49205         * modules/openat (Files): Add lib/openat-die.c.
49206         (Depends-on): Remove error, exitfail.
49207         Add dirname.
49208
49209         * modules/verify: New file.
49210         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49211         with "verify" module.
49212
49213 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49214
49215         Sync from coreutils.
49216
49217         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49218         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49219         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49220         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49221         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49222         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49223         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49224         Don't bother checking for string.h, stdlib.h, unistd.h.
49225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49226         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49227         module's job.
49228         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49229         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49230
49231         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49232         (gl_GETDATE): Use it.
49233
49234         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49235
49236 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49237
49238         Sync from coreutils.
49239
49240         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49241         stat-time.h.
49242         * lib/argmatch.h: Include verify.h
49243         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49244         (ARGMATCH_ASSERT): Remove; unused.
49245         * lib/canonicalize.c: Assume STDC_HEADERS.
49246         * lib/exclude.c: Include "strcase.h".
49247         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49248         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49249         and stdio-safer.h.
49250         (getusershell): Call fopen, not fopen_safer.
49251         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49252         Do not include unistd-safer.h.
49253         (save_cwd): Don't call fd_safer; no longer needed
49254         now that we include fcntl--.h.
49255
49256         * lib/getdate.y (relative_time): New type.
49257         (RELATIVE_TIME_0): New constant.
49258         (parser_control): Use relative_time instead of doing it ourselves.
49259         (%union): Add new relative_time rel member.
49260         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49261         Now typeless.
49262         (relunit, relunit_snumber): Now of type rel.
49263         (zone, rel, relunit, get_date): Adjust to above changes.
49264
49265         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49266         Do not include unistd-safer.h.
49267         (getloadavg): Don't call fd_safer; no longer needed
49268         now that we include fcntl--.h.
49269
49270         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49271         (make_dir_parents): Treat ENOSYS like EEXIST.
49272
49273         Improve quality of diagnostics on restore_cwd failure.
49274         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49275         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49276         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49277         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49278         each time through the loop.  Do not diagnose restore_cwd failure;
49279         that is the caller's job (and perhaps the caller does not care).
49280
49281         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49282         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49283         If the file already exists but is not a directory, don't bother
49284         to try to make its parents.
49285         Close potential file descriptor leak if we can't chdir("/") (!).
49286         Don't always return true if chdir($PWD) fails; return true only
49287         if the requested action was done successfully (except for the
49288         chdir($PWD)).
49289         Don't log final directory unless we actually made it.
49290         Refactor to avoid duplicate code to fix up permissions.
49291         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49292
49293         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49294         to make it a bit faster and (I hope) clearer.
49295         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49296         Fix bug in formats like %2N.
49297
49298         * lib/verify.h: New file.
49299
49300 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49301
49302         Sync from coreutils.
49303         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49304
49305 2005-09-22  Jim Meyering  <jim@meyering.net>
49306
49307         Sync from coreutils.
49308
49309         * m4/lstat.m4 (gl_FUNC_LSTAT):
49310         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49311         Remove obsolete comment.
49312         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49313         * m4/xstrtod.m4: Likewise.
49314
49315         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49316
49317 2005-09-22  Jim Meyering  <jim@meyering.net>
49318
49319         Sync from coreutils.
49320
49321         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49322
49323         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49324         the .tm_year member, since otherwise gcc-4.0 would now warn about
49325         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49326
49327         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49328         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49329
49330         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49331         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49332         when run in a time zone for which daylight savings time is in effect
49333         for the starting date.
49334
49335         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49336         stop us from restricting permissions of just-created absolute-named
49337         directories.
49338         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49339         to restore initial working directory.
49340         * lib/mkdir-p.c (make_dir_parents): New parameter:
49341         different_working_dir, to tell caller if/when we change the working
49342         directory and are unable to return to the initial one.
49343         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49344         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49345         `return false'.  This fixes a bug introduced on 2004-07-30.
49346
49347         * lib/openat.c (fdopendir): Be sure to close the supplied
49348         file descriptor before returning.  This makes our replacement
49349         implementation a little closer to Solaris's, where fdopendir
49350         ties the file descriptor to the returned DIR* pointer.
49351         * lib/openat.c (unlinkat): New function.
49352         * lib/openat.h (unlinkat): Add prototype.
49353         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49354         (openat_restore_fail): Rename from openat_restore_die.
49355         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49356
49357         Provide an alternative to exiting immediately upon save_cwd or
49358         restore_cwd failure.  Now, an application can arrange e.g.,
49359         to perform a longjump in that case.
49360         * lib/openat.c: Include dirname.h.
49361         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49362         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49363         and openat_restore_die rather than calling error directly.
49364         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49365
49366         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49367         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49368         define.
49369
49370         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49371         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49372                             int utc, int nanoseconds);
49373         Background:
49374         date should not have to allocate a megabyte of virtual memory to
49375         handle a format argument like +%1048575T.  When implemented with
49376         strftime, it must allocate such a buffer, use strftime to fill it
49377         in, print it, then free it.
49378         With fprintftime, it simply prints everything and exits.
49379         With no need for memory allocation, that's one fewer way to fail.
49380         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49381         optional field width, not before, so we accept %9:z, not %:9z.
49382         (my_strftime): Be sure to use L_('x') for literals.
49383
49384         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49385         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49386         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49387         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49388         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49389         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49390         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49391         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49392         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49393         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49394         * lib/xgethostname.c, lib/xreadlink.c:
49395         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49396
49397         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49398         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49399         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49400         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49401         and don't include <sys/file.h>).
49402
49403 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49404
49405         Sync from coreutils.
49406
49407         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49408         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49409         [!LDAV_DONE]: Avoid unused variable warning.
49410
49411 2005-09-21  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/unicodeio.h (unicode_to_mb): New declaration.
49414
49415 2005-09-20  Derek Price  <derek@ximbiot.com>
49416
49417         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49418         getaddrinfo.h.
49419
49420 2005-09-20  Bruno Haible  <bruno@clisp.org>
49421
49422         * gnulib-tool: Remove trailing slashes from the values specified for
49423         --source-base, --m4-base, --tests-base, --aux-dir.
49424         Suggested by Simon Josefsson <jas@extundo.com>.
49425
49426 2005-09-20  Bruno Haible  <bruno@clisp.org>
49427
49428         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49429         func_modules_to_filelist, func_import, func_create_testdir): Make all
49430         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49431         change when gnulib-tool is invoked in a different locale.
49432
49433 2005-09-19  Simon Josefsson  <jas@extundo.com>
49434
49435         * m4/socklen.m4: Fix typo.
49436
49437 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49438
49439         Use a consistent style for including <config.h>.
49440         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49441         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49442         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49443         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49444         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49445         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49446         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49447         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49448         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49449         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49450         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49451         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49452         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49453         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49454         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49455         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49456         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49457         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49458         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49459         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49460         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49461         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49462         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49463         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49464         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49465         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49466         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49467         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49468         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49469         lib/xstrtoumax.c, lib/yesno.c:
49470         Standardize inclusion of config.h.
49471         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49472         lib/inttostr.h:  Removed inclusion of config.h from header files.
49473         * lib/inttostr.c:  Adjusted in-tree users.
49474         * lib/timespec.h: Remove superfluous warning to include config.h.
49475         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49476         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49477         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49478         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49479         config.h with HAVE_CONFIG_H.
49480
49481 2005-09-19  Jim Meyering  <jim@meyering.net>
49482
49483         * modules/pathmax (License): Change to LGPL.
49484
49485 2005-09-19  Derek Price  <derek@ximbiot.com>
49486
49487         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49488
49489 2005-09-19  Bruno Haible  <bruno@clisp.org>
49490
49491         * gnulib-tool (import): Provide default for --tests-base.
49492
49493 2005-09-19  Bruno Haible  <bruno@clisp.org>
49494
49495         * doc/quote.texi: New file, extracted from gnulib.texi.
49496         * doc/ctime.texi: New file, extracted from gnulib.texi.
49497         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49498         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49499         * doc/gnulib.texi: Include them.
49500
49501 2005-09-18  Bruno Haible  <bruno@clisp.org>
49502
49503         Portability fix.
49504         * gnulib-tool (func_readlink): New function.
49505         (func_ln_if_changed): Use it.
49506
49507 2005-09-18  Bruno Haible  <bruno@clisp.org>
49508
49509         * gnulib-tool: Support --with-tests also with --import.
49510         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49511         (func_import): Use variables $testsbase and $inctests. Emit a
49512         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49513         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49514         SUBDIRS += $testsdir.
49515         (func_create_testdir): Update.
49516
49517 2005-09-18  Bruno Haible  <bruno@clisp.org>
49518
49519         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49520         instead of $dry_run.
49521         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49522         (func_ln_if_changed): Don't handle dry-run here.
49523         (func_import): In dry-run mode, detect more precisely which actions
49524         would be performed, and don't use "...ing" verbs.
49525
49526 2005-09-18  Bruno Haible  <bruno@clisp.org>
49527
49528         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49529         (func_import): Use join on two temporary files instead of three nested
49530         loops, in order to determine which files are new or old.
49531
49532 2005-09-18  Bruno Haible  <bruno@clisp.org>
49533
49534         * gnulib-tool (func_import): Comment out code that spits out the
49535         new files with --dry-run.
49536
49537 2005-09-18  Bruno Haible  <bruno@clisp.org>
49538
49539         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49540
49541 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49542
49543         * lib/stat-time.h: New file.
49544         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49545         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49546         in a different way.
49547         (timespec_cmp): New function.
49548         * lib/utimecmp.c: Include stat-time.h.
49549         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49550         members exist, not on the obsolescent ST_MTIM_NSEC.
49551         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49552
49553 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49554
49555         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49556
49557 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49558
49559         * MODULES.html.sh (File system functions): Add stat-time.
49560         * modules/stat-time: New file.
49561         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49562         is now done in a different way, by the stat-time module.
49563         * modules/utimecmp (Depends-on): Add stat-time.
49564
49565 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         * m4/st_mtim.m4: Remove.  Superseded by...
49568         * m4/stat-time.m4: New file.
49569         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49570         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49571
49572 2005-09-15  Derek Price  <derek@ximbiot.com>
49573
49574         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49575
49576 2005-09-15  Derek Price  <derek@ximbiot.com>
49577
49578         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49579         * lib/regex_internal.c: Ditto, using this...
49580         (__GNUC_PREREQ): ...new macro.
49581         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49582         using...
49583         (__GNUC_PREREQ): ...this new macro.
49584
49585         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49586
49587 2005-09-15  Derek Price  <derek@ximbiot.com>
49588             Paul Eggert  <eggert@cs.ucla.edu>
49589
49590         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49591         changes, consolidating in...
49592         * lib/regex_internal.h: ...this file.
49593
49594 2005-09-13  Jim Meyering  <jim@meyering.net>
49595
49596         * lib/canon-host.c: Filter through gnu indent and reword comments
49597         slightly.
49598         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49599
49600 2005-09-13  Derek Price  <derek@ximbiot.com>
49601
49602         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49603         failure.
49604         Reported by Jim Meyering  <jim@meyering.net>.
49605
49606 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49607
49608         * lib/base64.c: Typo.
49609         (base64_encode): Put b64str in initialized data section.
49610
49611 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49612
49613         Merge glibc and coreutils changes into gnulib, plus a few
49614         extra fixes.
49615         * lib/md5.c: Use #error rather than a string.
49616         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49617         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49618         (__attribute__): Define to empty for non recent-GCC.
49619         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49620         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49621         Renamed from their non-__ counterparts, with new macros replacing
49622         them if not _LIBC.  Add __THROW attribute.
49623         (rol): Remove.
49624         (struct md5_ctx): Align buffer if using GCC.
49625         * lib/sha1.h (struct sha1_ctx): Likewise.
49626         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49627         The old name was backwards.
49628         (NOTSWAP): Remove; not used.
49629         (rol): New macro, moved here from md5.h.
49630         (sha1_process_block): Remove a FIXME that doesn't make sense.
49631
49632 2005-09-12  Derek Price  <derek@ximbiot.com>
49633
49634         Return usable errors from canon-host.
49635         * lib/canon-host.h: New file.
49636         * lib/canon-host.c (canon_host): Wrap...
49637         (canon_host_r): ...this new function, which now relies exclusively on
49638         getaddrinfo.
49639         (ch_strerror): New function.
49640         (last_cherror): New global.
49641         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49642         interface.
49643         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49644         void *.
49645         (freeaddrinfo): Free ai->ai_canonname when set.
49646
49647 2005-09-12  Derek Price  <derek@ximbiot.com>
49648
49649         Make canon-host require getaddrinfo.
49650         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49651         AC_LIBSOURCE canon-host.h.  Call...
49652         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49653         gl_GETADDRINFO.
49654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49655
49656 2005-09-12  Derek Price  <derek@ximbiot.com>
49657
49658         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49659         LGPL.
49660         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49661
49662 2005-09-12  Derek Price  <derek@ximbiot.com>
49663
49664         * lib/gai_strerror.c: Include config.h when available.  Include
49665         getaddrinfo.h before other headers to test interface.
49666         Reported by Larry Jones <lawrence.jones@ugs.com>.
49667
49668 2005-09-12  Derek Price  <derek@ximbiot.com>
49669             Paul Eggert  <eggert@cs.ucla.edu>
49670
49671         * modules/glob (Files): Add glob-libc.h.
49672
49673 2005-09-12  Derek Price  <derek@ximbiot.com>
49674             Paul Eggert  <eggert@cs.ucla.edu>
49675
49676         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49677         glob_.h, glob-libc.h.
49678         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49679
49680 2005-09-12  Derek Price  <derek@ximbiot.com>
49681             Paul Eggert  <eggert@cs.ucla.edu>
49682
49683         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49684         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49685         protecting things that should be done only in gnulib contexts.
49686         * lib/glob_.h: New file, containing only the glob things needed for
49687         gnulib.
49688         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49689         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49690         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49691         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49692         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49693         and to respect the namespace rules better.
49694
49695 2005-09-08  Simon Josefsson  <jas@extundo.com>
49696
49697         * modules/socklen: New file.
49698
49699 2005-09-08  Simon Josefsson  <jas@extundo.com>
49700
49701         * m4/socklen.m4: New file.
49702
49703 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49704
49705         * modules/utimens (Files): Add m4/utimbuf.m4, since
49706         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49707         Reported by Sergey Poznyakoff.
49708
49709 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49710
49711         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49712         definitions, since that's the preferred style in glibc.
49713         Fix a minor spacing issue, and update copyright notice to match
49714         glibc's.
49715
49716 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49717
49718         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49719
49720 2005-09-06  Simon Josefsson  <jas@extundo.com>
49721
49722         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49723         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49724
49725 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49726
49727         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49728         warning.
49729
49730 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49731
49732         * config/srclist.txt: Add glibc bug 1302.
49733
49734 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49735
49736         Change bitset word type from unsigned int to unsigned long int,
49737         as this has better performance on typical 64-bit hosts.
49738         Port bitset code to hosts with unusual word sizes.
49739         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49740         (build_collating_symbol):
49741         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49742         argument is a bitset.  This is merely a style issue, but it makes
49743         it clearer that an entire array is expected.
49744         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49745         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49746         Port to the case where bitset_word is not the same as unsigned int.
49747         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49748         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49749         Likewise.
49750         * lib/regexec.c (check_dst_limits_calc_pos_1,
49751         check_subexp_matching_top):
49752         (build_trtable, group_nodes_into_DFAstates):
49753         Likewise.
49754         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49755         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49756         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49757         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49758         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49759         * lib/regcomp.c (optimize_subexps, lower_subexp):
49760         Work even if bitset_word has holes in its bitwise representation.
49761         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49762         * lib/regexec.c (check_dst_limits_calc_pos_1,
49763         check_subexp_matching_top):
49764         Likewise.
49765         * lib/regex_internal.c (re_string_reconstruct):
49766         Don't assume UCHAR_MAX == 255.
49767         * lib/regex_internal.h (bitset_set_all): Likewise.
49768         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49769         All uses changed.
49770         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49771         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49772         All uses changed.
49773         (BITSET_WORD_MAX): New macro.
49774         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49775         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49776         (bitset_empty, bitset_copy):
49777         Prefer sizeof (bitset) to multiplying it out ourselves.
49778         (bitset_not_merge): Remove; unused.
49779         (bitset_contain): Return bool, not unsigned int with one bit on.
49780         All callers changed.
49781         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49782         alignment than re_node_set; do this by defining a new internal
49783         type struct dests_alloc and using it to allocate memory.
49784
49785 2005-09-05  Bruno Haible  <bruno@clisp.org>
49786
49787         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49788         links.
49789
49790 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49791
49792         * modules/size_max (Makefile.am): Add size_max.h
49793
49794 2005-09-04  Derek Price  <derek@ximbiot.com>
49795
49796         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49797
49798 2005-09-03  Simon Josefsson  <jas@extundo.com>
49799
49800         * gnulib-tool: Fix typo.
49801
49802 2005-09-03  Simon Josefsson  <jas@extundo.com>
49803
49804         * config/srclist.txt: Add glibc bug 1293.
49805
49806 2005-09-03  Derek Price  <derek@ximbiot.com>
49807
49808         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49809         From Larry Jones <lawrence.jones@ugs.com>.
49810
49811 2005-09-02  Simon Josefsson  <jas@extundo.com>
49812
49813         * modules/socklen: New file.
49814
49815 2005-09-02  Simon Josefsson  <jas@extundo.com>
49816
49817         * modules/havelib: New module.
49818
49819         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49820         Use havelib.
49821
49822 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         Check for arithmetic overflow when calculating sizes, to prevent
49825         some buffer-overflow issues.  These patches are conservative, in the
49826         sense that when I couldn't determine whether an overflow was possible,
49827         I inserted a run-time check.
49828         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49829         macros.
49830         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49831         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49832         (re_xnrealloc, re_x2nrealloc): New inline functions.
49833         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49834         parse_bracket_exp):
49835         (build_equiv_class, build_charclass): Check for arithmetic overflow
49836         in size expression calculations.
49837         * lib/regex_internal.c (re_string_realloc_buffers):
49838         (build_wcs_upper_buffer, re_node_set_add_intersect):
49839         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49840         (re_dfa_add_node, register_state): Likewise.
49841         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49842         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49843         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49844         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49845
49846 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49847
49848         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49849         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49850
49851 2005-09-02  Bruno Haible  <bruno@clisp.org>
49852
49853         Support for lib vs. lib64 distinction on biarch platforms.
49854         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49855         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49857
49858 2005-09-02  Bruno Haible  <bruno@clisp.org>
49859
49860         * gnulib-tool (import): In the other first-use case, provide defaults
49861         as well.
49862
49863 2005-09-02  Bruno Haible  <bruno@clisp.org>
49864
49865         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49866         patches not yet found in the latest gettext release.
49867
49868 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49869
49870         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49871         to avoid a collision with bits/local_lim.h in glibc.
49872         All uses changed.  Problem reported by Dmitry V. Levin in
49873         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49874
49875         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49876         bugs in int versus size_t comparisons.
49877         (re_string_context_at): Fix bug where the code assumed that
49878         Idx is signed.
49879
49880         Use bool where appropriate.
49881         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49882         All callers changed.
49883         (calc_eclosure_iter): Likewise, for ROOT arg.
49884         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49885         (build_charclass_op): Likewise, for NON_MATCH arg.
49886         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49887         (re_string_construct_common): Likewise, for ICASE arg.
49888         * lib/regexec.c (re_search_2_stub, re_search_stub):
49889         Likewise, for RET_LEN arg.
49890         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49891         (set_regs): Likewise, for FL_BACKTRACK arg.
49892         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49893         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49894         (calc_eclosure_iter, parse_bracket_exp):
49895         Use bool for internal variables that are booleans.
49896         * lib/regexec.c (re_search_internal, check_matching,
49897         proceed_next_node):
49898         (set_regs, build_sifted_states, sift_states_bkref):
49899         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49900         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49901         (find_collation_sequence_value):
49902         Likewise.
49903         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49904         (re_node_set_compare):
49905         Return bool, not int. All callers changed.
49906         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49907         (build_trtable, check_node_accept): Likewise.
49908         * lib/regex_internal.h: Include stdbool.h.
49909
49910         Fix bugs uncovered when converting to bool.
49911         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49912         failure instead of charging ahead blindly.
49913         * lib/regex_internal.c (register_state): Likewise.
49914         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49915         for freeing internal storage.
49916         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49917         bitset pieces used as boolean, to avoid undefined behavior
49918         on hosts that do int overflow checking.
49919
49920 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49921
49922         * config/srclist.txt: Add glibc bugs 1285-1287.
49923
49924 2005-09-01  Jim Meyering  <jim@meyering.net>
49925
49926         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49927         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49928         Require gl_STAT_MACROS, too.
49929
49930 2005-09-01  Bruno Haible  <bruno@clisp.org>
49931
49932         * gnulib-tool (import): In the first-use case, provide defaults.
49933
49934 2005-09-01  Bruno Haible  <bruno@clisp.org>
49935
49936         * gnulib-tool (func_import): Remove the .tmp files.
49937
49938 2005-09-01  Bruno Haible  <bruno@clisp.org>
49939
49940         * gnulib-tool (func_import): Fix handling of symbolic links.
49941
49942 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49943
49944         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49945         old glibc regex code mishandles strings longer than 2**31 bytes.
49946         This patch fixes this when the regex code is used in gnulib
49947         (i.e., outside glibc).
49948
49949         This patch should not affect the use of the regex code inside
49950         glibc.  No doubt this problem also needs to be handled for glibc
49951         as well, but the result will be an incompatible change to the
49952         glibc ABI, and the old ABI will have to be supported too.  That
49953         can be the the subject for another patch.
49954
49955         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49956         governing whether the rest of this patch is active.  By default,
49957         the macro is disabled and the patch has no effect.
49958         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49959         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49960         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49961         (re_match_2, re_set_registers): Use the new types.
49962         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49963         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49964         New macros.
49965         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49966         (re_string_context_at, bin_tree_t, re_dfastate_t):
49967         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49968         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49969         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49970         (re_string_char_size_at, re_string_wchar_at):
49971         (re_string_elem_size_at):
49972         Use the new types and macros to port to 64-bit hosts.
49973         Use unsigned types for internal values, so that the code
49974         mostly works even for arrays larger than SSIZE_MAX.
49975         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49976         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49977         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49978         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49979         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49980         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49981         (calc_inveclosure, parse_dup_op, build_range_exp):
49982         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49983         (fetch_number, create_token_tree, mark_opt_subexp):
49984         Likewise.
49985         * lib/regex_internal.c (re_string_construct_common,
49986         create_ci_newstate):
49987         (create_cd_newstate, re_string_allocate, re_string_construct):
49988         (re_string_realloc_buffers, build_wcs_upper_buffer):
49989         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49990         (re_string_reconstruct, re_string_peek_byte_case):
49991         (re_string_fetch_byte_case, re_string_context_at):
49992         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49993         (re_node_set_init_copy, re_node_set_add_intersect):
49994         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49995         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49996         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49997         (re_acquire_state, re_acquire_state_context, register_state):
49998         Likewise.
49999         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50000         search_cur_bkref_entry):
50001         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50002         (re_search_internal, re_search_2_stub, re_search_stub)
50003         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50004         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50005         (update_cur_sifted_state, check_dst_limits):
50006         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50007         (check_subexp_limits, sift_states_bkref, merge_state_array):
50008         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50009         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50010         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50011         (expand_bkref_cache, check_node_accept_bytes):
50012         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50013         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50014         (acquire_init_state_context, check_halt_node_context):
50015         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50016         (sift_states_backward, clean_state_log_if_needed):
50017         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50018         (find_recover_state, transit_state_sb, transit_state_mb):
50019         (transit_state_bkref, build_trtable, match_ctx_clean):
50020         Likewise.
50021         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50022         to work around an assumption that REG_MISSING is negative.
50023
50024         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50025         (seek_collating_symbol_entry) [defined _LIBC]:
50026         (lookup_collation_sequence_value) [defined _LIBC]:
50027         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50028         Use prototypes rather than old-style function definitions.
50029         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50030         (transit_state_sb) [0]:
50031         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50032
50033         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50034         rm_eo.
50035
50036         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50037         (optimize_subexps, lower_subexp):
50038         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50039         since the signed shift might overflow.  Use 1u<<31 instead.
50040         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50041         Likewise.
50042         * lib/regexec.c (check_dst_limits_calc_pos_1,
50043         check_subexp_matching_top): Likewise.
50044
50045         * lib/regcomp.c (optimize_subexps, lower_subexp):
50046         Use CHAR_BIT rather than 8, for clarity.
50047         * lib/regexec.c (check_dst_limits_calc_pos_1):
50048         (check_subexp_matching_top): Likewise.
50049         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50050         have to worry about portability issues when shifting it left.
50051         Remove no-longer-needed test for table_size > 0.
50052         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50053         in a word, as the resulting behavior is undefined.
50054         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50055         in one case, a <= should have been an <, and in another case the
50056         whole test was missing.
50057         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50058         the standard name CHAR_BIT.
50059         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50060         this is not true on one's complement and signed-magnitude hosts.
50061
50062         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50063         next_last_offset.
50064         (struct re_dfa_t): Remove unused member states_alloc.
50065         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50066
50067 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50068
50069         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50070         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50071         and large-file glibc and in 32-bit large-file Solaris.
50072
50073 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50074
50075         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50076         lengths fit in regoff_t; this isn't true if regoff_t is the same
50077         width as size_t.
50078         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50079         (= START + RANGE) instead of RANGE.  This avoids overflow
50080         problems when regoff_t is the same width as size_t.
50081         All callers changed.
50082         (re_search_2_stub): Check for overflow when adding the
50083         sizes of the two strings.
50084         (re_search_stub): Check for overflow when adding START
50085         to RANGE; if it occurs, substitute the extreme value.
50086
50087 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50088
50089         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50090
50091 2005-08-31  Jim Meyering  <jim@meyering.net>
50092
50093         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50094         a pointer-to-const.
50095         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50096         (register_state): Likewise.
50097         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50098         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50099         (group_nodes_into_DFAstates): Likewise.
50100
50101 2005-08-31  Jim Meyering  <jim@meyering.net>
50102
50103         * check-module: Add a FIXME comment.
50104
50105 2005-08-31  Eric Blake  <ebb9@byu.net>
50106
50107         * modules/unistd-safer (Files): Add unistd--.h.
50108         * modules/stdio-safer (Files): Add stdio--.h.
50109
50110 2005-08-31  Derek Price  <derek@ximbiot.com>
50111
50112         * lib/getdelim.c (getdelim): Return EOF on EOF.
50113         Reported by Larry Jones <lawrence.jones@ugs.com>.
50114
50115 2005-08-31  Bruno Haible  <bruno@clisp.org>
50116
50117         Avoid unnecessary diffs in the generated lib/Makefile.am.
50118         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50119         the generated files.
50120         (func_import): Don't set cmd.
50121
50122 2005-08-31  Bruno Haible  <bruno@clisp.org>
50123
50124         * lib/strstr.c: Include <stddef.h>, for NULL.
50125         * lib/strcasestr.c: Likewise.
50126         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50127
50128 2005-08-31  Bruno Haible  <bruno@clisp.org>
50129
50130         * gnulib-tool: New option --macro-prefix.
50131         (func_import): Use macro_prefix.
50132         (import): Handle option --macro-prefix.
50133
50134 2005-08-31  Bruno Haible  <bruno@clisp.org>
50135
50136         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50137         Also use new variables cached_lgpl, cached_libtool.
50138
50139 2005-08-31  Bruno Haible  <bruno@clisp.org>
50140
50141         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50142         always instantiating them.
50143
50144 2005-08-31  Bruno Haible  <bruno@clisp.org>
50145
50146         * gnulib-tool (func_import): Read the previous cached settings
50147         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50148         earlier added by gnulib but are now dropped. Warn when a gnulib file
50149         overwrites a non-gnulib file.
50150
50151 2005-08-31  Bruno Haible  <bruno@clisp.org>
50152
50153         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50154         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50155         projects that don't keep autogenerated files in CVS. Put into
50156         actioncmd only the specified modules, not the transitive closure.
50157
50158 2005-08-31  Bruno Haible  <bruno@clisp.org>
50159
50160         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50161         Create directories that shall be filled.
50162         (import): Don't look for gl_* macros in configure.ac. Recurse across
50163         all directories containing a gnulib-cache.m4 files, if meaningful.
50164
50165 2005-08-31  Bruno Haible  <bruno@clisp.org>
50166
50167         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50168         (import): Set seen_libtool when we see gl_LIBTOOL.
50169
50170 2005-08-31  Bruno Haible  <bruno@clisp.org>
50171
50172         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50173         declaration macro definitions from generated gnulib.m4.
50174
50175 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50176
50177         * lib/iconvme.h: Add prototype for iconv_alloc.
50178
50179 2005-08-29  Simon Josefsson  <jas@extundo.com>
50180
50181         * lib/iconvme.c: Fix errno.
50182
50183 2005-08-29  Bruno Haible  <bruno@clisp.org>
50184
50185         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50186         that it works when the directory contains spaces.
50187
50188 2005-08-29  Bruno Haible  <bruno@clisp.org>
50189
50190         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50191
50192 2005-08-29  Bruno Haible  <bruno@clisp.org>
50193
50194         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50195         Emit more advice.
50196
50197 2005-08-29  Bruno Haible  <bruno@clisp.org>
50198         and Stepan Kasal  <kasal@ucw.cz>
50199
50200         * check-module: If more parameters are given, check each of them
50201         separately; add more exceptions, as noted by Jim Meyering.
50202         (check_module): New procedure.
50203         (%exempt_header): Now contains all exceptions.
50204
50205 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50206
50207         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50208
50209 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50210
50211         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50212
50213 2005-08-28  Bruno Haible  <bruno@clisp.org>
50214
50215         * m4/gnulib-tool.m4: New file.
50216
50217 2005-08-27  Jim Meyering  <jim@meyering.net>
50218
50219         * modules/unistd-safer (Files): Add pipe-safer.c.
50220         * modules/fcntl-safer (Files): Add creat-safer.c.
50221
50222 2005-08-27  Jim Meyering  <jim@meyering.net>
50223
50224         * m4/stdlib-safer.m4: New file.  From coreutils.
50225         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50226         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50227         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50228         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50229         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50230
50231 2005-08-27  Jim Meyering  <jim@meyering.net>
50232
50233         * lib/fopen-safer.c: Merge minor changes from coreutils.
50234         * lib/dup-safer.c: Likewise.
50235         * lib/fd-safer.c: Likewise.
50236
50237         Merge from coreutils.
50238         * lib/stdio--.h: New file.
50239         * lib/stdlib--.h: New file.
50240         * lib/mkstemp-safer.c: New file.
50241
50242         GNU tar needs these.
50243         * lib/pipe-safer.c: New file.
50244         * lib/creat-safer.c: New file.
50245         * lib/fcntl--.h (creat): Define to creat_safer.
50246         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50247         * lib/unistd--.h (pipe): Define to pipe_safer.
50248         * lib/unistd-safer.h: Declare pipe_safer.
50249
50250 2005-08-26  Simon Josefsson  <jas@extundo.com>
50251
50252         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50253         Haible <bruno@clisp.org>.
50254
50255 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50256
50257         * lib/regex_internal.h: Remove all references to
50258         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50259         or better.
50260         (bitset_not, bitset_merge, bitset_not_merge):
50261         (bitset_mask, re_string_allocate, re_string_construct):
50262         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50263         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50264         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50265         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50266         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50267         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50268         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50269         (re_acquire_state_context):
50270         Remove unnecessary forward decls.
50271         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50272         Put __attribute at function definition,
50273         now that the function decl has been removed.
50274         * lib/regex_internal.c (re_string_peek_byte_case):
50275         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50276         Likewise.
50277
50278 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50279
50280         * m4/regex.m4: Add AC_PREREQ(2.50).
50281         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50282
50283 2005-08-25  Simon Josefsson  <jas@extundo.com>
50284
50285         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50286         __fsetlocking.
50287
50288 2005-08-25  Simon Josefsson  <jas@extundo.com>
50289
50290         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50291         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50292         GLIBC specific code.
50293
50294 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50295
50296         Make regex safe for g++.  This fixes one real bug (an "err"
50297         that should have been "*err").  g++ problem reported by
50298         Sam Steingold.
50299         * lib/regex_internal.h (re_calloc): New macro, consistent with
50300         re_malloc etc.  All callers of calloc changed to use re_calloc.
50301         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50302         not int.  All callers changed.
50303         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50304         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50305         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50306         (find_recover_state): Change "err" to "*err"; this fixes what
50307         appears to be a real bug.
50308         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50309         versus int.
50310
50311 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50312
50313         * modules/regex (Depends-on): Add malloc, since the code
50314         assumes that !malloc(0) means failure.
50315
50316 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50317
50318         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50319
50320         alloca modernization/simplification for regex.
50321         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50322         needs to be at the start of the file, and can be moved into
50323         regex_internal.h and simplified.
50324         * lib/regex_internal.h: Include <alloca.h>.
50325         (__libc_use_alloca) [!defined _LIBC]: New macro.
50326         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50327         now works outside glibc.
50328
50329 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50330
50331         * config/srclist.txt: Add glibc bugs 1241, 1245.
50332
50333 2005-08-25  Jim Meyering  <jim@meyering.net>
50334
50335         * lib/open-safer.c: Include <config.h>.
50336         Otherwise, we'd lose LARGEFILE support in any file using
50337         e.g. "fcntl--.h"
50338
50339 2005-08-25  Bruno Haible  <bruno@clisp.org>
50340
50341         * m4/minmax.m4: Require autoconf 2.52.
50342         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50343         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50344         alternatives of translit over the alphabet.
50345         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50346
50347 2005-08-24  Simon Josefsson  <jas@extundo.com>
50348
50349         * tests/test-getpass.c: New file.
50350
50351 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50352
50353         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50354         for GNU regex features.
50355
50356 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50357
50358         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50359         * lib/regex.h (regerror): Likewise.
50360
50361         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50362         requires this.  (The code never needed it.)
50363
50364         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50365         All uses of recently-renamed identifiers changed to use the new,
50366         POSIX-compliant names.  The code will build and run just fine
50367         without these changes, but it's better to eat our own dog food
50368         and use the standard-conforming names.
50369
50370         * lib/regex.h: Fix a multitude of POSIX name space violations.
50371         These changes have an effect only for programs that define
50372         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50373         do not change anything for programs compiled in the normal way.
50374         Also, there is no effect on the ABI.
50375
50376         (_REGEX_SOURCE): New macro.
50377         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50378         defined and _GNU_SOURCE is not; this fixes a name space violation.
50379
50380         Rename the following macros to obey POSIX requirements.
50381         The old names are still visible as macros if _REGEX_SOURCE is defined.
50382         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50383         RE_BACKSLASH_ESCAPE_IN_LISTS.
50384         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50385         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50386         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50387         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50388         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50389         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50390         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50391         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50392         (REG_INTERVALS): renamed from RE_INTERVALS.
50393         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50394         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50395         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50396         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50397         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50398         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50399         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50400         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50401         RE_UNMATCHED_RIGHT_PAREN_ORD.
50402         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50403         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50404         (REG_DEBUG): renamed from RE_DEBUG.
50405         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50406         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50407         unusual, since we can't clash with the POSIX REG_ICASE.
50408         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50409         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50410         (REG_NO_SUB): renamed from RE_NO_SUB.
50411         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50412         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50413         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50414         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50415         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50416         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50417         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50418         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50419         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50420         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50421         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50422         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50423         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50424         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50425         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50426         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50427         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50428         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50429         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50430         (REG_FIXED): Renamed from REGS_FIXED.
50431         (REG_NREGS): Renamed from RE_NREGS.
50432
50433         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50434         of other REG_* macros, since POSIX says the user is allowed to
50435         #undef these macros selectively.
50436
50437         (reg_errcode_t): Update comment stating what other tables need
50438         to be consistent.
50439
50440         Rename the following enum values to obey POSIX requirements.
50441         The old names are still visible as macros.
50442         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50443         is not defined, since GNU is supposed to be a superset of POSIX as
50444         much as possible, and since we want reg_errcode_t to be a signed
50445         type for implementation consistency.
50446         (_REG_NOERROR): Renamed from REG_NOERROR.
50447         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50448         (_REG_BADPAT): Renamed from REG_BADPAT.
50449         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50450         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50451         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50452         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50453         (_REG_EBRACK): Renamed from REG_EBRACK.
50454         (_REG_EPAREN): Renamed from REG_EPAREN.
50455         (_REG_EBRACE): Renamed from REG_EBRACE.
50456         (_REG_BADBR): Renamed from REG_BADBR.
50457         (_REG_ERANGE): Renamed from REG_ERANGE.
50458         (_REG_ESPACE): Renamed from REG_ESPACE.
50459         (_REG_BADRPT): Renamed from REG_BADRPT.
50460         (_REG_EEND): Renamed from REG_EEND.
50461         (_REG_ESIZE): Renamed from REG_ESIZE.
50462         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50463         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50464         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50465         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50466         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50467
50468         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50469         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50470         changed.  But support the old name if the new one is not defined
50471         and if _REGEX_SOURCE.
50472
50473         Change the following member names in struct re_pattern_buffer.
50474         The old names are still supported if !_REGEX_SOURCE.
50475         The new names are always supported, regardless of _REGEX_SOURCE.
50476         (re_buffer): Renamed from buffer.
50477         (re_allocated): Renamed from allocated.
50478         (re_used): Renamed from used.
50479         (re_syntax): Renamed from syntax.
50480         (re_fastmap): Renamed from fastmap.
50481         (re_translate): Renamed from translate.
50482         (re_can_be_null): Renamed from can_be_null.
50483         (re_regs_allocated): Renamed from regs_allocated.
50484         (re_fastmap_accurate): Renamed from fastmap_accurate.
50485         (re_no_sub): Renamed from no_sub.
50486         (re_not_bol): Renamed from not_bol.
50487         (re_not_eol): Renamed from not_eol.
50488         (re_newline_anchor): Renamed from newline_anchor.
50489
50490         Change the following member names in struct re_registers.
50491         The old names are still supported if !_REGEX_SOURCE.
50492         The new names are always supported, regardless of _REGEX_SOURCE.
50493         (rm_num_regs): Renamed from num_regs.
50494         (rm_start): Renamed from start.
50495         (rm_end): Renamed from end.
50496
50497         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50498         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50499         Prepend __ to parameter names.
50500
50501         Undo yesterday's changes.
50502
50503 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50504
50505         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50506         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50507         lib/regex.c.
50508
50509 2005-08-24  Jim Meyering  <jim@meyering.net>
50510
50511         Sync from coreutils.
50512         * m4/fcntl-safer.m4: New file.
50513
50514         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50515         and object files for this module.
50516
50517 2005-08-24  Jim Meyering  <jim@meyering.net>
50518
50519         Sync from coreutils.
50520         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50521
50522 2005-08-24  Jim Meyering  <jim@meyering.net>
50523
50524         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50525         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50526
50527 2005-08-24  Jim Meyering  <jim@meyering.net>
50528
50529         * modules/fcntl-safer: New module.
50530         * modules/fts (Depends-on): Add fcntl-safer.
50531         * MODULES.html.sh (File descriptor based Input/Output):
50532         Add fcntl-safer.
50533
50534 2005-08-24  Bruno Haible  <bruno@clisp.org>
50535
50536         Support for unit test modules.
50537         * modules/README: Mention tests modules.
50538         * modules/TEMPLATE-TESTS: New file.
50539         * gnulib-tool: New options --extract-tests-module, --with-tests and
50540         --tests-base (unused for the moment).
50541         (testsbase, inctests): New variables.
50542         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50543         (func_verify_module): Exclude TEMPLATE-TESTS.
50544         (func_verify_nontests_module, func_verify_tests_module): New functions.
50545         (func_get_dependencies): Add implicit dependency for tests modules.
50546         (func_get_tests_module): New function.
50547         (func_modules_transitive_closure): When --with-tests was specified,
50548         include the unit tests as well, unless explicitly avoided.
50549         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50550         (func_emit_tests_Makefile_am): New function.
50551         (func_create_testdir): When --with-tests was specified, emit a
50552         tests/ directory.
50553         * MODULES.html.sh (Future developments): Update.
50554
50555 2005-08-24  Bruno Haible  <bruno@clisp.org>
50556
50557         * modules/tls-tests: New file.
50558         * tests/test-tls.c: New file, from GNU gettext.
50559
50560 2005-08-24  Bruno Haible  <bruno@clisp.org>
50561
50562         * modules/lock-tests: New file.
50563         * tests/test-lock.c: New file, from GNU gettext.
50564
50565 2005-08-24  Bruno Haible  <bruno@clisp.org>
50566
50567         * lib/lock.h: Add multiple inclusion guard.
50568         * lib/tls.h: Add multiple inclusion guard.
50569
50570 2005-08-24  Bruno Haible  <bruno@clisp.org>
50571
50572         * gnulib-tool: Add support for the --aux-dir option to
50573         --create-testdir, --create-megatestdir, --test, --megatest.
50574         (func_create_testdir, func_create_megatestdir): Optionally emit a
50575         AC_CONFIG_AUX_DIR directive.
50576         (create-testdir, create-megatestdir, test, megatest): Provide a
50577         default value for $auxdir.
50578
50579 2005-08-24  Bruno Haible  <bruno@clisp.org>
50580
50581         * gnulib-tool (import): Use compound statement instead of subshell
50582         where possible.
50583
50584 2005-08-24  Bruno Haible  <bruno@clisp.org>
50585
50586         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50587
50588 2005-08-24  Bruno Haible  <bruno@clisp.org>
50589
50590         * gnulib-tool (func_version): Update.
50591
50592 2005-08-24  Bruno Haible  <bruno@clisp.org>
50593
50594         * gnulib-tool (func_import, func_create_testdir,
50595         func_create_megatestdir): Quote all autoconf macro arguments.
50596
50597 2005-08-24  Bruno Haible  <bruno@clisp.org>
50598
50599         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50600         option --force, because --force causes the aclocal.m4 of each
50601         subdirectory to be newer than the corresponding config.h.in.
50602
50603 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50604
50605         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50606         All contents moved to gl_REGEX.
50607         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50608         assume that it does.
50609
50610 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50611
50612         * lib/regex.h (REG_NOSYS)
50613         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50614         Define, since POSIX requires it as of 2001.
50615         (_REG_ENOSYS)
50616         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50617         New private symbol, used to keep the enum signed in all cases.
50618         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50619         Youngman in
50620         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50621
50622         * lib/regex_internal.c (re_string_skip_chars, register_state):
50623         (calc_state_hash):
50624         Remove forward decls; no longer needed now that we use prototypes.
50625         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50626         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50627         (clean_state_log_if_needed): Likewise.
50628
50629 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50630
50631         * config/srclist.txt: Add glibc bugs 1231-1233.
50632
50633 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50634
50635         Fix problems reported by Sam Steingold in
50636         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50637         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50638         assumed that reg_errcode_t is a signed type, which is not
50639         necessarily true if _XOPEN_SOURCE is not defined.
50640         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50641         since some compilers warn about it otherwise.
50642
50643 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50644
50645         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50646         (init_word_char, create_initial_state, duplicate_node_closure):
50647         (fetch_token, peek_token_bracket, build_range_exp):
50648         (build_collating_symbol): Remove forward decls; no longer needed
50649         now that we use prototypes.
50650
50651         * lib/regcomp.c:
50652         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50653         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50654         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50655         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50656         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50657         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50658         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50659         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50660         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50661         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50662         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50663         (build_charclass, build_charclass_op, fetch_number, create_tree):
50664         (create_token_tree, mark_opt_subexp, duplicate_tree):
50665         Use prototypes rather than old-style definitions.
50666
50667         * lib/regex_internal.c:
50668         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50669         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50670         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50671         (re_string_reconstruct, re_string_peek_byte_case):
50672         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50673         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50674         (re_node_set_init_copy, re_node_set_add_intersect):
50675         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50676         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50677         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50678         (re_acquire_state, re_acquire_state_context, register_state):
50679         (create_ci_newstate, create_cd_newstate, free_state):
50680         Likewise.
50681         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50682         re_search_2):
50683         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50684         (re_search_internal, prune_impossible_nodes):
50685         (acquire_init_state_context, check_matching, static):
50686         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50687         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50688         (update_regs, sift_states_backward, build_sifted_states):
50689         (clean_state_log_if_needed, merge_state_array):
50690         (update_cur_sifted_state, add_epsilon_src_nodes):
50691         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50692         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50693         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50694         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50695         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50696         (check_arrival, check_arrival_add_next_nodes):
50697         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50698         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50699         (check_node_accept_bytes, check_node_accept, extend_buffers):
50700         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50701         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50702         (sift_ctx_init):
50703         Likewise.
50704
50705         * lib/regex_internal.h:
50706         (re_string_allocate, re_string_construct, re_string_reconstruct):
50707         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50708         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50709         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50710         (re_string_context_at, re_string_peek_byte_case):
50711         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50712         is defined, since we now use prototypes always.
50713
50714         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50715         C89 or better.  All uses removed.
50716
50717 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50718
50719         * config/srclist.txt: Add glibc bugs 1220-1227.
50720
50721 2005-08-20  Jim Meyering  <jim@meyering.net>
50722
50723         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50724         of unused local, dfa.
50725
50726 2005-08-20  Bruno Haible  <bruno@clisp.org>
50727
50728         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50729
50730 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50731
50732         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50733         (re_node_set_insert_last, re_dfa_add_node):
50734         Rename local variables to avoid GCC shadowing warnings.
50735
50736 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50737
50738         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50739         [defined lint]: Suppress bogus uninitialized-variable warnings.
50740
50741         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50742         and let the caller return REG_ESPACE if out of space.  This
50743         removes an uninitialied-variable warning with GCC 4.0.1, and also
50744         avoids taking the address of a local variable.  All callers
50745         changed.
50746
50747 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50748
50749         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50750         $LIBCSRC/posix/regexec.c.
50751         Add glibc bug 1217 for regcomp.c.
50752
50753 2005-08-19  Jim Meyering  <jim@meyering.net>
50754
50755         * lib/regexec.c (proceed_next_node): Redo local variables to
50756         avoid GCC shadowing warnings.
50757
50758 2005-08-18  Bruno Haible  <bruno@clisp.org>
50759
50760         * lib/strstr.c (strstr): Fix return value in multibyte case.
50761         * lib/strcasestr.c (strcasestr): Likewise.
50762
50763 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50764
50765         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50766
50767 2005-08-17  Jim Meyering  <jim@meyering.net>
50768
50769         Make the %s format (seconds since the epoch) work for a negative
50770         number and when used with a zero-padded field width, e.g. %015s.
50771
50772         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50773         label so that it precedes the code to set `digits'.  Otherwise,
50774         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50775         print `00-22'.  Now, it prints `-0022', as it should.
50776
50777 2005-08-17  Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/strstr (Files): Add m4/mbrtowc.m4.
50780         (Depends-on): Add mbuiter.
50781
50782 2005-08-17  Bruno Haible  <bruno@clisp.org>
50783
50784         * modules/strcasestr: New file.
50785         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50786         strcasestr.
50787
50788 2005-08-17  Bruno Haible  <bruno@clisp.org>
50789
50790         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50791
50792 2005-08-17  Bruno Haible  <bruno@clisp.org>
50793
50794         * modules/mbuiter: New file.
50795         * MODULES.html.sh (Extended multibyte and wide character utilities):
50796         Add mbuiter.
50797
50798 2005-08-17  Bruno Haible  <bruno@clisp.org>
50799
50800         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50801         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50802
50803 2005-08-17  Bruno Haible  <bruno@clisp.org>
50804
50805         * m4/strcasestr.m4: New file.
50806
50807 2005-08-17  Bruno Haible  <bruno@clisp.org>
50808
50809         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50810         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50811
50812 2005-08-17  Bruno Haible  <bruno@clisp.org>
50813
50814         * lib/strcasestr.h: New file.
50815         * lib/strcasestr.c: New file.
50816
50817 2005-08-17  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/strcasecmp.c: Use mbuiter.h.
50820
50821 2005-08-17  Bruno Haible  <bruno@clisp.org>
50822
50823         * lib/mbuiter.h: New file.
50824
50825 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50826
50827         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50828         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50829         and gl_GETOPT are both invoked via different paths (as happens
50830         with GNU tar CVS because it uses both argp and getopt), the former
50831         wins.
50832
50833 2005-08-16  Bruno Haible  <bruno@clisp.org>
50834
50835         * modules/tls: New file.
50836         * MODULES.html.sh (Multithreading): Add tls.
50837
50838 2005-08-16  Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/strnlen1: New file.
50841         * MODULES.html.sh (String handling): Add strnlen1.
50842
50843 2005-08-16  Bruno Haible  <bruno@clisp.org>
50844
50845         * modules/strcase (Files): Add m4/mbrtowc.m4.
50846         (Depends-on): Add strnlen1, mbchar.
50847
50848 2005-08-16  Bruno Haible  <bruno@clisp.org>
50849
50850         * modules/mbiter: New file.
50851         * MODULES.html.sh (Extended multibyte and wide character utilities):
50852         Add mbiter.
50853
50854 2005-08-16  Bruno Haible  <bruno@clisp.org>
50855
50856         * modules/mbfile: New file.
50857         * MODULES.html.sh (Extended multibyte and wide character utilities):
50858         Add mbfile.
50859
50860 2005-08-16  Bruno Haible  <bruno@clisp.org>
50861
50862         * modules/mbchar: New file.
50863         * MODULES.html.sh (Extended multibyte and wide character utilities):
50864         New section.
50865
50866 2005-08-16  Bruno Haible  <bruno@clisp.org>
50867
50868         * m4/tls.m4: New file, from GNU gettext.
50869
50870 2005-08-16  Bruno Haible  <bruno@clisp.org>
50871
50872         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50873         always.
50874         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50875
50876 2005-08-16  Bruno Haible  <bruno@clisp.org>
50877
50878         * m4/mbiter.m4: New file.
50879
50880 2005-08-16  Bruno Haible  <bruno@clisp.org>
50881
50882         * m4/mbfile.m4: New file.
50883
50884 2005-08-16  Bruno Haible  <bruno@clisp.org>
50885
50886         * m4/mbchar.m4: New file.
50887
50888 2005-08-16  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/tls.h: New file, from GNU gettext.
50891         * lib/tls.c: New file, from GNU gettext.
50892
50893 2005-08-16  Bruno Haible  <bruno@clisp.org>
50894
50895         * lib/strnlen1.h: New file.
50896         * lib/strnlen1.c: New file.
50897
50898 2005-08-16  Bruno Haible  <bruno@clisp.org>
50899
50900         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50901         (mbi_init): Update.
50902         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50903         NUL byte, not after it.
50904
50905 2005-08-16  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/strcase.h (strcasecmp): Add note in comments.
50908         * lib/strncasecmp.c: Use code from strcasecmp.c.
50909         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50910         (strcasecmp): Work correctly in multibyte locales.
50911
50912 2005-08-16  Bruno Haible  <bruno@clisp.org>
50913
50914         * lib/mbiter.h: New file.
50915
50916 2005-08-16  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/mbfile.h: New file.
50919
50920 2005-08-16  Bruno Haible  <bruno@clisp.org>
50921
50922         * lib/mbchar.h: New file.
50923         * lib/mbchar.c: New file.
50924
50925 2005-08-16  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50928         the valid ones. Makes the comparison operations transitive:
50929         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50930         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50931
50932 2005-08-15  Simon Josefsson  <jas@extundo.com>
50933
50934         * modules/ssize_t (License): Change to 'unlimited'.
50935
50936         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50937
50938 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50939
50940         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50941         Add comments for each pending glibc patch.
50942
50943 2005-08-15  Bruno Haible  <bruno@clisp.org>
50944
50945         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50946         __cplusplus is defined.
50947
50948 2005-08-14  Jim Meyering  <jim@meyering.net>
50949
50950         Sync from coreutils.
50951
50952         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50953         Use the hash-table-based cycle-detection code not just when
50954         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50955         Reported by James Youngman in
50956         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50957         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50958         FTS_TIGHT_CYCLE_CHECK.
50959         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50960         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50961         once again.
50962         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50963         * lib/fts.c (fd_safer): Remove decl.
50964         Include fcntl--.h rather than unistd-safer.h
50965         (fts_safe_changedir): Don't call fd_safer; no longer needed
50966         now that we include fcntl--.h.
50967
50968 2005-08-12  Simon Josefsson  <jas@extundo.com>
50969
50970         * modules/getndelim2: Use ssize_t module.
50971         * modules/getnline: Likewise.
50972         * modules/safe-read: Likewise.
50973         * modules/xreadlink: Likewise.
50974
50975         * modules/ssize_t: New file.
50976
50977 2005-08-12  Simon Josefsson  <jas@extundo.com>
50978
50979         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50980
50981 2005-08-12  Simon Josefsson  <jas@extundo.com>
50982
50983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50984         ssize_t.
50985
50986 2005-08-12  Simon Josefsson  <jas@extundo.com>
50987
50988         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50989         readline, getdelim and check_version.
50990         (Support for systems lacking ISO C 99: Sizes of integer types):
50991         Add size_max.
50992
50993 2005-08-12  Bruno Haible  <bruno@clisp.org>
50994
50995         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50996
50997 2005-08-11  Simon Josefsson  <jas@extundo.com>
50998
50999         * modules/readline: New file.
51000
51001         * modules/strnlen (Files): Add strnlen.h.
51002
51003 2005-08-11  Simon Josefsson  <jas@extundo.com>
51004
51005         * m4/readline.m4: New file.
51006
51007 2005-08-11  Simon Josefsson  <jas@extundo.com>
51008
51009         * lib/readline.h, readline.c: New file.
51010
51011 2005-08-11  Simon Josefsson  <jas@extundo.com>
51012
51013         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51014         gl_AVOID.
51015
51016 2005-08-11  Bruno Haible  <bruno@clisp.org>
51017
51018         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51019
51020 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51021
51022         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51023
51024 2005-08-10  Simon Josefsson  <jas@extundo.com>
51025
51026         * tests/test-iconvme.c: New file.
51027
51028 2005-08-10  Simon Josefsson  <jas@extundo.com>
51029
51030         * m4/strnlen.m4: New file.
51031
51032         * m4/strndup.m4: Don't check for strnlen declaration, done in
51033         strnlen.m4.
51034
51035 2005-08-10  Simon Josefsson  <jas@extundo.com>
51036
51037         * lib/strndup.c: Use strnlen.h.
51038
51039         * lib/strnlen.h: New file.
51040
51041 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51042
51043         * README: Typos.
51044
51045 2005-08-02  Simon Josefsson  <jas@extundo.com>
51046
51047         * modules/readline: New file.
51048
51049 2005-08-02  Simon Josefsson  <jas@extundo.com>
51050
51051         * modules/getdelim: New file.
51052
51053         * modules/getline: Rewrite, don't use getndelim2.
51054
51055 2005-08-02  Simon Josefsson  <jas@extundo.com>
51056
51057         * m4/getline.m4: Separate out getdelim stuff into separate module.
51058
51059         * m4/getdelim.m4: New file.
51060
51061 2005-08-02  Simon Josefsson  <jas@extundo.com>
51062
51063         * lib/getline.h, getline.c: Rewrite.
51064
51065         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51066
51067 2005-07-31  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/lock.h (gl_lock_initializer): New macro.
51070         (gl_lock_define_initialized): Use it.
51071         (gl_rwlock_initializer): New macro.
51072         (gl_rwlock_define_initialized): Use it.
51073         (gl_recursive_lock_initializer): New macro.
51074         (gl_recursive_lock_define_initialized): Use it.
51075
51076 2005-07-30  Karl Berry  <karl@gnu.org>
51077
51078         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51079         Report from Ben Pfaff, regarding getopt.
51080
51081 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51082
51083         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51084         normal way.
51085         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51086         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51087         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51088         (gl_GETOPT): Use the new macros.  Most of the implementation
51089         is moved to the new macros.  This is for programs like Emacs
51090         that don't want all the functionality of gl_GETOPT.
51091
51092 2005-07-26  Bruno Haible  <bruno@clisp.org>
51093
51094         * m4/lock.m4: Update from GNU gettext.
51095
51096 2005-07-26  Bruno Haible  <bruno@clisp.org>
51097
51098         * lib/lock.h: Update from GNU gettext.
51099         * lib/lock.c: Update from GNU gettext.
51100
51101 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51102
51103         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51104         obsolescent AC_TRY_RUN.  Include the default includes files, for
51105         'exit'.
51106
51107 2005-07-24  Bruno Haible  <bruno@clisp.org>
51108
51109         * modules/visibility: New file.
51110         * MODULES.html.sh (Misc): Add visibility.
51111
51112 2005-07-24  Bruno Haible  <bruno@clisp.org>
51113
51114         * m4/visibility.m4: New file.
51115
51116 2005-07-24  Bruno Haible  <bruno@clisp.org>
51117
51118         * doc/visibility.texi: New file.
51119
51120 2005-07-22  Bruno Haible  <bruno@clisp.org>
51121
51122         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51123         $(ALLOCA_H), redundant through BUILT_SOURCES.
51124         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51125         redundant through BUILT_SOURCES.
51126         * modules/byteswap (Makefile.am): Remove explicit dependency on
51127         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51128         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51129         $(FNMATCH_H), redundant through BUILT_SOURCES.
51130         * modules/getopt (Makefile.am): Remove explicit dependency on
51131         $(GETOPT_H), redundant through BUILT_SOURCES.
51132         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51133         redundant through BUILT_SOURCES.
51134         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51135         redundant through BUILT_SOURCES.
51136         * modules/stdbool (Makefile.am): Remove explicit dependency on
51137         $(STDBOOL_H), redundant through BUILT_SOURCES.
51138         * modules/stdint (Makefile.am): Remove explicit dependency on
51139         $(STDINT_H), redundant through BUILT_SOURCES.
51140         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51141         Remove explicit dependency on $(SYSEXITS_H).
51142         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51143
51144 2005-07-18  Simon Josefsson  <jas@extundo.com>
51145
51146         * lib/check-version.c (check_version): Accept identical versions too.
51147
51148 2005-07-18  Bruno Haible  <bruno@clisp.org>
51149
51150         * modules/lock: New file.
51151         * MODULES.html.sh (Multithreading): New section.
51152
51153 2005-07-18  Bruno Haible  <bruno@clisp.org>
51154
51155         * m4/lock.m4: New file, from GNU gettext.
51156
51157 2005-07-18  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/lock.h: New file, from GNU gettext.
51160         * lib/lock.c: New file, from GNU gettext.
51161
51162 2005-07-18  Bruno Haible  <bruno@clisp.org>
51163
51164         * lib/lock.h (gl_once_t): New type.
51165         (gl_once_define, gl_once): New macros.
51166         * lib/lock.c (fresh_once): New variable.
51167         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51168         functions.
51169
51170 2005-07-16  Simon Josefsson  <jas@extundo.com>
51171
51172         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51173         workaround, suggested by Bruno.
51174
51175 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51176
51177         * modules/xalloc (Depends-on): Add xalloc-die.
51178         * modules/xvasprintf (Depends-on): Add xalloc-die.
51179
51180 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51181
51182         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51183         with a minor change.
51184
51185 2005-07-15  Bruno Haible  <bruno@clisp.org>
51186
51187         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51188         When using lib/poll.c, define poll as rpl_poll.
51189
51190 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51191
51192         * modules/argp (Depends-on): Remove unlocked-io.
51193
51194 2005-07-14  Derek Price  <derek@ximbiot.com>
51195
51196         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51197         for glob symlink bug.
51198
51199 2005-07-14  Bruno Haible  <bruno@clisp.org>
51200
51201         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51202         Instead, test for *_unlocked function declarations directly.
51203
51204 2005-07-11  Simon Josefsson  <jas@extundo.com>
51205
51206         * modules/size_max: New file.
51207
51208         * modules/xsize: Depend on size_max module for size_max.m4.
51209
51210 2005-07-11  Simon Josefsson  <jas@extundo.com>
51211
51212         * lib/size_max.h: New file.
51213
51214 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51215
51216         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51217         copyright symbol and the year.
51218         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51219         (version_etc_va): Use parameterized copyright notice.
51220         Reword to conform to the current GNU coding standards.
51221
51222 2005-07-11  Karl Berry  <karl@gnu.org>
51223
51224         * doc/gnulib.texi (Quoting): new node.
51225         (Initial import): more info, from Patrice.
51226
51227 2005-07-11  Bruno Haible  <bruno@clisp.org>
51228
51229         * gnulib-tool (func_usage): Document option --avoid.
51230         (Command line options): Handle --avoid.
51231         (func_acceptable): New function.
51232         (func_modules_transitive_closure): Use it.
51233
51234 2005-07-11  Bruno Haible  <bruno@clisp.org>
51235
51236         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51237         Reported by Jim Meyering.
51238
51239 2005-07-10  Bruno Haible  <bruno@clisp.org>
51240
51241         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51242         Needed when size_t is smaller than 'unsigned int'.
51243         Reported by Paul Eggert.
51244
51245 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51246
51247         * modules/argp (Depends-on): Add unlocked-io
51248
51249 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51250
51251         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51252         block of defines.
51253
51254 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51255
51256         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51257         fix now.
51258
51259 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51260         and Paul Eggert  <eggert@cs.ucla.edu>
51261
51262         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51263         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51264
51265 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51266
51267         * modules/regex (Files): Add lib/regex_internal.c,
51268         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51269         (Depends-on): Add extensions.
51270         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51271
51272 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51275         pathconf.
51276         * m4/same.m4 (gl_SAME): Likewise.
51277         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51278
51279         * m4/regex.m4: Adjust to new libc regex implementation.
51280         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51281         all the .c and .h parts of (the new) regex.
51282         Quote the m4 stuff better.
51283         Check for RE_ICASE bug of old gnulib.
51284         Check for REG_STARTEND of recent libc.
51285         Rename local variables from jm_* to gl_*.
51286         Quote operand of "test -f".
51287         Say "recent enough" version of libc, not "version 2".
51288         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51289         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51290         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51291         Remove check for btowc, isascii.
51292         Require AM_LANGINFO_CODESET.
51293
51294 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51295
51296         * lib/regex.c, regex.h: Sync from libc.
51297         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51298         * lib/regexec.c:
51299         New files, synced from libc, except that regex_internal.h
51300         currently has a small porting fix.
51301
51302 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51303
51304         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51305         regex_internal.c, regexec.c.
51306         Add regex_internal.h too, but as a comment, since the libc version
51307         is currently broken in gnulib mode.
51308
51309 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51310
51311         Support programs like Emacs that use gnulib but not gettext.
51312         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51313         * modules/gettext-h: New file.
51314         * modules/gettext (Files): Remove lib/gettext.h.
51315         (Depends-on): Add gettext-h.
51316         (Makefile.am): Remove lib_SOURCES.
51317         * modules/argmatch, modules/c-stack, modules/closeout:
51318         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51319         * modules/execute, modules/file-type, modules/getaddrinfo:
51320         * modules/getopt, modules/human, modules/javacomp:
51321         * modules/javaexec, modules/mkdir-p, modules/obstack:
51322         * modules/openat, modules/pagealign_alloc, modules/pipe:
51323         * modules/quotearg, modules/regex, modules/rpmatch:
51324         * modules/unicodeio, modules/userspec, modules/version-etc:
51325         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51326         * modules/xsetenv:
51327         Depend on gettext-h, not gettext.
51328
51329 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51330
51331         * gnulib-tool (func_import): Add support for 'public domain' license.
51332         * modules/alloca, modules/atexit, modules/memmove:
51333         Now public domain, not GPL.
51334         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51335         * modules/realloc, modules/strerror, modules/strtod:
51336         Now LGPL, not GPL.
51337
51338 2005-07-05  Bruno Haible  <bruno@clisp.org>
51339
51340         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51341         autoconf CVS. Needed for mingw.
51342
51343 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51344
51345         Remove the dependency of the strftime module on the tzset module.
51346         * modules/strftime (Depends-on): Remove dependency on tzset.
51347
51348 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51349
51350         Remove the dependency of the strftime module on the tzset module.
51351         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51352         gl_FUNC_TZSET_CLOBBER.
51353
51354 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51355
51356         Remove the dependency of the strftime module on the tzset module.
51357         * lib/strftime.c (my_strftime)
51358         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51359         Copy the input structure, to work around some of the bug with
51360         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51361         Solaris releases, you should also use the tzset module, but we won't
51362         require it as a dependency any more since we don't want LGPLed code
51363         to depend on GPLed code.
51364
51365 2005-07-02  Jim Meyering  <jim@meyering.net>
51366
51367         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51368         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51369         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51370         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51371
51372 2005-07-02  Jim Meyering  <jim@meyering.net>
51373
51374         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51375
51376 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51377
51378         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51379         declares only 'struct timespec;' (!).
51380
51381 2005-07-01  Jim Meyering  <jim@meyering.net>
51382
51383         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51384         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51385         * lib/save-cwd.c, tempname.c:
51386         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51387         and don't include <sys/file.h>).
51388
51389 2005-06-29  Jim Meyering  <jim@meyering.net>
51390
51391         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51392         type name.  Use the variable name instead.
51393         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51394         Likewise.
51395
51396 2005-06-28  Simon Josefsson  <jas@extundo.com>
51397
51398         * modules/check-version (Files): Add check-version.m4.
51399
51400 2005-06-28  Simon Josefsson  <jas@extundo.com>
51401
51402         * m4/check-version.m4: New file, suggested by Jim Meyering
51403         <jim@meyering.net>.
51404
51405 2005-06-28  Simon Josefsson  <jas@extundo.com>
51406
51407         * lib/check-version.h, lib/check-version.c: New files.
51408
51409 2005-06-28  Simon Josefsson  <jas@extundo.com>
51410
51411         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51412         collision with global variable.  Better indentation.  Don't
51413         increment buffer pointer beyond buffer end.  Based on comments
51414         from Paul Eggert <eggert@cs.ucla.edu>.
51415
51416         * lib/base64.h: Indent.
51417
51418 2005-06-28  Simon Josefsson  <jas@extundo.com>
51419
51420         * doc/gnulib.texi (Library version handling): New section.
51421
51422 2005-06-28  Jim Meyering  <jim@meyering.net>
51423
51424         * check-module (find_included_lib_files): Hard-code another
51425         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51426         but modules/fts-lgpl (correctly) does not list those files.
51427
51428         * modules/canonicalize (Files): Add lib/pathmax.h.
51429
51430 2005-06-25  Simon Josefsson  <jas@extundo.com>
51431
51432         * modules/check-version: New file.
51433
51434 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51435
51436         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51437         initializer of struct addrinfo, as an indication that we don't
51438         care how many members the structure has.
51439
51440 2005-06-24  Derek Price  <derek@ximbiot.com>
51441         and Bruno Haible  <bruno@clisp.org>
51442
51443         Remove stat module & update lstat.
51444         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51445         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51446         * m4/stat.m4: Remove this file.
51447
51448 2005-06-24  Derek Price  <derek@ximbiot.com>
51449         and Bruno Haible  <bruno@clisp.org>
51450
51451         Remove stat module & update lstat.
51452         * lib/stat.c: Remove this file...
51453         (slash_aware_lstat): ...moving this content and its support...
51454         * lib/lstat.c (rpl_lstat): ...into here.
51455         * lib/lstat.h: New file.
51456
51457 2005-06-24  Derek Price  <derek@ximbiot.com>
51458         and Bruno Haible  <bruno@clisp.org>
51459
51460         Remove stat module & update lstat.
51461         * config/srclist.txt (libc sources): Remove stat.
51462
51463 2005-06-24  Derek Price  <derek@ximbiot.com>
51464         and Bruno Haible  <bruno@clisp.org>
51465
51466         Remove stat module & update lstat.
51467         * MODULES.html.sh (stat): Remove.
51468         * MODULES.html: Regenerated.
51469         * modules/lstat (Description): Correct function name.
51470         (Files): Add "lstat.h".
51471         (Depends-on): Remove stat, add xalloc, stat-macros.
51472         * modules/stat: Remove this file.
51473         (Include): Add "lstat.h", remove <sys/stat.h>.
51474
51475 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51476
51477         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51478         (ranged_convert): Don't save conversion in a temporary struct.
51479         This causes a warning with GCC 4.0.0, and anyway in the typical
51480         case it's not worth the extra 100 bytes or so of code.
51481         (ranged_convert, __mktime_internal): When calling a function via a
51482         pointer P, use P () rather than (*P) (), as we now assume C89 or
51483         better.
51484
51485 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51486
51487         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51488         "who -r" failed to give output.  Problem reported by Tim Waugh.
51489
51490         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51491         (xcalloc): Use it to avoid needless tests.
51492         Problem reported by Jim Meyering.
51493
51494 2005-06-20  Derek Price  <derek@ximbiot.com>
51495
51496         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51497         unnecessary for Autoconfs > 2.59c.
51498
51499 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51500
51501         * lib/argp.h (__option_is_short): Check upper limit of
51502         __key. Isprint() requires its argument to have the value
51503         of an unsigned char or EOF.
51504
51505 2005-06-16  Jim Meyering  <jim@meyering.net>
51506
51507         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51508         when either N or S is zero.
51509
51510 2005-06-16  Derek Price  <derek@ximbiot.com>
51511
51512         * m4/bison.m4: Declare YACC & YFLAGS precious.
51513
51514 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51515
51516         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51517         multibyte string or pattern, fall back on unibyte matching.
51518         Problem reported by James Youngman.
51519
51520 2005-06-08  Bruno Haible  <bruno@clisp.org>
51521
51522         * modules/csharpcomp: New file.
51523         * MODULES.html.sh (C#): Add csharpcomp.
51524
51525 2005-06-08  Bruno Haible  <bruno@clisp.org>
51526
51527         * m4/csharpcomp.m4: New file, from GNU gettext.
51528
51529 2005-06-08  Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/csharpcomp.h: New file, from GNU gettext.
51532         * lib/csharpcomp.c: New file, from GNU gettext.
51533         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51534
51535 2005-06-08  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51538         warning on mingw.
51539
51540 2005-06-07  Derek Price  <derek@ximbiot.com>
51541
51542         Sync from CVS.
51543         * lib/glob_.h: Indent nested #ifdef.
51544
51545 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51546
51547         Sync from coreutils.
51548         Use "file name" when talking about file names, instead of "filename"
51549         or "path", as per the GNU coding standards.
51550         * lib/mkdir-p.c: Renamed from makepath.c.
51551         (make_dir_parents): Renamed from make_path.  All callers changed.
51552         * lib/mkdir-p.h: Likewise.  All includers changed.
51553         * lib/filenamecat.c: Renamed from path-concat.c.
51554         (file_name_concat): Renamed from path_concat.  All callers changed.
51555         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51556         * lib/filenamecat.h: Likewise.  All includers changed.
51557         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51558         in comments or local variable names.
51559         * lib/basename.c: Likewise.
51560         * lib/canonicalize.c, canonicalize.h: Likewise.
51561         * lib/dirname.c, dirname.h: Likewise.
51562         * lib/euidaccess.c: Likewise.
51563         * lib/exclude.c: Likewise
51564         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51565         * lib/fsusage.c, fsuage.h: Likewise.
51566         * lib/fts.c, fts_.h: Likewise.
51567         * lib/getcwd.c: Likewise.
51568         * lib/getloadavg.c: Likewise.
51569         * lib/mkstemp.c: Likewise.
51570         * lib/mountlist.c, mountlist.h: Likewise.
51571         * lib/openat.c, openat.h: Likewise.
51572         * lib/readlink-stub.c: Likewise.
51573         * lib/readutmp.c, readutmp.h: Likewise.
51574         * lib/rename.c: Likewise.
51575         * lib/rmdir.c: Likewise.
51576         * lib/same.c: Likewise.
51577         * lib/savedir.c: Likewise.
51578         * lib/stripslash.c: Likewise.
51579         * lib/tempname.c: Likewise.
51580         * lib/xreadlink.c: Likewise.
51581         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51582         All uses changed.
51583         * lib/exclude.h: Likewise.
51584
51585         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51586         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51587         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51588         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51589         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51590         files have been getting away with it for years (MORE/BSD 4.3
51591         is extinct now).
51592         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51593         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51594
51595         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51596         Define to 256, not 255, as per modern POSIX.
51597
51598 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         Sync from coreutils.
51601         Use "file name" when talking about file names, instead of "filename"
51602         or "path", as per the GNU coding standards.
51603         * MODULES.html.sh: mkdir-p renamed from makepath.
51604         filenamecat renamed from path-concat.
51605         * modules/filenamecat: Renamed from modules/path-concat.
51606         (Files): filenamecat.h and filenamecat.c renamed from
51607         path-concat.h and path-concat.c.
51608         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51609         (Include): filenamecat.h, not path-concat.h.
51610         * modules/mkdir-p: Renamed from modules/makepath.
51611         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51612         makepath.c.
51613         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51614         (Include): mkdir-p.h, not makepath.h.
51615
51616 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51617
51618         Sync from coreutils.
51619         * m4/mkdir-p.m4: Renamed from makepath.m4.
51620         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51621         Rename files from makepath.c to mkdir-p.c, and from
51622         makepath.h to mkdir-p.h.
51623         * m4/filenamecat.m4: Renamed from path-concat.m4.
51624         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51625         Rename files from path-concat.c to filenamecat.c,
51626         and from path-concat.h to filenamecat.h.
51627         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51628         "file name" in local variables or comments.
51629         * m4/rename.m4: Likewise.
51630
51631 2005-06-01  Bruno Haible  <bruno@clisp.org>
51632
51633         * modules/csharpexec: New file.
51634         * MODULES.html.sh (C#): New section.
51635
51636 2005-06-01  Bruno Haible  <bruno@clisp.org>
51637
51638         * m4/csharp.m4: New file, from GNU gettext.
51639         * m4/csharpexec.m4: New file, from GNU gettext.
51640
51641 2005-06-01  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/csharpexec.h: New file, from GNU gettext.
51644         * lib/csharpexec.c: New file, from GNU gettext.
51645         * lib/csharpexec.sh.in: New file, from GNU gettext.
51646
51647 2005-05-31  Derek Price  <derek@ximbiot.com>
51648             Paul Eggert  <eggert@cs.ucla.edu>
51649
51650         Sync from cvs.
51651         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51652
51653 2005-05-31  Derek Price  <derek@ximbiot.com>
51654             Paul Eggert  <eggert@cs.ucla.edu>
51655
51656         Sync from cvs.
51657         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51658
51659 2005-05-29  Derek Price  <derek@ximbiot.com>
51660
51661         * config/srclist.txt (glob_.h, glob.c): Add these files.
51662
51663 2005-05-29  Derek Price  <derek@ximbiot.com>
51664
51665         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51666         * modules/glob: New file.
51667         * modules/getlogin_r: Add link to POSIX spec in description.
51668
51669 2005-05-29  Derek Price  <derek@ximbiot.com>
51670             Paul Eggert  <eggert@cs.ucla.edu>
51671
51672         * m4/glob.m4: New file.
51673
51674 2005-05-29  Derek Price  <derek@ximbiot.com>
51675             Paul Eggert  <eggert@cs.ucla.edu>
51676
51677         * lib/glob_.h, lib/glob.c: New files.
51678
51679 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51680
51681         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51682         * modules/fts-lgpl (Depends-on): Remove gettext.
51683
51684 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51685
51686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51687         and don't require gt_INTTYPES_PRI.
51688
51689 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51690
51691         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51692
51693         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51694         the configuration hassle isn't worth it.
51695         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51696         (LONGEST_MODIFIER, PRIuMAX): Remove.
51697
51698 2005-05-27  Bruno Haible  <bruno@clisp.org>
51699
51700         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51701
51702 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51703
51704         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51705         _POSIX_PTHREAD_SEMANTICS for Solaris.
51706
51707 2005-05-25  Derek Price  <derek@ximbiot.com>
51708
51709         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51710
51711 2005-05-25  Derek Price  <derek@ximbiot.com>
51712             Paul Eggert  <eggert@cs.ucla.edu>
51713
51714         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51715         * lib/getlogin_r.c, getlogin_r.h: New files.
51716
51717 2005-05-25  Bruno Haible  <bruno@clisp.org>
51718             Derek Price  <derek@ximbiot.com>
51719
51720         * lib/getlogin_r.h: Simplify API documentation.
51721
51722 2005-05-23  Derek Price  <derek@ximbiot.com>
51723
51724         * modules/minmax (Files): Add m4/minmax.m4.
51725         (configure.ac): Add gl_MINMAX.
51726
51727 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51728
51729         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51730         so that unistd-safer.h (GPL'ed code) need not be included.
51731
51732 2005-05-22  Bruno Haible  <bruno@clisp.org>
51733
51734         * m4/minmax.m4: New file.
51735         Based on a patch by Derek Price <derek@ximbiot.com>.
51736
51737 2005-05-22  Bruno Haible  <bruno@clisp.org>
51738
51739         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51740         (INT64_MIN): Fix definition.
51741         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51742
51743         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51744         NEED_SIGNED_INT_TYPES.
51745
51746         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51747         HAVE_SYSTEM_INTTYPES.
51748
51749 2005-05-22  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51752         Also include <sys/param.h> if it defines MIN, MAX.
51753         Based on a patch by Derek Price <derek@ximbiot.com>.
51754
51755 2005-05-21  Jim Meyering  <jim@meyering.net>
51756
51757         * modules/fts (Files): Add m4/inttypes-pri.m4.
51758         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51759
51760 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51761
51762         New fts module.
51763         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51764         (setup_dir, free_dir): New functions.
51765         (enter_dir, leave_dir): Define trivial
51766         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51767         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51768         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51769         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51770         Move to fts-cycle.c.
51771         (fts_open): Use setup_dir.
51772         (fts_close): Use free_dir.
51773         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51774         This adds a label and some gotos, but the alternatives were messier.
51775         Check for memory allocation failure when entering a dir.
51776         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51777         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51778         (FTS): New member fts_cycle, that is a union that contains the
51779         old active_dir_ht and cycle_state.  All uses changed to mention
51780         fts_cycle.ht and fts_cycle.state.
51781         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51782         fts.c, with the following changes:
51783         (setup_dir, free_dir): New functions.
51784         (enter_dir): Now returns bool.  Return true if successful, false
51785         if memory exhausted.  All callers changed.
51786         Do not bother partly cleaning up on
51787         memory allocation failure; that is free_dir's job.
51788         However, free ad if hash_insert fails, to avoid memory leak.
51789         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51790         fts->fts_options to see which union member to use.
51791
51792 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51793
51794         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51795         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51796
51797 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51798
51799         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51800
51801 2005-05-20  Jim Meyering  <jim@meyering.net>
51802
51803         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51804         Now a macro, to pacify GCC.
51805
51806 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51807
51808         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51809         of -1.
51810
51811 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51812
51813         * lib/chown.c (rpl_chown): Return -1 on failure.
51814
51815 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51816
51817         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51818         Don't check for stddef.h.
51819         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51820         don't use its results.
51821         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51822         since we include them unconditionally.  Don't require
51823         AM_STDBOOL_H, since stdbool is a prerequisite.
51824         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51825         since we assume C89 or better.
51826         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51827         as we don't use their results.
51828         Don't check for fchdir, memmove, memset, strrchr, as we use
51829         them unconditionally.
51830         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51831         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51832
51833 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51834
51835         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51836         Include <stddef.h> unconditionally, since we assume C89 now.
51837         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51838         * lib/fts.c: Include fts_.h first, to check interface.
51839         Do not include intprops.h; no longer needed.
51840         Include cycle-check.h and hash.h, since fts_.h no longer does.
51841         Remove unnecessary casts of closedir to void.
51842         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51843         decide whether to decrement nlinks.
51844         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51845         (FTS): Use struct hash_table * instead of Hash_table, so that
51846         we no longer need to include hash.h here.
51847
51848 2005-05-18  Jim Meyering  <jim@meyering.net>
51849
51850         * modules/dirfd (License): Change to LGPL.  Most of the code
51851         is already in the public domain.
51852
51853 2005-05-18  Jim Meyering  <jim@meyering.net>
51854
51855         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51856         Reported by Yoann Vandoorselaere.
51857
51858 2005-05-17  Jim Meyering  <jim@meyering.net>
51859
51860         * m4/fts.m4: New file, from coreutils.
51861
51862 2005-05-17  Jim Meyering  <jim@meyering.net>
51863
51864         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51865
51866 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         Sync from coreutils.
51869         * m4/unlinkdir.m4: New file.
51870
51871 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51872
51873         Sync from coreutils.
51874         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51875         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51876         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51877         White space changes only.
51878         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51879         special.
51880         * lib/yesno.c: Include getline.h, not ctype.h.
51881         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51882         Use getline to remove arbitrary restriction on response length.
51883
51884 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51885
51886         * config/srclist-update: Spell out "Street" in FSF postal
51887         mail address; this is the style the FSF seems to prefer.
51888
51889         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51890         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51891         this updates FSF postal mail address.
51892
51893         Sync from coreutils.
51894         * modules/unlinkdir: New file.
51895         * modules/yesno (Depends-on): Add getline.
51896         * MODULES.html.sh (File system functions): Add unlinkdir.
51897
51898 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51899
51900         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51901         lib/strsep.h:
51902         Change the initial comment to refer to GPL, not LGPL.
51903         gnulib-tool will change it to LGPL as needed.
51904
51905         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51906         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51907         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51908         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51909         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51910         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51911         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51912         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51913         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51914         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51915         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51916         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51917         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51918         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51919         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51920         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51921         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51922         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51923         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51924         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51925         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51926         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51927         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51928         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51929         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51930         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51931         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51932         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51933         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51934         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51935         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51936         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51937         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51938         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51939         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51940         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51941         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51942         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51943         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51944         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51945         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51946         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51947         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51948         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51949         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51950         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51951         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51952         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51953         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51954         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51955         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51956         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51957         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51958         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51959         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51960         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51961         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51962         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51963         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51964         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51965         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51966         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51967         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51968         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51969         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51970         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51971         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51972         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51973         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51974         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51975         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51976         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51977         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51978         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51979         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51980         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51981         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51982         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51983         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51984         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51985         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51986         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51987         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51988         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51989         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51990         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51991         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51992         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51993         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51994         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51995         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51996         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51997         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51998         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51999         lib/yesno.c, lib/yesno.h:
52000         Update FSF postal mail address.
52001
52002 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52003
52004         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52005         tests/test-memmem.c, tests/test-stpncpy.c:
52006         Update FSF postal mail address.
52007
52008 2005-05-13  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52011         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52012         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52013         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52014         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52015         Add support for 64-bit integers in the MSVC compiler.
52016
52017 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52018
52019         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52020
52021 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52022
52023         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52024
52025 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52026
52027         * doc/getdate.texi (General date syntax): Don't say that date
52028         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52029         Problem reported by Nic Ferrier.
52030
52031 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52032
52033         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52034         specified in ai_socktype. Fix invalid ai_protocol
52035         check. ai_protocol is usually set to 0 or depending on
52036         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52037         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52038         ai_socktype / ai_protocol in the returned addrinfo structure.
52039
52040 2005-05-10  Simon Josefsson  <jas@extundo.com>
52041
52042         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52043         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52044
52045 2005-05-10  Karl Berry  <karl@gnu.org>
52046
52047         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52048         (from http://www.gnu.org/licenses).
52049         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52050         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52051         fdl.texi suffices.
52052
52053 2005-05-10  Karl Berry  <karl@gnu.org>
52054
52055         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52056         (COPYING.DOC): remove.
52057
52058         * config/srclist-update: new FSF address.
52059
52060 2005-05-10  Derek Price  <derek@ximbiot.com>
52061
52062         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52063         possible.
52064
52065 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52066             Bruno Haible  <bruno@clisp.org>
52067
52068         * modules/inet_ntop: New file.
52069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52070         inet_ntop.
52071
52072 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52073             Bruno Haible  <bruno@clisp.org>
52074
52075         * m4/inet_ntop.m4: New file.
52076
52077 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52078             Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/inet_ntop.h: New file.
52081         * lib/inet_ntop.c: New file, from glibc with modifications.
52082
52083 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52084
52085         * modules/time_r (License): Change to LGPL.
52086         * modules/extensions (License): Change to LGPL.  Actually,
52087         the license is more permissive than that, but currently gnulib-tool
52088         doesn't know how to handle more-permissive licenses.
52089
52090         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52091         Problem reported by Dave Love.
52092
52093 2005-05-08  Jim Meyering  <jim@meyering.net>
52094
52095         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52096         blank.
52097
52098 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52099
52100         * modules/argmatch (Depends-on): Add stdbool.
52101         * modules/backupfile (Depends-on): Likewise.
52102         * modules/chdir-long (Depends-on): Likewise.
52103         * modules/closeout (Depends-on): Likewise.
52104         * modules/cycle-check (Depends-on): Likewise.
52105         * modules/dirname (Depends-on): Likewise.
52106         * modules/fnmatch (Depends-on): Likewise.
52107         * modules/fsusage (Depends-on): Likewise.
52108         * modules/fwriteerror (Depends-on): Likewise.
52109         * modules/getcwd (Depends-on): Likewise.
52110         * modules/getloadavg (Depends-on): Likewise.
52111         * modules/hard-locale (Depends-on): Likewise.
52112         * modules/makepath (Depends-on): Likewise.
52113         * modules/mountlist (Depends-on): Likewise.
52114         * modules/nanosleep (Depends-on): Likewise.
52115         * modules/posixtm (Depends-on): Likewise.
52116         * modules/quotearg (Depends-on): Likewise.
52117         * modules/readtokens (Depends-on): Likewise.
52118         * modules/readtokens0 (Depends-on): Likewise.
52119         * modules/readutmp (Depends-on): Likewise.
52120         * modules/save-cwd (Depends-on): Likewise.
52121         * modules/strftime (Depends-on): Likewise.
52122         * modules/userspec (Depends-on): Likewise.
52123         * modules/utimecmp (Depends-on): Likewise.
52124         * modules/xgetcwd (Depends-on): Likewise.
52125         * modules/xnanosleep (Depends-on): Likewise.
52126         * modules/xstrtod (Depends-on): Likewise.
52127         * modules/yesno (Depends-on): Likewise.
52128
52129 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52130
52131         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52132         needless checks.
52133
52134 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52135
52136         Merge from coreutils.  Among other things,
52137         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52138         * lib/fd-safer.c: New file.
52139         * lib/fcntl-safer.h, open-safer.c: Remove.
52140         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52141         * lib/dup-safer.c: Include unistd-safer.h first.
52142         Don't include errno.h.
52143         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52144         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52145         * lib/file-type.c: Rely on file-type.h change.
52146         * lib/getloadavg.c: Include unistd-safer.h.
52147         (getloadavg): Use safer open.
52148         * lib/getusershell.c: Include "stdio-safer.h".
52149         (getusershell): Use safer fopen.
52150         * lib/long-options.c (long_options): Use NULL rather than 0.
52151         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52152         'free'.
52153         * lib/modechange.c: Likewise.
52154         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52155         (MODE_DONE): New constant.
52156         (struct mode_change): Remove 'next' member.
52157         (make_node_op_equals): New function; like the old one of the
52158         same name, except it allocates an array.
52159         (mode_compile, mode_create_from_ref): Use it.
52160         (mode_compile): Allocate result as an array, not a linked list.
52161         Parse octal string ourself, so that we catch mistakes like "+0".
52162         (mode_adjust): Arg is an array, not a linked list.
52163         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52164         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52165         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52166         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52167         Remove.  This is now stat-macros.h's job.
52168         (talloc): Remove.  All callers replaced by xalloc, so that
52169         our invokers don't have to worry about reporting memory failures.
52170         (make_node_op_equals): Remove.
52171         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52172         New constants.
52173         (struct mode_change): Moved here from modechange.h.
52174         (mode_append_entry): Remove.
52175         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52176         apps to have incorrect behavior.  Use simpler algorithm for head
52177         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52178         Detect more invalid usages rather than having somewhat-random behavior.
52179         Don't insert an "a=" action, as that leads to incorrect behavior.
52180         (mode_compile, mode_create_from_ref): Return NULL on error instead
52181         of an enum, since now there's only one way to have an error.  All
52182         callers changed.
52183         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52184         at the correct time.  Simplify calculation of "+u" and its ilk.
52185         Don't mishandle "+X".
52186         (mode_free): Remove "register" and localize decls.
52187         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52188         (struct mode_change): Move to modechange.c; callers don't
52189         need to see this stuff.
52190         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52191         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52192         (mode_change, mode_adjust): Reflect the new signatures noted above.
52193         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52194         that might redefine system include files.
52195         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52196         (my_usleep): Use NULL rather than (void *) 0.
52197         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52198         Use siginterrupt to specify that system calls should be interrupted.
52199         (rpl_nanosleep): Move initialization of suspended closer to call of
52200         my_usleep.
52201         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52202         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52203         (desirable_utmp_entry): New function.
52204         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52205         using x2nrealloc, to simplify logic.
52206         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52207         size calculation.  Do not assume utmp file is a regular file.
52208         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52209         (READ_UTMP_CHECK_PIDS): New constant.
52210         * lib/save-cwd.c: Include unistd-safer.h.
52211         (save_cwd): Use fd_safer.
52212         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52213         [!_LIBC] Include "stat-macros.h" instead.
52214         * lib/unistd-safer.h (fd_safer): New decl.
52215
52216 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52217
52218         * modules/getloadavg (Depends-on): Add unistd-safer.
52219         * modules/getusershell (Depends-on): Add stdio-safer.
52220         * modules/lstat (Depends-on): Remove xalloc.
52221         * modules/mkstemp (Depends-on): Add stat-macros.
52222         * modules/modechange (Depends-on): Remove xstrtol.
52223         Add stat-macros, xalloc.
52224         * modules/save-cwd (Depends-on): Add unistd-safer.
52225         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52226         * modules/unistd-safer (Files): Add lib/fd-safer.c
52227         (Makefile.am): Remove lib_SOURCES.
52228
52229         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52230         Remove fcntl-safer; unistd-safer supersedes it.
52231
52232 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52233
52234         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52235         AC_HEADER_STAT.
52236         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52237         (gl_PREREQ_CHOWN): Remove.
52238         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52239         it.  Don't require AC_HEADER_STAT.
52240         (gl_PREREQ_LSTAT): Remove.
52241         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52242         Don't require AC_HEADER_STAT.
52243         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52244         (gl_PREREQ_RMDIR): Remove.
52245         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52246         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52247         the stat-macros module a prerequisite.
52248         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52249         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52250         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52251         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52252         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52253         variable names.
52254         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52255         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52256         variable prefixes.
52257         * m4/fcntl-safer.m4: Remove.
52258         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52259         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52260         Invoke gl_PREREQ_FD_SAFER.
52261         (gl_PREREQ_FD_SAFER): New macro.
52262         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52263         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52264         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52265         Remove duplicate call to AC_LIBOBJ(readutmp).
52266         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52267
52268         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52269         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52270
52271 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52272
52273         * MODULES.html.sh (Misc): Add byteswap.
52274
52275 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52276
52277         * modules/getcwd (Depends-on): Add extensions.
52278         * modules/openat (Depends-on): Likewise.
52279
52280 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52281
52282         * modules/byteswap: New file.
52283
52284 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52285
52286         * m4/byteswap.m4: New file.
52287
52288 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52289
52290         * lib/byteswap_.h: New file.
52291
52292 2005-04-25  Karl Berry  <karl@gnu.org>
52293
52294         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52295
52296 2005-04-25  Albert Chin  <china@thewrittenword.com>
52297
52298         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52299         Toolkit C bug.
52300
52301 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52302
52303         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52304         (func_ln_if_changed) Remove forcibly for no error message
52305         in case file does not exist.
52306
52307 2005-04-19  Simon Josefsson  <jas@extundo.com>
52308
52309         * gnulib-tool (Options): Make --symlink mean --symbolic.
52310
52311 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52312
52313         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52314
52315 2005-04-16  Simon Josefsson  <jas@extundo.com>
52316
52317         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52318
52319 2005-04-15  Simon Josefsson  <jas@extundo.com>
52320
52321         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52322
52323 2005-04-15  Simon Josefsson  <jas@extundo.com>
52324
52325         * gnulib-tool: Rename --symlink to --symbolic.
52326
52327 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52328
52329         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52330         symbolic links to files instead of copying/moving.  Add --aux-dir,
52331         specifying directory relative --dir where auxiliary build tools
52332         are placed.
52333
52334 2005-04-14  Bruno Haible  <bruno@clisp.org>
52335
52336         * modules/allocsa (License): Change to LGPL.
52337         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52338
52339 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52340
52341         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52342         that "UTC +1 second" continues to work.  Problem reported
52343         by Dmitry V. Levin.
52344         (relunit_snumber): New rule.
52345         (relunit): Use it.
52346
52347 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52348
52349         * lib/getdate.y (universal_time_zone_table): New constant.
52350         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52351         universal_time_zone_table.
52352         (lookup_zone): Prefer universal_time_zone_table to
52353         local_time_zone_table, so that "GMT" time stamps are allowed in
52354         London during the summer.  Problem reported by Ian Abbott.
52355
52356 2005-04-12  Jim Meyering  <jim@meyering.net>
52357
52358         * lib/human.c (humblock): Set *options even when returning due to
52359         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52360         warning from gcc-4.
52361
52362 2005-04-09  Jim Meyering  <jim@meyering.net>
52363
52364         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52365         -Wuninitialized: initialize tm0.tm_year.
52366
52367 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52368
52369         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52370         count, since there's no maximum.  All uses changed.
52371         Add member dsts_seen.
52372         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52373         not being INT_MAX.
52374         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52375         Use pc_rels_seen to decide whther a date is absolute.
52376
52377         * lib/getdate.y (number): Don't overwrite year.
52378         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52379         check.
52380
52381 2005-04-02  Simon Josefsson  <jas@extundo.com>
52382
52383         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52384         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52385
52386 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52387
52388         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52389         where no absolute path name can be longer than PATH_MAX.
52390
52391 2005-03-27  Jim Meyering  <jim@meyering.net>
52392
52393         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52394
52395 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52398         "one's complement" -> "ones' complement" in comment, as per Knuth.
52399         "value of type" -> "type or expression" in comment.
52400         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52401
52402 2005-03-26  Jim Meyering  <jim@meyering.net>
52403
52404         Comment nits.
52405         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52406         Correct typos: s/or/of/.
52407
52408 2005-03-26  Jim Meyering  <jim@meyering.net>
52409
52410         * modules/check-include-files: Move to ../ and rename to...
52411         * check-module: ...this.
52412
52413 2005-03-25  Jim Meyering  <jim@meyering.net>
52414
52415         * modules/xvasprintf (Files): Add xalloc.h.
52416
52417 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52418
52419         * modules/gettext (Files): config/config.rpath ->
52420         build-aux/config.rpath
52421         * modules/iconv (Files): Likewise.
52422         Problem reported by Oskar Liljeblad.
52423
52424 2005-03-23  Jim Meyering  <jim@meyering.net>
52425
52426         * modules/check-include-files: New script to check for
52427         missing dependencies, multiple includes, etc.
52428
52429         * modules/c-strtold (Depends-on): Add xalloc.
52430         * modules/c-strtod (Depends-on): Add xalloc.
52431         * modules/hash (Depends-on): Add xalloc.
52432         (Files): Remove lib/xalloc.h.
52433
52434         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52435         * modules/userspec (Files): Add lib/inttostr.h.
52436
52437 2005-03-23  Jim Meyering  <jim@meyering.net>
52438
52439         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52440
52441 2005-03-22  Jim Meyering  <jim@meyering.net>
52442
52443         * modules/stat-macros: New module.
52444         * modules/canonicalize, modules/euidaccess, modules/file-type,
52445         * modules/filemode, modules/lchown, modules/makepath,
52446         * modules/rmdir, modules/stat: Depend on new stat-macros module
52447         rather than listing lib/stat-macros.h manually.
52448         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52449
52450 2005-03-22  Jim Meyering  <jim@meyering.net>
52451
52452         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52453
52454 2005-03-22  Bruno Haible  <bruno@clisp.org>
52455
52456         * config/srclist.txt: Replace target directory 'config' with
52457         'build-aux'.
52458         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52459         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52460         ../build-aux/.
52461
52462 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52463
52464         * modules/chdir-long (Depends-on): Add mempcpy.
52465
52466         * modules/acl, modules/backupfile, modules/c-strtod,
52467         modules/c-strtold, modules/canon-host, modules/canonicalize,
52468         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52469         modules/exclude, modules/exitfail, modules/file-type,
52470         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52471         modules/getdate, modules/getline, modules/getpagesize,
52472         modules/getpass, modules/getugroups, modules/group-member,
52473         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52474         modules/inttostr, modules/long-options, modules/makepath,
52475         modules/md5, modules/memcasecmp, modules/memcoll,
52476         modules/modechange, modules/mountlist, modules/path-concat,
52477         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52478         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52479         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52480         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52481         modules/strftime, modules/strndup, modules/strverscmp,
52482         modules/timespec, modules/unlocked-io, modules/userspec,
52483         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52484         modules/yesno:
52485         Remove lib_SOURCES line from Makefile.am section, as this is now
52486         done automatically by the corresponding Autoconf macro.
52487
52488 2005-03-21  Jim Meyering  <jim@meyering.net>
52489
52490         Changes imported from coreutils.
52491
52492         * lib/cycle-check.c: Don't include xalloc.h.
52493
52494         * lib/path-concat.c: Don't include assert.h.
52495         (path_concat): Remove assertion that would have triggered
52496         for ABASE starting with more than one slash.
52497         Reported by Andreas Schwab.
52498
52499         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52500         properly when ABASE is an absolute file name.
52501         Correct the description of this function.
52502         Include <assert.h>.
52503         Add an assertion and a test driver.
52504         This fixes a bug introduced on 2004-07-02.
52505         Andreas Schwab reported the resulting failure of cp --parents:
52506         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52507
52508 2005-03-21  Jim Meyering  <jim@meyering.net>
52509
52510         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52511         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52512
52513 2005-03-21  Jim Meyering  <jim@meyering.net>
52514         and  Paul Eggert  <eggert@cs.ucla.edu>
52515
52516         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52517         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52518         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52519         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52520         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52521         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52522         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52523         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52524         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52525         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52526         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52527         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52528         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52529         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52530         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52531         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52532         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52533         for these modules.
52534
52535 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52536
52537         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52538         (which shouldn't happen), generate nothing instead of returning 0
52539         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52540
52541 2005-03-16  Bruno Haible  <bruno@clisp.org>
52542
52543         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52544         HAVE_LONGLONG_64BIT.
52545
52546 2005-03-16  Bruno Haible  <bruno@clisp.org>
52547
52548         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52549         HAVE_LONGLONG_64BIT.
52550
52551 2005-03-16  Bruno Haible  <bruno@clisp.org>
52552
52553         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52554         HAVE_LONGLONG_64BIT.
52555
52556 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52557
52558         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52559         reliably distinguish strftime failure from empty output on POSIX
52560         hosts.
52561
52562 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52565         (iconv_string): Don't guess a size-zero buffer, as that might cause
52566         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52567         result would be 'too large', where 'too large' is (heuristically)
52568         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52569         overflow concerns.  This will prevent some unwanted malloc failures
52570         when the inputs are very large.
52571
52572 2005-03-15  Karl Berry  <karl@gnu.org>
52573
52574         * config/srclist.txt (config.rpath): from gettext.
52575         * config/config.rpath: update.
52576
52577 2005-03-15  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52580         to 'negate'.
52581
52582         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52583         variable.
52584
52585         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52586         results.
52587
52588 2005-03-14  Simon Josefsson  <jas@extundo.com>
52589
52590         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52591         <fx@gnu.org>.
52592
52593 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52594
52595         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52596         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52597         intprops.h.
52598         * lib/strtol.c: Likewise.
52599
52600 2005-03-14  Jim Meyering  <jim@meyering.net>
52601
52602         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52603         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52604         to be nonzero so that we (and caller) can detect the difference
52605         between a valid zero-length expansion and an error return, even
52606         when the underlying strftime fails before writing anything into
52607         that location.
52608
52609 2005-03-14  Bruno Haible  <bruno@clisp.org>
52610
52611         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52612         Update from GNU gettext 0.14.3.
52613
52614 2005-03-10  Jim Meyering  <jim@meyering.net>
52615
52616         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52617
52618 2005-03-10  Jim Meyering  <jim@meyering.net>
52619
52620         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52621         so that this module works on systems without fchdir.
52622
52623 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52624
52625         Factor int-properties macros into a single file, except for
52626         glibc-related files.
52627         * lib/intprops.h: New file.
52628         * lib/getloadavg.c: Include it instead of limits.h.
52629         (INT_STRLEN_BOUND): Remove.
52630         * lib/human.c: Include intprops.h.
52631         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52632         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52633         302/1000.
52634         * lib/inttostr.h: Include intprops.h instead of limits.h.
52635         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52636         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52637         for consistency with intprops.h.
52638         (time_t_is_integer, twos_complement_arithmetic): Use them.
52639         * lib/sig2str.h: Include <signal.h>, intprops.h.
52640         (INT_STRLEN_BOUND): Remove.
52641         * lib/strftime.c (TYPE_SIGNED): Remove.
52642         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52643         * lib/strtol.c: Adjust comments to match intprops.h.
52644         * lib/userspec.c: Include intprops.h.
52645         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52646         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52647         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52648         instead of rolling our own expressions.
52649         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52650
52651         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52652         instead of int.
52653         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52654         the right thing even if adding 1900 would overflow.  Similarly
52655         for tm_mon + 1 and tm_yday + 1.
52656         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52657         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52658         (DO_SIGNED_NUMBER): New macro.
52659         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52660
52661 2005-03-07  Bruno Haible  <bruno@clisp.org>
52662
52663         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52664
52665 2005-03-07  Bruno Haible  <bruno@clisp.org>
52666
52667         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52668
52669 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52670
52671         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52672         (func_import): Only replace files via --import when they have actually
52673         changed.
52674
52675 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52676
52677         * m4/mmap-anon.m4: New file.
52678         * m4/pagealign_alloc.m4: New file.
52679
52680 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52681             Bruno Haible  <bruno@clisp.org>
52682
52683         * modules/pagealign_alloc: New file.
52684         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52685
52686 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52687             Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/pagealign_alloc.h: New file.
52690         * lib/pagealign_alloc.c: New file.
52691
52692 2005-03-03  Bruno Haible  <bruno@clisp.org>
52693
52694         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52695         Use an all-permissive copyright notice, recommended by RMS.
52696
52697 2005-03-02  Bruno Haible  <bruno@clisp.org>
52698
52699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52700         of AIX, the replacement has to be done only after <string.h> is
52701         included, therefore not in config.h. stpncpy.h does the replacement,
52702         and stpncpy.c uses it.
52703
52704 2005-03-02  Bruno Haible  <bruno@clisp.org>
52705
52706         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52707         stpncpy.c uses it.
52708
52709 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52710
52711         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52712         The workaround isn't strictly needed for POSIX conformance, and
52713         it's too much of a pain to configure and maintain.  We'll ask
52714         people to fix their kernels instead.
52715         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52716         (NANOSLEEP_BUG_WORKAROUND): Remove.
52717         (xnanosleep): Remove the workaround.
52718
52719 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52720
52721         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52722         Reported by Derek Price.
52723         (Include): Add "timespec.h".
52724
52725         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52726
52727 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52728
52729         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52730         to detect nanosleep bug.
52731
52732 2005-03-01  Bruno Haible  <bruno@clisp.org>
52733
52734         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52735
52736 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * modules/gethrxtime: New file.
52739         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52740         (Depends-on): Add gethrxtime.
52741         (configure.ac): Add gl_XNANOSLEEP.
52742         (Makefile.am): Remove lib_SOURCES line.
52743
52744 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52745
52746         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52747         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52748
52749 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52750
52751         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52752         * lib/timespec.h (gettime): Return void, since it always
52753         succeeds now.  All uses changed.
52754         * lib/gettime.c (gettime) Likewise.
52755         [HAVE_NANOTIME]: Prefer nanotime.
52756         Assume gettimeofday succeeds, as POSIX requires.
52757         Assime time () succeeds, since other code already does.
52758         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52759         (timespec_subtract): Remove.
52760         (NANOSLEEP_BUG_WORKAROUND): New constant.
52761         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52762         things considerably.  Use it only on GNU/Linux hosts, since the
52763         workaround shouldn't be needed elsewhere.
52764
52765 2005-02-24  Bruno Haible  <bruno@clisp.org>
52766
52767         * modules/gettext (Files): Add m4/glibc2.m4.
52768
52769 2005-02-24  Bruno Haible  <bruno@clisp.org>
52770
52771         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52772         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52773         * m4/progtest.m4:
52774         Update from GNU gettext 0.14.2.
52775         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52776
52777 2005-02-24  Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52780         * lib/config.charset: Update from GNU gettext 0.14.2.
52781
52782 2005-02-24  Bruno Haible  <bruno@clisp.org>
52783
52784         * lib/gettext.h: Update from GNU gettext 0.14.2.
52785
52786 2005-02-23  Simon Josefsson  <jas@extundo.com>
52787
52788         * m4/iconvme.m4: New file.
52789
52790 2005-02-23  Jim Meyering  <jim@meyering.net>
52791
52792         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52793         change.
52794         Thanks to Bruno Haible for catching it.
52795
52796 2005-02-22  Simon Josefsson  <jas@extundo.com>
52797
52798         * modules/iconvme: New file.
52799
52800         * MODULES.html.sh: Add iconvme.
52801
52802 2005-02-22  Simon Josefsson  <jas@extundo.com>
52803
52804         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52805
52806 2005-02-22  Simon Josefsson  <jas@extundo.com>
52807
52808         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52809
52810 2005-02-22  Jim Meyering  <jim@meyering.net>
52811
52812         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52813         s/ifndef/ifdef/.
52814
52815 2005-02-20  Neil Conway  <neilc@samurai.com>
52816
52817         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52818         returned by OSX/Darwin if the specified buffer is not large
52819         enough for the hostname.
52820
52821 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52822
52823         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52824         pass it to _help, otherwise the latter coredumps trying to
52825         dereference state.root_argp.
52826
52827 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52828
52829         * modules/chdir-long (Depends-on): Add memrchr.
52830         * modules/memrchr (Files): Add lib/memrchr.h.
52831         (Include): "memrchr.h".
52832
52833 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52834
52835         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52836
52837 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52838
52839         * lib/memrchr.h: New file.
52840         * lib/chdir-long.c: Include it.
52841         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52842         Don't bother including stddef.h.
52843
52844 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52845
52846         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52847         inclusion.
52848         Include <sys/types.h>, for dev_t.
52849         (ME_DUMMY, ME_REMOTE): Move from here....
52850         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52851         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52852         Dmitry V. Levin.
52853         Include mountlist.h first, to test the interface.
52854
52855 2005-01-29  Bruno Haible  <bruno@clisp.org>
52856
52857         * lib/progname.c (program_name): Initialize.
52858         Needed when linking statically on MacOS X.
52859
52860 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52861
52862         Sync from coreutils.
52863         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52864         (Depends-on): Add c-strtod.
52865         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52866
52867 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52868
52869         Sync from coreutils.
52870         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52871
52872         Remove files that are specific to coreutils.
52873         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52874
52875 2005-01-28  Bruno Haible  <bruno@clisp.org>
52876
52877         * modules/javacomp: New file.
52878         * MODULES.html.sh (Java): Add javacomp.
52879
52880 2005-01-28  Bruno Haible  <bruno@clisp.org>
52881
52882         * m4/javacomp.m4: New file, from GNU gettext.
52883
52884 2005-01-28  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/javacomp.sh.in: New file, from GNU gettext.
52887         * lib/javacomp.h: New file, from GNU gettext.
52888         * lib/javacomp.c: New file, from GNU gettext.
52889
52890 2005-01-26  Simon Josefsson  <jas@extundo.com>
52891
52892         * lib/gai_strerror.c: Use GPL in header.
52893
52894 2005-01-26  Bruno Haible  <bruno@clisp.org>
52895
52896         * modules/javaexec: New file.
52897         * MODULES.html.sh (Java): Add javaexec.
52898
52899 2005-01-26  Bruno Haible  <bruno@clisp.org>
52900
52901         * m4/javaexec.m4: New file, from GNU gettext.
52902
52903 2005-01-26  Bruno Haible  <bruno@clisp.org>
52904
52905         * lib/javaexec.sh.in: New file, from GNU gettext.
52906         * lib/javaexec.h: New file, from GNU gettext.
52907         * lib/javaexec.c: New file, from GNU gettext.
52908
52909 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52910
52911         * modules/lchown (Depends-on): Remove lchown.h
52912
52913 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52914
52915         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52916         must be defined if the header file was not found, in order
52917         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52918
52919 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52920
52921         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52922         initializers for struct pentry_state.
52923         (__argp_error): Check return value of __asprintf
52924         (__argp_failure): Translate error message
52925
52926         * lib/argp-parse.c: Removed braces around the expansion of N_()
52927
52928 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52929
52930         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52931         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52932         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52933         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52934         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52935         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52936         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52937         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52938         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52939         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52940         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52941         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52942         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52943         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52944         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52945         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52946         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52947         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52948         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52949         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52950         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52951         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52952         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52953         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52954         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52955         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52956         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52957         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52958         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52959         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52960         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52961         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52962         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52963         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52964         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52965         Use an all-permissive copyright notice, recommended by RMS.
52966
52967 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52968
52969         * modules/chdir-long (Depends-on): Remove mempcpy.
52970
52971 2005-01-21  Jim Meyering  <jim@meyering.net>
52972
52973         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52974         same value as for Solaris 9.
52975
52976         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52977         component length.  This included changing the parameter to be
52978         of type `char *' rather than `char const *'.
52979         * lib/chdir-long.h (chdir_long): Update prototype.
52980
52981         * lib/openat.c (fdopendir, fstatat): New functions.
52982         * lib/openat.h: Include headers required for use of DIR and struct
52983         stat.
52984         [AT_SYMLINK_NOFOLLOW]: Define.
52985         (fdopendir, fstatat): Add prototypes.
52986
52987 2005-01-21  Bruno Haible  <bruno@clisp.org>
52988
52989         * modules/classpath: New file.
52990         * MODULES.html.sh (Java): Add classpath.
52991
52992 2005-01-21  Bruno Haible  <bruno@clisp.org>
52993
52994         * lib/classpath.h: New file, from GNU gettext.
52995         * lib/classpath.c: New file, from GNU gettext.
52996
52997 2005-01-20  Simon Josefsson  <jas@extundo.com>
52998
52999         * modules/version-etc-fsf: New file.
53000
53001 2005-01-20  Simon Josefsson  <jas@extundo.com>
53002
53003         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53004         * lib/version-etc.c: Remove version_etc_copyright.
53005         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53006         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53007
53008 2005-01-20  Simon Josefsson  <jas@extundo.com>
53009
53010         * lib/base64.h (isbase64): Add.
53011
53012         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53013         using a unsigned prototype, don't inline.
53014         (base64_decode): Use it.
53015
53016 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53017
53018         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53019         it.
53020
53021 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53022
53023         * lib/save-cwd.c (save_cwd): Remove code to support the case
53024         where fchdir is missing or flaky.
53025
53026 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53027
53028         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53029
53030 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53031
53032         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53033         AC_LIBSOURCES now does this.
53034         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53035         with new ullong_max module.
53036
53037 2005-01-19  Bruno Haible  <bruno@clisp.org>
53038
53039         * modules/sh-quote: New file.
53040         * MODULES.html.sh (Executing programs): Add sh-quote.
53041
53042 2005-01-19  Bruno Haible  <bruno@clisp.org>
53043
53044         * lib/sh-quote.h: New file, from GNU gettext.
53045         * lib/sh-quote.c: New file, from GNU gettext.
53046
53047 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53048
53049         Merge from coreutils.
53050         * m4/ullong_max.m4: New file.
53051         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53052         (gl_MACROS): Assume localeconv exists.
53053
53054 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53055
53056         Merge changes from coreutils, as described below in several
53057         changelogs dated today.
53058
53059         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53060         (O_DIRECTORY): Remove; not needed here, since "." must be
53061         a directory.  All uses removed.
53062         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53063         universal on Suns, and we also need to test for IRIX.
53064         Revamp code to use 'if' rather than '#if'.
53065         Avoid unnecessary comparison of cwd->desc to 0.
53066
53067         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53068         for known valid error numbers rather than observed invalid ones.
53069
53070 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53071
53072         * modules/ullong_max: New file.
53073
53074         * modules/chdir-long, modules/openat: New files.
53075         * modules/save-cwd (Depends-on): Depend on chdir-long.
53076         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53077
53078 2005-01-18  Jim Meyering  <jim@meyering.net>
53079
53080         Merge from coreutils.
53081         * m4/chdir-long.m4, m4/openat.m4: New files.
53082         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53083         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53084         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53085         is sane and DOES follow symlinks.  Besides, testing 20 different
53086         systems found no broken chown implementations.
53087         Prompted by a change in rsync's copy of this macro.
53088         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53089
53090         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53091
53092         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53093         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53094         NULL-means-set-to-current-time semantics.
53095         Remove temporary file immediately, rather than waiting
53096         for configure's at-exit trap code to do it.
53097
53098 2005-01-18  Jim Meyering  <jim@meyering.net>
53099
53100         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53101
53102         * lib/utimens.c (futimens): Account for the fact that futimes
53103         can also fail with errno == ENOSYS or errno == ENOENT.
53104         Patch from Dmitry V. Levin.
53105
53106         Change the name of the robust chdir function from chdir to chdir_long.
53107         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53108         (restore_cwd): Use chdir_long, not chdir.
53109         * lib/chdir-long.c: Renamed from chdir.c.
53110         * lib/chdir-long.h: Renamed from chdir.h.
53111         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53112         Hurd.
53113
53114 2005-01-18  Bruno Haible  <bruno@clisp.org>
53115
53116         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53117         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53118         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53119         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53120         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53121         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53122         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53123         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53124         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53125         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53126         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53127         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53128         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53129         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53130         Use an all-permissive copyright notice, recommended by RMS.
53131
53132 2005-01-18  Bob Proulx  <bob@proulx.com>
53133
53134         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53135         simplify offsetof() macro construct to avoid compile failure with
53136         native HP-UX 11.0 ANSI C compiler.
53137
53138 2005-01-17  Bruno Haible  <bruno@clisp.org>
53139
53140         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53141         redundant because stpncpy.m4 takes care of it.
53142
53143 2005-01-17  Bruno Haible  <bruno@clisp.org>
53144
53145         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53146
53147 2005-01-17  Bruno Haible  <bruno@clisp.org>
53148
53149         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53150         used.
53151
53152 2005-01-17  Bruno Haible  <bruno@clisp.org>
53153
53154         * lib/fwriteerror.h (fwriteerror): Change specification to include
53155         fclose.
53156         * lib/fwriteerror.c: Include <stdbool.h>.
53157         (fwriteerror): At the end, close the file stream. Record whether
53158         stdout was already closed.
53159
53160 2005-01-17  Bruno Haible  <bruno@clisp.org>
53161
53162         * lib/execute.c (environ): Declare if needed.
53163         * lib/pipe.c (environ): Likewise.
53164         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53165
53166 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53167
53168         * modules/argp: Depend on vsnprintf
53169
53170 2005-01-10  Jim Meyering  <jim@meyering.net>
53171
53172         * modules/closeout (Depends-on): Add atexit.
53173
53174 2005-01-06  Bruno Haible  <bruno@clisp.org>
53175
53176         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53177
53178 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53179
53180         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53181         definitions to be after all include files, to avoid collisions.
53182         Problem reported by Bob Proulx.
53183
53184 2005-01-04  Jim Meyering  <jim@meyering.net>
53185
53186         Changes imported from coreutils.
53187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53188         as the mkstemp template, use a temporary directory and an
53189         8.3-friendly template to avoid trouble on systems like DJGPP.
53190         Reported by Juan M. Guerrero via Stepan Kasal.
53191         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53192         close. Remove the temporary directory right away, rather than waiting
53193         for configure's at-exit trap code to do it.
53194         Suggestion from Stepan Kasal.
53195
53196 2005-01-01  Simon Josefsson  <jas@extundo.com>
53197
53198         * gnulib-tool: Print #include directives when --import'ing.
53199
53200 2004-12-28  Simon Josefsson  <jas@extundo.com>
53201
53202         * tests/test-base64.c: Include required header files.  Remove
53203         unused variables.
53204
53205 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53206
53207         * modules/error (Depends-on): Remove gettext.
53208
53209 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53210
53211         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53212         not needed.  This removes a dependency on the gettext module.
53213         [defined _LIBC]: Do not include <libintl.h>; not needed.
53214
53215 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53216
53217         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53218         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53219
53220 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53221
53222         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53223         HAVE_DECL_STRTOLD.
53224
53225 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53226
53227         * modules/getdate (Depends-on): Remove alloca-opt.
53228
53229 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53230
53231         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53232
53233 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53234
53235         * lib/argp-parse.c: Include <stddef.h>.
53236         (alignof, alignto): New macros.
53237         (parser_init): Don't assume that void * is aligned sufficiently
53238         for struct option.
53239
53240         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53241         need to extend the stack.
53242         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53243         large.
53244
53245 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53246
53247         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53248
53249 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53250
53251         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53252         (2004-10-24) change.  Apparently this was a false alarm.
53253
53254         * modules/getdate: Depend on alloca-opt, not alloca.
53255
53256 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53259         Remove now-obsolete comment about AIX.
53260         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53261         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53262         (YYMAXDEPTH): New macro.
53263
53264 2004-12-18  Simon Josefsson  <jas@extundo.com>
53265
53266         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53267
53268 2004-12-18  Bruno Haible  <bruno@clisp.org>
53269
53270         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53271
53272 2004-12-18  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/fatal-signal.c (fatal_signals): Make non-const.
53275         (init_fatal_signals): New function.
53276         (uninstall_handlers, install_handlers): Ignore signals that were set to
53277         SIG_IGN.
53278         (at_fatal_signal): Call init_fatal_signals.
53279         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53280         SIG_IGN.
53281         Reported by Paul Eggert.
53282
53283 2004-12-18  Bruno Haible  <bruno@clisp.org>
53284
53285         * doc/alloca.texi: New file.
53286         * doc/alloca-opt.texi: New file.
53287
53288 2004-12-17  Jim Meyering  <jim@meyering.net>
53289
53290         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53291         Otherwise, install-sh could exit with improper exit status when
53292         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53293
53294 2004-12-16  Simon Josefsson  <jas@extundo.com>
53295
53296         * tests/test-base64.c: Add license.
53297
53298 2004-12-15  Stepan Kasal  <address@hidden>
53299
53300         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53301
53302 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53303
53304         * modules/getcwd (Files): Add m4/d-ino.m4.
53305         Suggested by Mark D. Baushke.
53306
53307 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53308
53309         * lib/getdate.y (textint): New member "negative".
53310         (time_zone_hhmm): New function.
53311         Expect 14 shift-reduce conflicts, not 13.
53312         (o_colon_minutes): New rule.
53313         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53314         (yylex): Set the "negative" member of signed numbers.
53315
53316 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53317
53318         * doc/getdate.texi (Time of day items, Time zone items):
53319         Describe new formats +00:00, UTC+00:00.
53320
53321 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53322
53323         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53324         spurious "-l"s.  Problem reported by Stepan Kasal.
53325
53326 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53327
53328         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53329         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53330
53331 2004-12-04  Simon Josefsson  <jas@extundo.com>
53332
53333         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53334         Vandoorselaere <yoann@prelude-ids.org>.
53335
53336 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53337
53338         Changes imported from coreutils.
53339         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53340         exist.
53341         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53342
53343 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         Changes imported from coreutils.
53346         * lib/hard-locale.c: Assume <locale.h> exists.
53347         Include "strdup.h".
53348         (GLIBC_VERSION): New macro.
53349         (hard_locale): Assume setlocale exists.
53350         Rewrite to avoid #ifdef.
53351         Use strdup rather than malloc + strcpy.
53352         * lib/human.c: Assume <locale.h> exists.
53353         (human_readable): Assume localeconv exists.
53354
53355 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53356
53357         * modules/hard-locale (Depends-on): Add strdup.
53358
53359 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53360
53361         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53362         convert T2, not T.  (Imported from libc.)
53363
53364 2004-11-30  Simon Josefsson  <jas@extundo.com>
53365
53366         * modules/restrict (License): Change to LGPL.
53367
53368 2004-11-30  Simon Josefsson  <jas@extundo.com>
53369
53370         * m4/restrict.m4: Add copyright and copying conditions.
53371
53372 2004-11-30  Simon Josefsson  <jas@extundo.com>
53373
53374         * m4/base64.m4: New file.
53375
53376 2004-11-30  Simon Josefsson  <jas@extundo.com>
53377
53378         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53379         base64.
53380
53381         * tests/test-base64.c: New file.
53382
53383         * modules/base64: New file.
53384
53385 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53386
53387         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53388         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53389
53390         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53391
53392 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53393
53394         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53395         (__getcwd.c): Don't restore errno; glibc doesn't.
53396         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53397         first, falling back to our code only if its results look suspicious.
53398         Ensure that the resulting buffer is only as large as necessary.
53399
53400         * lib/readutmp.c: Include readutmp.h first.
53401         Include <errno.h>, since readutmp.h no longer does that.
53402         * lib/readutmp.h: Don't include <errno.h>,
53403         <sys/param.h>, <time.h>; not needed to establish interface.
53404         (errno): Remove decl.
53405         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53406         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53407         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53408
53409 2004-11-28  Simon Josefsson  <jas@extundo.com>
53410
53411         * lib/base64.h, base64.c: New file.
53412
53413 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53414
53415         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53416
53417 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53418
53419         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53420         (Depends-on): Remove pathmax, same.  Add mempcpy.
53421         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53422         (Makefile.am): Append getcwd.h to lib_SOURCES.
53423         (Include): Add getcwd.h.
53424         (Maintainer): Change from Jim Meyering to "all, glibc",
53425         since getdate now uses intended-for-glibc code.
53426         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53427         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53428
53429 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53430
53431         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53432         HP's ANSI C compiler.
53433         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53434         Declaring int functions causes warnings on some modern systems and
53435         shouldn't be needed to compile on ancient ones.
53436         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53437         defined.
53438
53439         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53440         with the following changes.
53441         (__set_errno): Parenthesize properly.
53442         Include <stdbool.h>.
53443         (MIN, MAX, MATCHING_INO): New macros.
53444         (__getcwd): Define with prototype, not K&R form.
53445         Use heuristics to allocate default buffer on stack if possible.
53446         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53447         behavior, and to avoid the PATH_MAX limit when computing
53448         ../../../../...
53449         Use MATCHING_INO to compare inode number to file.
53450         Check for arithmetic overflow in size calculations.
53451         Fix bug in reallocation of dot array that caused getcwd to fail
53452         on directories nested deeper than 75.
53453         Be more careful about saving errno on error.
53454         Do not use realloc; use only free+malloc, as this is a bit
53455         more flexible and avoids a needless copy operation.
53456         Do not inspect st_dev and st_ino for symbolic links; POSIX
53457         doesn't specify the latter.
53458         Check for closedir errors.
53459         Avoid needless casts.
53460         Use "#ifdef weak_alias" around weak_alias, to be like other
53461         glibc code.
53462         The following changes to getcwd.c have effect only when used in
53463         gnulib; they have no effect inside glibc proper.
53464         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53465         as alloca isn't used.
53466         (alloca, __alloca): Likewise.
53467         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53468         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53469         unconditionally, as gnulib assumes C89 or better.
53470         Do not include <sys/param.h>.
53471         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53472         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53473         better.
53474         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53475         Include <dirent.h> in a way that is compatible with modern Autoconf.
53476         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53477         New macros, if not already defined.
53478         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53479         Use "_LIBC", not "defined _LIBC", for consistency.
53480         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53481         a mempcpy module.
53482         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53483         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53484         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53485         credit only to Jim Meyering and adjust the copyright dates.
53486         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53487         <stdlib.h>, <unistd.h>, "pathmax.h".
53488         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53489         (INITIAL_BUFFER_SIZE): Remove.
53490         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53491
53492 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53493
53494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53495         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53496         Use the _ONCE methods, for efficiency.
53497         Check for fcntl.h.  In test program, include <errno.h>
53498         and <fcntl.h> if available.  Remove old K&R cruft from
53499         test program.  Check for common errors in GNU/Linux,
53500         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53501         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53502         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53503         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53504         name accordingly.
53505         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53506         accommodate new getcwd.c.
53507         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53508         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53509         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53510         that's all we need now.
53511
53512 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53513
53514         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53515         argp-parse.c depends on getopt internals, that means we should
53516         always use our getopt, to be on the safe side.
53517         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53518         order not to spoil the result of an eventual previous invocation
53519         of gl_GETOPT_SUBSTITUTE.
53520
53521 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53522
53523         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53524         redefinition warnings. To avoid them, include the defines
53525         in `#if !defined __need_getopt ... #endif'. The only place
53526         where __getopt_argv_const is used is in definitions
53527         of getopt_long and getopt_long_only below, which are as well
53528         protected by `#ifndef __need_getopt'.
53529         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53530         __need_getopt after including <stdio.h> and <unistd.h> These
53531         headers might have defined it.
53532
53533 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53536
53537 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53538
53539         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53540         (futimens): New function, which uses futimes if available.
53541         (futimens, utimens): Support timespec==NULL, with same semantics
53542         as utime and utimens.
53543         * lib/utimens.h (futimens): New decl.
53544
53545 2004-11-23  Jim Meyering  <jim@meyering.net>
53546
53547         * lib/getopt_.h: Remove trailing blanks.
53548
53549 2004-11-23  Jim Meyering  <jim@meyering.net>
53550
53551         * lib/__fpending.c: Add comment.
53552
53553 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53554
53555         * modules/canonicalize (Depends-on): Add xreadlink.
53556         Problem reported by James Youngman.
53557
53558 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53559
53560         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53561         New macros.
53562         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53563         optopt): Use them instead of invoking ## directly; otherwise, the
53564         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53565
53566 2004-11-19  Bruno Haible  <bruno@clisp.org>
53567
53568         * lib/strtok_r.c: Move comments from here...
53569         * lib/strtok_r.h: ... to here.
53570
53571 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53574         implementations that mishandle size_t overflow.
53575
53576 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53577
53578         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53579         might fail.  Problem reported by Yoann Vandoorselaere.
53580         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53581         implementations that mishandle size_t overflow.
53582
53583 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53584
53585         * modules/canon-host (Depends-on): Add strdup.
53586
53587 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53590
53591 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         * lib/canon-host.c: Include "strdup.h".
53594         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53595         Use strdup instead of malloc/strcpy to duplicate strings.
53596
53597         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53598         (human_space_before_unit): New constant.
53599         * lib/human.c (human_readable): Support it.
53600
53601         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53602         (xgetcwd): Set errno correctly when failing.
53603         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53604         the failure is actually due to a PATH_MAX problem.
53605
53606         Further getopt changes to make it more likely that glibc will
53607         buy the changes back.
53608         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53609         (getopt): Use it, so to preserve glibc semantic
53610         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53611         when compiling for libc.
53612         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53613         (getopt_long, getopt_long_only): Use it.
53614
53615         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53616         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53617         (getopt): Argv is now char * const *, as per standard.
53618         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53619         not char *__getopt_argv_const *.
53620         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53621         _getopt_long_only_r): Likewise.
53622         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53623         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53624         _getopt_long_r, _getopt_long_only_r): Likewise.
53625         * lib/getopt_.h (__getopt_argv_const): Remove.
53626         (getopt): Argv is now char * const *, as per standard.
53627
53628         * lib/getdate.y (tORDINAL): New token.
53629         (day, relunit): Allow it for relative times.
53630         (relative_time_table): Use tORDINAL for ordinals.
53631
53632 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53633
53634         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53635         Document that "second" isn't allowed as an ordinal number.
53636
53637 2004-11-16  Jim Meyering  <jim@meyering.net>
53638
53639         * modules/closeout (Depends-on): Add fpending.
53640
53641 2004-11-15  Jim Meyering  <jim@meyering.net>
53642
53643         * lib/closeout.c: Include "__fpending.h" once again.
53644         Include <stdbool.h>.
53645         (close_stdout): Don't fail just because stdout was closed initially,
53646         since some programs don't write to stdout in the normal course of
53647         operation (other than --version and --help), and we don't want this
53648         function to make e.g. `touch file >&-' fail.
53649         But do fail if it was closed and someone has tried to write to it.
53650         E.g., `printf foo >&-' must fail.
53651
53652 2004-11-13  Jim Meyering  <jim@meyering.net>
53653
53654         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53655
53656 2004-11-12  Simon Josefsson  <jas@extundo.com>
53657
53658         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53659         small doc fix is still pending.
53660
53661 2004-11-11  Simon Josefsson  <jas@extundo.com>
53662
53663         * modules/strtok_r: New file.
53664
53665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53666         strtok_r.
53667
53668 2004-11-11  Simon Josefsson  <jas@extundo.com>
53669
53670         * m4/strtok_r.m4: New file.
53671
53672         * m4/getopt.m4: Replace opterr.
53673
53674 2004-11-11  Simon Josefsson  <jas@extundo.com>
53675
53676         * lib/strtok_r.h, strtok_r.c: New file.
53677
53678 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53681         of replacing opterr, getopt, etc.  This should handle the
53682         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53683
53684 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53685
53686         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53687         we can stop lying to compilers about the constness of argv when we
53688         are compiled outside glibc.
53689         (getopt, getopt_long, getopt_long_only): Use it.
53690         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53691         _getopt_internal, getopt): Likewise.
53692         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53693         _getopt_long_only_r): Likewise.
53694         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53695         _getopt_long_r, _getopt_long_only_r): Likewise.
53696
53697         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53698         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53699         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53700         the other external symbols.
53701         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53702         declaration, since the above renaming now works around collisions.
53703
53704 2004-11-11  Jim Meyering  <jim@meyering.net>
53705
53706         * lib/linebreak.c: Remove trailing blanks.
53707         * lib/alloca_.h: Likewise.
53708         * lib/acosl.c: Likewise.
53709         * lib/euidaccess.c: Likewise.
53710         * lib/allocsa.h: Likewise.
53711
53712 2004-11-10  Simon Josefsson  <jas@extundo.com>
53713
53714         * m4/getaddrinfo.m4: New file.
53715
53716 2004-11-10  Simon Josefsson  <jas@extundo.com>
53717
53718         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53719
53720 2004-11-10  Simon Josefsson  <jas@extundo.com>
53721
53722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53723         getaddrinfo.
53724
53725         * modules/getaddrinfo: New file.
53726
53727 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53728
53729         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53730
53731 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53732
53733         * lib/mktime.c (SHR): New macro, which is a portable
53734         substitute for >> that should work even on Crays.
53735         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53736         Problem reported by Mark D. Baushke in
53737         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53738         * lib/getdate.y (SHR): Likewise.
53739         (tm_diff): Use it.
53740         * lib/strftime.c (SHR): Likewise.
53741         (tm_diff): Use it.
53742         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53743         quote_these_too, so that right shifts are well defined.  All uses
53744         changed.
53745
53746 2004-11-10  Jim Meyering  <jim@meyering.net>
53747
53748         Ensure that no close failure goes unreported.
53749         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53750         return early when it seems there's nothing to flush.
53751         Don't include __fpending.h.
53752
53753 2004-11-10  Jim Meyering  <jim@meyering.net>
53754
53755         * modules/closeout (Depends-on): Remove fpending.
53756
53757 2004-11-10  Jim Meyering  <jim@meyering.net>
53758
53759         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53760
53761 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53764         gl_FUNC_STRFTIME.
53765         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53766         and AC_REQUIRE when possible, to avoid duplicate checks.
53767         Check for <wchar.h>.
53768
53769 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53770
53771         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53772
53773 2004-11-09  Bruno Haible  <bruno@clisp.org>
53774
53775         * m4/sockpfaf.m4: New file.
53776
53777 2004-11-05  Bruno Haible  <bruno@clisp.org>
53778
53779         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53780         Reported by Mark D. Baushke <mdb@cvshome.org>.
53781
53782 2004-11-04  Bruno Haible  <bruno@clisp.org>
53783
53784         2004-09-11  Bruno Haible  <bruno@clisp.org>
53785                 * allocsa.valgrind: New file.
53786         2004-02-06  Bruno Haible  <bruno@clisp.org>
53787                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53788                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53789                 Reported by Christopher Seip <chris.seip@hp.com>.
53790
53791 2004-11-04  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53794         (Makefile.am): Distribute it.
53795
53796 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53797
53798         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53799         with errno == ERANGE if the buffer is too small.
53800         Problem reported by Mark D. Baushke.
53801
53802 2004-11-03  Albert Chin  <china@thewrittenword.com>
53803             Paul Eggert  <eggert@cs.ucla.edu>
53804
53805         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53806         equivalent, substitute $ac_type for equivalent type rather than
53807         blindly using uint32_t *always* which won't work if uint32_t is not
53808         available.  Define _UINT32_T to work around typedef of uint32_t if
53809         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53810         2.5.1.
53811
53812 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53813
53814         * m4/jm-macros.m4: Sync from coreutils.
53815         (gl_MACROS): Check for mbrlen, for pathchk.
53816         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53817
53818 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53819
53820         * lib/xreadlink.c (MAXSIZE): New macro.
53821         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53822         size does not exceed MAXSIZE.  Avoid cast.
53823         As suggested by Mark D. Baushke in
53824         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53825         if readlink fails with buffer size just under MAXSIZE, try again
53826         with MAXSIZE.
53827
53828 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53829
53830         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53831
53832 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53833         and  Paul Eggert  <eggert@cs.ucla.edu>
53834
53835         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53836         (get_date): Overparenthesize to avoid GCC warning.
53837
53838 2004-11-02  Bruno Haible  <bruno@clisp.org>
53839
53840         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53841         returns void.
53842
53843 2004-11-02  Bruno Haible  <bruno@clisp.org>
53844
53845         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53846         function returns void.
53847
53848 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53849
53850         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53851         fflush_unlocked, flockfile, funlockfile, funlockfile,
53852         fputs_unlocked, putc_unlocked.
53853
53854 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53857         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53858         already declared.
53859
53860 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         * modules/getdate (Files): Add doc/getdate.texi.
53863         (Depends-on): Add setenv, xalloc.
53864
53865 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53866
53867         * lib/getdate.y: Add support for TZ="foo" within a date string.
53868         Fix some bugs near time_t boundaries.  Reject dates with
53869         out-of-range components, e.g., "Sept 31".
53870         Include <stdlib.h>, "setenv.h", "xalloc.h".
53871         (ISDIGIT_LOCALE): Remove; unused.
53872         Note that the TZ and time functions used here are not reentrant.
53873         (mktime_ok, get_tz): New functions.
53874         (TZBUFSIZE): New constant.
53875         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53876         This requires that we sometimes generate our own TZ="XXX..." setting.
53877
53878 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53879
53880         * doc/getdate.texi: New file, from coreutils with modifications for
53881         the new TZ parsing.
53882
53883 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53884
53885         * lib/mktime.c (not_equal_tm): Remove redundant check.
53886
53887 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53888
53889         * modules/regex (lib_SOURCES): Add regex.c.
53890         Reported by James Youngman in
53891         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53892
53893 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53894
53895         * lib/getdate.y: Use Bison 1.875 features, and some minor
53896         code cleanups.  This change does not affect semantics.
53897         Don't include <stdlib.h>; no longer needed.
53898         Don't include unlocked-io.h; only the "#if TEST" code uses
53899         stdio, and performance isn't crucial there.
53900         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53901         Bison 1.875 features as described below.
53902         All uses of "PC." replaced by "pc->".
53903         (YYSTYPE): Add a forward declaration.
53904         (yylex, yyerror): Use full prototypes in forward decls.
53905         Use "%pure-parser" rather than obsolescent "%pure_parser".
53906         Use %parse-param and %lex-param instead of obsolescent
53907         YYPARSE_PARAM and YYLEX_PARAM.
53908         (meridian_table, month_and_day_table, time_units_table,
53909         relative_time_table, time_zone_table, military_table,
53910         lookup_zone, lookup_word, get_date):
53911         Use NULL instead of 0 where appropriate.
53912         (to_hour): Avoid abort (), to avoid a dependency on
53913         stdlib.h.
53914         (yyerror, yylex): Now accepts parser_control * arg.
53915         (main) [TEST]: Use '\0' rather than 0 for char.
53916
53917 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53918
53919         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53920
53921 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53922
53923         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53924         It's now the caller's responsibility to handle the case where
53925         !HAVE_GETPAGESIZE && !defined getpagesize.
53926
53927         * lib/mktime.c (leapyear): Arg is long int, not int.
53928
53929 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53930
53931         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53932
53933 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53934
53935         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53936         missing.  Problem reported by James Youngman.
53937
53938 2004-10-16  Simon Josefsson  <jas@extundo.com>
53939
53940         * gnulib-tool: Fix comments.  Fix parse problem.
53941         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53942
53943 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53944
53945         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53946         implementation of getopt_long.  Problem reported by Alexander Taler in:
53947         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53948
53949 2004-10-15  Bruno Haible  <bruno@clisp.org>
53950
53951         * gnulib-tool: Untabify. Initialize supplied_libname.
53952         (func_usage): More homogenous output.
53953         (func_modules_transitive_closure, func_modules_to_filelist,
53954         func_emit_lib_Makefile_am): New functions.
53955         (func_import): New function, extracted from big case statement. Use
53956         func_get_license, func_modules_transitive_closure,
53957         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53958         opt_lgpl. Don't use test -a, as it's not portable.
53959         (func_create_testdir): Use func_modules_transitive_closure,
53960         func_modules_to_filelist, func_emit_lib_Makefile_am.
53961
53962 2004-10-15  Bruno Haible  <bruno@clisp.org>
53963
53964         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53965
53966 2004-10-15  Bruno Haible  <bruno@clisp.org>
53967
53968         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53969         the portions belonging to each module.
53970         Suggested by Derek Robert Price <derek@ximbiot.com>.
53971
53972 2004-10-12  Simon Josefsson  <jas@extundo.com>
53973
53974         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53975         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53976         to real functions.
53977
53978 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53979
53980         * modules/vsnprintf: New file.
53981
53982 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53983
53984         * m4/vsnprintf.m4: New file.
53985
53986 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53987
53988         * lib/vsnprintf.h: New file.
53989         * lib/vsnprintf.c: New file.
53990
53991 2004-10-11  Bruno Haible  <bruno@clisp.org>
53992
53993         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53994         vsnprintf.
53995
53996 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53997
53998         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53999
54000 2004-10-07  Bruno Haible  <bruno@clisp.org>
54001
54002         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54003         fits into the provided buffer.
54004
54005 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54006
54007         * lib/diacrit.c, diacrit.h: Add GPL notice.
54008
54009         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54010         notice.
54011         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54012         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54013         This avoids a potential constant-folding bug.
54014
54015 2004-10-05  Bruno Haible  <bruno@clisp.org>
54016
54017         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54018         for the declaration of strsep.
54019
54020 2004-10-05  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54023
54024 2004-10-04  Simon Josefsson  <jas@extundo.com>
54025
54026         * modules/memmem: New file.
54027         * tests/test-memmem.c: New file.
54028         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54029
54030 2004-10-04  Simon Josefsson  <jas@extundo.com>
54031
54032         * m4/memmem.m4: New file.
54033
54034 2004-10-04  Simon Josefsson  <jas@extundo.com>
54035
54036         * lib/memmem.h: New file.
54037         * lib/memmem.c: New file, taken from glibc.
54038
54039 2004-10-04  Simon Josefsson  <jas@extundo.com>
54040
54041         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54042         '#ifdef USE_UNLOCKED_IO'.
54043
54044 2004-10-04  Simon Josefsson  <jas@extundo.com>
54045
54046         * config/srclist.txt: Add memmem from glibc.
54047
54048 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54049
54050         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54051
54052         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54053         modules/exclude, modules/getdate, modules/getline,
54054         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54055         modules/getusershell, modules/linebuffer, modules/md5,
54056         modules/mountlist, modules/posixtm, modules/readtokens,
54057         modules/readutmp, modules/regex, modules/sha1,
54058         modules/version-etc, modules/yesno:
54059         Remove dependency on unlocked-io.
54060
54061 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54062
54063         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54064
54065         * m4/unlocked-io.m4: Add copyright notice.
54066         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54067
54068 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54069
54070         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54071         * lib/xmalloc.c (xmemdup): Likewise.
54072         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54073         XFREE): Remove these long-obsolescent macros.
54074         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54075         * lib/xstrdup.c: Remove.
54076
54077         * lib/regex.c (re_comp): Cast gettext return value to char *,
54078         Problem reported by Martin Neitzel via Mark D. Baushke.
54079
54080 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54081
54082         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54083         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54084         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54085         regex.c, sha1.c, version-etc.c, yesno.c:
54086         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54087         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54088         the includer's responsibility.
54089
54090         Sync from coreutils.
54091
54092         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54093         points to the start of a string, as the C Standard says the
54094         resulting behavior is undefined.
54095
54096         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54097         simple -> simple_backups, numbered_existing ->
54098         numbered_existing_backups, numbered -> numbered_backups
54099         to avoid shadowing problems.  All uses changed.
54100         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54101         * lib/backupfile.c (check_extension, numbered_backup):
54102         Rename locals to avoid shadowing 'basename'.
54103         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54104         once.
54105
54106         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54107         * lib/.cvsignore: Add getopt.h.
54108
54109 2004-10-04  Bruno Haible  <bruno@clisp.org>
54110
54111         * modules/README: New file.
54112         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54113         not a module.
54114
54115 2004-10-02  Jim Meyering  <jim@meyering.net>
54116
54117         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54118
54119 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54120
54121         * modules/strsep: New file.
54122
54123 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54124
54125         * m4/strsep.m4: New file.
54126
54127 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54128
54129         * lib/strsep.h: New file.
54130         * lib/strsep.c: New file.
54131
54132 2004-10-01  Simon Josefsson  <jas@extundo.com>
54133
54134         * lib/snprintf.c (snprintf): Handle size==0.
54135
54136 2004-10-01  Simon Josefsson  <jas@extundo.com>
54137             Bruno Haible  <bruno@clisp.org>
54138
54139         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54140         (snprintf): Declare 'args'.
54141
54142 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * lib/snprintf.c: Remove comments as to why each header is needed.
54145
54146 2004-10-01  Bruno Haible  <bruno@clisp.org>
54147
54148         * MODULES.html.sh: Add strsep.
54149
54150 2004-09-30  Simon Josefsson  <jas@extundo.com>
54151
54152         * modules/snprintf: New file.
54153
54154 2004-09-30  Simon Josefsson  <jas@extundo.com>
54155
54156         * m4/snprintf.m4: New file.
54157
54158 2004-09-30  Simon Josefsson  <jas@extundo.com>
54159
54160         * lib/snprintf.h, lib/snprintf.c: New files.
54161
54162 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54163
54164         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54165         (hol_entry_help): Never translate an empty string.
54166         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54167         * lib/argp.h (OPTION_NO_TRANS): New option.
54168
54169 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54170
54171         * modules/argp (Maintainer): Replace Simon Josefsson
54172         by Sergey Poznyakoff.
54173
54174 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54175
54176         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54177         changes merged back into glibc.
54178
54179 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54180
54181         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54182
54183 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54184
54185         * lib/xvasprintf.c: Include xalloc.h.
54186         (xvasprintf): Use xalloc_die, not xmalloc_die.
54187
54188 2004-09-29  Bruno Haible  <bruno@clisp.org>
54189
54190         * modules/alloca-opt: New file, derived from modules/alloca.
54191         * modules/allocsa: Depend on alloca-opt instead of alloca.
54192         * modules/setenv: Likewise.
54193         * modules/vasnprintf: Likewise.
54194         * MODULES.html.sh: Add alloca-opt.
54195
54196 2004-09-28  Simon Josefsson  <jas@extundo.com>
54197
54198         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54199         LGPL, and to replace license template from GPL to LGPL.
54200
54201 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54202
54203         * modules/dummy: Change license to LGPL.
54204
54205 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54206
54207         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54208
54209 2004-09-24  Simon Josefsson  <jas@extundo.com>
54210
54211         * modules/minmax (License): Change from GPL to LGPL.
54212
54213 2004-09-23  Simon Josefsson  <jas@extundo.com>
54214
54215         * gnulib-tool (--import): Typo.
54216
54217 2004-09-23  Simon Josefsson  <jas@extundo.com>
54218
54219         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54220
54221 2004-09-22  Bruno Haible  <bruno@clisp.org>
54222
54223         * modules/*: Add 'License' field.
54224         * gnulib-tool: Accept --extract-license option.
54225         (func_get_license): New function.
54226
54227 2004-09-21  Bruno Haible  <bruno@clisp.org>
54228
54229         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54230         Reported by Simon Josefsson.
54231
54232 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54233
54234         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54235         gl_AC_TYPE_LONG_LONG.
54236
54237 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54238
54239         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54240
54241 2004-09-18  Simon Josefsson  <jas@extundo.com>
54242         and  Paul Eggert  <eggert@cs.ucla.edu>
54243
54244         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54245         calls with autoreconf.  Define GL_LIB.
54246
54247 2004-09-14  Karl Berry  <karl@gnu.org>
54248
54249         * config/srclist.txt: unsync setenv.c, sigh.
54250
54251 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54254         Problem reported by Bruno Haible in:
54255         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54256
54257 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * config/srclist.txt: Comment out argp-pvh.c.
54260
54261 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54264         in case some system header has #define'd it.  Problem reported by
54265         Soeren D. Schulze in
54266         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54267
54268 2004-09-09  Karl Berry  <karl@gnu.org>
54269
54270         * regex.[ch]: delete from the root.  These were supposed to be
54271                 synced with emacs cvs, but this has not happened for about
54272                 a year, and anyway nothing else uses emacs regex.[ch].
54273                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54274                 lib/regex[.ch] is untouched.
54275
54276 2004-09-09  Bruno Haible  <bruno@clisp.org>
54277
54278         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54279
54280 2004-09-09  Bruno Haible  <bruno@clisp.org>
54281
54282         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54283         modifications.
54284         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54285
54286 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54287
54288         * modules/xvasprintf: New file.
54289         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54290
54291 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54292
54293         * lib/xvasprintf.h: New file.
54294         * lib/xvasprintf.c: New file.
54295         * lib/xasprintf.c: New file.
54296
54297 2004-09-08  Bruno Haible  <bruno@clisp.org>
54298
54299         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54300
54301 2004-09-08  Bruno Haible  <bruno@clisp.org>
54302
54303         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54304         length is > INT_MAX.
54305         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54306         more.
54307
54308 2004-09-08  Bruno Haible  <bruno@clisp.org>
54309
54310         * lib/stdint_.h: New file, taken from GNU clisp.
54311
54312 2004-09-08  Bruno Haible  <bruno@clisp.org>
54313             Oskar Liljeblad  <oskar@osk.mine.nu>
54314
54315         * modules/stdint: New file.
54316         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54317
54318 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54319
54320         Import from coreutils.
54321         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54322         strings on unbounded length.  alloca's performance benefits aren't
54323         that important here.
54324         (V_STRDUP): Remove.
54325         (parse_with_separator): New function, with most of the internals
54326         of the old parse_user_spec.  Allow user to omit both user and group,
54327         for compatibility with FreeBSD.
54328         Clone only the user name, not the entire spec.
54329         Do not set *uid, *gid unless entirely successful.
54330         Avoid memory leak in some failing cases.
54331         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54332         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54333         (parse_user_spec): Rewrite to use parse_with_separator.
54334
54335 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54336
54337         * modules/userspec: Don't depend on alloca.
54338
54339 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54340
54341         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54342
54343 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54344
54345         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54346         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54347         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54348
54349 2004-08-16  Simon Josefsson  <jas@extundo.com>
54350
54351         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54352         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54353         Add --dry-run for --import.
54354         Let user provided command line parameters override configure.ac
54355         settings.
54356
54357 2004-08-12  Simon Josefsson  <jas@extundo.com>
54358
54359         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54360         as discussed with Paul Eggert in threads rooted at
54361         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54362         and
54363         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54364         Before, the test was empty, and relied on ELIDE_CODE in source
54365         code.)
54366         (gl_PREREQ_GETOPT): New macro.
54367         (gl_GETOPT): Use them.
54368
54369 2004-08-12  Simon Josefsson  <jas@extundo.com>
54370
54371         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54372         * lib/getopt_.h: Renamed from getopt.h.
54373
54374 2004-08-12  Simon Josefsson  <jas@extundo.com>
54375
54376         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54377         Change default library name from libfoo to libgnu.
54378         Now, if you have a configure.ac that says:
54379                 gl_SOURCE_BASE(gl)
54380                 gl_M4_BASE(gl/m4)
54381                 gl_MODULES(error getopt etcetera)
54382                 gl_INIT
54383         you can import all you need by running:
54384                 ../gnulib/gnulib-tool --import
54385
54386         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54387         (Makefile.am): Rewrite, use logic from argz.
54388         (Include): Use <getopt.h> instead of "getopt.h".
54389
54390 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54391
54392         * modules/argp (Files): Add m4/unlocked-io.m4.
54393         (Depends-on): Add extensions.
54394
54395 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54396
54397         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54398         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54399         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54400         Check for program_invocation_name, program_invocation_short_name,
54401         flockfile, funlockfile, features.h, _getopt_long_only_r.
54402
54403 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54404
54405         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54406         its complicated substitute.
54407         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54408         and program_invocation_name.
54409         (__argp_basename) [!_LIBC]: Remove; the only use was
54410         replaced by its body.
54411         (__argp_short_program_name): Change condition from
54412         !defined __argp_short_program_name to
54413         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54414         to match argp-namefrob.h.
54415         (__argp_failure): Don't assume strerror_r returns char *.
54416         * lib/argp-parse.c (N_): Define unconditionally.
54417         (argp_default_options): Fill out initializers with 0 to avoid
54418         gcc warnings.
54419
54420 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54421
54422         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54423         getopt1.c.
54424
54425 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54426
54427         Merge from coreutils.
54428
54429         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54430
54431         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54432         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54433
54434 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54435
54436         Merge from coreutils.
54437
54438         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54439         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54440         for Reliant Unix 5.43.
54441
54442         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54443         (union fooround): Use uintmax_t, not long int.
54444         The rest is a merge from libc:
54445         [defined _LIBC]: Include <shlib-compat.h>.
54446         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54447
54448         * lib/settime.c (settime): Recode to avoid warning with
54449         Sun Forte C 6U2.
54450
54451         * lib/strverscmp.c: Convert to UTF-8.
54452
54453 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54454
54455         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54456         m4/uintmax_t.m4.
54457
54458 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54459
54460         * modules/xalloc-die: New file.
54461         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54462
54463         * modules/md5 (Files): Add m4/uint32_t.m4.
54464         * modules/sha1: Renamed from modules/sha.
54465         (Files):
54466         Rename lib/sha.h to lib/sha1.h.
54467         Rename lib/sha.c to lib/sha1.c.
54468         Rename m4/sha.m4 to m4/sha1.m4.
54469         (lib_SOURCES): Likewise.
54470         (configure.ac): Rename gl_SHA to gl_SHA1.
54471         (Include): sha.h -> sha1.h.
54472
54473 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54474
54475         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54476         * m4/sha1.m4: Renamed from sha.m4.
54477         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54478
54479 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         * lib/obstack.h (obstack_empty_p):
54482         Don't assume that chunk->contents is suitably aligned.
54483         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54484         Likewise. Problem reported by Benno in
54485         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54486
54487         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54488         readable.  This could be improved further but it'd take some work.
54489
54490 2004-08-08  Simon Josefsson  <jas@extundo.com>
54491
54492         * modules/xgethostname (Depends-on): Remove exit and error (not
54493         used).
54494
54495         * modules/getpass-gnu: Add getpass.h.
54496         (Depends-on): Add stdbool.
54497         * modules/getpass: Add getpass.h.
54498
54499 2004-08-08  Simon Josefsson  <jas@extundo.com>
54500
54501         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54502         Check getpass declaration.
54503
54504 2004-08-08  Simon Josefsson  <jas@extundo.com>
54505
54506         * lib/xgethostname.c: Don't include error.h (not used).
54507
54508         * lib/getpass.h: Add.
54509         * lib/getpass.c: Include getpass.h first.
54510
54511 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         * lib/xalloc-die.c: New file.
54514         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54515         All uses removed.
54516         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54517         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54518         xalloc-die.c.
54519         (_, N_, xalloc_die): Move to xalloc-die.c.
54520         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54521         so that we needn't mess with xalloc_msg_memory_exhausted.
54522
54523         * lib/sha1.h: Renamed from sha.h.
54524         (SHA1_H): Renamed from _SHA_H.
54525         (sha1_ctx): Renamed from sha_ctx.
54526         (sha1_init_ctx): Renamed from sha_init_ctx.
54527         (sha1_process_block): Renamed from sha_process_block.
54528         (sha1_process_bytes): Renamed from sha_process_bytes.
54529         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54530         (sha1_read_ctx): Renamed from sha_read_ctx.
54531         (sha1_stream): Renamed from sha_stream.
54532         (sha1_buffer): Renamed from sha_buffer.
54533         * lib/sha1.c: Likewise; renamed from sha.c.
54534         Do not include <sys/types.h>.
54535         Include <stddef.h> rather than <stdlib.h>.
54536
54537 2004-08-08  Bruno Haible  <bruno@clisp.org>
54538
54539         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54540         FILESYSTEM_PREFIX_LEN.
54541         * lib/progreloc.c: Likewise.
54542         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54543
54544 2004-08-06  Simon Josefsson  <jas@extundo.com>
54545
54546         * modules/progname (Depends-on): Don't depend on stdbool.
54547
54548 2004-08-06  Simon Josefsson  <jas@extundo.com>
54549
54550         * modules/getsubopt: New file.
54551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54552         getsubopt.
54553
54554 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54555
54556         More merge from coreutils.
54557
54558         * m4/utimens.m4, m4/utimecmp.m4: New files.
54559         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54560         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54561         prereq.m4, sha.m4: Import changes from coreutils.
54562
54563 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         More merge from coreutils.
54566         * modules/raise, modules/readtokens0, modules/utimens:
54567         * modules/utimecmp, module/xnanosleep: New files.
54568         * modules/strftime: Add lib/strftime.h.
54569         Change include from <time.h> to "strftime.h".
54570         * modules/yesno: Add lib/yesno.h.
54571         * modules/backupfile: Remove lib/addext.c.
54572         * modules/euidaccess: Add stat-macros.h.
54573         * modules/canonicalize, modules/euidaccess,
54574         modules/filemode, modules/lchown, modules/makepath,
54575         modules/rmdir, modules/stat: Likewise.
54576
54577 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54578
54579         Merge from tar.
54580         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54581         SIZE_MAX is a valid preprocessor constant.
54582         (__argp_basename): Change from "#ifndef _LIBC"
54583         to "#ifndef __argp_short_program_name", so that
54584         we don't compile these functions for tar.
54585
54586         More merges from coreutils.
54587         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54588         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54589         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54590         * lib/addext.c: Remove; no longer needed.
54591         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54592         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54593         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54594         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54595         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54596         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54597         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54598         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54599         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54600         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54601         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54602         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54603         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54604         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54605         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54606         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54607         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54608         Import changes from coreutils.
54609
54610 2004-08-05  Simon Josefsson  <jas@extundo.com>
54611
54612         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54613
54614 2004-08-05  Simon Josefsson  <jas@extundo.com>
54615
54616         * m4/getsubopt.m4: New file.
54617
54618 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         Merge from coreutils.
54621
54622         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54623         * m4/getcwd-path-max.m4: New files.
54624
54625         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54626         FILESYSTEM_PREFIX_LEN ->
54627         FILE_SYSTEM_PREFIX_LEN.
54628         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54629         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54630         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54631         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54632
54633         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54634         prerequisite modules now handle the DOS stuff.
54635         Don't check for unistd.h.
54636
54637 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54638
54639         Merge from coreutils.
54640
54641         * lib/.gdb-history: Remove; this doesn't belong here.
54642
54643         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54644         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54645         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54646         * lib/getcwd.c: New files.
54647
54648         * lib/dirname.h: Include <stdbool.h>.
54649         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54650         for consistency with POSIX terminology.  All uses changed.
54651         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54652         (strip_trailing_slashes): Use bool for booleans.
54653         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54654
54655         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54656         sometimes returns a positive errno value even when it succeeds.
54657         (print_errno_message) [!LIBC]: Fall back on strerror if
54658         __strerror_r fails.
54659
54660         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54661         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54662         (longest_relative_suffix): New function.
54663         (path_concat): Use it.  Assume first argument is not NULL.
54664         Port to DOS.  Omit redundant separators.
54665         Report an error instead of returning NULL.
54666         Use mempcpy instead of memcpy.
54667         (xpath_concat): Remove: not declared or used.
54668
54669         * lib/same.h: Include <stdbool.h>
54670         (same_name): Return bool, not int.
54671         * lib/same.c (same_name): Likewise.
54672         (errno): Don't declare; we assume C89 or better now.
54673
54674         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54675         if not already defined.
54676
54677         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54678         * lib/dup-safer.c (errno): Likewise.
54679
54680 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54681
54682         Merge from coreutils.
54683         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54684         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54685         * modules/path-concat: Don't depend on strdup.
54686
54687 2004-08-03  Simon Josefsson  <jas@extundo.com>
54688
54689         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54690         * lib/progname.h: Don't include stdbool.h.
54691
54692 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54693
54694         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54695         * MODULES.html.sh (func_all_modules): Remove fatal.
54696
54697 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54698
54699         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54700
54701 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54702
54703         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54704         working.
54705
54706 2004-08-02  Simon Josefsson  <jas@extundo.com>
54707
54708         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54709         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54710         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54711
54712 2004-08-01  Simon Josefsson  <jas@extundo.com>
54713
54714         * lib/xgetdomainname.c: Include stdlib.h, for free().
54715
54716 2004-07-19  Bruno Haible  <bruno@clisp.org>
54717
54718         * MODULES.html.sh (func_all_modules): Add dummy.
54719
54720 2004-07-16  Simon Josefsson  <jas@extundo.com>
54721
54722         * modules/dummy: New file.
54723
54724 2004-07-16  Simon Josefsson  <jas@extundo.com>
54725
54726         * lib/dummy.c: New file.
54727
54728 2004-07-16  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/backupfile.h: Add extern "C" for C++.
54731         * lib/closeout.h: Likewise.
54732         * lib/copy-file.h: Likewise.
54733         * lib/findprog.h: Likewise.
54734         * lib/full-write.h: Likewise.
54735         * lib/pathname.h: Likewise.
54736         * lib/progname.h: Likewise.
54737         * lib/stpcpy.h: Likewise.
54738         * lib/stpncpy.h: Likewise.
54739         * lib/strcase.h: Likewise.
54740         * lib/strstr.h: Likewise.
54741         * lib/xalloc.h: Likewise.
54742
54743         * lib/mbswidth.h: Add extern "C" for C++.
54744         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54745
54746 2004-07-13  Robert Millan  <robertmh@gnu.org>
54747
54748         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54749
54750 2004-07-09  Simon Josefsson  <jas@extundo.com>
54751
54752         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54753         failed without this.)
54754
54755 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54756
54757         * modules/chown (Files): Add lib/fchown-stub.c, since
54758         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54759
54760 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54761
54762         * lib/fchown-stub.c: New file.
54763
54764 2004-06-24  Jim Meyering  <jim@meyering.net>
54765
54766         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54767
54768 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54769
54770         * modules/argz: Omit "#include".
54771
54772         * MODULES.html.sh (func_all_modules): Add calloc, to match
54773         2004-06-01 addition of calloc module.
54774
54775 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         * m4/argz.m4: New file, which is autoupdated from libtool.
54778
54779 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54780
54781         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54782         libtool.
54783
54784 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54785
54786         * config/srclist-update: Don't insist on "USA." before the
54787         close-comment, as libtool omits the period and puts the */ on a
54788         separate line.
54789         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54790         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54791
54792 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54793
54794         * modules/argz: New file.
54795         * MODULES.html.sh (func_all_modules): Add argz.
54796
54797 2004-06-12  Jim Meyering  <jim@meyering.net>
54798         and  Paul Eggert  <eggert@cs.ucla.edu>
54799
54800         * modules/hash (Files): Add lib/xalloc.h.
54801         * modules/pipe (Depends-on): Add wait-process.
54802         * modules/stat (Depends-on): Add xalloc.
54803         * modules/userspec (Files): Add lib/userspec.h.
54804         * modules/xstrto
54805
54806         Upgrade from gettext-0.13.
54807         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54808         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54809         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54810
54811 2004-06-10  Jim Meyering  <jim@meyering.net>
54812
54813         * lib/calloc.c: New file.
54814
54815 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54816
54817         * lib/getdate.y (yylex): Allow space between sign and number.
54818         Problem reported by Dan Jacobson.
54819
54820 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54821
54822         Merge from coreutils CVS.
54823
54824         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54825         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54826         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54827         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54828         xstrtol.m4: Fix copyright date and/or serial number.
54829
54830         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54831         See if we need an fchown replacement.
54832         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54833         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54834         and use the replacement function if we detect either defect.
54835
54836         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54837         gl_UTIMECMP.
54838
54839 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54840         and  Jim Meyering  <jim@meyering.net>
54841
54842         Merge from coreutils CVS.
54843
54844         * lib/stat-macros.h: New file, with contents from file-type.h
54845         and coreutils' system.h.
54846         * lib/file-type.c: Include "stat-macros.h".
54847         * lib/file-type.h (file_type): Move all macro definitions to new file,
54848         stat-macros.h.
54849
54850         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54851         Wrap old code with this conditional.
54852         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54853         function that does not dereference symlinks.
54854         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54855
54856         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54857         dependency problems.
54858         (xreadlink): Accept new arg SIZE, for efficiency.
54859         All decls and uses changed.
54860         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54861
54862         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54863         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54864
54865         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54866         sysexits.h.
54867
54868 2004-06-01  Jim Meyering  <jim@meyering.net>
54869
54870         * m4/calloc.m4: New file.
54871
54872 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54875         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54876         Also, fix a typo in a diagnostic.
54877
54878 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54879
54880         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54881         or AC_FUNC_REALLOC.
54882
54883 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54884
54885         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54886         macros to be defined.
54887         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54888         the allocator returns NULL because the requested size is zero.
54889
54890 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54893         var.  Add comment explaining why libc still defines it.  This
54894         merges the following patch from glibc:
54895         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54896
54897 2004-05-20  Andreas Schwab  <schwab@suse.de>
54898
54899         * m4/free.m4: Replace free if it not known to work, not the other
54900         way round.
54901
54902 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54903
54904         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54905         present in glibc since revision 1.1 of this file.
54906         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54907         obstack_alignment_mask, obstack_alloc, obstack_base,
54908         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54909         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54910         obstack_grow0, obstack_init, obstack_int_grow,
54911         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54912         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54913         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54914         nonexistent functions.
54915
54916 2004-05-18  Karl Berry  <karl@gnu.org>
54917
54918         * config/srclist.txt: break link for vasnprintf.c.
54919
54920 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54921
54922         Port obstack to the AS/400, where pointers are 16 bytes wide and
54923         you cannot cast an integer to a valid pointer.  This patch is
54924         currently waiting to be integrated into glibc; see
54925         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54926
54927         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54928         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54929         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54930         (struct obstack): temp member is now a union of a pointer and
54931         an integer, instead of an integer.  All integer uses changed.
54932         This does not affect the physical layout of struct obstack,
54933         except on hosts (like the AS/400) where the size or alignment of
54934         void * is greater than that of ptrdiff_t.
54935         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54936         __STDC__)]: Store temporary in pointer member of union, not
54937         integer member.
54938         * lib/obstack.c: Include <stddef.h>, for offsetof.
54939         (struct fooalign): Remove; it doesn't need a name.
54940         (union fooround): Change double to long double, and add void *.
54941         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54942         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54943         not a macro.  Hence the values are always int; so remove all
54944         casts-to-int in uses.
54945
54946 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54947
54948         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54949         we can get this patch merged into glibc.
54950
54951 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54952             Paul Eggert  <eggert@cs.ucla.edu>
54953
54954         * m4/argp: Depend on alloca.
54955
54956 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54957             Paul Eggert  <eggert@cs.ucla.edu>
54958
54959         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54960         freecoding.
54961
54962 2004-05-17  Bruno Haible  <bruno@clisp.org>
54963
54964         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54965         precision that consists of a '.' followed by an empty digit string.
54966         Patch by Tor Lillqvist <tml@iki.fi>.
54967
54968 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54969
54970         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54971         for backward compatibility with older code.  We need our own
54972         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54973         it under some other name, and our alloca.h will define it.
54974
54975 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54976             Derek Price  <derek@ximbiot.com>
54977
54978         * lib/alloca.c: Include <alloca.h>, to get our interface.
54979         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54980         include <alloca.h> first.  Use C89 prototype for alloca; this
54981         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54982         Use #elif for simplicity, since we can assume C89 now.
54983         Don't try to source the system alloca.h since it will not be found
54984         and to prevent recursively including its replacement.
54985         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54986         * lib/regex.c: Likewise.
54987
54988 2004-05-16  Derek Price  <derek@ximbiot.com>
54989             Paul Eggert  <eggert@cs.ucla.edu>
54990
54991         getline cleanup.  This changes the getndelim2 API: both order of
54992         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54993         no delimiter).
54994
54995         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54996         interface does that.
54997         (getline): Always use getdelim, so that we don't have two
54998         copies of this code.
54999         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55000         if available.
55001         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55002         (GETNDELIM2_MAXIMUM): New macro.
55003         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55004         instead of the old practice of delim2==0.  All callers changed.
55005         Return -1 on overflow, instead of returning junk.
55006         Do not set *linesize unless allocation succeeds.
55007         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55008         that we include sys/types.h.
55009         * lib/getnline.h: Likewise.
55010         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55011         (getndelim2): Reorder arguments.
55012         * lib/getnline.c (getnline, getndelim):
55013         Don't discard the NMAX argument.
55014         (getnline): Invoke getndelim, to avoid code duplication.
55015         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55016         of (size_t) -1 by callers of the getnline family.
55017
55018 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55019
55020         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55021         Check for gettimeofday.
55022         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55023         Check for settimeofday, stime.
55024
55025 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55026
55027         * lib/nanosleep.c (suspended): Change its type from int to
55028         sig_atomic_t volatile.
55029         (first_call): Make it private to rpl_nanosleep, and have it
55030         be zero initially as that's a bit faster.
55031         (my_usleep): Round up fractional times instead of truncating them,
55032         as this is the usual meaning for 'sleep'.
55033
55034         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55035         doesn't work.
55036         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55037         (ENOSYS): Define if not defined.
55038         (settime): Fall back on stime if it exists and settimeofday fails.
55039         But don't bother with fallbacks if a method fails with errno == EPERM.
55040
55041 2004-05-11  Jim Meyering  <jim@meyering.net>
55042
55043         Prior to this change, the save_cwd caller required read access to the
55044         current directory on most systems (ones with the fchdir function).
55045
55046         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55047         fails, try write-only, and finally, resort to using xgetcwd.
55048
55049 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         * lib/obstack.c, obstack.h: Import changes from libc.
55052
55053 2004-04-28  Bruno Haible  <bruno@clisp.org>
55054
55055         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55056         also implicitly appends .exe to executables.
55057         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55058         accepts Windows pathnames.
55059         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55060         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55061         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55062         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55063         Reported by Derek Robert Price <derek@ximbiot.com>.
55064
55065 2004-04-21  Karl Berry  <karl@gnu.org>
55066
55067         * config/srclist.txt (localcharset.c): break sync.
55068
55069 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55070
55071         * m4/host-os.m4: Add a copyright notice.
55072
55073 2004-04-20  Jim Meyering  <jim@meyering.net>
55074
55075         Change UTILS_ to gl_ in AC_DEFINE'd names.
55076         Change utils_- and jm_-prefixed variables, too.
55077         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55078         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55080
55081         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55082         Don't emit trailing blanks.
55083         Also rename jm_-prefixed variables to have gl_ prefix.
55084
55085         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55086         Also rename jm_-prefixed variables to have gl_ prefix.
55087
55088         * m4/jm-macros.m4: Reflect the renamings.
55089         * m4/prereq.m4: Likewise.
55090
55091 2004-04-20  Jim Meyering  <jim@meyering.net>
55092
55093         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55094         memory.
55095
55096 2004-04-20  Jim Meyering  <jim@meyering.net>
55097             Bruno Haible  <bruno@clisp.org>
55098
55099         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55100         memory when realloc fails.
55101
55102 2004-04-19  Jim Meyering  <jim@meyering.net>
55103
55104         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55105         now that readutmp.c may call `free (0)'.
55106
55107 2004-04-19  Bruno Haible  <bruno@clisp.org>
55108
55109         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55110         * m4/inttypes_h.m4: Likewise.
55111         * m4/stdint_h.m4: Likewise.
55112         * m4/intmax_t.m4: Likewise.
55113         * m4/uintmax_t.m4: Likewise.
55114
55115 2004-04-18  Jim Meyering  <jim@meyering.net>
55116
55117         * m4/prereq.m4: Don't forbid jm_ prefix.
55118
55119         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55120         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55121         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55122         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55123         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55124         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55125         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55126         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55127         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55128         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55129         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55130         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55131         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55132         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55133         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55134         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55135         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55136         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55137         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55138
55139 2004-04-18  Jim Meyering  <jim@meyering.net>
55140
55141         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55142         failure, don't leak memory and do call END_UTMP_ENT.
55143
55144 2004-04-16  Jim Meyering  <jim@meyering.net>
55145
55146         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55147         coreutils' stat program.
55148         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55149
55150 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55151
55152         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55153         C89.
55154         (CHAR_BIT): Remove, since we assume C89.
55155         Include <stdint.h> if available, as per current Autoconf CVS advice.
55156
55157 2004-03-31  Jim Meyering  <jim@meyering.net>
55158
55159         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55160         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55161         * m4/xalloc.m4: Likewise.
55162
55163 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55164
55165         Merge from coreutils.
55166
55167         * m4/inttostr.m4: New file.
55168         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55169         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55170         Require gl_CLOCK_TIME.
55171         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55172
55173 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55174
55175         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55176         not bool, to be more consistent with Unix conventions.
55177         Suggested by Bruno Haible.
55178
55179         Merge from coreutils.
55180
55181         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55182         * lib/umaxtostr.c: New files.
55183
55184         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55185         the usual <time.h> dance.
55186         (get_date): Change signature to support fractional time stamps.
55187         All callers changed.
55188         * lib/getdate.y: Include "getdate.h" first, as we can now
55189         assume C89 and don't need to worry about 'const'.
55190         Similarly, include "unlocked-io.h" near start, not in middle.
55191         Include <limits.h>.
55192         (textint.value): Use long int rather than int.
55193         (textint.digits): Use size_t rather than int.
55194         (BILLION, LOG10_BILLION): New constants.
55195         (parser_control): New member rel_ns.  Members day_ordinal,
55196         time_zone, month, day, hour, minutes, rel_year, rel_month,
55197         rel_day, rel_hour, rel_minutes, rel_seconds
55198         are now long int, not int.  Member seconds is now struct timespec,
55199         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55200         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55201         not int.
55202         (%union.intval): Now long int, not int.
55203         New member timespec.
55204         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55205         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55206         (spec): Now is a timespec or an item list.
55207         (timespec, items): New nonterminals.
55208         (time, rel, relunit, number, get_date):
55209         Add support for fractional seconds.
55210         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55211         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55212         (to_hour): First arg is now long int, not int.
55213         (to_year): Returns long int, not int.
55214         Don't treat year -70 like 70.
55215         (tm_diff): Returns long int, not int.
55216         (lookup_word): Use bool instead of int when appropriate.
55217         (yylex): Use size_t for count, not int.
55218         Detect overflow when parsing large integer constants.
55219         Add support for fractions.
55220         (get_date): Make pointers 'const' if possible.
55221         Use more-portable code to detect integer overflow.
55222         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55223         Don't use ctime; it's not reliable if the year has >4 digits.
55224
55225         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55226         This is for compatibility with BSD.
55227
55228         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55229         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55230         From coreutils' system.h.
55231
55232         * lib/userspec.c: Don't include "posixver.h".
55233         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55234         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55235         compatible extension.  Simplify code by removing a boolean int
55236         that was always nonzero if a string was nonnull.
55237
55238 2004-03-30  Jim Meyering  <jim@meyering.net>
55239
55240         Merge from coreutils.
55241
55242         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55243         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55244         on some systems one must include <grp.h> before it.
55245         Reported by Christian Krackowizer.
55246
55247 2004-03-30  Jim Meyering  <jim@meyering.net>
55248
55249         Merge from coreutils.
55250
55251         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55252
55253         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55254         an empty input stream.
55255
55256         * lib/readtokens.c: Include <stdbool.h>.
55257         (readtoken): Use `size_t' rather than int/long.
55258         All callers adjusted.
55259         Use `bool' rather than `int' where appropriate.
55260         Use memset rather than an explicit loop.
55261         Use x2nrealloc rather than xrealloc.
55262         Allow the use of `\0' as a delimiter.
55263         (readtokens): Likewise.
55264         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55265
55266 2004-03-30  Jim Meyering  <jim@meyering.net>
55267
55268         * m4/realloc.m4: Remove file, since now it does no more than
55269         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55270         the `configure.ac' section of module/realloc.
55271         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55272
55273 2004-03-30  Bruno Haible  <bruno@clisp.org>
55274
55275         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55276         nonnull.
55277
55278 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55279
55280         Merge changes to getloadavg.c from coreutils and Emacs.
55281
55282         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55283         Define to an expression, not to the empty string.
55284         Include cloexec.h and xalloc.h.
55285         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55286         Use set_cloexec_flag rather than rolling our own.
55287         * lib/cloexec.c, lib/cloexec.h: New files.
55288
55289 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55290
55291         * m4/cloexec.m4: New file.
55292
55293 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55294
55295         * lib/getopt.h: Sync with libc CVS.
55296
55297 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55298             Bruno Haible  <bruno@clisp.org>
55299
55300         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55301         mbswidth.
55302
55303 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55304             Bruno Haible  <bruno@clisp.org>
55305
55306         * lib/mbswidth.h: Include <wchar.h> only if
55307         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55308         <wchar.h>.
55309         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55310
55311 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55312
55313         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55314         Sync with libc CVS.
55315         * lib/getopt_int.h: New file, also synced from libc.
55316
55317 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55318
55319         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55320         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55321         Bring back getopt.c, getopt.h, getopt1.c.
55322
55323 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55324
55325         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55326         All uses changed.  Check for sa_sigaction member; this fixes
55327         a bug first reported by Jason Andrade in
55328         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55329
55330 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55331
55332         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55333         '#if' expressions.  Unlike the code it replaces, it does not
55334         depend on (defined _SC_PAGESIZE).  However, it does depend on
55335         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55336         first reported by Jason Andrade in
55337         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55338
55339 2004-02-25  Simon Josefsson  <jas@extundo.com>
55340
55341         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55342
55343 2004-02-25  Simon Josefsson  <jas@extundo.com>
55344
55345         * lib/strdup.h: New file.
55346         * lib/strdup.c: Include it.
55347         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55348         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55349
55350 2004-02-23  Karl Berry  <karl@gnu.org>
55351
55352         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55353         (from fencepost.gnu.org:/gd/gnuorg).
55354
55355 2004-02-23  Karl Berry  <karl@gnu.org>
55356
55357         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55358         * config/srclist.txt: add maintain/standards documents.
55359
55360 2004-02-18  Bruno Haible  <bruno@clisp.org>
55361
55362         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55363         Reported by Derek Robert Price <derek@ximbiot.com>.
55364
55365 2004-02-16  Karl Berry  <karl@gnu.org>
55366
55367         * config/mkinstalldirs, install-sh: update from automake.
55368
55369 2004-02-06  Karl Berry  <karl@gnu.org>
55370
55371         * m4/po.m4: update from gettext 0.14.1.
55372
55373 2004-02-06  Karl Berry  <karl@gnu.org>
55374
55375         * lib/config.charset: update from gettext 0.14.1.
55376
55377 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55378
55379         Add comments and code, prompted by suggestions from Bruno Haible
55380         for sh-quote.
55381         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55382         describing the enum quoting_style values.
55383         * lib/quotearg.c (quotearg_alloc): New function.
55384         (quotearg_buffer_restyled): Treat lone { and } as special.
55385         Treat = as special.  Work around bug with older shells
55386         that "see" a '\' that is really the 2nd byte of a multibyte char.
55387         Quote empty string with shell_quoting_style.
55388
55389 2004-02-03  Bruno Haible  <bruno@clisp.org>
55390
55391         * m4/pipe.m4: New file, from GNU gettext.
55392
55393 2004-02-03  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/pipe.h: New file, from GNU gettext.
55396         * lib/pipe.c: New file, from GNU gettext.
55397
55398 2004-01-27  Bruno Haible  <bruno@clisp.org>
55399
55400         * m4/execute.m4: New file, from GNU gettext.
55401
55402 2004-01-27  Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/execute.h: New file, from GNU gettext.
55405         * lib/execute.c: New file, from GNU gettext.
55406         * lib/w32spawn.h: New file, from GNU gettext.
55407
55408 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55409
55410         Merge from diffutils.
55411
55412         * lib/file-type.c (file_type): Add typed memory objects.
55413         * lib/file-type.h (S_TYPEISTMO): New macro.
55414
55415         * lib/c-stack.h (c_stack_action): Remove argv argument.
55416         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55417         (die): Don't calculate message unless segv_action returns.
55418         (get_stack_location, min_address_from_argv, max_address_from_argv,
55419         volatile stack_base, volatile_stack_size): Remove.
55420         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55421         that every segmentation violation is a stack overflow.  (Ouch!)
55422         See Debian bug 136249 (still outstanding) for more info about why
55423         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55424
55425 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55426
55427         Exit-status fix from coreutils.
55428
55429         Use exit_failure consistently in place of EXIT_FAILURE,
55430         so that program exit statuses are consistent on failure.
55431
55432         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55433         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55434         * lib/argmatch.h: Comment fix to match the above.
55435         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55436         Now a macro referring to exit_failure, instead of a separate
55437         variable.  Include "exitfail.h" to get it.
55438         * lib/xstrtol.h: Include "exitfail.h".
55439         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55440
55441         * lib/long-options.c (parse_long_options): Use prototype
55442         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55443         for clarity.
55444
55445 2004-01-21  Jim Meyering  <jim@meyering.net>
55446
55447         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55448         so as not to conflict with a different-sized __mktime_internal
55449         function in GNU libc.
55450         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55451         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55452
55453 2004-01-20  Karl Berry  <karl@gnu.org>
55454
55455         * config/config.guess: update from config.
55456
55457         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55458
55459 2004-01-20  Bruno Haible  <bruno@clisp.org>
55460
55461         Safer stack allocation.
55462         * lib/setenv.c: Include allocsa.h.
55463         (alloca): Remove fallback definition.
55464         (freea): Remove macro.
55465         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55466         instead of freea.
55467
55468 2004-01-20  Bruno Haible  <bruno@clisp.org>
55469
55470         * m4/eealloc.m4: New file, from GNU gettext.
55471
55472 2004-01-20  Bruno Haible  <bruno@clisp.org>
55473
55474         * m4/allocsa.m4: New file, from GNU gettext.
55475
55476 2004-01-20  Bruno Haible  <bruno@clisp.org>
55477
55478         * lib/xallocsa.h: New file, from GNU gettext.
55479         * lib/xallocsa.c: New file, from GNU gettext.
55480
55481 2004-01-20  Bruno Haible  <bruno@clisp.org>
55482
55483         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55484
55485 2004-01-20  Bruno Haible  <bruno@clisp.org>
55486
55487         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55488         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55489         specially.
55490
55491 2004-01-20  Bruno Haible  <bruno@clisp.org>
55492
55493         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55494         patch.
55495
55496 2004-01-20  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55499
55500 2004-01-20  Bruno Haible  <bruno@clisp.org>
55501
55502         * lib/eealloc.h: New file.
55503
55504 2004-01-20  Bruno Haible  <bruno@clisp.org>
55505
55506         * lib/binary-io.h: Avoid warnings on Cygwin.
55507
55508 2004-01-20  Bruno Haible  <bruno@clisp.org>
55509
55510         * lib/allocsa.h: New file, from GNU gettext.
55511         * lib/allocsa.c: New file, from GNU gettext.
55512
55513 2004-01-18  Karl Berry  <karl@gnu.org>
55514
55515         * doc/gpl.texi, doc/lgpl.texi: new files.
55516
55517 2004-01-18  Karl Berry  <karl@gnu.org>
55518
55519         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55520         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55521
55522 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55523
55524         Merge from coreutils.
55525
55526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55527         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55528         (gl_DEFAULT_POSIX2_VERSION): Move
55529         the documentation from 'configure' into 'config.hin',
55530         so that 'configure --help' isn't burdened by it and
55531         we don't have to worry about its formatting there.
55532         Reword the documentation so that it's more succinct
55533         and can be run together into a single paragraph.
55534         * m4/same.m4 (gl_SAME): Check for pathconf.
55535
55536 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55537
55538         Merge from coreutils.
55539
55540         * lib/posixver.c: Include posixver.h.
55541
55542         * lib/same.c: Include <stdbool.h>, <limits.h>.
55543         (_POSIX_NAME_MAX): Define if not defined.
55544         (MIN): New macro.
55545         (same_name): If file names are silently truncated, report
55546         that the file names are the same if they are the same after
55547         the silent truncation.
55548
55549         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55550         conversion function.
55551         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55552         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55553         longer needed.
55554
55555 2004-01-15  Jim Meyering  <jim@meyering.net>
55556
55557         Merge from coreutils.
55558
55559         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55560         if no library is required.
55561         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55562         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55563         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55564         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55565         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55566         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55567         value, $ac_cv_search_crypt, if it's "none required".
55568         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55569         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55570         not gl_FUNC_GETLOADAVG.
55571         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55572         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55573
55574 2004-01-15  Jim Meyering  <jim@meyering.net>
55575
55576         Merge from coreutils.
55577
55578         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55579         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55580         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55581
55582         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55583         optional configure-time default.
55584
55585         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55586
55587         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55588
55589 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55590
55591         Merge from coreutils.
55592
55593         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55594         value, $ac_cv_search_nanosleep, if it's "none required".
55595
55596 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55597
55598         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55599         with like-named macro in fnmatch.c.
55600         (EXT): Use an internal constant instead.
55601
55602         Merge fnmatch patches from glibc.
55603         * lib/fnmatch.c (mbsinit): Remove define.
55604         Add libc_hidden_ver (__fnmatch, fnmatch).
55605         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55606         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55607
55608 2004-01-14  Karl Berry  <karl@gnu.org>
55609
55610         * config/install-sh: update from automake.
55611
55612 2004-01-13  Karl Berry  <karl@gnu.org>
55613
55614         * config/install-sh: update from automake.
55615
55616 2004-01-09  Karl Berry  <karl@gnu.org>
55617
55618         * config/install-sh: update from automake.
55619
55620 2004-01-05  Karl Berry  <karl@gnu.org>
55621
55622         * config/config.{sub,guess}: update from config.
55623
55624 2003-12-31  Karl Berry  <karl@gnu.org>
55625
55626         * config/depcomp: update from automake.
55627
55628 2003-12-14  Karl Berry  <karl@gnu.org>
55629
55630         * lib/config.charset: update from gettext-runtime.
55631
55632 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55633
55634         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55635         Bug reported by Alfred M. Szmidt.
55636
55637 2003-12-03  Bruno Haible  <bruno@clisp.org>
55638
55639         * m4/gettext.m4: Upgrade from gettext-0.13.
55640         * m4/po.m4: Upgrade from gettext-0.13.
55641         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55642         * m4/intmax.m4: New file, from gettext-0.13.
55643         * m4/printf-posix.m4: New file, from gettext-0.13.
55644
55645 2003-11-29  Karl Berry  <karl@gnu.org>
55646
55647         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55648
55649 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55650             Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/printf-parse.h: Don't include sys/types.h.
55653         (ARG_NONE): New macro.
55654         (char_directive): Change type of *arg_index fields to size_t.
55655         * lib/printf-parse.c: Don't include sys/types.h.
55656         (SSIZE_MAX): Remove macro.
55657         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55658         Remove unnecessary overflow check.
55659         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55660         fields.
55661
55662 2003-11-25  Bruno Haible  <bruno@clisp.org>
55663
55664         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55665
55666 2003-11-25  Bruno Haible  <bruno@clisp.org>
55667
55668         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55669         gt_TYPE_SSIZE_T.
55670
55671 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55672
55673         * modules/alloca: Remove dependency on xalloc.
55674
55675 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55676
55677         * lib/alloca.c: Remove dependency on xalloc module.
55678         (xalloc_die): Remove.
55679         (memory_full) [!defined emacs]: New macro.
55680         [!defined emacs]: Don't include xalloc.h.
55681         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55682         address arithmetic overflows.  Change datatypes a bit to avoid
55683         unnecessary casts.
55684
55685 2003-11-22  Jim Meyering  <jim@meyering.net>
55686
55687         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55688         s/size/size_t/.
55689
55690 2003-11-21  Karl Berry  <karl@gnu.org>
55691
55692         * config/config.{sub,guess}: update from config.
55693
55694 2003-11-18  Karl Berry  <karl@gnu.org>
55695
55696         * config/config.{sub,guess}: update from config.
55697
55698         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55699
55700 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55701
55702         * README: Mention that S+T cannot overflow if S is the size of
55703         an existing object and T is sufficiently small.
55704
55705 2003-11-17  Jim Meyering  <jim@meyering.net>
55706
55707         On systems without utime and without a utimes function capable of
55708         dealing with a NULL struct utimbuf* argument, this utime replacement
55709         could -- in unusual circumstances -- leak a file descriptor.
55710         * lib/utime.c: Include <unistd.h> and <errno.h>.
55711         (utime_null): Be sure to close `fd' and to preserve errno.
55712         Reported by Geoff Collyer via Arnold Robbins.
55713
55714 2003-11-17  Bruno Haible  <bruno@clisp.org>
55715
55716         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55717         (Depends-on): Add xsize.
55718
55719 2003-11-17  Bruno Haible  <bruno@clisp.org>
55720
55721         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55722
55723 2003-11-17  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/vasnprintf.c (alloca): Remove fallback definition.
55726         (freea): Remove definition.
55727         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55728         Reported by Paul Eggert.
55729
55730 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55731             Bruno Haible  <bruno@clisp.org>
55732
55733         Protect against address arithmetic overflow.
55734         * lib/printf-args.h: Include stddef.h.
55735         (arguments): Change type of field 'count' to size_t.
55736         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55737         'unsigned int' where appropriate.
55738         * lib/printf-parse.h: Include sys/types.h.
55739         (char_directive): Change type of *arg_index fields to ssize_t.
55740         (char_directives): Change type of fields 'count', max_*_length to
55741         size_t.
55742         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55743         (SSIZE_MAX): Define fallback value.
55744         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55745         instead of 'int' where appropriate. Check a_allocated, d_allocated
55746         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55747         * lib/vasnprintf.c: Include xsize.h.
55748         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55749         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55750         overflow. Avoid wraparound when converting a width or precision from
55751         decimal to binary.
55752
55753 2003-11-16  Bruno Haible  <bruno@clisp.org>
55754
55755         Update from GNU gettext.
55756         * lib/printf-parse.c: Generalize to it can be compiled for wide
55757         strings.
55758         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55759         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55760         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55761         SNPRINTF): New macros.
55762         Don't include <alloca.h> if the file is used inside libintl.
55763         (local_wcslen): New function, for Solaris 2.5.1.
55764         (VASNPRINTF): Use it instead of wcslen.
55765
55766 2003-11-16  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/xsize.h (xmax): New function.
55769         (xsum, xsum3, xsum4): Declare as "pure" functions.
55770
55771 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55772
55773         * modules/xalloc (Files): Undo latest change, since xalloc.h
55774         no longer needs SIZE_MAX or PTRDIFF_MAX.
55775
55776 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55777
55778         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55779         gl_PTRDIFF_MAX.
55780
55781 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55782
55783         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55784         "return", to pacify some unknown compiler.  Problem reported
55785         by Joerg Schilling.
55786
55787 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55788
55789         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55790         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55791         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55792         heuristic is just as accurate as far as we know, and it removes a
55793         dependency on size_max.m4 and ptrdiff_max.m4.
55794
55795 2003-11-11  Bruno Haible  <bruno@clisp.org>
55796
55797         * modules/xsize (Files): Add m4/size_max.m4.
55798         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55799
55800 2003-11-11  Bruno Haible  <bruno@clisp.org>
55801
55802         * m4/size_max.m4: New file.
55803         * m4/ptrdiff_max.m4: New file.
55804         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55805         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55806         (gl_XALLOC): Invoke it.
55807
55808 2003-11-11  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55811         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55812         defined.
55813
55814 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55815
55816         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55817         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55818         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55819         From Bruno Haible.
55820         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55821         not (size_t) -1, since it's defined here.
55822
55823 2003-11-09  Karl Berry  <karl@gnu.org>
55824
55825         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55826
55827 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55828
55829         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55830         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55831         Reject sizes of exactly SIZE_MAX bytes.
55832         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55833         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55834
55835 2003-11-05  Bruno Haible  <bruno@clisp.org>
55836
55837         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55838         SIZE_MAX defined in <limits.h> on Solaris.
55839
55840 2003-11-04  Jim Meyering  <jim@meyering.net>
55841
55842         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55843         variable names, rather than @VAR@.
55844         * modules/poll: Likewise.
55845
55846 2003-11-04  Bruno Haible  <bruno@clisp.org>
55847
55848         * modules/xsize: New file.
55849         * modules/linebreak: Depend on xsize.
55850         * MODULES.html.sh (func_all_modules): Add xsize.
55851
55852 2003-11-04  Bruno Haible  <bruno@clisp.org>
55853
55854         * m4/xsize.m4: New file.
55855
55856 2003-11-04  Bruno Haible  <bruno@clisp.org>
55857
55858         * lib/xsize.h: New file.
55859         * lib/linebreak.c: Include xsize.h.
55860         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55861         argument for overflow.
55862         Suggested by Paul Eggert.
55863
55864 2003-11-03  Karl Berry  <karl@gnu.org>
55865
55866         * config/config.{guess,sub}: update from config.
55867
55868 2003-11-03  Jim Meyering  <jim@meyering.net>
55869
55870         * modules/userspec (lib_SOURCES): Add userspec.h.
55871         (Include): Add "userspec.h".
55872         Improve description.
55873
55874 2003-11-03  Jim Meyering  <jim@meyering.net>
55875
55876         * lib/userspec.c: Include "userspec.h".
55877         * lib/userspec.h: New file.
55878
55879 2003-11-03  Bruno Haible  <bruno@clisp.org>
55880
55881         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55882
55883 2003-11-03  Bruno Haible  <bruno@clisp.org>
55884
55885         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55886         available, to avoid (extremely rare) race condition.
55887         Suggested by Paul Eggert.
55888
55889 2003-11-02  Karl Berry  <karl@gnu.org>
55890
55891         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55892
55893 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55894
55895         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55896         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55897         (read_filesystem_list): Set and use me_type_malloced.
55898         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55899         whatever the type happens to be), for brevity and consistency.
55900         Check for size calculation overflow on Alphas running OSF/1.
55901
55902 2003-10-31  Jim Meyering  <jim@meyering.net>
55903
55904         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55905
55906         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55907
55908 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55909             Bruno Haible  <bruno@clisp.org>
55910
55911         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55912         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55913
55914 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55915
55916         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55917         netbsd*-gnu*.  Suggested by Robert Millan.
55918
55919 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55920
55921         * modules/group-member: Depend on stdbool.
55922
55923 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55924
55925         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55926
55927 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55928
55929         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55930         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55931         after the 'gnu' in these cases.  This fixes some bugs in the
55932         previous change, and is based on suggestions by Robert Millan.
55933
55934 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55935
55936         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55937         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55938         no longer needed.
55939         * lib/quotearg.c (quotearg_n_options): Use it.
55940         * lib/group-member.c: Include <stdbool.h>.
55941         (free_group_info): Arg is now const *; don't free arg.
55942         (get_group_info): Now returns bool and accepts struct group_info *,
55943         rather than returning a malloc'ed struct group_info *.
55944         All uses changed.  Check for overflow in internal size calculation.
55945
55946         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55947         rather than xmalloc/xrealloc.
55948         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55949         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55950         conformance bug: the old code used a pointer after freeing the
55951         storage that it addressed.
55952         * lib/hash.c (hash_initialize): Simplify the code by using
55953         xalloc_oversized rather than doing it by hand.
55954         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55955         the buffer preserved.  Use free and xmalloc instead.
55956         * lib/quotearg.c (quotearg_n_options): Likewise.
55957         Use a simpler test for size overflow.  Don't use xalloc_oversized
55958         because unsigned int might be wider than size_t (!); this suggests
55959         that we should switch from unsigned int to size_t for slot numbers.
55960
55961 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55962
55963         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55964         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55965         NetBSD kernels.  Requested by Richard Stallman.
55966
55967 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55968
55969         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55970         to allocate the returned structure.  Do not allocate a subarray,
55971         as x2nrealloc will do that.
55972         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55973         instead of xnrealloc.
55974         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55975
55976 2003-10-27  Bruno Haible  <bruno@clisp.org>
55977
55978         * lib/stdbool_.h: Better support for BeOS.
55979
55980 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55981
55982         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55983         now uses inline.
55984
55985 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55986
55987         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55988         callers that want to do their own size-overflow checking.  Include
55989         <stdbool.h>, since xalloc_oversized returns bool.
55990         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55991         to use xalloc_oversized.
55992
55993         Add two functions x2realloc, x2nrealloc, for programs that grow
55994         arrays dynamically by doubling their sizes.
55995         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55996         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55997         New functions.
55998
55999         Port to C99 semantics for 'inline' of external functions.
56000         Bug reported by Bruno Haible.
56001         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56002         with the old contents of xnmalloc.
56003         (xnmalloc, xmalloc): Use it.
56004         (xnrealloc_inline): New static inline function,
56005         with the old contents of xnrealloc.
56006         (xnrealloc, xrealloc): Use it.
56007
56008         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56009         that.
56010
56011 2003-10-26  Karl Berry  <karl@gnu.org>
56012
56013         * config/srclist.txt (COPYING.DOC): no longer available from
56014         /gd/gnuorg; don't know where the ultimate source is.
56015
56016 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56017
56018         Fix several address-calculation bugs in the hash modules,
56019         plus some minor code cleanup.
56020
56021         * lib/hash.h: Include <stdbool.h>, for bool.
56022         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56023         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56024         hash_get_n_entries, hash_get_max_bucket_length,
56025         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56026         hash_rehash): Use size_t rather than unsigned.
56027         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56028         hash_get_n_buckets_used, hash_get_n_entries,
56029         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56030         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56031         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56032         Likewise.
56033         (SIZE_MAX): Define if not defined.
56034         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56035         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56036         hash_print):
56037         Use const * when possible.
56038         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56039         (check_tuning): Fix bug: if tuning parameters were very close to
56040         0 or 1, rounding errors could have caused subscript violations.
56041         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56042         (hash_initialize): Add 'fail:' label
56043         to free table and return NULL, and use it to simplify code.
56044         Use calloc rather than clearing the storage ourself.
56045         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56046         buffer size calculations.
56047         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56048         Include <stddef.h>, for size_t.
56049         * lib/hash-pjw.c (hash_pjw): Likewise.
56050         Switch to method described by Bruno Haible.
56051         Include <limits.h>, for CHAR_BIT.
56052         (SIZE_BITS): New macro.
56053
56054 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56055
56056         * m4/getline.m4 (AM_FUNC_GETLINE):
56057         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56058         hosts.  Problem reported by Derek Robert Price in
56059         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56060         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56061         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56062
56063 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56064
56065         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56066         ceiling the allocation at NMAX bytes rather than silently
56067         discarding input bytes before NMAX is reached.  This makes
56068         a difference only if NMAX exceeds SIZE_MAX / 2.
56069
56070         * lib/obstack.c: Merge from glibc.
56071         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56072         Add libc_hidden_def (_obstack_newchunk).
56073         (_obstack_free) [! defined _LIBC]: Remove.
56074         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56075         a clone of the function body.
56076         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56077         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56078
56079         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56080         glibc.
56081         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56082         arg to memcpy.
56083
56084         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56085         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56086         Don't use lvalue casts, as GCC plans to remove support for them
56087         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56088         was also present in the non-GCC version, indicating that this
56089         code had always been buggy and had never been widely used.
56090         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56091         Use the fast variant of each macro, rather than copying the
56092         definiens of the fast variant; that way, we'll be more likely to
56093         catch future bugs in the fast variants.
56094
56095 2003-10-20  Bruno Haible  <bruno@clisp.org>
56096
56097         * modules/wait-process: New file.
56098         * MODULES.html.sh (func_all_modules): Add wait-process.
56099
56100 2003-10-20  Bruno Haible  <bruno@clisp.org>
56101
56102         * m4/wait-process.m4: New file.
56103
56104 2003-10-20  Bruno Haible  <bruno@clisp.org>
56105
56106         * lib/wait-process.h: New file, from GNU gettext.
56107         * lib/wait-process.c: New file, from GNU gettext.
56108
56109 2003-10-19  Jim Meyering  <jim@meyering.net>
56110
56111         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56112         HPUX 10.20.
56113
56114 2003-10-18  Karl Berry  <karl@gnu.org>
56115
56116         * config/config.guess: update from config.
56117
56118 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56119
56120         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56121         (getgroups): First arg is int, not size_t.
56122         Don't let 'free' mangle errno.
56123
56124 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56125
56126         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56127
56128 2003-10-16  Karl Berry  <karl@gnu.org>
56129
56130         * config/config.{guess,sub}: update from config.
56131
56132 2003-10-16  Jim Meyering  <jim@meyering.net>
56133
56134         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56135         memcpy.
56136
56137 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56138
56139         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56140         (SIZE_MAX): Remove.
56141         (new_exclude, add_exclude_file): Initial size no longer needs to
56142         be a power of 2.
56143         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56144         our own address arithmetic overflow checking.
56145
56146         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56147         (fnmatch): Do not alloca more than 2000 wide characters;
56148         instead, use malloc for large buffers.
56149         Check for address arithmetic overflow, and return -1
56150         with errno set to ENOMEM in that case.
56151         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56152         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56153         instead, return -1.  Check for address arithmetic overflow.
56154
56155 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56156
56157         Handle invalid suffixes and overflow independently, so that
56158         callers can treat them independently as needed.  Fix some bugs in
56159         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56160         suffix for a human-readable blocksize.  The major caller-visible
56161         change is the addition of a new
56162         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56163         that both overflow and suffix chars were found.
56164
56165         * lib/human.c (humblock): Don't check separately for invalid suffix
56166         char; that is xstrtoumax's job (now that its bug is fixed).
56167         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56168         INTMAX_MAX]: New macros.
56169         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56170         TYPE_MAXIMUM): New macros.
56171         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56172         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56173         if overflow occurs, as it's what __strtol does and it's more useful
56174         in practice.
56175         (__xstrtol): If __strtol reports some error other than ERANGE,
56176         reflect it to the caller as LONGINT_INVALID.  If it reports
56177         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56178         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56179         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56180         value.
56181         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56182         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56183         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56184         [defined UINTMAX_MAX]: New macros.
56185
56186 2003-10-14  Bruno Haible  <bruno@clisp.org>
56187
56188         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56189
56190 2003-10-14  Bruno Haible  <bruno@clisp.org>
56191
56192         * m4/sig_atomic_t: New file, from GNU gettext.
56193         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56194
56195 2003-10-14  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56198         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56199         Also use volatile where needed.
56200
56201 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56202
56203         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56204         Change maintainer from Bruno Haible to 'all'.
56205
56206 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56207
56208         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56209
56210 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56211
56212         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56213         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56214         and define in terms of the other primitives.
56215         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56216         (SIZE_MAX): Define if not already defined.
56217         (array_size_overflow): New function.
56218         (xalloc_die): Abort instead of exiting if 'error' returns.
56219         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56220         (xmalloc, xrealloc): Use them.
56221         (xcalloc): Check for address arithmetic overflow.
56222         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56223         a bit faster than strcpy.
56224
56225 2003-10-10  Simon Josefsson  <jas@extundo.com>
56226
56227         * modules/argp (Depends-on): Add restrict and strcase.
56228
56229 2003-10-10  Simon Josefsson  <jas@extundo.com>
56230
56231         * m4/argp.m4: Add AC_C_INLINE.
56232
56233 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56234
56235         Merge getpass from libc, plus a few fixes.
56236
56237         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56238         Include <stdbool.h>.
56239         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56240         __fsetlocking to empty.
56241         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56242         do include <bits/libc-lock.h>.
56243         Do not include <fcntl.h>; not needed.
56244         [_LIBC]: Include <wchar.h>.
56245         (NOTCANCEL_MODE): New macro.
56246         (flockfile, funlockfile) [_LIBC]: New macros.
56247         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56248         [!_LIBC]: New macros.
56249         (call_fclose): New function.
56250         (getpass): Use it.  Save tty stream separately; this simplifies the
56251         code and makes it more reliable if stdin happens to equal stdout.
56252         Invoke __fsetlocking on tty.
56253         Handle thread cancellation if needed.
56254         Namespace cleanup (use __tcgetattr, __getline).
56255         Use bool for Booleans.
56256         [USE_IN_LIBIO]: Handle wide streams.
56257         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56258         stream might go where.
56259
56260         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56261         doesn't have to include <stdio.h> before us.
56262         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56263         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56264         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56265         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56266         if not declared, so that we can use getpass.c code from libc without
56267         rewriting it.
56268         (flockfile, ftrylockfile, funlockfile): New macros.
56269
56270 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56271
56272         * modules/getpass: Depend on stdbool.
56273
56274 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56275
56276         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56277
56278 2003-10-07  Karl Berry  <karl@gnu.org>
56279
56280         * config/config.{guess,sub}: update from config.
56281
56282 2003-10-06  Jim Meyering  <jim@meyering.net>
56283             Bruno Haible  <bruno@clisp.org>
56284
56285         This lets translators provide better translations for the
56286         "Written by ..." part of --version output.
56287         * lib/version-etc.h: Include stdarg.h.
56288         (version_etc_copyright): Declare as readonly.
56289         (version_etc): Make this function variadic with a NULL-terminated list
56290         of author name strings.
56291         (version_etc_va): New declaration.
56292         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56293         (version_etc_copyright): Declare as readonly.
56294         (version_etc_va): New function. Provide a different translatable string
56295         for each possible number of authors < 10. Abbreviate when there are 10
56296         authors or more.
56297         (version_etc): Make this function variadic. Call version_etc_va.
56298         Suggestion from Gary V. Vaughan.
56299
56300         * lib/long-options.h (parse_long_options): Change prototype: the
56301         authors string is moved to the end and becomes variadic.
56302         * lib/long-options.c: Include stdarg.h.
56303         (parse_long_options): Make this function variadic, too.
56304         Call version_etc_va, not version_etc.
56305
56306 2003-10-06  Bruno Haible  <bruno@clisp.org>
56307
56308         * modules/version-etc-2: Remove file.
56309         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56310
56311 2003-10-06  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/fatal-signal: New file.
56314         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56315
56316 2003-10-06  Bruno Haible  <bruno@clisp.org>
56317
56318         * m4/fatal-signal.m4: New file.
56319         * m4/signalblocking.m4: New file, from GNU gettext.
56320
56321 2003-10-06  Bruno Haible  <bruno@clisp.org>
56322
56323         * lib/version-etc-2.h: Remove file.
56324         * lib/version-etc-2.c: Remove file.
56325
56326 2003-10-06  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/fatal-signal.h: New file, from GNU gettext.
56329         * lib/fatal-signal.c: New file, from GNU gettext.
56330
56331 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56332
56333         * README: Rework advice for preventing empty .o files.
56334         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56335         not <sys/types.h>.
56336
56337 2003-10-04  Karl Berry  <karl@gnu.org>
56338
56339         * lib/argp*: update from libc.
56340
56341 2003-10-04  Karl Berry  <karl@gnu.org>
56342
56343         * config/config.{guess,sub}: update from config.
56344
56345 2003-10-02  Bruno Haible  <bruno@clisp.org>
56346
56347         * modules/lchown (Include): Add lchown.h.
56348         * modules/time_r (Include): Use "..." syntax.
56349         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56350
56351 2003-10-01  Simon Josefsson  <jas@extundo.com>
56352
56353         * MODULES.html.sh (func_all_modules): Move gethostname from section
56354         'based on' to section 'lacking' POSIX:2001.
56355
56356 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56357
56358         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56359         to output mode on the same stream.
56360
56361 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56362
56363         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56364         Fix arg typo in previous patch.
56365
56366 2003-09-28  Jim Meyering  <jim@meyering.net>
56367
56368         * lib/error.c: Correct cpp indentation.
56369
56370 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56371
56372         * modules/free: New file.
56373
56374 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56375
56376         * m4/free.m4: New file.
56377
56378 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56379
56380         * lib/minmax.h (MIN, MAX)
56381         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56382         Omit the special code that used __typeof__, since we worry that
56383         it could be more trouble than it's worth.  See:
56384         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56385         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56386
56387         * lib/free.c: New file.
56388
56389 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56390
56391         Trivial fixes to Makefile.am parts of module listings.
56392         * modules/strstr: Append strstr.h to lib_SOURCES.
56393         * modules/strcase: Likewise, for strcase.h.
56394
56395 2003-09-27  Karl Berry  <karl@gnu.org>
56396
56397         * config/mkinstalldirs: update from automake.
56398
56399 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56400
56401         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56402         (error_tail): Do not loop, reallocating temporary buffer, since
56403         the output cannot contain more wide characters than the input
56404         contains bytes, the size must be big enough already.  This avoids
56405         one potential size overflow calculation.  Check for size overflow
56406         when calculating temporary buffer size.  Free temporary buffer
56407         when done, if it was allocated with malloc; this plugs a memory
56408         leak.  Remove casts from void * to pointers, that are no longer
56409         needed now that we're assuming C89 or better.
56410
56411         Merge error changes from glibc.
56412
56413         * lib/error.c, error.h: Update copyright notice header to match glibc.
56414         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56415         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56416         Disable cancellation while printing error.
56417         * lib/error.h: Prepend __ to parameter names.
56418
56419 2003-09-26  Jim Meyering  <jim@meyering.net>
56420
56421         * lib/error.c (error_tail): Move some declarations
56422         into inner scope where the local variables are used.
56423
56424 2003-09-26  Bruno Haible  <bruno@clisp.org>
56425
56426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56427         stpncpy().
56428         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56429
56430 2003-09-26  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56433         (stpncpy): Define as alias for gnu_stpncpy.
56434         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56435
56436 2003-09-25  Simon Josefsson  <jas@extundo.com>
56437
56438         * lib/xgetdomainname.h: New file.
56439         * lib/xgetdomainname.c: New file.
56440
56441 2003-09-25  Simon Josefsson  <jas@extundo.com>
56442             Bruno Haible  <bruno@clisp.org>
56443
56444         * modules/getdomainname: New file.
56445         * modules/xgetdomainname: New file.
56446         * MODULES.html.sh (func_all_modules): Add getdomainname,
56447         xgetdomainname.
56448
56449 2003-09-25  Simon Josefsson  <jas@extundo.com>
56450             Bruno Haible  <bruno@clisp.org>
56451
56452         * m4/getdomainname.m4: New file.
56453
56454 2003-09-25  Simon Josefsson  <jas@extundo.com>
56455             Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/getdomainname.h: New file.
56458         * lib/getdomainname.c: New file.
56459
56460 2003-09-25  Karl Berry  <karl@gnu.org>
56461
56462         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56463
56464 2003-09-25  Karl Berry  <karl@gnu.org>
56465
56466         * config/install-sh: update from automake.
56467
56468 2003-09-25  Bruno Haible  <bruno@clisp.org>
56469
56470         * modules/version-etc-2: New file, from modules/version-etc with
56471         modifications.
56472         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56473
56474 2003-09-25  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56477         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56478
56479 2003-09-24  Simon Josefsson  <jas@extundo.com>
56480
56481         * modules/xgethostname: Add xgethostname.h.
56482
56483 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56484
56485         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56486         the buffer associated with the argument.  Bug reported by
56487         Simon Josefsson.
56488
56489 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56490
56491         * README: Document assumptions that 'int' is at least 32 bits
56492         wide, that integer arithmetic is 2's complement without overflow,
56493         that there are no holes in integer values, that adding sizes of
56494         two nonoverlapping objects can't overflow, and that all-bits-zero
56495         yields scalar zero.  Fix spelling and capitalization typos.
56496
56497 2003-09-19  Karl Berry  <karl@gnu.org>
56498
56499         * lib/argp.h: update from libc.
56500
56501 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56502
56503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56504         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56505         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56506
56507 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56508
56509         * gnulib-tool: Use "test -h", not "test -L", for portability
56510         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56511         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56512         (sed_extract_prog): Issue s commands one-by-one, rather than
56513         using \| in one s command.
56514
56515 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56516
56517         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56518         input error, instead of returning NULL the next time we are called
56519         (and therefore losing track of errno).
56520
56521 2003-09-16  Bruno Haible  <bruno@clisp.org>
56522
56523         * gnulib-tool (func_create_testdir): Warn about duplicated
56524         dependencies.
56525
56526 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56527
56528         * modules/argmatch, modules/fatal, modules/obstack,
56529         modules/xalloc, modules/xgethostname: Sort dependencies by
56530         importance, not alphabetically.
56531
56532 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56533
56534         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56535         fails, so that the caller gets the proper errno.
56536
56537         * lib/readutmp.c (read_utmp): Likewise.
56538         Check for fstat error.  Close stream and free storage
56539         when failing.
56540
56541 2003-09-14  Karl Berry  <karl@gnu.org>
56542
56543         * config/srclist.txt (strdup.c): disable for c89 changes.
56544
56545 2003-09-14  Jim Meyering  <jim@meyering.net>
56546
56547         * lib/getloadavg.c: Correct cpp indentation.
56548         * lib/strdup.c: Likewise.
56549         * lib/vasnprintf.c: Likewise.
56550
56551 2003-09-14  Bruno Haible  <bruno@clisp.org>
56552
56553         * modules/fwriteerror: New file.
56554         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56555
56556 2003-09-14  Bruno Haible  <bruno@clisp.org>
56557
56558         * lib/fwriteerror.h: New file.
56559         * lib/fwriteerror.c: New file.
56560
56561 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56562
56563         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56564         modules/xgethostname, modules/xalloc: Depend on exit.
56565
56566 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56567
56568         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56569
56570         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56571         and AC_MINIX, too, so that their extensions are available.
56572
56573         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56574         This macro has been superseded by gl_BACKUPFILE.
56575
56576         More patches to assume C89 or better.
56577
56578         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56579
56580         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56581         unconditionally.
56582         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56583         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56584         Include <string.h>, <stdlib.h> unconditionally.
56585         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56586         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56587         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56588         headers or for string.h.
56589         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56590         or strtoul.
56591
56592         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56593         headers.
56594         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56595         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56596         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56597         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56598         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56599         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56600         memcpy, memset.
56601         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56602         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56603         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56604         strtol.
56605         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56606         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56607         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56608         strtoul.
56609
56610 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56611
56612         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56613         * lib/obstack.c [!defined _LIBC]: Likewise.
56614         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56615         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56616         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56617
56618         More changes to assume C89 or better.
56619
56620         * lib/error.c (error_tail): Assume vprintf.
56621
56622         * lib/argmatch.c (getenv): Remove decl.
56623         * lib/progreloc.c (get_full_program_name): Define via prototype.
56624         * lib/setenv.c (clearenv): Likewise.
56625         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56626         needed.
56627         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56628         (malloc, memcpy): Remove decls.
56629         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56630         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56631         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56632         (memcpy): Remove macro.
56633         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56634         (__P): Remove.  All uses removed.
56635         (PTR): Remove.  All uses changed to void *.
56636         (CHAR_BIT, NULL): Remove.
56637         (spaces, zeros, memset_space, memset_zero)
56638         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56639         Remove.
56640         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56641         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56642         Define with prototype.
56643         Remove now-unnecessary prototype decl.
56644         (extra_args_spec): Assume ANSI C.  All uses changed.
56645         (extra_args_spec_iso): Remove.
56646         (my_strftime, emacs_strftimeu): Define via prototype.
56647         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56648         unconditionally.
56649         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56650         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56651         (strtoul, strtol): Remove decls.
56652         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56653         LONG_MAX): Remove.
56654         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56655         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56656         (LOCALE_PARAM_PROTO): New macro.
56657         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56658         (INTERNAL (strtol), strtol): Define with a prototype.
56659         (PARAMS): Remove.  All uses removed.
56660         * lib/tempname.c: Include <string.h> unconditionally.
56661         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56662         * lib/xgethostname.c (main): Define with a prototype.
56663         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56664         Include <stdlib.h> unconditionally.
56665         (calloc, malloc, realloc, free): Remove decls.
56666         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56667         Include <stdlib.h> unconditionally.  Sort include file names.
56668         (strtod): Remove.
56669         (xstrtod): Define with a prototype.
56670         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56671         (strtol, strtoul): Remove decls.
56672
56673 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56674
56675         More patches to assume C89 or better.
56676         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56677         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56678         string.h, memchr, STDC_HEADERS.
56679
56680 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56681
56682         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56683         Include <stdlib.h>, <string.h> unconditionally.
56684         Remove now-unnecessary cast to char *.
56685         * lib/strnlen.c: Include <string.h> unconditionally.
56686         * lib/yesno.c (yesno): Define with a prototype.
56687
56688 2003-09-11  Bruno Haible  <bruno@clisp.org>
56689
56690         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56691
56692 2003-09-10  Jim Meyering  <jim@meyering.net>
56693
56694         * lib/error.c: Correct indentation of cpp directives.
56695
56696 2003-09-10  Bruno Haible  <bruno@clisp.org>
56697
56698         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56699         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56700         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56701         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56702         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56703         <stdlib.h> and <string.h> checks.
56704         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56705         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56706
56707 2003-09-10  Bruno Haible  <bruno@clisp.org>
56708
56709         * lib/strcspn.c: Include <string.h> unconditionally.
56710         * lib/strpbrk.c: Include <string.h> unconditionally.
56711         * lib/strstr.c: Include <string.h> unconditionally.
56712         * lib/unicodeio.c: Include <string.h> unconditionally.
56713         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56714         * lib/unsetenv.c: Likewise.
56715         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56716         * lib/yesno.c: Include <stdlib.h> unconditionally.
56717         (rpmatch): Add prototype.
56718
56719 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56720
56721         More patches to assume C89 or better.
56722         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56723         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56724         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56725         or for string.h.
56726         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56727         stdlib.h.
56728         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56729         C headers.
56730         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56731         string.h.
56732         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56733         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56734         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56735         or for string.h.
56736         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56737         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56738         C headers.
56739         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56740         memcpy.
56741         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56742         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56743         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56744         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56745         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56746         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56747         string.h, free.
56748         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56749         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56750         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56751         C headers, or for string.h.
56752         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56753         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56754         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56755         headers, memory.h, stdlib.h, string.h, strings.h.
56756         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56757         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56758         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56759         strchr.
56760         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56761         headers, memory.h, string.h.
56762         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56763         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56764         free.
56765         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56766         headers.
56767         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56768         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56769         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56770         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56771         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56772
56773 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56774
56775         More K&R removal.
56776
56777         * lib/acosl.c (main): Use a prototype.
56778         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56779         tanl.c: Likewise.
56780
56781         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56782
56783         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56784         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56785         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56786         with a prototype.
56787         * lib/getopt.c (const): Remove macro.
56788         Include <string.h> unconditionally.
56789         (my_index): Remove; all uses changed to strchr.
56790         (strlen): Remove decl.
56791         (exchange): Remove forward decl; no longer needed.
56792         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56793         Define with prototype.
56794         * lib/getopt1.c (const): Remove macro.
56795         (getopt_long, getopt_long_only, main): Define with prototype.
56796
56797         * lib/getugroups.c: Include <string.h> unconditionally.
56798
56799         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56800         (getusershell, setusershell, endusershell, readname, main):
56801         Define with prototypes.
56802
56803         * lib/group-member.c: Include group-member.h first.
56804         Include <stdlib.h> unconditionally.
56805
56806         * lib/hard-locale.c: Include hard-locale.h first.
56807         Include <stdlib.h>, <string.h> unconditionally.
56808
56809         * lib/hash.c (free, malloc): Remove decls.
56810         Include <stdlib.h> unconditionally.
56811
56812         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56813         (getenv): Do not declare.
56814
56815         * lib/idcache.c: Include <string.h> unconditionally.
56816
56817         * lib/long-options.c: Include long-options.h first, to test interface.
56818         Include <stdlib.h> unconditionally.
56819
56820         * lib/makepath.c: Include makepath.h first, to test interface.
56821         Include <stdlib.h> and <string.h> unconditionally.
56822
56823         * lib/linebuffer.c: Include <stdlib.h>.
56824         (free): Remove decl.
56825
56826         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56827         stddef.h. rpl_malloc returns void *, not char *.
56828         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56829         prototype.
56830
56831         * lib/md5.h: Include <limits.h> unconditionally.
56832         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56833         (__P): Remove; all uses removed.
56834         * lib/md5.c: Include "md5.h" first.
56835         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56836         md5_buffer, md5_process_bytes, md5_process_block):
56837         Define with prototypes.
56838         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56839         * lib/sha.c: Include "sha.h" first.
56840         Include <stdlib.h>, <string.h> unconditionally.
56841
56842         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56843         * lib/memcmp.c (__ptr_t): Likewise.
56844         * lib/memrchr.c (__ptr_t): Likewise.
56845         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56846         Include <string.h> unconditionally.
56847         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56848         * lib/memchr.c: Include <stdlib.h> unconditionally.
56849         * lib/memchr.c (LONG_MAX): Remove.
56850         * lib/memrchr.c (LONG_MAX): Likewise.
56851         * lib/memchr.c (__memchr): Define via a prototype.
56852         * lib/memrchr.c (__memrchr): Likewise.
56853         * lib/memcmp.c (__P): Remove, and remove all uses.
56854         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56855         Remove forward decls; no longer needed.
56856         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56857         Use types required by C89 in prototype.
56858
56859         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56860         * lib/savedir.c: Likewise.
56861         * lib/mkdir.c (free): Remove decl.
56862         * lib/rmdir.c (rmdir): Define with a prototype.
56863         * lib/savedir.c: Include savedir.h first, to test interface.
56864
56865         * lib/mktime.c (STDC_HEADERS): Remove.
56866         Include <stdlib.h>, <string.h> unconditionally.
56867
56868         * lib/modechange.c: Include <stdlib.h> unconditionally.
56869         (malloc): Remove decl.
56870
56871         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56872         (free): Remove decl.
56873
56874         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56875         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56876         (This type really should be intptr_t, but that's a C99ism.)
56877         (_obstack_memcpy): Remove: all uses changed to memcpy.
56878         Include <string.h> unconditionally.
56879         (struct obstack): Assume __STDC__ for types of members
56880         chunkfun, freefun, extra_arg.
56881         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56882         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56883         obstack_begin, obstack_specify_allocation,
56884         obstack_specify_allocation_with_arg, obstack_chunkfun,
56885         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56886         Remove unprototyped decls and the macros that use them.
56887         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56888         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56889         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56890         (defined __STDC__ && __STDC__)]:
56891         Remove nonprototyped code.
56892         Include <stdlib.h> unconditionally.
56893         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56894         _obstack_allocated_p, _obstack_free, obstack_free,
56895         _obstack_memory_used, print_and_abort):
56896         Define using prototypes.
56897         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56898         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56899         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56900         obstack_next_free, obstack_object_size, obstack_room) [0]:
56901         Remove unused, unprototyped code.
56902
56903         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56904
56905         * lib/physmem.c (physmem_total, physmem_available, main): Define
56906         with prototypes.
56907
56908         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56909         (main): Define with a prototype.
56910
56911         * lib/posixver.c (getenv): Remove decl.
56912
56913         * lib/putenv.c (malloc): Returns void *, not char *.
56914         Include <string.h> unconditionally.
56915         (strchr, memcpy, NULL): Do not define.
56916
56917         * lib/readtokens.c: Include readtokens.h first, to test interface.
56918         Include <stdlib.h>, <string.h> unconditionally.
56919         (init_tokenbuffer): Define with a prototype.
56920
56921         * lib/regex.c (PARAMS): Remove.  All uses removed.
56922         All uses of _RE_ARGS removed, too.
56923         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56924         unconditionally.
56925         (bzero): Assume memset exists.
56926         (memcmp, memcpy, NULL): Remove.
56927         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56928         char, or assignments to local vars of type signed char.
56929         (init_syntax_once, PREFIX(extract_number_and_incr),
56930         PREFIX(print_partial_compiled_pattern),
56931         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56932         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56933         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56934         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56935         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56936         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56937         wcs_compile_range, byte_compile_range, truncate_wchar,
56938         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56939         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56940         count_mbs_length, wcs_re_match_2_internal,
56941         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56942         PREFIX(alt_match_null_string_p),
56943         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56944         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56945         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56946         now-unnecessary declaration, if any.
56947         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56948         regcomp, regexec):
56949         Remove now-unnecessary casts among pointer types.
56950         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56951
56952         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56953         (free): Remove decl.
56954
56955         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56956
56957         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56958         (free): Remove decl.
56959
56960         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56961         * lib/xgetcwd.c: Likewise.
56962
56963         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56964         (free): Remove decl.
56965
56966         * lib/strchrnul.c (strchrnul): Define with a prototype.
56967         Fix bug: c_in was not converted to char before searching.
56968
56969         The following changes are not K&R related:
56970
56971         * lib/group-member.h: Include <sys/types.h>, so that this file is
56972         self-contained.
56973         * lib/makepath.h: Likewise.
56974
56975         * lib/getusershell.c (readname, default_index, line_size, readname):
56976         Use size_t, not int, for sizes.
56977         (readname): If the size overflows, report an error instead of
56978         looping forever.
56979
56980 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56981
56982         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56983         libc.
56984
56985 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56986
56987         * README: New section: portability guidelines.
56988
56989 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56990
56991         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56992         C89 spec.
56993
56994 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56995
56996         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56997
56998 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56999
57000         Assume C89 or better; remove K&R cruft.
57001         A few of these changes were first proposed by Derek Robert Price
57002         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57003
57004         * lib/addext.c: Include <string.h> unconditionally.
57005         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57006         Don't declare getenv or malloc.
57007
57008         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57009         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57010         (NULL): Remove.
57011         (find_stack_direction, alloca): Use prototypes.
57012
57013         * lib/atexit.c (atexit): Define using a prototype.
57014
57015         * lib/basename.c, dirname.c, stripslash.c:
57016         Include <string.h> unconditionally.
57017
57018         * lib/bcopy.c: Include <stddef.h>.
57019         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57020
57021         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57022
57023         * lib/error.h (error, error_at_line, error_print_progname)
57024         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57025         * lib/error.c: Include error.h first, to check interface.
57026         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57027         (VA_START): Remove; all uses changeed to va_start.
57028         (exit, strerror): Remove decls.
57029         (error_print_progname): Prototype uncondionally.
57030         Don't include <errno.h>; no longer needed.
57031         (private_strerror): Remove.
57032         (error_tail): Always define.
57033         (error, error_at_line): Assume C89 or better; always use prototypes.
57034         * lib/fatal.c: Include "fatal.h" first, to test interface.
57035         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57036         (VA_START): Remove; all uses changed to va_start.
57037         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57038         this case.
57039         (exit): Remove decl.
57040         (fatal): Prototype unconditionally.  Assume va_start works.
57041         Abort at end, to pacify gcc.
57042
57043         * lib/euidaccess.c (main): Define with a prototype.
57044
57045         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57046
57047         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57048
57049         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57050         prototypes.
57051         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57052         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57053         (getenv): Remove decl.
57054         (fnmatch): Define using a prototype.
57055         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57056         (FCT): Define using a prototype.
57057
57058         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57059
57060         * lib/gethostname.c: Include <stddef.h>.
57061         (gethostname): Define with prototype.  Length is size_t, not int.
57062
57063 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57064
57065         Assume C89 or better; remove K&R cruft.
57066         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57067         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57068         string.h, getenv, malloc.
57069         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57070         headers.
57071         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57072         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57073         do not check for strerror.
57074         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57075         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57076         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57077         do not check for doprnt or vprintf.
57078         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57079         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57080
57081 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57082
57083         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57084         getversion.c should have been removed then, but was accidentally
57085         preserved.
57086
57087         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57088         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57089
57090 2003-09-08  Karl Berry  <karl@gnu.org>
57091
57092         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57093                 config, forget about prep.
57094
57095         * config/depcomp, missing: update from automake.
57096
57097 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57098
57099         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57101
57102 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57103
57104         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57105         copy_tm_result.  Bug reported by Simon Josefsson in
57106         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57107
57108 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57109
57110         * m4/time_r.m4: New file.
57111         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57112         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57113         is. Check for timegm declaration.
57114         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57115         Do not check for gmtime_r.
57116         Replace mktime if __mktime_internal does not exist and if mktime
57117         hasn't been replaced already.
57118
57119 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57120
57121         * lib/time_r.c, lib/time_r.h: New files.
57122
57123         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57124         __localtime_r.
57125         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57126         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57127
57128         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57129         __gmtime_r.
57130         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57131         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57132         Include <time_r.h>.
57133
57134         * lib/timegm.c: Switch to glibc implementation, with the following
57135         changes:
57136         [defined HAVE_CONFIG_H]: Include <config.h>.
57137         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57138         (__mktime_internal) [!defined _LIBC]: New decl.
57139         (__gmtime_r) [!defined _LIBC]: New macro and function.
57140         (timegm): Use a prototype, since gnulib assumes C89.
57141         Do not bother declaring tmp to be const, as it's not really usefu.
57142         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57143         (timegm): Declare only if HAVE_DECL_TIMEGM.
57144
57145 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57146
57147         * MODULES.html.sh (func_all_modules): Add time_r.
57148         * modules/time_r: New file.
57149         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57150         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57151
57152 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57153
57154         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57155         Bug reported by Lute Kamstra in
57156         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57157
57158         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57159         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57160         course with correspondingly smaller numbers for tomorrow and
57161         yesterday.  From Tadayoshi Funaba.  Originally installed into
57162         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57163         coreutils merge?).
57164
57165 2003-08-31  Simon Josefsson  <jas@extundo.com>
57166
57167         * modules/timegm: New file.
57168         * MODULES.html.sh (func_all_modules): Add timegm.
57169
57170 2003-08-31  Simon Josefsson  <jas@extundo.com>
57171
57172         * m4/timegm.m4: New file.
57173
57174 2003-08-31  Simon Josefsson  <jas@extundo.com>
57175
57176         * lib/timegm.h: New file.
57177         * lib/timegm.c: New file.  Based on
57178         wget-1.8.2/src/http.c:mktime_from_utc.
57179
57180 2003-08-31  Karl Berry  <karl@gnu.org>
57181
57182         * lib/argp.h: update from libc.
57183
57184 2003-08-28  Bruno Haible  <bruno@clisp.org>
57185
57186         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57187         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57188         followed by '#define fnmatch fnmatch_posix' gives an error.
57189
57190 2003-08-28  Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57193         warning on QNX, which defines O_BINARY to 000000.
57194
57195 2003-08-27  Jim Meyering  <jim@meyering.net>
57196
57197         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57198         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57199         would fail after 32.  Reported by Danny Levinson.  Details here:
57200         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57201
57202 2003-08-24  Bruno Haible  <bruno@clisp.org>
57203
57204         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57205         MSVC7 <stdio.h> is included later.
57206
57207 2003-08-22  Simon Josefsson  <jas@extundo.com>
57208
57209         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57210
57211 2003-08-20  Karl Berry  <karl@gnu.org>
57212
57213         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57214
57215 2003-08-20  Bruno Haible  <bruno@clisp.org>
57216
57217         * modules/progname: New file.
57218         * MODULES.html.sh (func_all_modules): Add progname.
57219
57220 2003-08-20  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/progname.h: New file, from GNU gettext.
57223         * lib/progname.c: New file, from GNU gettext.
57224         * lib/progreloc.c: New file, from GNU gettext.
57225
57226 2003-08-19  Jim Meyering  <jim@meyering.net>
57227
57228         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57229         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57230
57231 2003-08-19  Bruno Haible  <bruno@clisp.org>
57232
57233         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57234         more.
57235
57236 2003-08-19  Bruno Haible  <bruno@clisp.org>
57237
57238         * lib/xstrdup.c: Assume <string.h> exists.
57239
57240 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57241
57242         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57243         in makefile rules.
57244
57245 2003-08-18  Jim Meyering  <jim@meyering.net>
57246
57247         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57248         * m4/lib-ld.m4: Likewise.
57249
57250 2003-08-18  Jim Meyering  <jim@meyering.net>
57251
57252         * lib/setenv.h: Indent nested cpp directive.
57253         * lib/vasnprintf.c: Remove trailing blanks.
57254
57255 2003-08-17  Simon Josefsson  <jas@extundo.com>
57256
57257         * modules/xstrndup: New file.
57258         * MODULES.html.sh (func_all_modules): Add xstrndup.
57259
57260 2003-08-17  Simon Josefsson  <jas@extundo.com>
57261
57262         * modules/argp: Fix autoconf macro name. Add more dependencies.
57263
57264 2003-08-17  Simon Josefsson  <jas@extundo.com>
57265
57266         * m4/xstrndup.m4: New file.
57267
57268 2003-08-17  Simon Josefsson  <jas@extundo.com>
57269
57270         * m4/argp.m4: New file.
57271
57272 2003-08-17  Simon Josefsson  <jas@extundo.com>
57273             Bruno Haible  <bruno@clisp.org>
57274
57275         * lib/xstrndup.h: New file.
57276         * lib/xstrndup.c: New file.
57277
57278 2003-08-17  Bruno Haible  <bruno@clisp.org>
57279
57280         * modules/strndup (Files, Include): Add lib/strndup.h.
57281
57282 2003-08-17  Bruno Haible  <bruno@clisp.org>
57283
57284         * modules/euidaccess (Files): Add lib/euidaccess.h.
57285
57286 2003-08-17  Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/strndup.h: New file.
57289
57290 2003-08-17  Bruno Haible  <bruno@clisp.org>
57291
57292         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57293         like AC_GNU_SOURCE.
57294         * modules/extensions (configure.ac): Comment out the invocation of
57295         gl_USE_SYSTEM_EXTENSIONS.
57296
57297 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57298
57299         Merges from coreutils, etc.
57300         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57301         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57302         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57303         fixing a typo.
57304         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57305         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57306
57307 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57308
57309         Document merge from coreutils.
57310         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57311         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57312         * modules/utime: Add m4/utimes-null.m4.
57313
57314 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57315
57316         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57317         space, undoing this 2003-08-12 change:
57318         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57319
57320 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57321
57322         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57323         strtoul.c from libc, undoing this 2003-08-12 change:
57324         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57325
57326 2003-08-16  Jim Meyering  <jim@meyering.net>
57327
57328         Merges from coreutils.
57329         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57330         prefix.  Adjust cache variables similarly.  Create 500 rather than
57331         just 300 files, to exercise bug on Darwin6.5, too.
57332         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57333         $missing_dir.
57334         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57335         AM_SYS_POSIX_TERMIOS.
57336         Reported by mkc@mathdogs.com.
57337         Also change use of $am_cv_sys_posix_termios
57338         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57339         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57340         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57341         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57342         in /proc/mounts until it finds one with matching device number.  This
57343         is unnecessary when the FILE argument *is* a mount point.  No stat call
57344         is necessary in that case.  So, disable the statvfs-testing code on
57345         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57346         as RedHat bug# 84846.
57347         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57348         to 1MB, so as not to render systems with no stack size limit (e.g.,
57349         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57350         Include <unistd.h>.  On some systems,
57351         it is required for the definition of _SC_PAGESIZE.
57352
57353 2003-08-16  Jim Meyering  <jim@meyering.net>
57354
57355         Merge from coreutils.
57356         * lib/xstrtoimax.c: #else #if -> #elif.
57357         * lib/xstrtoumax.c: Likewise.
57358
57359 2003-08-16  Jim Meyering  <jim@meyering.net>
57360
57361         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57362         * m4/utimes.m4: Removed.
57363         * m4/utimes-null.m4: Renamed from utimes.m4.
57364
57365         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57366         to 1MB, so as not to render systems with no stack size limit (e.g.,
57367         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57368         Include <unistd.h>.  On some systems,
57369         it is required for the definition of _SC_PAGESIZE.
57370
57371 2003-08-16  Jim Meyering  <jim@meyering.net>
57372         and Paul Eggert  <eggert@cs.ucla.edu>
57373
57374         Merges from coreutils, etc.
57375
57376         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57377         using the latest version from cvs.  This avoids problems with #line
57378         directives using a vendor (Sun) compiler.
57379         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57380         Don't set GETGROUPS_LIB here; now it's
57381         done via getgroups.m4's wrapper function.
57382         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57383         rather than just in sh-util/configure.in, so that the
57384         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57385         same.
57386         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57387         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57388         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57389         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57390         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57391         Remove code that is now done by the newly-required macros.
57392         Append $(EXEEXT) to DF_PROG.
57393         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57394         Do not invoke or require the following here,
57395         since prereq.m4 or some gnulib .m4 now does this for us:
57396         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57397         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57398         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57399         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57400         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57401         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57402         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57403         AC_FUNC_OBSTACK.
57404         Do not replace the following functions, as this is now the job
57405         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57406         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57407         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57408         atexit getpass, strdup, getpagesize.
57409         Replace 'raise'.
57410         Do not check for the following functions, as this is now the job
57411         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57412         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57413         setregid.
57414         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57415         Check for sys/sysctl.h.
57416         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57417         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57418         of checking for ssize_t ourselves.
57419
57420         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57421         Require every macro that gnulib/modules/* suggests for us.
57422         (jm_PREREQ_ADDEXT): New macro.
57423         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57424         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57425
57426         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57427         (gl_PHYSMEM): Use it.
57428         Also check for `table' function.
57429         Check for new headers and functions.
57430         Add check for sys/sysmp.h.
57431         With suggestions from Kaveh Ghazi.
57432         Ignore headers that are present but cannot be compiled.  This
57433         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57434         C 5.4.
57435
57436 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57437
57438         Document merge from coreutils.
57439         * modules/userspec: Depend on posixver.
57440         * modules/strftime: Depend on tzset.
57441
57442 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57443
57444         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57445         rather than tab, after '#' in shell-script copyright notices.
57446         Suggested by Bruno Haible.
57447
57448 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57449
57450         * config/srclist-update: Use three spaces, rather than tab, after '#'
57451         in shell-script copyright notices.  Suggested by Bruno Haible.
57452         Remove unnecessary parenthesization in regular expression.
57453
57454 2003-08-15  Jim Meyering  <jim@meyering.net>
57455
57456         Merge from coreutils.
57457         * lib/xgethostname.c: Include <stdlib.h>.
57458         (xghostname): Don't exit for anything other than memory-related
57459         failure; just return NULL.
57460         * lib/userspec.c: Include "posixver.h".
57461         (parse_user_spec): Accept `.' as a separator only
57462         in pre-POSIX-200112 mode.
57463         * lib/strtoimax.c: Use #elif rather than #else #if.
57464         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57465         Remove function, now that we can rely on a working tzset function.
57466         [!_LIBC]: Ensure that the required autoconf test has been run.
57467         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57468         Use underlying_strftime for %r.
57469         * lib/sha.c: Merge in some clean-up and optimization changes from
57470         glibc.
57471         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57472         Ensure that it is a multiple of 64.
57473         Rearrange loop exit tests so as to avoid performing an
57474         additional fread after encountering an error or EOF.
57475         * lib/realloc.c: Update copyright date.
57476
57477 2003-08-15  Jim Meyering  <jim@meyering.net>
57478         and Paul Eggert  <eggert@twinsun.com>
57479
57480         Merge from coreutils.
57481         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57482         member but strut utmpx does not.  Needed for AIX 4.3.3.
57483         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57484
57485 2003-08-15  Jim Meyering  <jim@meyering.net>
57486         and Paul Eggert  <eggert@cs.ucla.edu>
57487
57488         Merges from coreutils, etc.
57489         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57490         Require gl_FUNC_TZSET_CLOBBER.
57491         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57492         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57493         members.
57494
57495 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57496
57497         Help the merge from coreutils.
57498         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57499         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57500         * m4/tzset.m4: Use it too.
57501
57502 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57503
57504         * modules/tzset: New file.
57505
57506 2003-08-14  Jim Meyering  <jim@meyering.net>
57507
57508         Merges from coreutils.
57509         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57510         variable names, rather than @FNMATCH_H@.
57511         * modules/alloca: Likewise for $(ALLOCA_H).
57512
57513         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57514         the three copies of the literal target, `fnmatch.h'.
57515         * modules/alloca (alloca.h): Likewise.
57516
57517 2003-08-14  Jim Meyering  <jim@meyering.net>
57518
57519         Merge from coreutils.
57520         * m4/tzset.m4: New file.
57521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57522         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57523         otherwise, AIX 5.1 systems would end up using the latter.
57524         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57525         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57526         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57527         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57528
57529 2003-08-14  Jim Meyering  <jim@meyering.net>
57530
57531         Merge from coreutils.
57532         * lib/obstack.h: Whitespace changes.
57533         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57534         and xcalloc return values.
57535         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57536         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57537         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57538         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57539         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57540         error from mntctl.
57541         Use mntctl's return value to drive the entry-processing loop, since
57542         we can't rely on the value of the vmt_length member in the last
57543         entry.  On some systems doing so could result in exhausting
57544         virtual memory.  Based in part on a patch from Mike Jetzer.
57545
57546 2003-08-14  Jim Meyering  <jim@meyering.net>
57547         and Paul Eggert  <eggert@twinsun.com>
57548
57549         Merges from coreutils, plus other fixes.
57550         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57551         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57552         for credits and details.  Thanks to Kaveh Ghazi for helping
57553         to keep these files in sync.
57554         (ARRAY_SIZE): Define it.
57555         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57556         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57557         (memcasecmp): Don't assume size_t fits in unsigned int.
57558         Remove casts and duplicate code.
57559         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57560         (memcpy): Remove definition.
57561         Merge in some clean-up and optimization changes from glibc.
57562         [BLOCKSIZE]: Move definition to top of file.
57563         Ensure that it is a multiple of 64.
57564         Rearrange loop exit tests so as to avoid performing an
57565         additional fread after encountering an error or EOF.
57566         * lib/md5.h (md5_uintptr): Define.
57567         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57568         return to the initial working directory.  Preserve errno
57569         for caller.
57570         * lib/idcache.c: Include "xalloc.h".
57571         (xmalloc, xrealloc): Remove decls.
57572         (getuser): Remove casts no longer required in C89.
57573         * lib/human.c: Include stdio.h, for sprintf.
57574         * lib/group-member.c: Include "xalloc.h".
57575         (xmalloc, xrealloc): Remove decls.
57576         (get_group_info): Remove casts no longer required in C89.
57577         * lib/getusershell.c (readname): Remove casts no longer required in
57578         C89.
57579         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57580         * lib/getline.c: Whitespace fix, from coreutils.
57581
57582 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57583
57584         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57585         Check for isascii.
57586
57587         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57588         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57589         Undo previous (whitespace-only) change.
57590
57591 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57592
57593         * lib/exclude.c: Include <ctype.h>
57594         (IN_CTYPE_DOMAIN): New macro.
57595         (is_space): New fn.
57596         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57597         and empty lines.
57598
57599         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57600         Undo previous (whitespace-only) change.
57601
57602 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57603
57604         * config/srclist-update: Change update back to the old behavior,
57605         leaving whitespace alone.  Use one 'sed' command rather than a
57606         pipeline.
57607         (fixlicense): Now a variable, not a function.
57608         (remove_trailing_blanks): Remove.
57609         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57610         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57611         Undo previous (whitespace-only) change.
57612
57613 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57614
57615         Merge from coreutils.
57616         * modules/euidaccess: Add lib_SOURCES, include for new
57617         file euidaccess.h
57618
57619 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57620
57621         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57622         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57623         Normalize leading white space and remove trailing white space.
57624
57625         Merge from coreutils
57626         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57627
57628         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57629         0.12.1.  These files are now being upgraded automatically by
57630         ../config/srclist-update.
57631
57632 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57633
57634         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57635         Normalize leading white space and remove trailing white space.
57636         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57637         notice, as per ../config/srclist-update.
57638
57639         Merge from coreutils.
57640         * lib/euidaccess.h: New file.
57641         * lib/euidaccess.c: Include it.
57642         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57643         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57644         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57645
57646 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57647
57648         * config/srclist-update: Add copyright notice.
57649         (remove_id_lines, remove_trailing_blanks): New constants.
57650         (fixfile): Use them to normalize spacing a bit in copied files.
57651         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57652         Normalize leading white space and remove trailing white space.
57653
57654         * config/texinfo.tex: Sync with texinfo.
57655
57656         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57657         strtoul.c from libc, to merge coreutils whitespace changes.
57658
57659         * config/srclist.txt: Get the following m4 files from gettext:
57660         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57661         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57662         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57663         wint_t.m4.
57664
57665 2003-08-12  Karl Berry  <karl@gnu.org>
57666
57667         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57668         been made.
57669
57670 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57671
57672         * modules/gnu-source, m4/gnu-source.m4:
57673         Remove; we're assuming Autoconf 2.54 or later now.
57674         Suggested by Bruno Haible.
57675         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57676
57677 2003-08-11  Bruno Haible  <bruno@clisp.org>
57678
57679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57680
57681 2003-08-11  Bruno Haible  <bruno@clisp.org>
57682
57683         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57684         (vasnprintf): Use it instead of wcslen.
57685
57686 2003-08-11  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57689         value to ensure that _Bool promotes to int. Use #define for _Bool when
57690         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57691
57692 2003-08-10  Karl Berry  <karl@gnu.org>
57693
57694         * lib/regex.h: update from libc (whitespace fix).
57695
57696 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57697
57698         Merge some files from coreutils.  These changes were
57699         originally made by Jim Meyering.
57700         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57701         many older Unixes require this.
57702         * lib/alloca.c (alloca): Remove cast to argument of free;
57703         no longer needed in C89.
57704         * lib/alloca_.h, regex.h: Fix white space to match
57705         what GNU indent does.
57706
57707 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57708
57709         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57710         apparently Emacs's Unicode mode got confused before my 2003-08-05
57711         checkin.
57712
57713 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57714
57715         * m4/extensions.m4: New file.
57716         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57717         Require gl_USE_SYSTEM_EXTENSIONS.
57718         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57719         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57720
57721 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57722
57723         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57724         * modules/extensions, modules/gnu-source: New files.
57725         * modules/timespec, modules/unlocked-io: Depend on extensions.
57726
57727 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57728
57729         * modules/restrict: New file.
57730         * MODULES.html.sh (func_all_modules): Add restrict.
57731         * modules/regex: Depend on restrict.
57732
57733 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57734
57735         * m4/restrict.m4: New file.
57736         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57737
57738 2003-08-07  Bruno Haible  <bruno@clisp.org>
57739
57740         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57741         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57742
57743 2003-08-07  Bruno Haible  <bruno@clisp.org>
57744
57745         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57746         makes the module 'getndelim2' compatible with the module 'getline'.
57747
57748 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57749
57750         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57751         byte with "\201" to avoid glitches when editing that source file
57752         with multi-gnome-terminal.
57753
57754 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57755
57756         * lib/bumpalloc.h: Remove.
57757
57758 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57759
57760         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57761         * modules/bumpalloc: Remove.
57762
57763 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57764
57765         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57766         GNU coding style.
57767
57768         Merge from coreutils.
57769         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57770         1. From glibc.
57771         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57772         from Karl Berry, implemented by Jim Meyering.
57773         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57774         from Dmitry V. Levin.
57775         Remove anachronistic cast of xrealloc.
57776         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57777         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57778         type. Otherwise, it wouldn't compile with at least /bin/cc on
57779         ymp-cray-unicos9.0.2.X.
57780         Combine two mostly-identical uses of alloca into one.
57781         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57782
57783 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57784
57785         [From Emacs.]
57786
57787         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57788         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57789         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57790         obsolete NLIST_NAME_UNION.
57791         [__GNU__]: Undef BSD and FSCALE.
57792         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57793
57794 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57795
57796         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57797         an enum type, so that it's guaranteed to promote to int.  See:
57798         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57799
57800 2003-08-03  Karl Berry  <karl@gnu.org>
57801
57802         * config/depcomp: update from automake.
57803
57804 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57805
57806         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57807         (strerror): Don't assume that a printable int fits in 14 bytes.
57808
57809 2003-07-31  Bruno Haible  <bruno@clisp.org>
57810
57811         * modules/getpass-gnu: New file.
57812         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57813
57814 2003-07-31  Bruno Haible  <bruno@clisp.org>
57815
57816         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57817
57818 2003-07-24  Karl Berry  <karl@gnu.org>
57819
57820         * config/missing: update from automake.
57821
57822 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57823             Bruno Haible  <bruno@clisp.org>
57824
57825         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57826         * lib/getline.c (getline, getdelim): Likewise.
57827         Remove _GNU_SOURCE define; now it's defined in config.h through
57828         m4/getline.m4.
57829
57830 2003-07-23  Karl Berry  <karl@gnu.org>
57831
57832         * config/config.sub: update from prep.
57833
57834 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57835
57836         * modules/xalloc (Depends-on): Add exitfail.
57837         * modules/xmemcoll: Likewise.
57838
57839 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57840
57841         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57842         over-parenthesization in macros.
57843
57844         Sync with coreutils.
57845
57846         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57847         required by C99.
57848
57849         Use `exit_failure' for xalloc and xmemcoll instead of their own
57850         private exit-failure variables.
57851         * lib/xalloc.h (xalloc_exit_failure): Remove.
57852         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57853         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57854         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57855         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57856         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57857
57858 2003-07-20  Jim Meyering  <jim@meyering.net>
57859
57860         * modules/closeout (Depends-on): Add exitfail.
57861         Suggestion from Bruno Haible.
57862
57863 2003-07-19  Karl Berry  <karl@gnu.org>
57864
57865         * config/config.sub: update from prep.
57866
57867 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57868
57869         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57870         Remove.
57871         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57872         to test that it can stand by itself.  Include "exitfail.h".
57873         Clients should set exit_failure instead.
57874         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57875
57876 2003-07-18  Bruno Haible  <bruno@clisp.org>
57877
57878         * modules/getndelim2: New file.
57879         * modules/getline: Share files with module getndelim2.
57880         * modules/getnline: Depend on getndelim2 instead of sharing files with
57881         it. Add getnline.c to lib_SOURCES.
57882         * MODULES.html.sh (func_all_modules): Add getndelim2.
57883
57884 2003-07-18  Bruno Haible  <bruno@clisp.org>
57885
57886         * m4/getndelim2.m4: New file.
57887         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57888         invoke gl_PREREQ_GETNDELIM2.
57889         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57890         gl_PREREQ_GETNDELIM2.
57891         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57892         gl_GETNDELIM2.
57893
57894 2003-07-18  Bruno Haible  <bruno@clisp.org>
57895
57896         * lib/getndelim2.h: New file.
57897         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57898         getndelim2.h.
57899         (getndelim2): Make non-static. Change return type to ssize_t.
57900         * lib/getline.h: Change argument names.
57901         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57902         * lib/getnline.c: Include getndelim2.h.
57903
57904 2003-07-18  Andreas Schwab  <schwab@suse.de>
57905
57906         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57907
57908 2003-07-17  Karl Berry  <karl@gnu.org>
57909
57910         * config/config.sub: update from prep.
57911
57912 2003-07-17  Bruno Haible  <bruno@clisp.org>
57913
57914         * modules/getnline: New file.
57915         * modules/getline: Add lib/getndelim2.c to source file list.
57916         * MODULES.html.sh (func_all_modules): Add getnline.
57917
57918 2003-07-17  Bruno Haible  <bruno@clisp.org>
57919
57920         * m4/getnline.m4: New file.
57921
57922 2003-07-17  Bruno Haible  <bruno@clisp.org>
57923
57924         * m4/Makefile.am.in: Remove file.
57925         * m4/Makefile.am: Remove file.
57926         * m4/Makefile.in: Remove file.
57927
57928 2003-07-17  Bruno Haible  <bruno@clisp.org>
57929
57930         * lib/getnline.h: New file.
57931         * lib/getnline.c: New file.
57932         * lib/getndelim2.c: New file, extracted from getline.c.
57933         (getndelim2): Renamed from getdelim2, with added nmax argument.
57934         * lib/getline.c: Include getndelim2.c.
57935         (getdelim2): Moved out to getndelim2.c.
57936         (getline, getdelim): Update.
57937
57938 2003-07-17  Bruno Haible  <bruno@clisp.org>
57939
57940         * lib/Makefile.am: Remove file.
57941         * lib/Makefile.in: Remove file.
57942
57943 2003-07-17  Bruno Haible  <bruno@clisp.org>
57944
57945         * configure.in: Remove file.
57946         * Makefile.in: Remove file.
57947
57948 2003-07-17  Bruno Haible  <bruno@clisp.org>
57949
57950         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57951
57952 2003-07-16  Karl Berry  <karl@gnu.org>
57953
57954         * config/srclist-update: was running fixlicense twice, which caused
57955                 texinfo.tex to be nullified for some reason.  Simplify,
57956                 $gplsrc is no longer needed as far as I can see?
57957
57958 2003-07-16  Jim Meyering  <jim@meyering.net>
57959
57960         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57961
57962 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57963
57964         * config/srclist.txt: Get the following files from gettext-runtime/intl
57965         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57966         ref-del.sin.  From Bruno Haible.
57967         * config/srclist-update (fixfile): Change grep pattern again, since the
57968         previous fix didn't work (there was another trailing $).  Use
57969         '[$]' to escape the $s.
57970
57971 2003-07-15  Karl Berry  <karl@gnu.org>
57972
57973         * lib/vasnprintf.c: update from gettext.
57974
57975 2003-07-15  Karl Berry  <karl@gnu.org>
57976
57977         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57978         gets expanded when surrounded by '$'.
57979
57980 2003-07-15  Jim Meyering  <jim@meyering.net>
57981
57982         * modules/save-cwd: Don't depend on error.  From Derek Price.
57983
57984 2003-07-15  Jim Meyering  <jim@meyering.net>
57985
57986         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57987
57988 2003-07-14  Simon Josefsson  <jas@extundo.com>
57989
57990         * modules/mempcpy: New file.
57991         * MODULES.html.sh (func_all_modules): Add mempcpy.
57992
57993 2003-07-14  Simon Josefsson  <jas@extundo.com>
57994
57995         * m4/mempcpy.m4: New file.
57996
57997 2003-07-14  Simon Josefsson  <jas@extundo.com>
57998
57999         * lib/mempcpy.h: New file.
58000         * lib/mempcpy.c: New file.
58001
58002 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58003
58004         * modules/getdate, modules/posixtm: Depend on mktime.
58005
58006 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58007
58008         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58009         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58010         unicodeio.c, unicodeio.h, unlocked-io.h:
58011         Switch from LGPL to GPL.
58012
58013 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58014
58015         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58016         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58017         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58018         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58019         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58020         updated automatically by ../config/srclist-update.  This changes
58021         their license from LPGL to GPL.
58022
58023 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58024
58025         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58026         assumed to refer to the root of the most recent stable gettext version.
58027         * config/srclistvars.sh: Add defaults for eggert.
58028         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58029         Match "This program" as well as "The program".  This is needed
58030         for gettext.
58031
58032 2003-07-14  Jim Meyering  <jim@meyering.net>
58033
58034         Don't emit diagnostics.  Let callers do that.
58035         * lib/save-cwd.c: Don't include "error.h".
58036         (save_cwd): Don't call error.  Ensure that errno is valid
58037         when returning nonzero.
58038
58039         * lib/save-cwd.h (restore_cwd): Update prototype.
58040         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58041         Simplify.  Don't call error upon failure.  Let callers do that.
58042         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58043         when auditing is enabled.  But don't bother updating the #if.
58044
58045 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58046
58047         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58048         it breaks C++ compilation.
58049         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58050
58051 2003-07-10  Simon Josefsson  <jas@extundo.com>
58052
58053         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58054
58055 2003-07-10  Jim Meyering  <jim@meyering.net>
58056
58057         * m4/clock_time.m4: Remove trailing blank.
58058         * m4/intmax_t.m4: Likewise.
58059
58060 2003-07-10  Jim Meyering  <jim@meyering.net>
58061
58062         * lib/vasnprintf.c: Remove trailing blanks.
58063         Make cpp indentation consistent.
58064
58065 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58066
58067         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58068         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58069         Switch from LGPL to GPL.
58070
58071 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58072
58073         * config/srclist.txt: Sort sublists.  Add
58074         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58075         that differ from gnulib for one reason or another; we'd like this list
58076         to be smaller but for now let's document what we have.
58077
58078 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58079
58080         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58081         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58082         and sweeter "eval x=$x".
58083         * config/srclist.txt: Get lib/argp* from glibc.
58084
58085 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58086
58087         * lib/mktime.c: Fix some boundary cases and remove need for floating
58088         point.
58089
58090         Issue a compile-time diagnostic if time_t is floating point, or if
58091         two's complement arithmetic is not in effect, or if arithmetic
58092         right shift does not propagate the sign.  These assumptions were
58093         all in the original code but they weren't checked.
58094
58095         (TIME_T_MIDPOINT, verify): New macros.
58096         (__isleap): Remove; it has integer overflow problems.
58097         (leapyear): New function, without those problems.
58098         (ydhms_tm_diff): Remove; splitting into two parts.
58099         (ydhms_diff): New function, containing the arithmetic part of
58100         the old ydhms_tm_diff function.  Issue a compile-time
58101         diagnostic if we are not using C99 integer division.
58102         Avoid casts when possible.
58103         (guess_time_tm): New function, containing the checking part of
58104         the old ydhms_tm_diff function.  Return the new value, rather than
58105         the difference between it and the old.  Accept a new argument T
58106         so that *T specifies the old value.  Check for overflow in the result.
58107
58108         (__mktime_internal): Use a time_t offset, not a long int offset.
58109         This undoes the 2003-06-04 change, which is no longer needed now
58110         that we have better overflow checking.
58111         (localtime_offset): Likewise.
58112
58113         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58114         and long are 64-bit but int is only 32-bit.
58115         (ydhms_diff): Use long int to store year1 and yday1.
58116         Issue a compile-time diagnostic if long int is not wide enough.
58117
58118         (__mktime_internal): Use long int to store adjusted year and yday.
58119         Use plain C rather than preprocessor commands, if that doesn't
58120         affect efficiency.
58121         Check for overflow (and try to repair) after each probe
58122         rather than checking only at the very end.  This avoids some bugs
58123         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58124         does not equal GMT offset at maximum time).
58125         Use integer to check for overflow rather than floating point; this
58126         is more portable to non-IEEE hosts, and is a tad faster.
58127         When we detect that we are oscillating between two values,
58128         don't check whether tm_isdst has the requested value, since
58129         we already know the answer.  When tm_isdst has the wrong value,
58130         use a different heuristic to find the right one, based on the
58131         extreme values actually observed in practice in tz2003a,
58132         rather than the (overly optimistic) "previous 3 calendar quarters".
58133
58134         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58135         "T const" to accommodate glibc style.
58136         (check_result): Use less-confusing report format.  "long" -> "long int.
58137         (main): Likewise.
58138         Don't loop if the iteration overflows time_t.
58139         Allow a negative step in the iteration.
58140
58141 2003-07-06  Karl Berry  <karl@gnu.org>
58142
58143         * config/depcomp: update from automake.
58144         * config/config.sub: update from prep.
58145
58146 2003-07-03  Karl Berry  <karl@gnu.org>
58147
58148         * config/config.guess: update from prep.
58149
58150 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58151
58152         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58153         xreadlink.c now includes it unconditionally.
58154
58155 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58156
58157         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58158         having it depend on HAVE_SYS_TYPES_H.
58159
58160 2003-07-01  Bruno Haible  <bruno@clisp.org>
58161
58162         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58163         <sys/types.h> should be sufficient.
58164         Reported by Paul Eggert.
58165
58166 2003-06-26  Karl Berry  <karl@gnu.org>
58167
58168         * config/depcomp: update from automake.
58169
58170 2003-06-26  Bruno Haible  <bruno@clisp.org>
58171
58172         * modules/human: Depend on module stdbool.
58173
58174 2003-06-25  Bruno Haible  <bruno@clisp.org>
58175
58176         * modules/readlink: New file.
58177         * modules/xreadlink: Depend on it.
58178         * MODULES.html.sh (func_all_modules): Add readlink.
58179
58180 2003-06-25  Bruno Haible  <bruno@clisp.org>
58181
58182         * m4/readlink.m4: New file.
58183
58184 2003-06-25  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/readlink.c: New file.
58187
58188 2003-06-22  Karl Berry  <karl@gnu.org>
58189
58190         * config/srclist.txt: update mkinstalldirs from automake.
58191         * config/mkinstalldirs: update.
58192
58193 2003-06-22  Bruno Haible  <bruno@clisp.org>
58194
58195         Portability to mingw32.
58196         * m4/ssize_t.m4: New file, from GNU gettext.
58197         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58198         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58199
58200 2003-06-22  Bruno Haible  <bruno@clisp.org>
58201
58202         * modules/safe-read: Add m4/ssize_t.m4.
58203         * modules/xreadlink: Add m4/ssize_t.m4.
58204
58205 2003-06-20  Bruno Haible  <bruno@clisp.org>
58206
58207         Assume C89, so PARAMS isn't needed.
58208         * lib/unicodeio.h (PARAMS): Remove.
58209         * lib/unicodeio.c: Don't use PARAMS.
58210
58211 2003-06-18  Karl Berry  <karl@gnu.org>
58212
58213         * config/config.{guess,sub}: update from prep.
58214
58215 2003-06-18  Jim Meyering  <jim@meyering.net>
58216
58217         Merge changes from coreutils.
58218         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58219         Remove explicit declarations of xmalloc and realloc.
58220         Include xalloc.h.
58221         (read_utmp): Remove anachronistic cast of xmalloc.
58222
58223 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58224
58225         Assume C89, so PARAMS isn't needed.
58226         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58227         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58228         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58229         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58230         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58231         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58232         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58233         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58234         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58235         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58236         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58237         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58238         no longer needed. Anyway, config.h should always be included before any
58239         other file.
58240
58241 2003-06-11  Simon Josefsson  <jas@extundo.com>
58242
58243         * modules/sysexits: New file.
58244         * MODULES.html.sh (func_all_modules): Add sysexits.
58245
58246 2003-06-11  Simon Josefsson  <jas@extundo.com>
58247
58248         * lib/sysexit_.h: New file.
58249
58250 2003-06-11  Derek Price  <derek@ximbiot.com>
58251
58252         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58253         necessary.
58254
58255 2003-06-11  Bruno Haible  <bruno@clisp.org>
58256
58257         * m4/sysexits.m4: New file.
58258
58259 2003-06-10  Simon Josefsson  <jas@extundo.com>
58260
58261         * lib/argp.h: New file, from glibc.
58262         * lib/argp-ba.c: New file, from glibc.
58263         * lib/argp-eexst.c: New file, from glibc.
58264         * lib/argp-fmtstream.c: New file, from glibc.
58265         * lib/argp-fmtstream.h: New file, from glibc.
58266         * lib/argp-fs-xinl.c: New file, from glibc.
58267         * lib/argp-help.c: New file, from glibc.
58268         * lib/argp-namefrob.h: New file, from glibc.
58269         * lib/argp-parse.c: New file, from glibc.
58270         * lib/argp-pv.c: New file, from glibc.
58271         * lib/argp-pvh.c: New file, from glibc.
58272         * lib/argp-xinl.c: New file, from glibc.
58273
58274 2003-06-10  Simon Josefsson  <jas@extundo.com>
58275
58276         * modules/strchrnul: New file.
58277
58278 2003-06-10  Simon Josefsson  <jas@extundo.com>
58279
58280         * modules/argp: New file.
58281
58282 2003-06-10  Simon Josefsson  <jas@extundo.com>
58283
58284         * m4/strchrnul.m4: New file.
58285
58286 2003-06-10  Simon Josefsson  <jas@extundo.com>
58287
58288         * lib/strchrnul.h: New file.
58289         * lib/strchrnul.c: New file.
58290
58291 2003-06-10  Bruno Haible  <bruno@clisp.org>
58292
58293         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58294
58295 2003-06-07  Karl Berry  <karl@gnu.org>
58296
58297         * config/config.{guess,sub}: update from prep.
58298
58299 2003-06-07  Jim Meyering  <jim@meyering.net>
58300
58301         * modules/strtod: Use $(...) notation, not @...@ for
58302         AC_REPLACE'd variables.
58303         * modules/localcharset: Likewise.
58304
58305 2003-06-07  Jim Meyering  <jim@meyering.net>
58306
58307         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58308         in place of my name in the copyright comment.
58309         Remove definition and uses of __P.
58310
58311         From coreutils.
58312         * lib/stat.c: Don't declare xmalloc explicitly.
58313         Instead, include "xalloc.h".
58314         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58315         xrealloc, and xcalloc return values.
58316         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58317         Improve comment.
58318         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58319
58320 2003-06-07  Bruno Haible  <bruno@clisp.org>
58321
58322         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58323         avoid AC_CONFIG_LINKS.
58324         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58325         fnmatch.h, to avoid AC_CONFIG_LINKS.
58326         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58327
58328 2003-06-07  Bruno Haible  <bruno@clisp.org>
58329
58330         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58331         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58332         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58333         directory.
58334         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58335         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58336         directory.
58337
58338 2003-06-06  Jim Meyering  <jim@meyering.net>
58339
58340         Merge from coreutils.
58341         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58342         Consolidate declarations and initializations of *_base* locals.
58343
58344         Merge from coreutils.
58345         This avoids a core dump on systems without GNU putenv,
58346         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58347         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58348         (unsetenv): New static function, from GNU libc.
58349         (rpl_putenv): Use it.
58350
58351         * lib/modechange.c: Remove trailing blanks.
58352
58353         Merge from coreutils.
58354         * lib/fsusage.c: Remove declaration of statfs.
58355         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58356
58357         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58358
58359 2003-06-06  Jim Meyering  <jim@meyering.net>
58360
58361         * lib/stdbool_.h: Renamed from stdbool.h.in.
58362
58363 2003-06-06  Jim Meyering  <jim@meyering.net>
58364             Bruno Haible  <bruno@clisp.org>
58365
58366         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58367         Adjust Makefile.am snippet not to redirect directly to target.
58368         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58369
58370 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58371
58372         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58373         mismatch, look in future quarters as well as past.  This fixes a
58374         bug when processing fall-backwards gaps immediately after a long
58375         period of daylight-saving time.
58376
58377         * lib/mktime.c: Assume freestanding C89 or better.
58378         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58379         (__P): Remove; not used.
58380         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58381         (mktime, not_equal_tm, print_tm, check_result,
58382         main): Use prototypes.  Use const * where appropriate.
58383         (main): Fix typo in testing code that uncovered by above changes.
58384         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58385
58386 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58387
58388         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58389         locale.h, localeconv.  This merges changes from coreutils.
58390
58391         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58392         It can be removed after the next Autoconf is released.
58393         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58394         needed.
58395
58396 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58397
58398         * lib/mktime.c: Fix Debian bug 177940
58399         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58400         (localtime_offset): Now long int, not time_t, because we want it
58401         to be guaranteed to be signed.  All uses changed.
58402         (__mktime_internal): If overflow would occur when adding offset,
58403         don't add it.
58404
58405         Merge 'human' changes from coreutils.  Rewrite to support
58406         locale-specific notations like thousands separators.
58407         * lib/human.c: Simplify authorship notice.
58408         Include human.h immediately after config.h.
58409         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58410         <limits.h>: Do not include, since human.h does.
58411         (SIZE_MAX, UINTMAX_MAX): New macros.
58412         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58413         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58414         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58415         (power_letter): Renamed from suffixes.
58416         (generate_suffix_backwards): Remove.
58417         (adjust_value): Now takes int style (because of human.h changes)
58418         and long double value (for greater precision on some platforms).
58419         (group_number): New function.
58420         (human_readable): Use it.  Use integer options, not enum.
58421         Put the options before the sizes in the arg list.
58422         Support all the new options.
58423         The old human_readable function has been removed;
58424         use inttostr.h instead.
58425         (human_readable, default_block_size, humblock):
58426         Use uintmax_t, not int, for block sizes.
58427         (human_readable_inexact, block_size_types): Remove.
58428         (block_size_opts): New constant.
58429         (human_options): Renamed from human_block_size, with new signature
58430         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58431         * lib/human.h: Add copyright and authorship notice.
58432         Include <limits.h> and <stdbool.h> unconditionally.
58433         (PARAMS): Remove.  All uses removed.
58434         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58435         (enum human_inexact_style): Remove tag; now a nameless enum.
58436         (human_floor, human_ceiling, human_round_to_even): Now have
58437         values 2, 0, 1 rather than -1, 1, 0.
58438         (human_group_digits, human_suppress_point_zero, human_autoscale,
58439         human_base_1024, human_SI, human_B): New constants.
58440         (human_readable_inexact, human_block_size): Remove.
58441         (human_readable): Size args are now uintmax_t, not int.
58442         (human_options): New decl.
58443
58444         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58445         unnecessary now that we assume C89 or better.  This change
58446         imported from coreutils.
58447
58448         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58449         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58450         in the 2003-05-30 sync from glibc.
58451
58452         .h files should stand alone, but we shouldn't include <sys/types.h>
58453         if we can get away with just <stddef.h>.
58454
58455         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58456         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58457         rather than <sys/types.h>, as we merely need size_t.
58458         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58459         to get size_t.
58460         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58461         Include <stdio.h>, to get FILE.
58462         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58463         memcasecmp.h has included <stddef.h> and all we need is size_t.
58464         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58465         our interface, instead of including <sys/types.h>
58466
58467 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58468
58469         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58470         now, as glibc mktime is buggy on non-glibc systems.
58471
58472 2003-06-03  Karl Berry  <karl@gnu.org>
58473
58474         * config/config.sub: update from prep.
58475
58476 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58477
58478         [from coreutils]
58479         Fix some minor time-related bugs with POSIX time arguments.
58480         Some valid time stamps were being rejected (notably -1, and
58481         time stamps before 1900 on 64-bit hosts).  And some invalid
58482         time stamps were being accepted, e.g. September 31.
58483
58484         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58485         that we can return (time_t) -1 successfully.
58486         * lib/posixtm.c: Likewise.
58487         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58488         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58489         (t): Remove static var.
58490         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58491         of static var.  All uses changed.
58492         (year): Do not reject years before 1900; they can occur with
58493         64-bit time_t.
58494         (posix_time_parse): Do not check for out-of-range components;
58495         that is now the caller's responsibility, since our checks were
58496         only approximations.
58497         (posixtime): Use mktime to check for out-of-range components,
58498         since it knows them exactly.
58499         If mktime returns (time_t) -1, check whether an error actually occurred
58500         by invoking localtime on -1.
58501         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58502         posixtime failures better.
58503         Improve the test data (in comments only).
58504
58505 2003-06-02  Karl Berry  <karl@gnu.org>
58506
58507         * config/mkinstalldirs (version): new variable.
58508         (--version): new option.
58509         (usage): improve message.
58510
58511 2003-05-30  Karl Berry  <karl@gnu.org>
58512
58513         * lib/mktime.c: update from libc.
58514
58515 2003-05-30  Bruno Haible  <bruno@clisp.org>
58516
58517         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58518         * config/config.rpath: Upgrade to gettext-0.12.1.
58519
58520 2003-05-30  Bruno Haible  <bruno@clisp.org>
58521
58522         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58523         * m4/nls.m4: New file, from gettext-0.12.1.
58524         * m4/po.m4: New file, from gettext-0.12.1.
58525         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58526
58527 2003-05-30  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58530         * lib/localcharset.h: Likewise.
58531         * lib/localcharset.c: Likewise.
58532
58533 2003-05-29  Karl Berry  <karl@gnu.org>
58534
58535         * config/config.rpath: update from gettext.
58536
58537 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58538
58539         Assume the headers required for C89 freestanding compilers.
58540         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58541         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58542         * m4/human.m4 (gl_HUMAN): Likewise.
58543         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58544         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58545         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58546         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58547         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58548         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58549
58550 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58551
58552         Assume the headers required for C89 freestanding compilers.
58553         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58554         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58555         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58556         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58557         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58558         define, since <limits.h> is guaranteed to do that.
58559         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58560         * lib/exclude.c: Include <stdbool.h> unconditionally.
58561         * lib/tempname.c: Include <stddef.h> unconditionally.
58562         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58563         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58564         <stddef.h> does that.
58565         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58566         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58567         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58568         needed.
58569         * lib/xstrtol.c: Likewise.
58570         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58571         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58572
58573         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58574         warnings on some platforms.
58575
58576         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58577         arbitrarily.
58578
58579 2003-05-26  Jim Meyering  <jim@meyering.net>
58580
58581         Merge in a change from coreutils:
58582         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58583         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58584         that condition, rather than `-1' which is slightly misleading.
58585         Change the name of the cache variable to have the gl_ prefix.
58586         Prompted by a patch from Richard Dawe for DJGPP.
58587
58588 2003-05-24  Karl Berry  <karl@gnu.org>
58589
58590         * config/config.guess: update from prep.
58591
58592 2003-05-22  Karl Berry  <karl@gnu.org>
58593
58594         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58595
58596 2003-05-20  Karl Berry  <karl@gnu.org>
58597
58598         * config/config.guess: update from prep.
58599
58600 2003-05-18  Karl Berry  <karl@gnu.org>
58601
58602         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58603         might actually be set by the user.
58604
58605         * config/depcomp, install-sh, mdate-sh: update from automake.
58606
58607 2003-05-17  Bruno Haible  <bruno@clisp.org>
58608
58609         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58610         invalid expansion for AC_EGREP_CPP.
58611         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58612         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58613         Suggested by Akim Demaille <akim@epita.fr> in
58614         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58615
58616 2003-05-12  Jim Meyering  <jim@meyering.net>
58617
58618         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58619         the space-padded-by-default conversion specifiers, %e, %k, %l.
58620
58621 2003-05-12  Bruno Haible  <bruno@clisp.org>
58622
58623         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58624         the string is longer than 4 KB.
58625
58626 2003-05-11  Karl Berry  <karl@gnu.org>
58627
58628         * config/config.{guess,sub}: update from prep.
58629
58630 2003-05-09  Bruno Haible  <bruno@clisp.org>
58631
58632         * modules/error: Add m4/strerror_r.m4 to file list.
58633
58634 2003-05-03  Bruno Haible  <bruno@clisp.org>
58635
58636         Upgrade to Unicode-4.0.
58637         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58638         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58639         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58640         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58641         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58642         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58643         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58644         Change width of U+E0100..U+E01EF from 1 to 0.
58645
58646 2003-04-25  Jim Meyering  <jim@meyering.net>
58647
58648         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58649         of type size_t, not int.
58650
58651 2003-04-25  Bruno Haible  <bruno@clisp.org>
58652
58653         * lib/copy-file.c: Include <stddef.h>, for size_t.
58654
58655 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58656
58657         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58658         code which expansion is under static control.  Patch imported from
58659         Akim Demaille's patch to Bison; see
58660         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58661
58662 2003-04-14  Bruno Haible  <bruno@clisp.org>
58663
58664         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58665
58666 2003-04-11  Jim Meyering  <jim@meyering.net>
58667
58668         Merge changes from Coreutils.
58669
58670         2003-03-22  Jim Meyering  <jim@meyering.net>
58671
58672         * lib/strftime.c (widen): Cast alloca return value to proper type.
58673
58674         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58675
58676         From GNU libc.
58677         * lib/strftime.c (my_strftime): Handle very large width
58678         specifications for numeric values correctly.  Improve checks for
58679         overflow.
58680
58681         2003-01-19  Jim Meyering  <jim@meyering.net>
58682
58683         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58684         definitions.
58685         (nl_get_alt_digit) [! defined my_strftime]: Define.
58686         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58687         _nl_get_alt_digit and _nl_get_walt_digit.
58688
58689         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58690         libc. These changes have no effect outside of _LIBC.
58691
58692 2003-04-10  Bruno Haible  <bruno@clisp.org>
58693
58694         * modules/findprog: New file.
58695         * MODULES.html.sh (func_all_modules): Add it.
58696
58697 2003-04-10  Bruno Haible  <bruno@clisp.org>
58698
58699         * m4/findprog.m4: New file.
58700         * m4/eaccess.m4: New file.
58701
58702 2003-04-10  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/findprog.h: New file, from GNU gettext.
58705         * lib/findprog.c: New file, from GNU gettext.
58706
58707 2003-04-05  Jim Meyering  <jim@meyering.net>
58708
58709         Merge changes from Coreutils.
58710
58711         * lib/exclude.h (PARAMS): Remove definition and uses.
58712         * lib/exclude.c: Remove uses of `PARAMS'.
58713
58714         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58715         Add test-cases for DOS filenames. Declare program_name.
58716         (main): Set up program_name.  Patch by Rich Dawe.
58717
58718         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58719         error from mntctl.
58720         Use mntctl's return value to drive the entry-processing loop, since
58721         we can't rely on the value of the vmt_length member in the last
58722         entry.  On some systems doing so could result in exhausting
58723         virtual memory.  Based in part on a patch from Mike Jetzer.
58724
58725 2003-04-04  Bruno Haible  <bruno@clisp.org>
58726
58727         * modules/linebreak: New file.
58728         * MODULES.html.sh (func_all_modules): Add it.
58729
58730 2003-04-04  Bruno Haible  <bruno@clisp.org>
58731
58732         * m4/linebreak.m4: New file.
58733
58734 2003-04-04  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/linebreak.h: New file, from GNU gettext.
58737         * lib/linebreak.c: New file, from GNU gettext with slight
58738         modifications.
58739         * lib/lbrkprop.h: New file, from GNU gettext.
58740
58741 2003-04-03  Bruno Haible  <bruno@clisp.org>
58742
58743         * modules/utf8-ucs4: New file.
58744         * modules/utf16-ucs4: New file.
58745         * modules/ucs4-utf8: New file.
58746         * modules/ucs4-utf16: New file.
58747         * MODULES.html.sh (func_all_modules): Add them.
58748
58749 2003-04-03  Bruno Haible  <bruno@clisp.org>
58750
58751         * m4/utf-ucs4.m4: New file.
58752         * m4/ucs4-utf.m4: New file.
58753
58754 2003-04-03  Bruno Haible  <bruno@clisp.org>
58755
58756         * lib/utf8-ucs4.h: New file, from GNU gettext.
58757         * lib/utf16-ucs4.h: New file, from GNU gettext.
58758         * lib/ucs4-utf8.h: New file, from GNU gettext.
58759         * lib/ucs4-utf16.h: New file, from GNU gettext.
58760
58761 2003-04-02  Bruno Haible  <bruno@clisp.org>
58762
58763         * modules/binary-io: New file.
58764         * MODULES.html.sh (func_all_modules): Add it.
58765
58766 2003-04-02  Bruno Haible  <bruno@clisp.org>
58767
58768         * lib/binary-io.h: New file, from GNU gettext.
58769
58770 2003-04-01  Bruno Haible  <bruno@clisp.org>
58771
58772         * modules/pathname: New file.
58773         * MODULES.html.sh (func_all_modules): Add it.
58774
58775 2003-04-01  Bruno Haible  <bruno@clisp.org>
58776
58777         * lib/pathname.h: New file, from GNU gettext.
58778         * lib/concatpath.c: New file, from GNU gettext.
58779
58780 2003-03-30  Bruno Haible  <bruno@clisp.org>
58781
58782         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58783
58784 2003-03-30  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58787         function chown() doesn't exist.
58788
58789 2003-03-28  Bruno Haible  <bruno@clisp.org>
58790
58791         * modules/copy-file: New file.
58792         * MODULES.html.sh (func_all_modules): Add it.
58793
58794 2003-03-28  Bruno Haible  <bruno@clisp.org>
58795
58796         * m4/copy-file.m4: New file.
58797
58798 2003-03-28  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/copy-file.h: New file, from GNU gettext.
58801         * lib/copy-file.c: New file, from GNU gettext.
58802
58803 2003-03-18  Jim Meyering  <jim@meyering.net>
58804
58805         * lib/quote.c (quote_n): Fix typo in comment.
58806
58807 2003-03-18  Bruno Haible  <bruno@clisp.org>
58808
58809         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58810         checking.
58811         * m4/onceonly_2_57.m4: Likewise.
58812
58813 2003-03-17  Bruno Haible  <bruno@clisp.org>
58814
58815         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58816         (m4_quote): Remove macro.
58817         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58818
58819 2003-03-14  Jim Meyering  <jim@meyering.net>
58820
58821         Merge changes from Coreutils.
58822         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58823         to be const, in order to avoid warnings.
58824         (obstack_room): Likewise.
58825         (obstack_empty_p): Likewise.
58826
58827 2003-03-14  Bruno Haible  <bruno@clisp.org>
58828
58829         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58830         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58831
58832 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58833
58834         Merge changes from Bison.
58835         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58836         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58837         when compiling Bison 1.875's `bitset bset = obstack_alloc
58838         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58839         * lib/hash.c: Include <stdbool.h> unconditionally.
58840
58841 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58842
58843         * m4/onceonly.m4 (m4_quote): New macro.
58844         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58845         Quote AC_FOREACH variable-expansions properly.
58846
58847 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58848
58849         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58850
58851 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58852
58853         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58854         Reported by Bruce Becker; see:
58855         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58856
58857 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58858             Bruno Haible  <bruno@clisp.org>
58859
58860         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58861         Reported by John Hughes, see
58862         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58863
58864 2003-02-20  Bruno Haible  <bruno@clisp.org>
58865
58866         * MODULES.html.sh (func_all_modules): Add poll.
58867
58868 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58869
58870         * modules/poll: New file.
58871
58872 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58873
58874         * lib/poll_.h: New file.
58875         * lib/poll.c: New file.
58876
58877 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58878
58879         * m4/poll.m4: New file.
58880
58881 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58882
58883         * modules/mathl: New file.
58884
58885 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58886
58887         * lib/mathl.h: New file.
58888         * lib/acosl.c: New file.
58889         * lib/asinl.c: New file.
58890         * lib/atanl.c: New file.
58891         * lib/ceill.c: New file.
58892         * lib/cosl.c: New file.
58893         * lib/expl.c: New file.
58894         * lib/floorl.c: New file.
58895         * lib/frexpl.c: New file.
58896         * lib/ldexpl.c: New file.
58897         * lib/logl.c: New file.
58898         * lib/sincosl.c: New file.
58899         * lib/sinl.c: New file.
58900         * lib/sqrtl.c: New file.
58901         * lib/tanl.c: New file.
58902         * lib/trigl.c: New file.
58903         * lib/trigl.h: New file.
58904
58905 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58906
58907         * m4/mathl.m4: New file.
58908
58909 2003-02-18  Bruno Haible  <bruno@clisp.org>
58910
58911         * MODULES.html.sh (func_all_modules): Add mathl.
58912
58913 2003-02-17  Bruno Haible  <bruno@clisp.org>
58914
58915         * modules/mkdtemp: New module.
58916         * MODULES.html.sh (func_all_modules): Add it.
58917
58918 2003-02-17  Bruno Haible  <bruno@clisp.org>
58919
58920         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58921
58922 2003-02-17  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/mkdtemp.h: New file, from GNU gettext.
58925         * lib/mkdtemp.c: New file, from GNU gettext.
58926
58927 2003-02-02  Jim Meyering  <jim@meyering.net>
58928
58929         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58930         e.g. glibc-2.2.93.
58931
58932 2003-01-31  Bruno Haible  <bruno@clisp.org>
58933
58934         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58935         'rpl_rename'.
58936         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58937         'rpl_strnlen'.
58938         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58939         'rpl_strtod'.
58940         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58941         'rpl_utime'.
58942
58943 2003-01-31  Bruno Haible  <bruno@clisp.org>
58944
58945         * lib/rename.c: #undef rename before defining rpl_rename.
58946         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58947
58948 2003-01-30  Bruno Haible  <bruno@clisp.org>
58949
58950         * modules/vasnprintf, modules/vasprintf: New modules.
58951         * MODULES.html.sh (func_all_modules): Add them.
58952
58953 2003-01-30  Bruno Haible  <bruno@clisp.org>
58954
58955         * m4/signed.m4: New file, from GNU gettext.
58956         * m4/longdouble.m4: New file, from GNU gettext.
58957         * m4/wchar_t.m4: New file, from GNU gettext.
58958         * m4/wint_t.m4: New file, from GNU gettext.
58959         * m4/vasnprintf.m4: New file.
58960         * m4/vasprintf.m4: New file.
58961
58962 2003-01-30  Bruno Haible  <bruno@clisp.org>
58963
58964         * lib/printf-args.h: New file, from GNU gettext.
58965         * lib/printf-args.c: New file, from GNU gettext.
58966         * lib/printf-parse.h: New file, from GNU gettext.
58967         * lib/printf-parse.c: New file, from GNU gettext.
58968         * lib/vasnprintf.h: New file, from GNU gettext.
58969         * lib/vasnprintf.c: New file, from GNU gettext.
58970         * lib/asnprintf.c: New file, from GNU gettext.
58971         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58972         * lib/vasprintf.c: New file, from GNU gettext.
58973         * lib/asprintf.c: New file, from GNU gettext.
58974
58975 2003-01-29  Bruno Haible  <bruno@clisp.org>
58976
58977         * modules/stpncpy: New module.
58978         * MODULES.html.sh (func_all_modules): Add it.
58979
58980 2003-01-29  Bruno Haible  <bruno@clisp.org>
58981
58982         * m4/stpncpy.m4: New file.
58983
58984 2003-01-29  Bruno Haible  <bruno@clisp.org>
58985
58986         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58987         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58988
58989 2003-01-28  Bruno Haible  <bruno@clisp.org>
58990
58991         * modules/c-ctype: New module.
58992         * MODULES.html.sh (func_all_modules): Add it.
58993
58994 2003-01-28  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58997         Paul Eggert.
58998         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58999         Paul Eggert.
59000
59001 2003-01-27  Bruno Haible  <bruno@clisp.org>
59002
59003         * modules/xsetenv: New module.
59004         * MODULES.html.sh (func_all_modules): Add it.
59005
59006 2003-01-27  Bruno Haible  <bruno@clisp.org>
59007
59008         * lib/xsetenv.h: New file, from GNU gettext.
59009         * lib/xsetenv.c: New file, from GNU gettext.
59010
59011 2003-01-23  Jim Meyering  <jim@meyering.net>
59012
59013         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59014         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59015
59016 2003-01-23  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/minmax: New module.
59019         * MODULES.html.sh (func_all_modules): Add it.
59020
59021 2003-01-23  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59024         Eggert.
59025
59026 2003-01-22  Bruno Haible  <bruno@clisp.org>
59027
59028         * modules/exit: New module.
59029         * MODULES.html.sh (func_all_modules): Add it.
59030
59031 2003-01-22  Bruno Haible  <bruno@clisp.org>
59032
59033         * lib/exit.h: New file, from GNU gettext.
59034
59035 2003-01-19  Bruno Haible  <bruno@clisp.org>
59036
59037         * gnulib-tool: Recognize option --extract-maintainer.
59038         (func_get_maintainer): New function.
59039         * modules/*: Add Maintainer entry.
59040
59041 2003-01-16  Jim Meyering  <jim@meyering.net>
59042
59043         * m4/regex.m4: The `regex' struct is both input and output.
59044         Initialize it before each use.  Patch by Tim Waugh.
59045
59046 2003-01-16  Bruno Haible  <bruno@clisp.org>
59047
59048         * MODULES.html.sh: Add a table of contents. Add the module name as
59049         leftmost column. Add hyperlinks.
59050
59051 2003-01-15  Bruno Haible  <bruno@clisp.org>
59052
59053         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59054
59055 2003-01-15  Bruno Haible  <bruno@clisp.org>
59056
59057         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59058         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59059         suffix.
59060
59061 2003-01-15  Bruno Haible  <bruno@clisp.org>
59062
59063         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59064
59065 2003-01-15  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59068         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59069
59070 2003-01-14  Jim Meyering  <jim@meyering.net>
59071
59072         * lib/same.c (same_name): Tweak a comment.
59073
59074 2003-01-14  Bruno Haible  <bruno@clisp.org>
59075
59076         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59077         when a string comparison is sufficient.
59078
59079 2003-01-14  Bruno Haible  <bruno@clisp.org>
59080
59081         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59082         'unsigned int'.
59083
59084 2003-01-14  Bruno Haible  <bruno@clisp.org>
59085
59086         * lib/hash-pjw.c: Add comment about low quality of this function.
59087
59088 2003-01-13  Bruno Haible  <bruno@clisp.org>
59089
59090         * modules/stpcpy: Distribute lib/stpcpy.h.
59091         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59092
59093 2003-01-13  Bruno Haible  <bruno@clisp.org>
59094
59095         * modules/*: Add a description.
59096         * modules/strpbrk: Fix Makefile.am snippet.
59097         * modules/strtoimax: Fix dependencies.
59098         * modules/strtoumax: Likewise.
59099
59100 2003-01-13  Bruno Haible  <bruno@clisp.org>
59101
59102         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59103         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59104         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59105
59106 2003-01-13  Bruno Haible  <bruno@clisp.org>
59107
59108         * gnulib-tool (func_create_testdir): Store config/* files in the main
59109         directory.
59110         * config.rpath: Move to ...
59111         * config/config.rpath: ... here.
59112         * modules/gettext: Contains config/config.rpath, not config.rpath.
59113         * modules/iconv: Likewise.
59114
59115 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59116
59117         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59118         to avoid collisions with libcurses and libreadline.
59119
59120         * m4/getstr.m4: Remove.
59121         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59122
59123 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59124
59125         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59126         to avoid collisions with libcurses and libreadline.
59127
59128         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59129         * lib/getstr.h, getstr.c: Remove.
59130         * lib/getline.c: Include "getline.h", to check interface.
59131         Move body of old getstr.c here: this defines MIN_CHUNK and
59132         declares getdelim2, which is renamed from getstr.
59133         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59134
59135         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59136         All uses changed.
59137         * lib/linebuffer.h: Likewise.
59138         (readline): Remove backward-compatibility macro.
59139
59140 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59141
59142         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59143         to avoid collisions with libcurses and libreadline.
59144         * getstr: Remove.
59145         * MODULES.html.sh: Remove getstr.
59146         * modules/getline: Depend on unlocked-io, not getstr.
59147
59148 2003-01-12  Jim Meyering  <jim@meyering.net>
59149
59150         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59151
59152 2003-01-10  Bruno Haible  <bruno@clisp.org>
59153
59154         * modules/alloca: Change Makefile.am requirements. Simplify Include
59155         requirements. Add lib/alloca_.h to file list.
59156
59157 2003-01-10  Bruno Haible  <bruno@clisp.org>
59158
59159         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59160
59161 2003-01-10  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/alloca_.h: New file.
59164         * lib/getdate.y: Unconditionally include alloca.h.
59165         * lib/makepath.c: Likewise.
59166         * lib/setenv.c: Likewise.
59167         * lib/userspec.c: Likewise.
59168
59169 2003-01-09  Karl Berry  <karl@gnu.org>
59170
59171         * MODULES.html.sh: include `dirname $0` in PATH, to find
59172         gnulib-tool.
59173
59174 2003-01-09  Bruno Haible  <bruno@clisp.org>
59175
59176         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59177         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59178
59179 2003-01-09  Bruno Haible  <bruno@clisp.org>
59180
59181         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59182
59183 2003-01-09  Bruno Haible  <bruno@clisp.org>
59184
59185         * lib/stdbool.h.in: New file.
59186
59187 2003-01-09  Bruno Haible  <bruno@clisp.org>
59188
59189         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59190         * MODULES.html.sh: Likewise.
59191
59192 2003-01-08  Jim Meyering  <jim@meyering.net>
59193
59194         * lib/full-write.c: Undefine and define-away `const' after inclusion
59195         of errno.h, not before.  Suggestion from Bruno Haible.
59196
59197 2003-01-08  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/full-read: Depend on full-write.
59200
59201 2003-01-08  Bruno Haible  <bruno@clisp.org>
59202
59203         * lib/safe-read.c: Include specification header first, to ensure its
59204         selfcontainedness.
59205         * lib/full-write.c: Likewise.
59206
59207 2003-01-07  Jim Meyering  <jim@meyering.net>
59208
59209         * lib/full-write.c: Rework so that it may serve to define full_read,
59210         too.
59211         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59212
59213 2003-01-07  Bruno Haible  <bruno@clisp.org>
59214
59215         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59216         <inttypes.h>.
59217         * lib/xstrtol.h: Likewise.
59218         * lib/xstrtoimax.c: Likewise.
59219         * lib/xstrtoumax.c: Likewise.
59220         * lib/human.h: Likewise.
59221
59222         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59223         on systems that have <inttypes.h> but not <stdint.h>.
59224
59225 2003-01-07  Bruno Haible  <bruno@clisp.org>
59226
59227         * MODULES.html.sh: Add copyright notice.
59228         (missed_files): Omit CVS directory entries.
59229         (func_module): Make it work with sed-3.02.
59230         * MODULES.txt: Remove file.
59231
59232 2003-01-06  Jim Meyering  <jim@meyering.net>
59233
59234         * lib/version-etc.c: Update year in translatable copyright string.
59235
59236 2003-01-03  Karl Berry  <karl@gnu.org>
59237
59238         * config/config.{guess,sub}: update from prep.
59239
59240 2003-01-02  Karl Berry  <karl@gnu.org>
59241
59242         * doc/COPYING.DOC: belatedly updated to 1.2.
59243
59244 2003-01-01  Karl Berry  <karl@gnu.org>
59245
59246         * gnulib-tool (func_verify_module): report module name $module in
59247         error message, not $1.
59248         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59249         be created, only if it doesn't exist.
59250         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59251
59252 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59253
59254         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59255
59256 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59257
59258         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59259         memcmp if strcoll doesn't work.
59260
59261 2002-12-31  Bruno Haible  <bruno@clisp.org>
59262
59263         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59264         nonempty.
59265
59266 2002-12-31  Bruno Haible  <bruno@clisp.org>
59267
59268         * lib/memcoll.c (STRCOLL): New macro.
59269         (memcoll): Use it.
59270
59271 2002-12-31  Bruno Haible  <bruno@clisp.org>
59272
59273         * lib/localcharset.h: New file.
59274         * lib/localcharset.c: Include it.
59275         * lib/unicodeio.c: Likewise.
59276
59277 2002-12-31  Bruno Haible  <bruno@clisp.org>
59278
59279         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59280         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59281
59282 2002-12-31  Bruno Haible  <bruno@clisp.org>
59283
59284         * lib/getline.h: Include <stddef.h>, for size_t.
59285
59286         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59287         * lib/unicodeio.c: Don't include <stddef.h>.
59288
59289 2002-12-31  Bruno Haible  <bruno@clisp.org>
59290
59291         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59292         HAVE_TM_ZONE.
59293
59294 2002-12-24  Karl Berry  <karl@gnu.org>
59295
59296         * config/config.guess: update from prep.
59297
59298 2002-12-24  Bruno Haible  <bruno@clisp.org>
59299
59300         General infrasructure.
59301         * m4/README: Rewritten.
59302         * m4/onceonly.m4: New file.
59303         * m4/onceonly_2_57.m4: New file.
59304
59305         Module atexit.
59306         * m4/atexit.m4: New file.
59307
59308         Module strtod.
59309         * m4/strtod.m4: New file.
59310
59311         Module strtol.
59312         * m4/strtol.m4: New file.
59313
59314         Module strtoul.
59315         * m4/strtoul.m4: New file.
59316
59317         Module memchr.
59318         * m4/memchr.m4: New file.
59319
59320         Module memcmp.
59321         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59322         (jm_FUNC_MEMCMP): Invoke it.
59323
59324         Module memcpy.
59325         * m4/memcpy.m4: New file.
59326
59327         Module memmove.
59328         * m4/memmove.m4: New file.
59329
59330         Module memset.
59331         * m4/memset.m4: New file.
59332
59333         Module strcspn.
59334         * m4/strcspn.m4: New file.
59335
59336         Module strpbrk.
59337         * m4/strpbrk.m4: New file.
59338
59339         Module strstr.
59340         * m4/strstr.m4: New file.
59341
59342         Module strerror.
59343         * m4/strerror.m4: New file.
59344
59345         Module mktime.
59346         * m4/mktime.m4: Renamed from jm-mktime.m4.
59347         (gl_PREREQ_MKTIME): New macro.
59348         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59349
59350         Module malloc.
59351         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59352         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59353         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59354
59355         Module realloc.
59356         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59357         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59358         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59359
59360         Module strftime.
59361         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59362         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59363         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59364         gl_TM_GMTOFF.
59365         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59366
59367         Module xalloc.
59368         * m4/xalloc.m4: New file.
59369
59370         Module alloca.
59371         * m4/alloca.m4: New file.
59372
59373         Module putenv.
59374         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59375         (jm_FUNC_PUTENV): Invoke it.
59376
59377         Module setenv.
59378         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59379         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59380         when invoked twice.
59381         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59382         gt_FUNC_SETENV.
59383
59384         Module memrchr.
59385         * m4/memrchr.m4: New file.
59386
59387         Module stpcpy.
59388         * m4/stpcpy.m4: New file.
59389
59390         Module strcase.
59391         * m4/strcase.m4: New file.
59392
59393         Module strdup.
59394         * m4/strdup.m4: New file.
59395
59396         Module strnlen.
59397         * m4/strnlen.m4: New file.
59398
59399         Module strndup.
59400         * m4/strndup.m4: New file.
59401
59402         Module xstrtod.
59403         * m4/xstrtod.m4: New file.
59404
59405         Module xstrtol.
59406         * m4/xstrtol.m4: New file.
59407
59408         Module getdate.
59409         * m4/getdate.m4: New file.
59410
59411         Module unlocked-io.
59412         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59413         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59414         * m4/jm-glibc-io.m4n: Remove file.
59415
59416         Module long-options.
59417         * m4/long-options.m4: New file.
59418
59419         Module md5.
59420         * m4/md5.m4: New file.
59421
59422         Module sha.
59423         * m4/sha.m4: New file.
59424
59425         Module getstr.
59426         * m4/getstr.m4: New file.
59427
59428         Module getline.
59429         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59430         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59431         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59432         simply getline. Infoke gl_PREREQ_GETLINE.
59433
59434         Module obstack.
59435         * m4/obstack.m4: New file.
59436
59437         Module hash.
59438         * m4/hash.m4: New file.
59439
59440         Module readtokens.
59441         * m4/readtokens.m4: New file.
59442
59443         Module strverscmp.
59444         * m4/strverscmp.m4: New file.
59445
59446         Module stdbool.
59447         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59448         OSF/1.
59449
59450         Module strtoll.
59451         * m4/strtoll.m4: New file.
59452
59453         Module strtoull.
59454         * m4/strtoull.m4: New file.
59455
59456         Module strtoimax.
59457         * m4/strtoimax.m4: New file.
59458
59459         Module strtoumax.
59460         * m4/strtoumax.m4: New file.
59461
59462         Module xstrtoimax.
59463         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59464         jm_AC_PREREQ_XSTRTOIMAX.
59465         Moved the strtol prerequisites to strtol.m4.
59466         Moved the strtoll prerequisites to strtoll.m4.
59467         Moved the strtoimax prerequisites to strtoimax.m4.
59468
59469         Module xstrtoumax.
59470         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59471         jm_AC_PREREQ_XSTRTOUMAX.
59472         Moved the strtoul prerequisites to strtoul.m4.
59473         Moved the strtoull prerequisites to strtoull.m4.
59474         Moved the strtoumax prerequisites to strtoumax.m4.
59475
59476         Module chown.
59477         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59478         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59479
59480         Module dup2.
59481         * m4/dup2.m4: New file.
59482
59483         Module ftruncate.
59484         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59485         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59486
59487         Module getgroups.
59488         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59489         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59490
59491         Module gettimeofday.
59492         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59493         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59494         gl_PREREQ_GETTIMEOFDAY.
59495
59496         Module mkdir.
59497         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59498         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59499
59500         Module mkstemp.
59501         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59502         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59503         jm_AC_TYPE_UINTMAX_T.
59504         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59505
59506         Module stat.
59507         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59508         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59509
59510         Module lstat.
59511         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59512         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59513
59514         Module timespec.
59515         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59516         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59517         * m4/st_mtim.m4: Indentation.
59518
59519         Module nanosleep.
59520         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59521         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59522         gl_PREREQ_NANOSLEEP.
59523
59524         Module regex.
59525         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59526         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59527         (gl_REGEX): New macro.
59528
59529         Module rename.
59530         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59531         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59532
59533         Module rmdir.
59534         * m4/rmdir.m4: New file.
59535
59536         Module utime.
59537         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59538         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59539         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59540
59541         Module dirname.
59542         * m4/dirname.m4: New file.
59543
59544         Module getopt.
59545         * m4/getopt.m4: New file.
59546
59547         Module unistd-safer.
59548         * m4/unistd-safer.m4: New file.
59549
59550         Module fnmatch.
59551         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59552         declaration.
59553         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59554         (gl_FUNC_FNMATCH_POSIX): New macro.
59555         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59556         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59557         simply fnmatch.
59558
59559         Module exclude.
59560         * m4/exclude.m4: New file.
59561
59562         Module human.
59563         * m4/human.m4: New file.
59564
59565         Module acl.
59566         * m4/acl.m4: Nop.
59567
59568         Module backupfile.
59569         * m4/backupfile.m4: New file.
59570         * m4/d-ino.m4: Indentation.
59571
59572         Module fsusage.
59573         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59574         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59575         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59576
59577         Module dirfd.
59578         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59579         requirements.
59580
59581         Module euidaccess.
59582         * m4/euidaccess.m4: New file.
59583
59584         Module file-type.
59585         * m4/file-type.m4: New file.
59586
59587         Module fileblocks.
59588         * m4/fileblocks.m4: New file.
59589
59590         Module filemode.
59591         * m4/filemode.m4: New file.
59592
59593         Module isdir.
59594         * m4/isdir.m4: New file.
59595
59596         Module lchown.
59597         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59598         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59599
59600         Module makepath.
59601         * m4/makepath.m4: New file.
59602
59603         Module modechange.
59604         * m4/modechange.m4: New file.
59605
59606         Module mountlist.
59607         * m4/mountlist.m4: New file.
59608         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59609         Indentation.
59610
59611         Module path-concat.
59612         * m4/path-concat.m4: New file.
59613
59614         Module pathmax.
59615         * m4/pathmax.m4: New file.
59616
59617         Module same.
59618         * m4/same.m4: New file.
59619
59620         Module save-cwd.
59621         * m4/save-cwd.m4: New file.
59622
59623         Module savedir.
59624         * m4/savedir.m4: New file.
59625
59626         Module xgetcwd.
59627         * m4/xgetcwd.m4: New file.
59628         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59629
59630         Module xreadlink.
59631         * m4/xreadlink.m4: New file.
59632
59633         Module safe-read.
59634         * m4/safe-read.m4: New file.
59635
59636         Module safe-write.
59637         * m4/safe-write.m4: New file.
59638
59639         Module closeout.
59640         * m4/closeout.m4: New file.
59641
59642         Module stdio-safer.
59643         * m4/stdio-safer.m4: New file.
59644
59645         Module getpass.
59646         * m4/getpass.m4: New file.
59647
59648         Module getugroups.
59649         * m4/getugroups.m4: New file.
59650
59651         Module group-member.
59652         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59653         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59654
59655         Module idcache.
59656         * m4/idcache.m4: New file.
59657
59658         Module userspec.
59659         * m4/userspec.m4: New file.
59660
59661         Module gettime.
59662         * m4/clock_time.m4: New file.
59663         * m4/gettime.m4: New file.
59664
59665         Module settime.
59666         * m4/settime.m4: New file.
59667
59668         Module posixtm.
59669         * m4/posixtm.m4: New file.
59670
59671         Module gethostname.
59672         * m4/gethostname.m4: New file.
59673
59674         Module canon-host.
59675         * m4/canon-host.m4: New file.
59676
59677         Module gettext.
59678         * m4/codeset.m4: New file, from gettext-0.11.5.
59679         * m4/gettext.m4: New file, from gettext-0.11.5.
59680         * m4/glibc21.m4: New file, from gettext-0.11.5.
59681         * m4/iconv.m4: New file, from gettext-0.11.5.
59682         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59683         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59684         * m4/inttypes.m4: New file, from gettext-0.11.5.
59685         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59686         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59687         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59688         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59689         * m4/lib-link.m4: New file, from gettext-0.11.5.
59690         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59691         * m4/progtest.m4: New file, from gettext-0.11.5.
59692         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59693         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59694         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59695
59696         Module localcharset.
59697         * m4/localcharset.m4: New file.
59698
59699         Module hard-locale.
59700         * m4/hard-locale.m4: New file.
59701
59702         Module mbswidth.
59703         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59704         onceonly macros.
59705         * m4/mbrtowc.m4: Add comment.
59706
59707         Module memcasecmp.
59708         * m4/memcasecmp.m4: New file.
59709
59710         Module memcoll.
59711         * m4/memcoll.m4: New file.
59712
59713         Module unicodeio.
59714         * m4/unicodeio.m4: New file.
59715
59716         Module rpmatch.
59717         * m4/rpmatch.m4: New file.
59718
59719         Module yesno.
59720         * m4/yesno.m4: New file.
59721
59722         Module exitfail.
59723         * m4/exitfail.m4: New file.
59724
59725         Module c-stack.
59726         * m4/c-stack.m4 (gl_C_STACK): New macro.
59727         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59728
59729         Module error.
59730         * m4/error.m4 (gl_ERROR): New macro.
59731         (jm_PREREQ_ERROR): Use onceonly macros.
59732
59733         Module fatal.
59734         * m4/fatal.m4: New file.
59735
59736         Module getloadavg.
59737         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59738         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59739
59740         Module getpagesize.
59741         * m4/getpagesize.m4: New file.
59742
59743         Module getusershell.
59744         * m4/getusershell.m4: New file.
59745
59746         Module physmem.
59747         * m4/physmem.m4: New file.
59748
59749         Module posixver.
59750         * m4/posixver.m4: New file.
59751
59752         Module quotearg.
59753         * m4/quotearg.m4: New file.
59754
59755         Module quote.
59756         * m4/quote.m4: New file.
59757
59758         Module readutmp.
59759         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59760
59761         Module sig2str.
59762         * m4/sig2str.m4: New file.
59763
59764         Other.
59765         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59766         ulonglong.m4.
59767         * m4/intmax_t.m4: New file.
59768         * m4/d-type.m4: Indentation.
59769         * m4/jm-macros.m4: Update.
59770         * m4/prereq.m4 (jm_PREREQ): Update.
59771         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59772         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59773         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59774         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59775         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59776         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59777         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59778         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59779         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59780         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59781         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59782         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59783         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59784         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59785         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59786         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59787         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59788         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59789         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59790
59791 2002-12-24  Bruno Haible  <bruno@clisp.org>
59792
59793         * MODULES.txt: Update according to m4/ changes.
59794
59795         Module gettext.
59796         * config.rpath: New file, from gettext-0.11.5.
59797
59798         * modules/*: New module descriptions.
59799         * gnulib-tool: New file.
59800         * MODULES.html.sh: New file.
59801
59802 2002-12-21  Karl Berry  <karl@gnu.org>
59803
59804         * doc/fdl.texi: update to version 1.2.
59805
59806 2002-12-19  Karl Berry  <karl@gnu.org>
59807
59808         * config/config.guess: update from prep.
59809
59810 2002-12-18  Bruno Haible  <bruno@clisp.org>
59811
59812         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59813         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59814
59815 2002-12-17  Bruno Haible  <bruno@clisp.org>
59816
59817         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59818         stdlib.h, string.h.
59819
59820 2002-12-17  Bruno Haible  <bruno@clisp.org>
59821
59822         * lib/canon-host.c (strdup): Remove unused declaration.
59823
59824         * lib/fsusage.c: Include full_read.h.
59825         (get_fs_usage): Use full_read instead of safe_read.
59826
59827         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59828
59829 2002-12-12  Karl Berry  <karl@gnu.org>
59830
59831         * config/config.guess: update from prep.
59832
59833 2002-12-11  Bruno Haible  <bruno@clisp.org>
59834
59835         * m4/setenv.m4: New file, from gettext-0.11.5.
59836
59837 2002-12-11  Bruno Haible  <bruno@clisp.org>
59838
59839         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59840         not unsetenv().
59841         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59842         modifications:
59843
59844         2002-12-11  Bruno Haible  <bruno@clisp.org>
59845
59846                 * setenv.c (alloca): Fall back to malloc.
59847                 (freea): New macro.
59848                 (setenv): Use freea() to free memory allocated with alloca().
59849
59850         2002-11-13  Bruno Haible  <bruno@clisp.org>
59851
59852                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59853                 function declarations.
59854                 * unsetenv.c (unsetenv): Likewise.
59855
59856         2002-03-04  Bruno Haible  <bruno@clisp.org>
59857
59858                 Portability to AIX 4.3.3.
59859                 * unsetenv.c: New file, extracted from setenv.c.
59860                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59861
59862         2001-12-20  Bruno Haible  <bruno@clisp.org>
59863
59864                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59865                 use malloc instead. For SunOS 4.
59866
59867         2001-12-11  Bruno Haible  <bruno@clisp.org>
59868
59869                 * setenv.c: Declare alloca.
59870                 (compar_fn_t): New typedef.
59871                 (KNOWN_VALUE, STORE_VALUE): Use it.
59872
59873         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59874         setenv.h.
59875
59876 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59877
59878         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59879         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59880         Choose values that are less likely to collide with system fnmatch
59881         options.
59882         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59883         defined (e.g., a pure POSIX system).
59884         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59885         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59886
59887 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59888
59889         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59890         a pain in practice to deal with generated m4 files.  This change
59891         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59892
59893         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59894         and jm-glibc-io.m4, as they are no longer a special case.
59895         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59896         kludge and the auto-generation stuff.  Check only whether the
59897         functions are declared, not whether they exist, since older hosts
59898         that don't declare the functions can't use the optimization anyway.
59899
59900 2002-12-06  Jim Meyering  <jim@meyering.net>
59901
59902         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59903
59904         Merge in changes from libc's misc/error.c, in preparation
59905         for the merge of gnulib's changes back into libc.
59906
59907         * lib/error.c (_): Define only if not already defined.
59908         Move definition to follow all #include directives.
59909         Include unlocked-io.h only if !_LIBC.
59910         [_LIBC]: Include <libio/libioP.h>.
59911         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59912         (fflush): Tweak definition to use INTUSE.
59913         (putc): Define.
59914
59915 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59916
59917         * lib/alloca.c [defined emacs]: Include "lisp.h".
59918         (xalloc_die) [defined emacs]: New macro.
59919         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59920         [! defined emacs]: Include <xalloc.h>.
59921         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59922         (pointer): Typedef to POINTER_TYPE *.
59923         (malloc): Remove decl; we now always use xmalloc.
59924         (alloca): Use old-style definition, since Emacs needs this.
59925         Check for arithmetic overflow when computing combined size.
59926
59927 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59928
59929         Do not generate unlocked-io.h automatically, since it's easier to
59930         maintain it by hand.
59931
59932         * lib/unlocked-io.h: New file, from GNU diffutils,
59933         but with proper copyright notice and attribution.
59934         * lib/gen-uio: Remove.
59935         * lib/Makefile.am: Add copyright notice.
59936         (libfetish_a_SOURCES): Add unlocked-io.h.
59937         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59938         (DISTCLEANFILES, io_functions): Remove macros.
59939         (EXTRA_DIST): Remove gen_uio.
59940         (unlocked-io.h): Remove rule.
59941
59942 2002-12-04  Jim Meyering  <jim@meyering.net>
59943
59944         Reflect the fact that stat.c and lstat.c are no longer generated.
59945         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59946         (DISTCLEANFILES): Likewise.
59947         (EXTRA_DIST): Likewise.
59948         (all_local): Don't depend on stat.c or lstat.c.
59949         (stat.c, lstat.c): Remove rules.
59950         (EXTRA_DIST): Remove xstat.in.
59951
59952         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59953         * lib/stat.c: New file.  Contents mostly from xstat.in.
59954         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59955         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59956
59957         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59958         too.
59959         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59960
59961 2002-12-03  Jim Meyering  <jim@meyering.net>
59962
59963         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59964         but not semantics, to minimize the differences between these two files.
59965         (safe_read): Change comment to mention SAFE_READ_ERROR.
59966
59967         * lib/safe-read.c (IS_EINTR): Define.
59968         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59969
59970 2002-12-02  Jim Meyering  <jim@meyering.net>
59971
59972         * lib/safe-read.c (EINTR): Define.
59973         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59974         (INT_MAX): Provide fallback.
59975         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59976
59977         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59978
59979 2002-12-02  Bruno Haible  <bruno@clisp.org>
59980
59981         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59982         Define, taken from safe-read.c.
59983         (INT_MAX): Provide fallback.
59984         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59985         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59986
59987         * lib/safe-read.c (EINTR): Remove definition.
59988         (safe_read): Don't use EINTR if it is absent.
59989
59990 2002-12-01  Jim Meyering  <jim@meyering.net>
59991
59992         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59993         zero.
59994         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59995
59996 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59997
59998         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59999         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60000         with `if (! (value < limit)) abort ();', for readability.
60001
60002 2002-11-26  Karl Berry  <karl@gnu.org>
60003
60004         * lib/strdup.c: copy from libc again, with jim's ok.
60005         * lib/.cppi-disable: re-add strdup.c
60006
60007 2002-11-25  Karl Berry  <karl@gnu.org>
60008
60009         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60010         instead of "strtol.c".
60011
60012 2002-11-25  Karl Berry  <karl@gnu.org>
60013
60014         * config/install-sh: update from automake for variable quoting, $0 in
60015         error msgs, etc.
60016
60017         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60018         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60019         entry.
60020
60021 2002-11-25  Jim Meyering  <jim@meyering.net>
60022
60023         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60024
60025 2002-11-24  Karl Berry  <karl@gnu.org>
60026
60027         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60028         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60029
60030 2002-11-24  Jim Meyering  <jim@meyering.net>
60031
60032         Update from coreutils:
60033
60034         * lib/mktime.c: Merge in changes from libc.
60035
60036         Avoid a link-time failure on some Linux systems.
60037         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60038         (otherwise).
60039         (__mon_yday): Declare with the STATIC attribute.
60040         (__mktime_internal): Likewise.
60041         Based on a report from Greg Schafer.
60042
60043 2002-11-23  Jim Meyering  <jim@meyering.net>
60044
60045         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60046         Use `unsigned', not `int', as type of index.
60047
60048         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60049
60050         * lib/fsusage.c: Remove unneeded parentheses around operands of
60051         `defined'.
60052
60053 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60054
60055         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60056         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60057         so that we can be included first.
60058         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60059         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60060         No need to include stddef.h or sys/types.h any more.
60061         Surround local include files with "", not "<>".
60062         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60063         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60064         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60065         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60066         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60067         (ISPRINT): Remove; no longer needed now that we assume C89.
60068
60069         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60070         Preserve errno.
60071
60072         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60073         quotearg_char): Use SIZE_MAX rather than
60074         (size_t) -1 when we are talking about "infinity".
60075
60076         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60077
60078 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60079
60080         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60081         hint that one should use `if (! x) abort ();' rather than `assert
60082         (x);', and anyway it's one less thing to worry about configuring.
60083         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60084         hash_rehash, hash_insert): Use abort rather than assert.
60085
60086 2002-11-22  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/safe-read.h: Assume C89. Add comments.
60089         (safe_read): Change return type to size_t.
60090         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60091         byte counts > SSIZE_MAX correctly.
60092         * lib/safe-write.h: New file.
60093         * lib/safe-write.c: New file.
60094         * lib/full-read.h: New file.
60095         * lib/full-read.c: New file.
60096         * lib/full-write.h: Assume C89. Add comments.
60097         * lib/full-write.c: Include safe-write.h.
60098         (full_write): Rewritten to use safe_write.
60099         Suggested by Jim Meyering and Paul Eggert.
60100
60101 2002-11-21  Jim Meyering  <jim@meyering.net>
60102
60103         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60104
60105         Merge in changes from the coreutils.
60106
60107         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60108         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60109         <stdint.h>.
60110         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60111         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60112         int.  Work more efficiently if X is the same width as uintmax_t.
60113         Do not compare X to -1, to avoid bogus compiler warning.
60114         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60115         Don't assume that f_frsize and f_bsize are the same type.
60116
60117         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60118         warning on FreeBSD.
60119
60120         * lib/makepath.c (make_path): Restore umask *before* creating the final
60121         component.
60122         (make_path): Minor reformatting.
60123
60124         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60125         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60126         HAVE_MALLOC/HAVE_REALLOC.
60127
60128         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60129         dummy ones.  At least on GNU/Linux systems, `auto' means something
60130         else.
60131         From Michael Stone.
60132
60133 2002-11-21  Bruno Haible  <bruno@clisp.org>
60134
60135         Remove case insensitive option matching.
60136         * lib/argmatch.h (argcasematch): Remove declaration.
60137         (ARGCASEMATCH): Remove macro.
60138         (__xargmatch_internal): Remove case_sensitive argument.
60139         (XARGMATCH): Update.
60140         (XARGCASEMATCH): Remove macro.
60141         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60142         case_sensitive argument.
60143         (argcasematch): Remove function.
60144         (__xargmatch_internal): Remove case_sensitive argument.
60145         (main): Use XARGMATCH instead of XARGCASEMATCH.
60146
60147         * lib/xmalloc.c: Change compile-time error message. Add comment about
60148         required autoconf version.
60149
60150 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60151
60152         Merge argmatch cleanups from Bison.  Assume C89.
60153
60154         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60155         Include stdlib.h, for EXIT_FAILURE.
60156         Always include <string.h>, since we assume C89.
60157         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60158         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60159         Include <stddef.h> instead, since it's all we need for size_t.
60160         (PARAMS): Remove.  All uses removed.
60161         (ARRAY_CARDINALITY): Do not bother to #undef.
60162         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60163         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60164         Remove unnecessary parentheses.
60165         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60166         Insert necessary parentheses.
60167         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60168         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60169
60170 2002-11-19  Bruno Haible  <bruno@clisp.org>
60171
60172         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60173         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60174
60175         * lib/mbswidth.h (PARAMS): Remove macro.
60176         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60177         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60178
60179         * lib/gcd.h (PARAMS): Remove macro.
60180         (gcd): Use ANSI C function declarations.
60181         * lib/gcd.c (gcd): Likewise.
60182
60183 2002-11-15  Bruno Haible  <bruno@clisp.org>
60184
60185         * lib/strcspn.c: Include <stddef.h>.
60186         (strcspn): Use ANSI C function declaration. Change return type to
60187         size_t. Use NULL.
60188         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60189         (strpbrk): Use NULL.
60190         * lib/strpbrk.h (PARAMS): Remove macro.
60191         (strpbrk): Use ANSI C function declaration.
60192         * lib/strstr.c: Don't include <sys/types.h>.
60193         * lib/strstr.h (PARAMS): Remove macro.
60194         (strstr): Use ANSI C function declarations.
60195
60196 2002-11-14  Karl Berry  <karl@gnu.org>
60197
60198         * config/mkinstalldirs: `do' on separate line, instead of
60199         `for var; do'.
60200
60201 2002-11-06  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60204         * lib/gcd.c (gcd): Likewise.
60205
60206 2002-11-05  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/gcd.h: New file, from gettext-0.11.5.
60209         * lib/gcd.c: New file, from gettext-0.11.5.
60210
60211 2002-11-05  Bruno Haible  <bruno@clisp.org>
60212
60213         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60214         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60215         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60216         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60217
60218         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60219         <libintl.h>.
60220         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60221         <libintl.h>.
60222
60223         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60224         * lib/human.c: Include gettext.h instead of <libintl.h>.
60225         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60226         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60227         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60228         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60229         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60230         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60231         (textdomain): Remove definition.
60232         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60233
60234         * lib/long-options.c: Remove include of <libintl.h> and definition of
60235         _.
60236         * lib/same.c: Remove include of <libintl.h> and definition of _.
60237
60238 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60239
60240         * lib/config.charset: A few additions for Solaris.
60241
60242 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60243
60244         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60245         * lib/localcharset.c (locale_charset): Declare as extern "C".
60246
60247 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60248
60249         * lib/config.charset: msdos in uk_UA uses CP1125.
60250
60251 2002-11-04  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60254         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60255         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60256         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60257         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60258
60259 2002-11-04  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/localcharset.c (locale_charset): Don't return an empty string.
60262
60263 2002-11-04  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60266         aliases.
60267
60268 2002-11-04  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/config.charset: Update for newest glibc. Add canonical names
60271         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60272
60273 2002-11-04  Bruno Haible  <bruno@clisp.org>
60274
60275         * lib/config.charset: Add support for NetBSD.
60276
60277 2002-11-04  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60280
60281 2002-11-01  Bruno Haible  <bruno@clisp.org>
60282
60283         * configure.in: Add AC_CONFIG_AUX_DIR call.
60284         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60285         test/Makefile.
60286         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60287
60288 2002-09-28  Karl Berry  <karl@gnu.org>
60289
60290         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60291         installed automake until the next release, since changes have been
60292         made.
60293
60294 2002-09-25  Karl Berry  <karl@gnu.org>
60295
60296         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60297         * lib/getopt*: copy from libc/posix.
60298         * lib/gettext.h: copy from gettext.
60299         * lib/.cppi-disable: add strdup.c, gettext.h.
60300
60301 2002-09-25  Karl Berry  <karl@gnu.org>
60302
60303         * config/srclist.txt: enable gettext.h check.
60304         * config/config.{guess,sub}: update from prep.
60305         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60306                 from automake 1.6.3.
60307         See srclist*.
60308
60309 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60310
60311         * regex.c (PATFETCH): Remove the translating fetch.
60312         (PATFETCH_RAW): Rename to PATFETCH.
60313         (set_image_of_range): New fun.
60314         (SET_RANGE_TABLE_WORK_AREA): Use it.
60315         (regex_compile): Don't translate the pattern chars so eagerly.
60316         Only do it when inserting an `exactn' bytecode or when handling
60317         a char-range.
60318         (mutually_exclusive_p): Avoid empty statement.
60319
60320 2002-07-06  Jim Meyering  <meyering@lucent.com>
60321
60322         * m4/README: Don't mention Makefile.am.in.
60323         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60324
60325 2002-07-01  Jim Meyering  <meyering@lucent.com>
60326
60327         * lib/c-stack.c: Include sys/time.h.
60328         From Volker Borchert.
60329
60330 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60331
60332         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60333
60334 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60335
60336         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60337         New macro.  Use it uniformly instead of
60338         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60339         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60340         reported by Vin Shelton.
60341
60342 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60343
60344         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60345         Do not assume SA_SIGINFO behavior.
60346         Bug reported by Jim Meyering on NetBSD 1.5.2.
60347
60348 2002-06-22  Jim Meyering  <meyering@lucent.com>
60349
60350         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60351         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60352
60353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60354         now that configure.ac uses AC_GNU_SOURCE.
60355         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60356         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60357
60358         Update to latest tools.  Suggestions from Paul Eggert.
60359         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60360         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60361         * m4/fnmatch.m4: Likewise.
60362         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60363         to AC_HEADER_STDBOOL
60364
60365 2002-06-22  Jim Meyering  <meyering@lucent.com>
60366
60367         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60368         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60369
60370 2002-06-22  Jim Meyering  <meyering@lucent.com>
60371
60372         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60373
60374         * lib/exitfail.c, exitfail.h: Likewise.
60375         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60376
60377         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60378         of fnmatch.h.
60379         (EXTRA_DIST): Add fnmatch_loop.c.
60380         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60381
60382         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60383         * lib/fnmatch.c: Update from diffutils-2.8.2.
60384         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60385         * lib/fnmatch.h: Remove file.
60386
60387 2002-06-21  Jim Meyering  <meyering@lucent.com>
60388
60389         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60390         * m4/mbrtowc.m4: Likewise.
60391
60392         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60393         * m4/mbswidth.m4: Reflect name change:
60394         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60395         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60396
60397         * m4/lib-link.m4: Update from gettext-0.11.2.
60398         * m4/gettext.m4: Likewise.
60399
60400         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60401         From Alfred M. Szmidt.
60402
60403 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60404
60405         * lib/file-type.h: Report an error if neither S_ISREG nor
60406         S_IFREG is defined, instead of using a test specific to glibc
60407         2.2.  This should be safe, since POSIX requires S_ISREG and
60408         Unix Version 7 had S_IFREG.  We don't need to check for
60409         <sys/types.h> since we don't use any symbols that it defines.
60410
60411 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60412
60413         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60414         $@-t, so that each temporary file name is unique and valid in the first
60415         8 characters, for operation under DOS.
60416
60417 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60418
60419         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60420
60421 2002-06-15  Jim Meyering  <meyering@lucent.com>
60422
60423         Work even with DJGPP 2.03, which lacks support for symlinks.
60424         From Richard Dawe.
60425         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60426         is defined.
60427         * lib/lchown.c (S_ISLNK): Likewise.
60428
60429 2002-06-15  Jim Meyering  <meyering@lucent.com>
60430
60431         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60432         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60433         have been included before this file.
60434
60435 2002-06-14  Jim Meyering  <meyering@lucent.com>
60436
60437         * lib/file-type.h: Use the version from diffutils-2.8.2.
60438         * lib/file-type.c: Likewise.
60439
60440 2002-06-07  Jim Meyering  <meyering@lucent.com>
60441
60442         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60443         They're needed at least for NetBSD 1.5.2.
60444         ($statxfs_includes): Include those same headers.
60445         ($statxfs_includes): Include sys/vfs.h if available.
60446         ($statxfs_includes): Likewise for sys/statvfs.h.
60447         Check for the following members in both structs statfs and statvfs:
60448         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60449
60450 2002-06-01  Jim Meyering  <meyering@lucent.com>
60451
60452         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60453         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60454
60455 2002-05-28  Jim Meyering  <meyering@lucent.com>
60456
60457         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60458         Reported by Volker Borchert.
60459
60460 2002-05-27  Jim Meyering  <meyering@lucent.com>
60461
60462         Fix a problem seen only on nonconforming systems whereby ls.c's
60463         use of localtime, and then of gettimeofday would cause trouble:
60464         the localtime call used to initialize rpl_gettimeofday's save
60465         mechanism would clobber ls's current local time information so
60466         that in any long listing the first file would always be listed
60467         with date 1970-01-01.  Analysis by Volker Borchert.
60468
60469         * lib/gettimeofday.c (localtime): Undefine.
60470         (rpl_localtime): New function.
60471
60472 2002-05-27  Jim Meyering  <meyering@lucent.com>
60473
60474         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60475         localtime.
60476
60477         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60478         use the replacement function; it wouldn't resolve at link time.
60479         Reported by Volker Borchert.
60480
60481 2002-05-22  Jim Meyering  <meyering@lucent.com>
60482
60483         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60484         file-type.h.
60485         * lib/file-type.h: New file.
60486         * lib/file-type.c (file_type): New file/function.  Extracted from
60487         diffutils.
60488
60489 2002-04-30  Jim Meyering  <meyering@lucent.com>
60490
60491         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60492
60493 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60494
60495         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60496
60497 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60498
60499         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60500         Do not check for alloca.h (no longer used) or stdbool.h (was never
60501         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60502
60503 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60504
60505         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60506
60507 2002-04-29  Jim Meyering  <meyering@lucent.com>
60508
60509         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60510         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60511         Use AC_FUNC_STRNLEN here instead.
60512
60513         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60514         With autoconf-2.53a, it's part of AC_PROG_CC.
60515
60516 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60517
60518         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60519         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60520
60521 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60522
60523         * lib/sig2str.h, lib/sig2str.c: New files.
60524         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60525
60526 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60527
60528         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60529         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60530         of 127, since 64 is the largest conceivable number for ancient
60531         nonstandard hosts.
60532         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60533
60534 2002-04-28  Jim Meyering  <meyering@lucent.com>
60535
60536         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60537
60538 2002-04-24  Jim Meyering  <meyering@lucent.com>
60539
60540         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60541         (jm_PREREQ): Use it.
60542
60543         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60544         mach/mach.h fcntl.h.
60545         Check for this function: setlocale.
60546
60547 2002-04-24  Jim Meyering  <meyering@lucent.com>
60548
60549         * lib/gettext.h: New file, from Gettext.
60550         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60551         (libfetish_a_SOURCES): Add gettext.h.
60552
60553 2002-04-16  Jim Meyering  <meyering@lucent.com>
60554
60555         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60556         ut_pid, ut_id, ut_exit.
60557
60558 2002-04-16  Jim Meyering  <meyering@lucent.com>
60559
60560         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60561         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60562         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60563
60564 2002-04-12  Jim Meyering  <meyering@lucent.com>
60565
60566         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60567         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60568         existence of the getmntinfo function.  Needed for Darwin 5.3.
60569
60570         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60571         This is necessary at least on Darwin 5.3.
60572
60573         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60574         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60575         strnlen.o in the library, and that makes some versions of ranlib
60576         object.
60577
60578 2002-04-12  Jim Meyering  <meyering@lucent.com>
60579
60580         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60581
60582 2002-04-09  Jim Meyering  <meyering@lucent.com>
60583
60584         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60585         to be more precise.  Rather than saying we're checking whether the
60586         function `works', say what we're testing.
60587         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60588         Reported by Bruno Haible.
60589
60590 2002-03-10  Jim Meyering  <meyering@lucent.com>
60591
60592         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60593         Suggestion from Santiago Vila.
60594
60595 2002-03-08  Jim Meyering  <meyering@lucent.com>
60596
60597         * lib/rename.c: Mention that this wrapper is needed also on
60598         mips-dec-ultrix4.4 systems.
60599
60600 2002-03-02  Jim Meyering  <meyering@lucent.com>
60601
60602         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60603         not HAVE_CLOCK_SETTIME.
60604
60605 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60606
60607         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60608         Check for clock_settime.
60609
60610 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60611
60612         * lib/nanosleep.h: Rename to....
60613         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60614
60615         * lib/gettime.c: New file.
60616         * lib/settime.c: New file.
60617         * lib/stime.c: Remove.
60618
60619         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60620         timespec.h.  Remove nanosleep.h.
60621
60622 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60623
60624         * m4/acl.m4: New file.
60625         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60626         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60627
60628 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60629
60630         * lib/acl.c, lib/acl.h: New files.
60631         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60632
60633 2002-02-24  Jim Meyering  <meyering@lucent.com>
60634
60635         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60636         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60637         cause trouble.  Reported by Nelson Beebe.
60638
60639 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60640
60641         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60642         compilers that don't know that xalloc_die never returns.
60643
60644 2002-02-20  Jim Meyering  <meyering@lucent.com>
60645
60646         * lib/getdate.c: Regenerate using bison-1.33.
60647
60648 2002-02-17  Jim Meyering  <meyering@lucent.com>
60649
60650         * config/config.guess (main): Don't use `head -1'; it's no longer
60651         portable. Use `sed 1q' instead.
60652
60653 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60654
60655         * m4/codeset.m4: Upgrade to gettext-0.11.
60656         * m4/gettext.m4: Upgrade to gettext-0.11.
60657         * m4/glibc21.m4: Upgrade to gettext-0.11.
60658         * m4/iconv.m4: Upgrade to gettext-0.11.
60659         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60660         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60661         * m4/lib-ld.m4: New file, from gettext-0.11.
60662         * m4/lib-link.m4: New file, from gettext-0.11.
60663         * m4/lib-prefix.m4: New file, from gettext-0.11.
60664         * m4/progtest.m4: Upgrade to gettext-0.11.
60665
60666 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60667
60668         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60669         (jm_PREREQ): Use it.
60670
60671 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60672
60673         * lib/posixver.c, lib/posixver.h: New files.
60674         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60675
60676 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60677             Bruno Haible  <bruno@clisp.org>
60678
60679         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60680         (fwrite_success_callback): New declaration.
60681         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60682         print_unicode_char. Call failure callback instead of error.
60683         (fwrite_success_callback): New function.
60684         (exit_failure_callback): New function.
60685         (fallback_failure_callback): New function.
60686         (print_unicode_char): Call unicode_to_mb.
60687
60688 2002-01-26  Jim Meyering  <meyering@lucent.com>
60689
60690         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60691         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60692
60693 2002-01-26  Jim Meyering  <meyering@lucent.com>
60694
60695         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60696
60697 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60698
60699         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60700
60701 2002-01-22  Jim Meyering  <meyering@lucent.com>
60702
60703         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60704         Otherwise, some versions of automake would omit the rule that makes
60705         Makefile from Makefile.in.
60706
60707 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60708
60709         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60710         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60711         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60712         (memcoll): Set errno to zero if there is no error.
60713
60714         * lib/quotearg.c (quotearg_buffer_restyled):
60715         Fix bug with quoting buffers containing NUL when backslashing escapes.
60716         This bug was exposed by the other changes in this patch.
60717         (quotearg_n_options): New arg ARGSIZE.
60718         All callers changed.
60719         (quoting_options_from_style): New function.
60720         (quotearg_n_style): Use it.
60721         (quotearg_n_style_mem): New function.
60722
60723         * lib/quotearg.h (quotearg_n_style_mem): New function.
60724
60725 2002-01-19  Jim Meyering  <meyering@lucent.com>
60726
60727         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60728         Remove useless quotes: DF_PROG="df".
60729         * m4/strnlen.m4: New file.
60730
60731 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60732
60733         * lib/backupfile.c (ISDIGIT): Comment fix.
60734         * lib/getdate.y (ISDIGIT): Likewise.
60735         * lib/posixtm.c (ISDIGIT, year): Likewise.
60736         * lib/strverscmp.c (ISDIGIT): Likewise.
60737         * lib/userspec.c (ISDIGIT): Likewise.
60738
60739 2002-01-16  Jim Meyering  <meyering@lucent.com>
60740
60741         * lib/getdate.y: Add three semicolons, each just before a closing
60742         brace. Bison (as of version 1.31) no longer papers over that mistake.
60743
60744 2002-01-05  Jim Meyering  <meyering@lucent.com>
60745
60746         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60747
60748 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60749
60750         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60751         not silently exit merely because the output buffer happens to
60752         have nothing pending.
60753
60754 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60755
60756         See the big note in ../ChangeLog.
60757         * lib/human.c (suffixes): Prefer K to k for 1024.
60758         (generate_suffix_backwards): New function.
60759         (human_readable_inexact): Use it.
60760         * lib/xstrtol.c (__xstrtol): If there is no number but there
60761         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60762         Accept 'K' as well as 'k'.
60763
60764 2001-12-15  Jim Meyering  <meyering@lucent.com>
60765
60766         * lib/regex.h (__restrict_arr): Update from libc.
60767
60768         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60769         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60770         (STREQ): Define.
60771
60772 2001-12-14  Jim Meyering  <meyering@lucent.com>
60773
60774         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60775         Suggestion from Bruno Haible.
60776
60777 2001-12-10  Jim Meyering  <meyering@lucent.com>
60778
60779         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60780         xrealloc, Instead, include "xalloc.h".
60781         (initbuffer): Don't cast xmalloc return value to char*.
60782         (readline): Reword comment.
60783         Don't cast xrealloc return value to char*
60784         Return NULL, not 0.
60785
60786 2001-12-09  Jim Meyering  <meyering@lucent.com>
60787
60788         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60789         about `signed and unsigned type in conditional expression'.
60790         * lib/posixtm.c (posix_time_parse): Likewise.
60791
60792         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60793
60794         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60795         to avoid a pedantic warning.
60796
60797         * lib/getstr.c: Don't include assert.h.
60798         (getstr): Remove warning-evoking assertions.
60799         Return -1 if offset parameter is out of bounds.
60800         Change the type of a local from int to size_t.
60801
60802         * lib/strftime.c (my_strftime_localtime_r): Include this function
60803         definition in the `#if ! HAVE_TM_GMTOFF' block.
60804
60805         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60806         Include xalloc.h instead.
60807
60808 2001-12-02  Jim Meyering  <meyering@lucent.com>
60809
60810         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60811         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60812         included.
60813
60814         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60815         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60816
60817 2001-11-30  Akim Demaille  <akim@epita.fr>
60818
60819         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60820         before being defined.
60821
60822 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60823
60824         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60825         First arg is int, not unsigned.
60826         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60827         (SIZE_MAX, UINT_MAX): New macros.
60828         (quotearg_n_options): Abort if N is negative.
60829         Avoid overflow check on hosts where size_t is 64 bits and int
60830         is 32 bits, as overflow is impossible there.
60831         Fix off-by-one typo that caused unnecessary reallocation.
60832
60833 2001-11-27  Jim Meyering  <meyering@lucent.com>
60834
60835         * lib/tempname.c: Merge with version from libc.
60836         * lib/regex.c: Likewise.
60837
60838         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60839         systems for which STDC_HEADERS is 0, it was not included, resulting in
60840         a warning about an integer-to-pointer conversion problem with getenv.
60841         Reported by Volker Borchert.
60842
60843 2001-11-26  Jim Meyering  <meyering@lucent.com>
60844
60845         * lib/gtod.h: Remove file.
60846         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60847         * lib/gettimeofday.c: Don't include gtod.h.
60848         (GTOD_init): Remove function.
60849         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60850         Suggestion from Volker Borchert.
60851
60852 2001-11-23  Jim Meyering  <meyering@lucent.com>
60853
60854         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60855         it.
60856         * lib/hash.c (struct hash_table): Define it here instead.
60857
60858 2001-11-22  Jim Meyering  <meyering@lucent.com>
60859
60860         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60861
60862 2001-11-20  Jim Meyering  <meyering@lucent.com>
60863
60864         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60865         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60866
60867 2001-11-19  Jim Meyering  <meyering@lucent.com>
60868
60869         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60870         directory.  Use "conftestXXXXXX" as the template.
60871         Suggestion from Paul Eggert.
60872
60873         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60874         immediately, so the test doesn't mistakenly hit the max-open-files
60875         limit.
60876
60877 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60878
60879         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60880         (TEMPORARIES): New macro.
60881         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60882         removes an artificial limitation (e.g. HP-UX 10.20, where
60883         TMP_MAX is 17576).
60884
60885 2001-11-18  Jim Meyering  <meyering@lucent.com>
60886
60887         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60888
60889 2001-11-18  Jim Meyering  <meyering@lucent.com>
60890
60891         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60892         on SunOS 4.
60893
60894         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60895         files will be created before anything else.
60896
60897 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60898
60899         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60900         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60901
60902 2001-11-17  Jim Meyering  <meyering@lucent.com>
60903
60904         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60905         Prompted by a report from Bob Proulx.
60906
60907         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60908         Instead, require UTILS_FUNC_MKSTEMP.
60909
60910 2001-11-17  Jim Meyering  <meyering@lucent.com>
60911
60912         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60913         Now, that's done as part of AC_FUNC_STRTOD.
60914
60915 2001-11-17  Jim Meyering  <meyering@lucent.com>
60916
60917         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60918         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60919         rather than group writable.  Patch by Juan F. Codagnone.
60920
60921         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60922         xrealloc, Instead, include "xalloc.h".
60923
60924         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60925         Remove explicit declarations of xmalloc, xrealloc,
60926         and xstrdup.  Instead, include "xalloc.h".
60927
60928         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60929         unlocked-io.h.
60930         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60931         Likewise.
60932         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60933
60934         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60935         Reported by Padraig Brady.
60936
60937         * lib/mkstemp.c: #undef mkstemp.
60938         Include config.h.
60939         (rpl_mkstemp): Rename from mkstemp.
60940         Protoize.
60941
60942 2001-11-16  Jim Meyering  <meyering@lucent.com>
60943
60944         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60945         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60946         determine the amount of total physical memory, use pstat_getstatic.
60947         HPUX-11 doesn't define _SC_PHYS_PAGES.
60948         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60949         If sysconf couldn't be used to determine the amount of available
60950         physical memory, use both pstat_getstatic and pstat_getdynamic.
60951         Based on a patch from Bob Proulx.
60952
60953 2001-11-10  Jim Meyering  <meyering@lucent.com>
60954
60955         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60956         (jm_PREREQ): Use it.
60957
60958 2001-11-09  Jim Meyering  <meyering@lucent.com>
60959
60960         * m4/jm-macros.m4: Require autoconf-2.52f.
60961         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60962         Use these AC_-prefixed names, not the AM_-prefixed ones.
60963
60964         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60965
60966 2001-11-05  Jim Meyering  <meyering@lucent.com>
60967
60968         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60969
60970 2001-11-04  Jim Meyering  <meyering@lucent.com>
60971
60972         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60973         $DEFS.
60974
60975 2001-11-03  Jim Meyering  <meyering@lucent.com>
60976
60977         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60978         of AC_DEFUN.
60979
60980         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60981         know the name of the variable in the macro definition.
60982
60983 2001-11-03  Jim Meyering  <meyering@lucent.com>
60984
60985         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60986         in argmatch_to_argument call.
60987
60988         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60989         argument.
60990
60991         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60992         e.g., a fault due to an attempt to free a NULL pointer.
60993
60994 2001-11-01  Jim Meyering  <meyering@lucent.com>
60995
60996         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60997         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60998
60999 2001-11-01  Jim Meyering  <meyering@lucent.com>
61000
61001         * lib/dirfd.c, lib/dirfd.h: New files.
61002         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61003
61004         * lib/hash.c (hash_print) [TESTING]: Clean up.
61005
61006 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61007
61008         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61009         to avoid a warning if -Wall.
61010
61011 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61012
61013         * README: New file
61014         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61015         (per RMS's instructions, this is now the canonical source)
61016         * lgpl/, gpl/: New directories.
61017
61018 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61019
61020         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61021
61022 2001-10-21  Jim Meyering  <meyering@lucent.com>
61023
61024         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61025         this code would end up calling gettext even in packages built
61026         with --disable-nls.
61027         * lib/getopt.c (_): Likewise.
61028         * lib/regex.c (_): Likewise.
61029
61030 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61031
61032         * m4/error.m4 (jm_PREREQ_ERROR):
61033         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61034         AC_FUNC_STRERROR_R does that.
61035         Check for strerror declaration.
61036
61037         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61038         are supposed to have them these days.
61039         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61040         Merge changes from latest Autoconf CVS.
61041         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61042         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61043         POSIX decided to standardize on the int flavor of strerror_r.
61044
61045 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61046
61047         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61048         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61049         Use strerror_r that is only a macro, even if it is not a function.
61050         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61051         (private_strerror): Use prototypes, not old-style function definition.
61052         (print_errno_message): New function.
61053         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61054         char*-flavored one.
61055         (error_tail, error, error_at_line): Use it.
61056
61057 2001-10-11  Jim Meyering  <meyering@lucent.com>
61058
61059         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61060         and quote_n (1, ... to avoid clobbering a buffer.
61061
61062 2001-10-05  Jim Meyering  <meyering@lucent.com>
61063
61064         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61065         hash-pjw.h.
61066         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61067         * lib/hash-pjw.h: New file.
61068
61069 2001-09-30  Jim Meyering  <meyering@lucent.com>
61070
61071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61072         `struct fsstat' has the `f_fstypename' member.
61073         Use that to define FS_TYPE, which is now used to make
61074         the getfsstat link test tighter.
61075
61076 2001-09-30  Jim Meyering  <meyering@lucent.com>
61077
61078         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61079         Include <sys/ucred.h>, for Apple Darwin.
61080         Include sys/mount.h and sys/fs_types.h only if available.
61081         (FS_TYPE): Define.
61082         (read_filesystem_list): Use FS_TYPE.
61083
61084 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61085
61086         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61087         a boolean context.
61088
61089 2001-09-29  Jim Meyering  <meyering@lucent.com>
61090
61091         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61092         [one-argument getmntent function]): Include stdio.h before mntent.h.
61093         SunOS 4.1.x needs it for the declaration of `FILE'.
61094         Patch by Volker Borchert.
61095
61096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61097         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61098         sys/fs_types.h, and make the link-test for getfsstat guard #include
61099         directives with appropriate #if HAVE_*_H tests so that we can
61100         detect getfsstat on Apple Darwin1.3.7 systems.
61101         Reported by Nelson Beebe.
61102         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61103
61104 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61105
61106         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61107         #defines strtoimax.  Also treat the other strto* functions
61108         like strtoimax.
61109
61110         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61111         Check for strtoul and strtoumax,
61112         as those declarations are made even in the signed case.
61113         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61114         Likewise, for strtol and strtoimax.
61115
61116 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61117
61118         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61119         #defines strtoimax.  Also treat the other strto* functions
61120         like strtoimax.
61121
61122         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61123         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61124         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61125
61126 2001-09-26  Jim Meyering  <meyering@lucent.com>
61127
61128         Most macros in unlocked-io.h had the wrong number of arguments.
61129         * lib/gen-uio: New script.
61130         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61131         * lib/unlocked-io.hin: Remove file.
61132         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61133         rather than trying to embed it here.
61134         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61135         Reported by Padraig Brady.
61136
61137 2001-09-25  Volker Borchert  <bt@teknon.de>
61138
61139         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61140         `result'.
61141
61142 2001-09-24  Jim Meyering  <meyering@lucent.com>
61143
61144         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61145
61146 2001-09-23  Jim Meyering  <meyering@lucent.com>
61147
61148         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61149         instead of the mere test for existence of mntent.h.  The latter
61150         would get a false-positive on AIX 3.4 systems.
61151         In the outer getmntent if-block, don't die if neither of the getmntent
61152         tests succeeds.  Instead, just fall through and continue with the
61153         remaining tests.
61154
61155 2001-09-23  Jim Meyering  <meyering@lucent.com>
61156
61157         * lib/mountlist.c: Remove useless parentheses in #if directives.
61158         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61159         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61160
61161 2001-09-22  Jim Meyering  <meyering@lucent.com>
61162
61163         * m4/gettext.m4: New file.  From gettext.
61164         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61165         * m4/progtest.m4: Likewise
61166         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61167         * m4/glibc21.m4: Likewise.
61168
61169         * m4/libintl.m4: Remove.  No longer used.
61170
61171 2001-09-22  Jim Meyering  <meyering@lucent.com>
61172
61173         * lib/localcharset.c: Update from latest gettext.
61174         * lib/config.charset: Likewise.
61175
61176 2001-09-20  Jim Meyering  <meyering@lucent.com>
61177
61178         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61179         strtoimax.
61180         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61181         strtoumax.
61182
61183 2001-09-20  Jim Meyering  <meyering@lucent.com>
61184
61185         * lib/xstrtol.c (strtoimax): Guard declaration with
61186         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61187         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61188         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61189         (strtoumax): Likewise, for completeness (it wasn't necessary).
61190
61191 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61192
61193         * lib/strtoimax.c (HAVE_LONG_LONG):
61194         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61195         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61196         to work around bug in IBM C compiler.
61197
61198 2001-09-17  Jim Meyering  <meyering@lucent.com>
61199
61200         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61201         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61202         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61203         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61204         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61205         whenever the right hand side need not be expanded by the shell.
61206
61207 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61208
61209         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61210         library.  It's not correct, as some older glibcs are buggy.
61211         fnmatch wasn't fixed until glibc 2.2.
61212
61213         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61214         special shell magic here.
61215
61216 2001-09-16  Jim Meyering  <meyering@lucent.com>
61217
61218         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61219         * m4/jm-macros.m4: Require it.
61220
61221 2001-09-16  Jim Meyering  <meyering@lucent.com>
61222
61223         * lib/mkdir.c: New file.
61224
61225 2001-09-15  Jim Meyering  <meyering@lucent.com>
61226
61227         * m4/jm-macros.m4: Check for help2man.
61228
61229 2001-09-11  Jim Meyering  <meyering@lucent.com>
61230
61231         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61232         The body, by Paul Eggert, was moved here from configure.in.
61233         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61234
61235 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61236
61237         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61238         (jm_PREREQ): Use it.
61239
61240 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61241
61242         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61243         Use ssize_t, not int, to store result of readlink.
61244         Check for ssize_t overflow as well as size_t overflow,
61245         as POSIX says the result of readlink is implementation-defined
61246         when ssize_t overflows.
61247         Remove unnecessary cast to char*.
61248         Use free+malloc instead of realloc, as the storage doesn't need
61249         to be preserved and it's clearer and can be more efficient that way.
61250         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61251         * lib/xreadlink.h (xreadlink): Update prototype.
61252
61253 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61254
61255         * lib/xgetcwd.c: Revert some of the previous change; intead,
61256         fix the HAVE_GETCWD_NULL code to behave more like the
61257         !HAVE_GETCWD_NULL code used to.
61258
61259         Include "xalloc.h".
61260         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61261         invoke xalloc_die.
61262
61263 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61264
61265         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61266         sys/param.h, as pathmax.h includes them.
61267
61268 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61269
61270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61271         (jm_PREREQ_XGETCWD): New macro.
61272
61273         * m4/getcwd.m4: New file.
61274
61275 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61276
61277         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61278         like the HAVE_GETCWD_NULL code.
61279         Include pathmax.h if not HAVE_GETCWD.
61280         Do not include xalloc.h.
61281         (INITIAL_BUFFER_SIZE): New symbol.
61282         Do not use xmalloc / xrealloc, since the caller is responsible for
61283         handling errors.  Preserve errno around `free' during failure.
61284         Do not overrun buffer when using getwd.
61285
61286 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61287
61288         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61289         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61290         getcwd (NULL, 0).
61291
61292 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61293
61294         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61295         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61296         spotted by Jim Meyering.
61297
61298 2001-09-03  Jim Meyering  <meyering@lucent.com>
61299
61300         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61301         failure.
61302
61303 2001-09-02  Jim Meyering  <meyering@lucent.com>
61304
61305         * lib/error.c: Update from GNU libc.
61306
61307 2001-09-01  Jim Meyering  <meyering@lucent.com>
61308
61309         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61310         Used by df.
61311
61312 2001-09-01  Jim Meyering  <meyering@lucent.com>
61313
61314         * lib/xreadlink.c: New file.
61315         * lib/xreadlink.h: New file.
61316         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61317         xreadlink.h.
61318
61319         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61320         doesn't conflict with sparc Solaris 7's definition in
61321         /usr/include/sys/int_types.h.
61322
61323         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61324         files.
61325         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61326         and strncasecmp as r-values.  Unixware didn't have declarations.
61327
61328 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61329
61330         * lib/xstrtol.h: Add copyright notice.
61331         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61332         LONGINT_INVALID_SUFFIX_CHAR.
61333
61334 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61335
61336         * lib/xstrtol.c (strtoimax): New decl.
61337
61338 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61339
61340         * lib/xgetcwd.c: Don't include pathmax.h.
61341         Include stdlib.h and unistd.h if available.
61342         Include xalloc.h.
61343         (xmalloc, xstrdup, free): Remove decls.
61344         (xgetcwd): Don't assume sizes fit in unsigned.
61345         Check for overflow when computing sizes.
61346         Simplify reallocation code.
61347
61348 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61349
61350         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61351         a directory's st_size can have an arbitrary value, so the old
61352         usage could waste an arbitrary amount of memory.  All uses
61353         changed.
61354         * lib/savedir.h: Update prototype.
61355
61356 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61357
61358         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61359
61360         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61361         old strtoimax.c.
61362
61363         Also, make the following further changes to make this file's
61364         configuration more similar to that of strtol.c:
61365         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61366         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61367         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61368         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61369         changed to signed values.
61370
61371         And make the following changes as well:
61372         Fix copyright notice, as 1999 was missing.
61373         (verify): New macro.
61374         (strtoimax): Check sizes at compile-time, not run-time.
61375         Prefer strtol to strtoll if both work.
61376         (main): Remove; it was not that useful and was a pain to maintain.
61377
61378         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61379
61380 2001-08-31  Jim Meyering  <meyering@lucent.com>
61381
61382         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61383         Use an initial, malloc'd, buffer of length 128 rather than
61384         a statically allocated one of length 1024.
61385
61386 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61387
61388         Simplify code, partly by assuming autoconf 2.52 semantics.
61389
61390         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61391
61392         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61393         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61394         All uses removed.
61395         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61396         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61397         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61398         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61399         jm_AC_HEADER_INTTYPES_H.
61400         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61401
61402         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61403
61404         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61405         Quote first arg of AC_DEFUN.
61406         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61407         since they are needed to parse the include file even if we need
61408         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61409         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61410         but with opposite signedness.
61411
61412 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61413
61414         Merge 'exclude' changes from tar 1.13.22.
61415         This fixes one or two unlikely storage allocation overflow bugs,
61416         but doesn't change user-visible behavior otherwise.
61417
61418 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61419
61420         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61421         (jm_PREREQ_EXCLUDE): New macro.
61422
61423 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61424
61425         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61426         tm to be declared.
61427
61428 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61429
61430         * lib/hash.c: Remove '2001' from copyright notice.
61431
61432 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61433
61434         * lib/full-write.h: New file.
61435         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61436         * lib/full-write.c: Correct credits, as cccp.c no longer
61437         exists and anyway it was so heavily changed from the old cccp
61438         code as to be unrecognizable.  Include full-write.h.
61439         (full_write) Return size_t, with short writes meaning failure.
61440         All callers changed.  This fixes a bug with large buffers
61441         on 64-bit hosts.
61442         * lib/utime.c: Include full-write.h.
61443
61444 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61445
61446         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61447         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61448         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61449         Include if available.
61450         (<xalloc.h>): Include
61451         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61452         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61453         collide with FNM macros.
61454         (struct patopts): New struct.
61455         (struct exclude): Use it, as exclude patterns now come with options.
61456         (new_exclude): Support above changes.
61457         (new_exclude, add_exclude_file):
61458         Initial size must now be a power of two to simplify overflow checking.
61459         (free_exclude, fnmatch_no_wildcards): New function.
61460         (excluded_filename): No longer requires options arg, as the options
61461         are determined by add_exclude.  Now returns bool, not int.
61462         (excluded_filename, add_exclude):
61463         Add support for the fancy new exclusion options.
61464         (add_exclude, add_exclude_file): Now takes int options arg.
61465         Check for arithmetic overflow when computing sizes.
61466         (add_exclude_file): xrealloc might modify errno, so don't
61467         realloc until after errno might be used.
61468
61469         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61470         New macros.
61471         (free_exclude): New decl.
61472         (add_exclude, add_exclude_file): Now takes int options arg.
61473         (excluded_filename): No longer requires options arg, as the options
61474         are determined by add_exclude.  Now returns bool, not int.
61475
61476 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61477
61478         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61479
61480 2001-08-27  Jim Meyering  <meyering@lucent.com>
61481
61482         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61483
61484         * lib/version-etc.c (N_): Remove definition.
61485         Revert most of last change.
61486         Instead, simply don't mark the `Copyright...' string for translation.
61487         Based on advice from Paul Eggert.
61488
61489         * lib/strtoxmax.c: Tweak comment.
61490
61491 2001-08-26  Jim Meyering  <meyering@lucent.com>
61492
61493         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61494
61495         * m4/xstrtoimax.m4: New file.
61496         * m4/xstrtoumax.m4: Add comments explaining why we
61497         AC_REPLACE_FUNCS(strtol).
61498
61499 2001-08-26  Jim Meyering  <meyering@lucent.com>
61500
61501         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61502         of copyright with `%s' so translators don't get an untranslated
61503         message in 2002.
61504         (COPYRIGHT_YEAR): Define.
61505         (version_etc): Use fprintf rather than fputs.
61506         Suggestion from Ulrich Drepper.
61507
61508         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61509
61510         * lib/strtoll.c: New file, from GNU libc.
61511         * lib/xstrtoimax.c: New file.
61512
61513         * lib/xstrtol.h: Add xstrtoimax.
61514         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61515         * lib/strtoimax.c: New file.  Likewise, but first define
61516         STRTOUXMAX_SIGNED.
61517
61518         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61519         ...
61520         * lib/strtoxmax.c: ... then renamed to this.
61521
61522 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61523
61524         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61525         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61526         (jm_AC_TYPE_INTMAX_T): New macro.
61527         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61528
61529         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61530
61531         * m4/longlong.m4: Renamed from ulonglong.m4.
61532         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61533         * m4/uintmax_t.m4: Removed.
61534
61535 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61536
61537         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61538         Port to Solaris 8, where 'sed' requires a space after the 'r'
61539         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61540         Redirect output to $tmp just once.
61541
61542 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61543
61544         * lib/addext.c (<errno.h>): Include.
61545         (errno): Declare if not defined.
61546         (addext): Work correctly when pathconf returns -1 and leaves
61547         errno alone because there is no limit.  Also, work even if
61548         pathconf returns a value greater than SIZE_MAX.
61549
61550 2001-08-12  Jim Meyering  <meyering@lucent.com>
61551
61552         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61553         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61554         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61555         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61556         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61557         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61558         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61559         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61560         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61561         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61562         utime.m4, utimes.m4, xstrtoumax.m4:
61563         Quote the first argument in each use of AC_DEFUN.
61564
61565 2001-08-12  Jim Meyering  <meyering@lucent.com>
61566
61567         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61568         Simply `return getcwd (NULL, 0);'.
61569         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61570         Use 1300 as initial value for length, not PATH_MAX.
61571
61572         * lib/pathmax.h: Clean up cpp syntax.
61573
61574 2001-08-12  Jim Meyering  <meyering@lucent.com>
61575
61576         * lib/gettimeofday.c: New file.
61577         * lib/gtod.h: New file.
61578         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61579
61580 2001-08-05  Jim Meyering  <meyering@lucent.com>
61581
61582         * m4/jm-macros.m4: Require autoconf-2.52.
61583
61584 2001-08-04  Jim Meyering  <meyering@lucent.com>
61585
61586         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61587         stmt, to get in sync with glibc.
61588
61589 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61590
61591         The following changes are from gettext 0.10.39 as maintained by
61592         Bruno Haible.
61593
61594         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61595         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61596         with inverted sense.  All uses changed.
61597
61598         * lib/mbswidth.c: Don't include <limits.h>.
61599         Include <stdlib.h> and <string.h> unconditionally.
61600         (iswcntrl, mbsinit, ISCNTRL): New macros.
61601         (mbsnwidth): Use K&R style function declarations.
61602         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61603         can optimize it when MB_CUR_MAX == 1.
61604         The width of control characters is zero, not 1.
61605
61606 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61607
61608         The following changes are from gettext 0.10.39 as maintained by
61609         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61610
61611         * m4/codeset.m4: Upgrade to serial AM1.
61612         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61613         all uses changed.  Quote first arg of AC_DEFUN.
61614         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61615
61616         * m4/iconv.m4: Upgrade to serial AM2.
61617         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61618         Add --with-libconv-prefix.
61619         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61620         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61621         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61622         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61623         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61624
61625         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61626         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61627         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61628         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61629         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61630         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61631         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61632         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61633         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61634
61635         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61636         string.h any more.
61637
61638         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61639         not the default value.
61640
61641         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61642         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61643         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61644         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61645         Also check for iswcntrl, used for wcwidth fallback.
61646         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61647         to Autoconf 2.13.
61648
61649 2001-08-03  Jim Meyering  <meyering@lucent.com>
61650
61651         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61652         as it was in the original.  Reported by Paul Eggert.
61653
61654 2001-07-16  Jim Meyering  <meyering@lucent.com>
61655
61656         * m4/gettimeofday.m4: New file.
61657         Prompted by a report from Bernhard Baehr.
61658
61659 2001-07-15  Jim Meyering  <meyering@lucent.com>
61660
61661         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61662         stuff. Now it's in ../Makefile.cfg.
61663
61664 2001-07-15  Jim Meyering  <meyering@lucent.com>
61665
61666         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61667         (BUILT_SOURCES): Add unlocked-io.h.
61668         (io_functions): Define.
61669         (unlocked-io.h): New rule.
61670         (DISTCLEANFILES): Add unlocked-io.h.
61671         (all-local): Depend on unlocked-io.h, to ensure it is created.
61672
61673         * lib/unlocked-io.hin: New file
61674
61675         * lib/regex.c: Update from glibc.
61676
61677 2001-07-05  Jim Meyering  <meyering@lucent.com>
61678
61679         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61680         recommendation.
61681         (libfetish_a_SOURCES): Put all .h files here instead.
61682         Remove a thus-exposed (better checks in automake) duplicate and
61683         two unnecessary .h files.
61684
61685 2001-07-04  Jim Meyering  <meyering@lucent.com>
61686
61687         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61688         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61689         distcheck failure.
61690
61691 2001-07-02  Jim Meyering  <meyering@lucent.com>
61692
61693         The following changes were prompted by suggestions from Bruno Haible.
61694
61695         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61696         is now generated.
61697         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61698         definition of EXTRA_DIST.
61699         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61700         ensure that the generated file is created/updated whenever the list
61701         of $(unlocked_functions) is changed.
61702         (jm-glibc-io.m4): New rule.
61703         (unlocked-io.h): New rule -- currently unused.
61704
61705 2001-06-24  Jim Meyering  <meyering@lucent.com>
61706
61707         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61708         unmatched right bracket, rather than kludging it with an extra,
61709         falsely-matching quote in a comment.  Patch by Akim Demaille.
61710
61711 2001-06-11  Jim Meyering  <meyering@lucent.com>
61712
61713         * lib/regex.c: Update from GNU libc.
61714
61715 2001-05-27  Jim Meyering  <meyering@lucent.com>
61716
61717         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61718         Check for ut_type in struct utmp.
61719
61720 2001-05-27  Jim Meyering  <meyering@lucent.com>
61721
61722         * lib/readutmp.h (UT_TYPE): Define.
61723
61724 2001-05-24  Jim Meyering  <meyering@lucent.com>
61725
61726         * lib/argmatch.c: Include "quote.h".
61727         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61728         quote function.  Reported by Göran Uddeborg.
61729
61730 2001-05-22  Jim Meyering  <meyering@lucent.com>
61731
61732         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61733         now that we use the package-supplied version unconditionally.
61734         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61735
61736 2001-05-21  Jim Meyering  <meyering@lucent.com>
61737
61738         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61739         shell syntax errors.
61740
61741 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61742
61743         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61744
61745 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61746
61747         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61748         Don't bother to check library strftime, since
61749         we'll be using our own my_strftime function anyway.
61750         Define my_strftime instead of strftime.
61751
61752 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61753
61754         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61755         which is not yet declared.
61756
61757 2001-05-15  Jim Meyering  <meyering@lucent.com>
61758
61759         * m4/regex.m4: Use proper quoting so brackets appear in the test
61760         program.
61761         Reported by, and with help from, Bruno Haible.
61762
61763 2001-05-13  Jim Meyering  <meyering@lucent.com>
61764
61765         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61766         undefined.
61767
61768 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61769
61770         dirname code cleanup.  base_name now behaves more compatibly
61771         with POSIX basename when given file names that have trailing
61772         slashes, and similarly for dir_name.  Add new primitives
61773         base_len and dir_len.  Put the directory-name-related decls
61774         into dirname.h.
61775
61776         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61777         * lib/backupfile.c (base_name): Likewise.
61778         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61779         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61780         * lib/makepath.c (strip_trailing_slashes): Likewise.
61781         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61782         ISSLASH): Likewise.
61783         * lib/rename.c (strip_trailing_slashes): Likewise.
61784         * lib/same.c (base_name): Likewise.
61785         * lib/stripslash.c (ISSLASH): Likewise.
61786
61787         * lib/addext.c: Include <dirname.h> after size_t is defined.
61788         * lib/backupfile.c: Likewise.
61789
61790         * lib/addext.c (addext): Use base_len to trim redundant
61791         trailing slashes instead of doing it ourselves.
61792         But do not trim the last slash if it is not redundant.
61793
61794         * lib/backupfile.c (find_backup_file_name,
61795         max_backup_version): Use base_len instead of rolling it ourselves.
61796         Handle the case of "" and (on DOS) "C:" correctly.
61797
61798         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61799         needed. Include <string.h>, <dirname.h>.
61800         (base_name): Allow file names ending in slashes, other than names
61801         that are all slashes.  In this case, return the basename followed
61802         by the slashes.  This is more general, and can be used in places
61803         where the original base_name purposely had an assertion failure.
61804         (base_len): New function.
61805
61806         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61807         Do not include <assert.h>; no longer needed.
61808         Include xalloc.h.
61809         (memrchr): Remove decl.
61810         (dir_name_r): Remove.
61811         (dir_len): Renamed from dirlen.  All callers changed.
61812         Rewrite in terms of base_name, for simplicity and consistency.
61813         (dir_name): Never return NULL.  All callers changed.
61814         Do not include <stdlib.h> in test program; no longer needed.
61815         return 0; is fine for test program.
61816
61817         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61818         New macros.
61819         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61820
61821         * lib/path-concat.c (path_concat): Use base_len to compute
61822         base length, not strlen; this means we cannot rely on memcpy
61823         to null-terminate.
61824
61825         * lib/same.c (STREQ): Remove.
61826         (same_name): Handle the case where the basename ends in trailing '/'.
61827
61828         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61829         a slash was stripped.  Do not strip the last slash after a
61830         file system prefix.
61831
61832 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61833
61834         * lib/Makefile.am (libfetish_a_SOURCES):
61835         Add strftime.c, since we now compile it on all hosts.
61836
61837         * lib/strftime.c (my_strftime):
61838         Define to nstrftime if emacs, but only if my_strftime is not defined.
61839         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61840         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61841         Add one more extra argument: a nanoseconds value.
61842         All uses changed.
61843         (ns): New macro.
61844         (my_strftime function): Add %N format.
61845         (emacs_strftimeu): Renamed from emacs_strftime,
61846         with extra ut argument.
61847
61848 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61849
61850         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61851
61852 2001-04-21  Jim Meyering  <meyering@lucent.com>
61853
61854         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61855         doesn't interfere.
61856
61857 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61858
61859         * m4/ftruncate.m4: Check for chsize.
61860         Link with ftruncate.o unconditionally if ftruncate is missing.
61861         This was required when cross-compiling to i586-mingw32msvc.
61862
61863 2001-04-08  Jim Meyering  <meyering@lucent.com>
61864
61865         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61866         recomputed; that's necessary when the offset spans a DST transition.
61867         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61868
61869 2001-04-02  Jim Meyering  <meyering@lucent.com>
61870
61871         * lib/regex.h, regex.c: Update from GNU libc.
61872
61873 2001-03-24  Jim Meyering  <meyering@lucent.com>
61874
61875         * m4/jm-macros.m4: Require autoconf-2.49d.
61876
61877 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61878
61879         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61880
61881 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61882
61883         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61884
61885 2001-03-17  Jim Meyering  <meyering@lucent.com>
61886
61887         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61888         now that the version in autoconf is equivalent.
61889         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61890
61891         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61892         Suggestion from Akim Demaille.
61893
61894         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61895         (jm_PREREQ_TEMPNAME): New function.
61896
61897 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61898
61899         * lib/tempname.c (uint64_t): Define to uintmax_t if
61900         not defined, and if UINT64_MAX is not defined.
61901         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61902         Reported by John David Anglin.
61903
61904 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61905
61906         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61907         resolve alias if codeset is empty.
61908         * lib/config.charset (BeOS): Use wildcard syntax.
61909
61910 2001-03-13  Jim Meyering  <meyering@lucent.com>
61911
61912         * lib/path-concat.c (path_concat)
61913         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61914         concatenating e.g., `C:' and `foo'.
61915         From Bruno Haible.
61916
61917 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61918
61919         * lib/localcharset.c (locale_charset): Don't use
61920         setlocale(LC_CTYPE,NULL). Don't return NULL.
61921         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61922
61923 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61924
61925         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61926         support for DOS/DJGPP.
61927
61928 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61929
61930         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61931         lacks mkstemp.  Compile our own tempname.c if we compile our own
61932         mkstemp.c, as mkstemp relies on tempname.
61933
61934 2001-03-01  Jim Meyering  <meyering@lucent.com>
61935
61936         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61937         AH_VERBATIM really does output its argument verbatim.
61938
61939 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61940
61941         * lib/Makefile.am (libfetish_a_SOURCES):
61942         Add dup-safer.c, fopen-safer.c.
61943         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61944
61945         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61946         * lib/unistd-safer.h: New files.
61947
61948 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61949
61950         The mkstemp replacement is taken from glibc 2.2.2, with some
61951         portability fixes for use outside glibc, as follows:
61952
61953         * lib/tempname.c (struct_stat64): New macro.
61954         (direxists, __gen_tempname): Use it.
61955         This avoids a portability problem with Solaris 8.
61956
61957         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61958         (<stddef.h>, <stdint.h>, <string.h>):
61959         Include only if STDC_HEADERS || _LIBC.
61960         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61961         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61962         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61963         (__set_errno): Define this macro if <errno.h> doesn't.
61964         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61965         Define these macros if <stdio.h> doesn't.
61966         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61967         Define these macros if <sys/stat.h>
61968         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61969         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61970         __xstat64): Define if not _LIBC.
61971         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61972         (__gen_tempname): Invoke gettimeofday only if
61973         HAVE_GETTIMEOFDAY || _LIBC;
61974         otherwise, fall back on plain "time".
61975         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61976
61977         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61978
61979         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61980
61981 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61982
61983         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61984
61985 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61986
61987         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61988         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61989         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61990         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61991
61992 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61993
61994         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61995         Remove workaround macros for hosts that have mbrtowc but not
61996         mbstate_t, as we now insist on proper declarations for both
61997         before using mbrtowc.
61998
61999 2001-02-17  Jim Meyering  <meyering@lucent.com>
62000
62001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62002         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62003         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62004         UnixWare 7.1.1.
62005
62006         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62007         rather than AC_CACHE_VAL.
62008
62009 2001-02-17  Jim Meyering  <meyering@lucent.com>
62010
62011         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62012         around included file name.
62013
62014         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62015
62016         * lib/strftime.c: Update from GNU libc (the only changes were to
62017         comments).
62018
62019 2001-02-17  Jim Meyering  <meyering@lucent.com>
62020
62021         * lib/regex.c: Update from libc.
62022
62023 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62024
62025         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62026         clash.
62027
62028 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62029
62030         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62031         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62032         Reported by Mark Hounschell via Paul Eggert.
62033
62034 2001-02-07  Jim Meyering  <meyering@lucent.com>
62035
62036         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62037
62038 2001-02-05  Jim Meyering  <meyering@lucent.com>
62039
62040         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62041         it includes the patch required for `large file' support with at least
62042         HP-UX's 10.20 /bin/cc.
62043
62044 2001-02-03  Jim Meyering  <meyering@lucent.com>
62045
62046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62047         AS_IF, now that it works once again (mysteriously).
62048         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62049
62050 2001-01-30  Jim Meyering  <meyering@lucent.com>
62051
62052         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62053         * m4/chown.m4: Rename conftestchown to conftest.chown.
62054         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62055         s/conftestdir2/conftest.d2/.
62056         * m4/utimes.m4: s/conftestdata/conftest.data/
62057         Inspired by Pavel Roskin's change in autoconf.
62058
62059 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62060
62061         * lib/config.charset: Update for FreeBSD 4.2.
62062
62063 2001-01-27  Jim Meyering  <meyering@lucent.com>
62064
62065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62066         a use of AS_IF.
62067         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62068
62069 2001-01-26  Jim Meyering  <meyering@lucent.com>
62070
62071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62072         quotearg.c includes it.
62073
62074 2001-01-26  Jim Meyering  <meyering@lucent.com>
62075
62076         * lib/quotearg.c: Include stddef.h.
62077         * lib/quote.c: Include stddef.h.
62078         Reported by Axel Kittenberger.
62079
62080         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62081         line in double quotes so that it evokes a better diagnostic.
62082         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62083         Reported by Axel Kittenberger.
62084
62085 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62086
62087         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62088         as if it was a `charset'.
62089
62090 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62091
62092         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62093         has const.
62094
62095 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62096
62097         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62098         to avoid a warning.  Add back 'const' to inptr.
62099
62100 2001-01-20  Jim Meyering  <meyering@lucent.com>
62101
62102         Be sure that headers are checked before used in code compiled
62103         for the type checks.
62104         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62105         In place of that, invoke jm_CHECK_ALL_TYPES.
62106         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62107         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62108         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62109         The check for ssize_t was mistakenly run before the test for unistd.h.
62110
62111         The configure-time check for stdbool.h was missing.
62112         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62113         (jm_PREREQ_HASH): New function.
62114
62115 2001-01-17  Jim Meyering  <meyering@lucent.com>
62116
62117         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62118         for autoconf-2.49c.
62119         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62120
62121 2001-01-16  Jim Meyering  <meyering@lucent.com>
62122
62123         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62124         From Bruno Haible.
62125
62126 2001-01-14  Jim Meyering  <meyering@lucent.com>
62127
62128         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62129         foo and bar.  Create conftestdir/ in the script, not in the C code.
62130         Remove directories in the script, not in the C code.
62131         Remove conftestdir{,2} before trying to create the directory.
62132         Make the entire configure script fail if the mkdir fails.
62133
62134 2001-01-14  Jim Meyering  <meyering@lucent.com>
62135
62136         * lib/rename.c: New file.  From Volker Borchert.
62137         Include stdlib.h, string.h or strings.h, and xalloc.h.
62138         Use strip_trailing_slashes rather than open-coding it.
62139
62140 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62141
62142         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62143
62144 2001-01-03  Jim Meyering  <meyering@lucent.com>
62145
62146         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62147         of local `inptr' to avoid warning with some system declarations of
62148         iconv.
62149
62150 2001-01-02  Volker Borchert  <bt@teknon.de>
62151
62152         * m4/rename.m4: New file.
62153         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62154
62155 2001-01-01  Jim Meyering  <meyering@lucent.com>
62156
62157         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62158         even on systems with utmpx.h.  It's necessary for the declaration of
62159         utmp's ut_user member.  Reported by Andreas Jaeger.
62160
62161         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62162         available. They are required for the declarations of getgrgid and
62163         getpwuid resp.
62164         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62165         Reported by Andreas Jaeger.
62166
62167 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62168
62169         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62170         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62171         so `make install' also works in VPATH builds.
62172
62173 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62174
62175         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62176         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62177         can be used in subdirectories.
62178
62179 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62180
62181         * lib/modechange.c: Do not assume that mode_t uses the
62182         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62183         the other-execute bit of FOO even if S_IXOTH != 1.
62184
62185         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62186         WOTH, XOTH, ALLM): New macros.
62187         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62188          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62189         Use them.
62190         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62191         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62192         (mode_compile):
62193         No need to use uintmax_t; unsigned long is long enough.
62194         Don't bother to get suffix since we don't use it.
62195
62196 2000-12-26  Jim Meyering  <meyering@lucent.com>
62197
62198         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62199         better with autoheader.
62200
62201 2000-12-24  Jim Meyering  <meyering@lucent.com>
62202
62203         * lib/hash.c (is_prime): Return explicit boolean values.
62204         (hash_get_first): Return NULL to appease Irix5.6's 89.
62205         Reported by Nelson Beebe.
62206
62207 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62208
62209         * lib/localcharset.c (locale_charset): Add support for Win32.
62210
62211 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62212
62213         * lib/physmem.h, lib/physmem.c: New files.
62214
62215         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62216         (noinst_HEADERS): Add physmem.h.
62217
62218         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62219         't' for compatibility with Solaris 8 sort.
62220
62221 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62222
62223         * lib/config.charset: Add support for BeOS.
62224
62225 2000-12-17  Jim Meyering  <meyering@lucent.com>
62226
62227         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62228         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62229
62230 2000-12-16  Jim Meyering  <meyering@lucent.com>
62231
62232         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62233         N and M) would have treated it like `chown N:N FILE'.
62234
62235         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62236
62237 2000-12-16  Jim Meyering  <meyering@lucent.com>
62238
62239         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62240         SHELLS_FILE to a file name that's useful on djgpp systems.
62241         Include stdlib.h.
62242         (ADDITIONAL_DEFAULT_SHELLS): Define.
62243         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62244         Based mostly on a patch from Prashant TR.
62245
62246 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62247
62248         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62249         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62250         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62251
62252 2000-12-08  Andreas Schwab  <schwab@suse.de>
62253
62254         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62255         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62256
62257 2000-12-07  Jim Meyering  <meyering@lucent.com>
62258
62259         * lib/stripslash.c (ISSLASH): Define.
62260         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62261         `/'.
62262         From Prashant TR.
62263
62264         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62265         (dir_name_r): Declare this function as static.
62266         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62267         manifest itself on a name containing a mix of slashes and
62268         backslashes.
62269         Make this function work with names starting with a DOS-style
62270         drive letter and colon prefix.
62271         (dir_name): Append `.' if necessary.
62272         Based mostly on patches from Prashant TR and Eli Zaretskii.
62273
62274         * lib/dirname.h (dir_name_r): Remove prototype.
62275
62276 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62277
62278         * m4/off_t-format.m4: Remove this file.
62279         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62280
62281 2000-12-06  Jim Meyering  <meyering@lucent.com>
62282
62283         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62284         replacement strtoull, we may well need the replacement strtoul, too.
62285         Check for declarations of strtoul and strtoull.
62286         Check for strtol.  Mainly as a cue to cause automake to include
62287         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62288         Check for limits.h -- strtol.c needs it.
62289
62290 2000-12-05  Jim Meyering  <meyering@lucent.com>
62291
62292         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62293
62294 2000-12-04  Jim Meyering  <meyering@lucent.com>
62295
62296         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62297         Also include memory.h, stdlib.h, unistd.h if appropriate.
62298         Reported by Andreas Jaeger (conflicting declaration of malloc).
62299
62300 2000-12-02  Jim Meyering  <meyering@lucent.com>
62301
62302         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62303         * m4/jm-macros.m4 (jm_MACROS): require it.
62304
62305 2000-12-02  Jim Meyering  <meyering@lucent.com>
62306
62307         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62308
62309 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62310
62311         * lib/memrchr.c: Include <config.h> before any system include file.
62312
62313 2000-11-30  Jim Meyering  <meyering@lucent.com>
62314
62315         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62316
62317 2000-11-30  Jim Meyering  <meyering@lucent.com>
62318
62319         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62320
62321 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62322
62323         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62324
62325 2000-11-26  Jim Meyering  <meyering@lucent.com>
62326
62327         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62328
62329 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62330
62331         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62332         size of (size_t) -1; it's not portable.
62333
62334 2000-11-17  Jim Meyering  <meyering@lucent.com>
62335
62336         * lib/strstr.c: Update from GNU libc.
62337
62338 2000-11-17  Akim Demaille  <akim@epita.fr>
62339
62340         * lib/obstack.h: Formatting changes.
62341         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62342         prevent type checking.
62343         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62344         cast the value to (void *): assigning a `foo *' to a `void *'
62345         variable is valid.
62346         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62347
62348 2000-11-16  Jim Meyering  <meyering@lucent.com>
62349
62350         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62351
62352 2000-11-11  Jim Meyering  <meyering@lucent.com>
62353
62354         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62355
62356 2000-11-10  Jim Meyering  <meyering@lucent.com>
62357
62358         * lib/obstack.h: Update from GNU libc.
62359         * lib/obstack.c: Likewise.
62360
62361 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62362
62363         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62364
62365 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62366
62367         * lib/getusershell.c (setusershell): Use rewind rather than
62368         fseek/fseeko, to avoid configuration hassles with fseeko.
62369         Don't bother opening SHELLS_FILE if shellstream is NULL;
62370         it's not necessary.
62371
62372 2000-11-05  Jim Meyering  <meyering@lucent.com>
62373
62374         * lib/makepath.h (make_dir): Declare.
62375         * lib/makepath.c (make_dir): Remove `static' attribute.
62376         Tweak a comment.
62377
62378 2000-11-04  Jim Meyering  <meyering@lucent.com>
62379
62380         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62381
62382 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62383
62384         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62385         last one in a bucket, advance to the next bucket.
62386
62387 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62388
62389         * lib/fnmatch.c: Do not comment out all the code if we are using
62390         the GNU C library, because in some cases we are replacing buggy
62391         code in the GNU C library itself.
62392
62393 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62394
62395         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62396         (regex_compile): Catch bogus \(\1\).
62397
62398 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62399
62400         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62401         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62402         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62403
62404 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62405
62406         * lib/error.h, getline.h, modechange.h:
62407         Remove "2000" from Copyright line, as the file hasn't been
62408         changed this year other than in the copyright notice.
62409
62410         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62411         was changed this year.
62412
62413 2000-10-29  Jim Meyering  <meyering@lucent.com>
62414
62415         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62416         renaming.
62417         * m4/ls-mntd-fs.m4: Likewise
62418
62419 2000-10-29  Jim Meyering  <meyering@lucent.com>
62420
62421         * lib/xstat.in: Fix grammar in comment.
62422
62423 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62424
62425         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62426         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62427         doesn't define __restrict_arr.
62428
62429 2000-10-28  Jim Meyering  <meyering@lucent.com>
62430
62431         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62432         (jm_PREREQ_MEMCHR): New function.
62433
62434 2000-10-28  Jim Meyering  <meyering@lucent.com>
62435
62436         * lib/memchr.c: Update from libc.
62437         Adjust for portability:
62438         [HAVE_STDLIB_H]: Include stdlib.h.
62439         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62440         Undef __memchr, too.
62441         [!weak_alias]: Define __memchr to memchr.
62442
62443         * lib/regex.c: Update from libc.
62444         * lib/regex.h: Likewise.
62445         * lib/getopt1.c: Likewise.
62446         * lib/memcmp.c: Likewise.
62447
62448         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62449         Avoid using fseek, when possible -- it's broken by design.
62450         Patch by Ulrich Drepper.
62451
62452 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62453
62454         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62455         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62456         Giving in to popular pressure to shut up the compiler with casts.
62457
62458 2000-10-26  Jim Meyering  <meyering@lucent.com>
62459
62460         * lib/strftime.c: Update from libc.
62461
62462 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62463
62464         * regex.c: More `unsigned char' -> `re_char' changes.
62465         Also change several `int' into `re_wchar_t'.
62466         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62467         (PUSH_FAILURE_POINTER): Don't cast any more.
62468         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62469         We want GCC to complain, since this piece of code makes
62470         re_match non-reentrant, which *should* be fixed.
62471         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62472         (EXTEND_BUFFER): Use RETALLOC.
62473         (SET_LIST_BIT): Don't cast.
62474         (re_wchar_t): New type.
62475         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62476         that those two functions will always properly return.
62477         (IMMEDIATE_QUIT_CHECK): Cast to void.
62478         (analyse_first): Use recursion rather than an explicit stack.
62479         (re_compile_fastmap): Can't fail anymore.
62480         (re_search_2): Don't check re_compile_fastmap for failure.
62481         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62482         Now also sets the new value (passed in a new argument).
62483         (re_match_2_internal): Use it.
62484         Also, use a new var `reg' of type size_t when looping through regs
62485         rather than reuse the inappropriate `mcnt'.
62486
62487 2000-10-25  Jim Meyering  <meyering@lucent.com>
62488
62489         * lib/obstack.c: Update from libc.
62490
62491 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62492
62493         * regex.c (regex_compile): Change the way of handling a range from
62494         a char less than 256 to a char not less than 256.
62495
62496 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62497
62498         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62499         NT-Emacs only.
62500         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62501         so that re_search functions only quit when callers expect them to.
62502
62503 2000-10-23  Jim Meyering  <meyering@lucent.com>
62504
62505         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62506         wrong.  That set_locale call must not have any side effects.
62507         From Paul Eggert.
62508
62509 2000-10-22  Jim Meyering  <meyering@lucent.com>
62510
62511         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62512         [CYCLIC]: Remove now-unused definition.
62513
62514         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62515         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62516         Suggestion from Ulrich Drepper.
62517
62518 2000-10-21  Jim Meyering  <meyering@lucent.com>
62519
62520         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62521         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62522         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62523
62524 2000-10-21  Jim Meyering  <meyering@lucent.com>
62525
62526         * lib/dirname.c (memrchr): Declare if necessary.
62527         (dir_name): Remove the restriction that there be no
62528         trailing slashes.  Now, this code skips past them, effectively
62529         ignoring them.
62530         [TEST_DIRNAME] (main): New unit tests.
62531
62532         * lib/memrchr.c: New file from GNU libc.
62533         Undef __memrchr, too.
62534         [!weak_alias]: Define __memrchr to memrchr.
62535         Guard weak_alias use with `#ifdef weak_alias'.
62536
62537 2000-10-21  Jim Meyering  <meyering@lucent.com>
62538
62539         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62540         (dir_name): Use dir_name_r.
62541         * lib/dirname.h (dir_name_r): Declare it.
62542
62543 2000-10-17  Jim Meyering  <meyering@lucent.com>
62544
62545         * lib/quote.h (PARAMS): Define and use.
62546         Reported by Akim Demaille.
62547
62548         * lib/getopt.c: Update from libc.
62549
62550 2000-10-16  Jim Meyering  <meyering@lucent.com>
62551
62552         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62553         setlocale.
62554         From Jan Fedak.
62555
62556 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62557
62558         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62559
62560 2000-09-25  Jim Meyering  <meyering@lucent.com>
62561
62562         * lib/md5.h (rol): Define (from GnuPG).
62563
62564         * lib/sha.c: Give credit (GnuPG) where due.
62565         (M): Use rol rather than open-coding it.
62566         Add a FIXME comment.
62567
62568 2000-09-21  Jim Meyering  <meyering@lucent.com>
62569
62570         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62571         Reported by Michael Stone.
62572
62573 2000-09-20  Jim Meyering  <meyering@lucent.com>
62574
62575         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62576         (noinst_HEADERS): Add sha.h.
62577         Based on code from Scott G. Miller and from GnuPG.
62578
62579 2000-09-18  Jim Meyering  <meyering@lucent.com>
62580
62581         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62582         LIBS. Otherwise, everyone ends up linking with -lelf for some
62583         configurations.
62584         Reported by Mike Stone.
62585
62586 2000-09-15  Jim Meyering  <meyering@lucent.com>
62587
62588         * lib/regex.c: Update from libc.
62589
62590 2000-09-10  Jim Meyering  <meyering@lucent.com>
62591
62592         * lib/getopt.c (_getopt_internal): Update from glibc.
62593
62594 2000-09-09  Jim Meyering  <meyering@lucent.com>
62595
62596         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62597         think it should be used as a general replacement for isascii.
62598         * lib/fnmatch.c: Likewise.
62599         * lib/mbswidth.c: Likewise
62600         * lib/regex.c: Likewise.
62601
62602         Don't use atoi.
62603         * lib/userspec.c: Include sys/param.h and limits.h.
62604         Include xstrtol.h.
62605         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62606         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62607         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62608         UID, GID.  Check range.
62609
62610 2000-09-06  Jim Meyering  <meyering@lucent.com>
62611
62612         * lib/getopt.c (_getopt_internal): Update from glibc.
62613
62614 2000-08-30  Jim Meyering  <meyering@lucent.com>
62615
62616         * lib/strftime.c: Merge in changes from GNU libc.
62617
62618 2000-08-26  Jim Meyering  <meyering@lucent.com>
62619
62620         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62621         * m4/fpending.m4: New file.
62622
62623 2000-08-26  Jim Meyering  <meyering@lucent.com>
62624
62625         * lib/closeout.c: Include "__fpending.h".
62626         (close_stdout_status): Return right away if there's nothing to flush.
62627
62628         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62629         * lib/__fpending.c: New file.
62630         * lib/__fpending.h: New file.
62631
62632 2000-08-20  Jim Meyering  <meyering@lucent.com>
62633
62634         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62635         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62636         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62637
62638 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62639
62640         Improve fileutils installation on systems where running
62641         programs (like install) can't be unlinked.
62642         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62643         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62644
62645 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62646
62647         Standardize on "memory exhausted" instead of "Memory exhausted"
62648         or "virtual memory exhausted".
62649         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62650         "virtual memory exhausted".
62651         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62652         our own message.
62653         * lib/userspec.c (parse_user_spec): Likewise.
62654         * lib/bumpalloc.h: comment fix
62655         * lib/same.c, userspec.c: Include xalloc.h.
62656
62657         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62658         not char *const and pointing to a constant array.
62659         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62660         (xrealloc): Comment fix.
62661
62662         * lib/userspec.c (parse_user_spec):
62663         Don't translate a message until just before returning,
62664         to avoid unnecessary translation.
62665
62666 2000-08-07  Jim Meyering  <meyering@lucent.com>
62667
62668         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62669         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62670         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62671         getgroups.c, gethostname.c, getopt.h, group-member.c,
62672         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62673         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62674         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62675         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62676         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62677         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62678         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62679         yesno.c: Back out Copyright date changes for each file with no change
62680         this year.  This eases coordination with other programs using the same
62681         source code modules.  From Paul Eggert.
62682
62683 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62684
62685         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62686         not char, for compatibility with glibc 2.1.3 strftime.c.
62687
62688 2000-08-03  Greg McGary  <greg@mcgary.org>
62689
62690         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62691         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62692         (EXTEND_BUFFER): Use them.
62693
62694 2000-08-01  Jim Meyering  <meyering@lucent.com>
62695
62696         * lib/dirname.c (ISSLASH): Define.
62697         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62698         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62699         both `\' and `/' may be use as path separators.
62700         Based on a patch from Prashant TR.
62701
62702 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62703
62704         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62705         slot vector a constant, since it might get modified.
62706
62707 2000-07-31  Jim Meyering  <meyering@lucent.com>
62708
62709         * lib/xmalloc.c: Use `virtual memory exhausted', not
62710         `Memory exhausted'.
62711         * lib/obstack.c (print_and_abort): Likewise.
62712
62713 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62714
62715         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62716         buffer, so that the caller can always quote one small
62717         component of a "memory exhausted" message in slot 0.
62718         From a suggestion by Jim Meyering.
62719
62720 2000-07-30  Jim Meyering  <meyering@lucent.com>
62721
62722         * lib/makepath.c (make_path): Quote the other instance, too.
62723
62724         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62725         (STATIC_BUF_SIZE): Define.
62726         (quotearg_n_options): Use only statically allocated storage when
62727         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62728         than STATIC_BUF_SIZE.
62729
62730 2000-07-29  Jim Meyering  <meyering@lucent.com>
62731
62732         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62733         * lib/dirname.c (dir_name): Likewise.
62734
62735         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62736         `/'.
62737
62738         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62739         (dir_name): Assert that there are no trailing slashes.
62740
62741 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62742
62743         * lib/mbswidth.h (mbswidth): Add a flags argument.
62744         (mbswidth): New declaration.
62745         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62746         * lib/mbswidth.c (mbswidth): Add a flags argument.
62747         (mbsnwidth): New function.
62748
62749 2000-07-24  Jim Meyering  <meyering@lucent.com>
62750
62751         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62752
62753 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62754
62755         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62756
62757 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62758
62759         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62760         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62761         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62762         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62763         invoke multibyte primitives.
62764
62765 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62766
62767         * lib/quotearg.c:
62768         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62769         so that mbstate_t is always defined.
62770
62771         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62772         be 1 in at least one GCC installation, and this configuration
62773         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62774         performance on hosts that have mbrtowc but have only unibyte
62775         locales, but I assume these hosts are rare.
62776
62777 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62778
62779         * lib/mbswidth.c (_XOPEN_SOURCE):
62780         Don't define; this causes problems on Solaris 7.
62781         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62782
62783 2000-07-23  Jim Meyering  <meyering@lucent.com>
62784
62785         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62786         too: getgrgid, getpwuid, getuid.
62787
62788 2000-07-23  Jim Meyering  <meyering@lucent.com>
62789
62790         * lib/basename.c (base_name): Add an assertion.
62791
62792 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62793
62794         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62795         shadow its mbsinit function.
62796
62797 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62798
62799         * lib/mbswidth.h: New file.
62800         * lib/mbswidth.c: New file.
62801         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62802         (noinst_HEADERS): Add mbswidth.h.
62803
62804 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62805
62806         * lib/config.charset: Add support for FreeBSD. Improve support for
62807         HP-UX and IRIX 6.
62808
62809 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62810
62811         * m4/mbswidth.m4: New file.
62812         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62813
62814 2000-07-15  Jim Meyering  <meyering@lucent.com>
62815
62816         * lib/makepath.c: Include quote.h.
62817         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62818         corresponding argument in a `quote (...)' call.
62819         Give better diagnostics.
62820
62821         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62822         (noinst_HEADERS): Add quote.h.
62823
62824         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62825         from tar's src/misc.c.
62826         * lib/quote.h: New file.  Prototypes for same.
62827
62828 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62829
62830         From a suggestion by Bruno Haible.
62831         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62832         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62833         to decide whether to define the BeOS workaround macro;
62834         this adjusts to the change to AC_MBSTATE_T.
62835
62836 2000-07-14  Jim Meyering  <meyering@lucent.com>
62837
62838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62839         jm_AC_TYPE_UINTMAX_T.
62840
62841 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62842
62843         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62844
62845         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62846         quotearg_buffer_restyled): Add support for
62847         clocale_quoting_style.  Undo previous change to
62848         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62849         and "{RIGHT QUOTATION MARK}" msgids.
62850
62851 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62852
62853         From a suggestion by Bruno Haible.
62854         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62855         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62856         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62857         and mbstate_t, to a single-part test that simply defines mbstate_t.
62858         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62859         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62860
62861 2000-07-10  Jim Meyering  <meyering@lucent.com>
62862
62863         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62864
62865         * m4/gnu-source.m4: Output to confdefs.h directly.
62866         Suggestion from Akim Demaille.
62867
62868 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62869
62870         The old behavior of quoting `like this' doesn't look good with
62871         newer, ISO-style fonts.  See:
62872         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62873
62874         Instead, quote "like this" by default.  Let the translator
62875         tailor the locale-specific quoting behavior by providing
62876         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62877
62878         * lib/quotearg.c (N_): New macro.
62879         (gettext_default): New function.
62880         (quotearg_buffer_restyled): Use
62881         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62882         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62883
62884 2000-07-09  Jim Meyering  <meyering@lucent.com>
62885
62886         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62887         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62888
62889         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62890         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62891
62892 2000-07-09  Jim Meyering  <meyering@lucent.com>
62893
62894         * lib/Most files: Update copyright dates to include 2000.
62895
62896 2000-07-08  Jim Meyering  <meyering@lucent.com>
62897
62898         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62899         if not defined.
62900         (xgethostname): Remove now-unnecessary #ifdef.
62901         Move declaration of `err' into loop where it's used.
62902
62903 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62904         and Bruno Haible  <haible@clisp.cons.org>
62905
62906         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62907         only if the test for an object-type mbstate_t fails.  This
62908         prevents us from mistakenly reporting that mbstate_t is a
62909         system object type after we "#define mbstate_t int" to work
62910         around its lack.
62911
62912 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62913         and Bruno Haible  <haible@clisp.cons.org>
62914
62915         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62916
62917 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62918
62919         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62920         to strerror_r.
62921         Include <ctype.h> for use of isalpha.
62922
62923 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62924
62925         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62926         by allocating a larger buffer. Test the gethostname return value for
62927         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62928         returns an error and ENAMETOOLONG isn't defined.
62929
62930 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62931
62932         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62933         dimension.
62934
62935 2000-07-04  Jim Meyering  <meyering@lucent.com>
62936
62937         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62938         of the deprecated AC_CHECKING.
62939
62940 2000-07-04  Jim Meyering  <meyering@lucent.com>
62941
62942         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62943         Reported by Bruno Haible.
62944
62945 2000-07-04  Jim Meyering  <meyering@lucent.com>
62946
62947         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62948         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62949         lacks mbrtowc.
62950
62951 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62952
62953         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62954         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62955
62956 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62957         and Bruno Haible  <haible@clisp.cons.org>
62958
62959         * lib/quotearg.c (mbrtowc):
62960         Assign to *pwc, and return 1 only if result is nonzero.
62961         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62962
62963 2000-07-03  Jim Meyering  <meyering@lucent.com>
62964
62965         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62966
62967 2000-07-03  Jim Meyering  <meyering@lucent.com>
62968
62969         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62970         This is necessary to get a definition of e.g., UTMP_FILE on
62971         HP-UX 10.20.
62972         From Bob Proulx.
62973
62974 2000-07-02  Jim Meyering  <meyering@lucent.com>
62975
62976         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62977
62978         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62979         AC_LIBOBJ(function_name).
62980         * m4/chown.m4: Likewise.
62981         * m4/fnmatch.m4: Likewise.
62982         * m4/ftruncate.m4: Likewise.
62983         * m4/getgroups.m4: Likewise.
62984         * m4/getline.m4: Likewise.
62985         * m4/group-member.m4: Likewise.
62986         * m4/jm-macros.m4: Likewise.
62987         * m4/lstat.m4: Likewise.
62988         * m4/malloc.m4: Likewise.
62989         * m4/memcmp.m4: Likewise.
62990         * m4/nanosleep.m4: Likewise.
62991         * m4/putenv.m4: Likewise.
62992         * m4/realloc.m4: Likewise.
62993         * m4/regex.m4: Likewise.
62994         * m4/stat.m4: Likewise.
62995         * m4/strftime.m4: Likewise.
62996
62997 2000-07-02  Jim Meyering  <meyering@lucent.com>
62998
62999         * lib/quotearg.c (mbstate_t): Don't define here.
63000
63001 2000-07-02  Jim Meyering  <meyering@lucent.com>
63002
63003         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63004
63005 2000-07-01  Jim Meyering  <meyering@lucent.com>
63006
63007         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63008
63009 2000-07-01  Jim Meyering  <meyering@lucent.com>
63010
63011         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63012         problem.
63013
63014 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63015
63016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63017         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63018
63019 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63020
63021         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63022         per change in ../m4/ls-mntd-fs.m4.
63023         (read_filesystem_list): Ignore symbolic links.
63024
63025 2000-06-29  Jim Meyering  <meyering@lucent.com>
63026
63027         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63028         for declaration of strcmp.
63029
63030         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63031
63032         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63033         Avoid warning by casting result to `char *' to remove `const'.
63034
63035 2000-06-28  Jim Meyering  <meyering@lucent.com>
63036
63037         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63038         included by quotearg.c, for which we perform this test.  From
63039         Bruno Haible.
63040
63041 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63042
63043         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63044         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63045         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63046
63047 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63048
63049         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63050
63051 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63052
63053         savedir now sets errno on failure and invokes xmalloc to get memory.
63054         Fix a couple of other minor bugs while we're at it.
63055
63056         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63057         (NAMLEN): Remove macro.
63058         (malloc, realloc): Remove decls.
63059         (stpcpy): Likewise.
63060         ("xalloc.h"): Include.
63061         (NAME_SIZE_DEFAULT): New macro.
63062         (savedir): Use xmalloc / xrealloc to allocate memory.
63063         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63064         Skip "" directory entries.
63065         Use strlen to calculate directory entry length, since the old method
63066         is rarely used these days and isn't worth supporting.
63067         Don't use a pointer after freeing it.
63068         Check for integer overflow when calculating allocation size.
63069         Use memcpy to copy entries, instead of stpcpy.
63070         Set errno properly when returning NULL.
63071         Check for readdir error.
63072
63073 2000-06-26  Jim Meyering  <meyering@lucent.com>
63074
63075         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63076
63077 2000-06-25  Jim Meyering  <meyering@lucent.com>
63078
63079         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63080         Linux header bug when _XOPEN_SOURCE is defined to 500.
63081
63082 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63083
63084         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63085         deficiency.
63086
63087 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63088
63089         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63090         Include xalloc.h.
63091         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63092
63093 2000-06-24  Jim Meyering  <meyering@lucent.com>
63094
63095         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63096         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63097         for which strerror does return char*, but which lacks a conveniently
63098         accessible declaration of the function.  If the compile-test says
63099         strerror_r doesn't work, then resort to a `run'-test that works on
63100         BeOS and segfaults on DEC Unix.
63101
63102 2000-06-24  Jim Meyering  <meyering@lucent.com>
63103
63104         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63105
63106 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63107
63108         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63110
63111 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63112
63113         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63114         (mbrtowc, mbstate_t): Define substitutes if
63115         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63116         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63117         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63118
63119 2000-06-23  Jim Meyering  <meyering@lucent.com>
63120
63121         * m4/afs.m4: Add missing AC_MSG_RESULT.
63122         Reported by Bruno Haible.
63123
63124         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63125         Suggestion from Bruno Haible.
63126
63127 2000-06-23  Jim Meyering  <meyering@lucent.com>
63128
63129         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63130
63131 2000-06-21  Jim Meyering  <meyering@lucent.com>
63132
63133         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63134
63135 2000-06-21  Jim Meyering  <meyering@lucent.com>
63136
63137         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63138         (noinst_HEADERS): Add getstr.h.
63139
63140         * lib/getline.c (getstr): Move into a separate file.
63141         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63142         the following changes: new parameter, delim2; both delim[12]
63143         parameters have type `int', not `char'.  The latter would lose
63144         with 8-bit delimiters.
63145         * lib/getstr.h: New file.
63146
63147 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63148
63149         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63150         than 1024, return a memory chunk of least possible size, instead
63151         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63152         Use free/xmalloc instead of xrealloc to avoid copying for very long
63153         paths.
63154
63155 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63156
63157         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63158         the empty string.
63159
63160 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63161
63162         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63163         address, not strdup.  Include <stdlib.h> and don't declare free().
63164
63165 2000-06-19  Jim Meyering  <meyering@lucent.com>
63166
63167         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63168
63169 2000-06-18  Jim Meyering  <meyering@lucent.com>
63170
63171         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63172
63173         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63174         `checking whether...' message to be consistent with that of the
63175         lstat test.
63176
63177 2000-06-18  Jim Meyering  <meyering@lucent.com>
63178
63179         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63180         Besides, these days every porting target provides a mkdir function.
63181
63182         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63183         needed. (this snippet comes from src/system.h).
63184
63185 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63186
63187         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63188
63189 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63190
63191         * lib/human.c (adjust_value): New function.
63192         (human_readable_inexact): Apply rounding style even when
63193         printing approximate values.
63194
63195 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63196
63197         * lib/human.c (human_readable_inexact): Allow an input block
63198         size that is not a multiple of the output block size, and vice versa.
63199         Reported by Piergiorgio Sartor.
63200
63201 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63202
63203         * lib/getdate.y (get_date): Apply relative times after time
63204         zone indicator, not before.  Reported by Todd A. Jacobs.
63205
63206 2000-06-13  Jim Meyering  <meyering@lucent.com>
63207
63208         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63209
63210         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63211
63212 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63213
63214         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63215
63216 2000-06-12  Jim Meyering  <meyering@lucent.com>
63217
63218         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63219         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63220         optional argument.
63221         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63222         the optional argument, `lib'.
63223
63224 2000-06-08  Jim Meyering  <meyering@lucent.com>
63225
63226         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63227
63228 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63229
63230         Rewrite largefile configuration so that we don't need to run
63231         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63232         AC_CANONICAL_HOST in configure.in -- jmm]
63233
63234         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63235         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63236         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63237         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63238         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63239         All uses changed.
63240         Instead of inspecting the output of getconf, try to compile the
63241         test program without and with the macro definition.
63242         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63243         for getconf.  Instead, check for the needed flags by compiling
63244         test programs.
63245
63246 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63247
63248         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63249
63250 2000-06-04  Jim Meyering  <meyering@lucent.com>
63251
63252         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63253         SunOS 4.1.4 for which gid_t is an unsigned type.
63254
63255 2000-06-03  Jim Meyering  <meyering@lucent.com>
63256
63257         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63258         now that autoconf requires that.
63259
63260         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63261         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63262         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63263
63264 2000-06-03  Jim Meyering  <meyering@lucent.com>
63265
63266         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63267
63268 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63269
63270         * m4/glibc21.m4: New file.
63271         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63272
63273 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63274
63275         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63276         newer, don't install charset.alias.
63277         * lib/config.charset: Change the Linux/glibc rules so they become empty
63278         on glibc-2.1 or newer.
63279
63280 2000-06-02  Jim Meyering  <meyering@lucent.com>
63281
63282         * lib/mountlist.c: Back out last change.  Instead, do this...
63283         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63284         me_dummy member using the same `ignore'-testing code.
63285         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63286         fs_type strings.
63287         From Mark D. Roth.
63288
63289 2000-05-29  Jim Meyering  <meyering@lucent.com>
63290
63291         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63292         mounts with the `ignore' attribute.  Based on a patch from
63293         Mark D. Roth.
63294
63295 2000-05-28  Jim Meyering  <meyering@lucent.com>
63296
63297         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63298         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63299         * m4/stat.m4: Likewise.
63300         * m4/lstat.m4: Likewise.
63301         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63302
63303         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63304         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63305
63306 2000-05-26  Jim Meyering  <meyering@lucent.com>
63307
63308         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63309
63310 2000-05-24  Jim Meyering  <meyering@lucent.com>
63311
63312         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63313         autoconf requires that.
63314         * m4/lib-check.m4: Likewise.
63315         * m4/jm-macros.m4: Likewise.
63316         * m4/strftime.m4: Likewise.
63317
63318         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63319         AC_CHECK_DECLS, now that autoconf requires that.
63320
63321 2000-05-22  Jim Meyering  <meyering@lucent.com>
63322
63323         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63324         * m4/lstat.m4: Likewise.
63325
63326 2000-05-22  Jim Meyering  <meyering@lucent.com>
63327
63328         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63329
63330 2000-05-20  Jim Meyering  <meyering@lucent.com>
63331
63332         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63333         (jm_PREREQ): Use it.
63334
63335 2000-05-18  Jim Meyering  <meyering@lucent.com>
63336
63337         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63338         back, too, since it may have been modified by allocate_entry.
63339         (hash_delete): Rewrite to use neither the assignment operator
63340         nor the comma operator in an if-expression.
63341
63342 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63343
63344         * lib/closeout.c:
63345         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63346         Remove; no longer needed.
63347         "quotearg.h": Add include.
63348         (file_name): Do not bother to explicitly initialize to NULL; it's less
63349         efficient on some hosts.
63350         (close_stdout_status): Remove test as to whether stdout was already
63351         closed; it breaks for the case "echo x | sort >&-".
63352         Quote file name colons.
63353         Do not assume that _("write error") lacks format strings.
63354
63355 2000-05-15  Jim Meyering  <meyering@lucent.com>
63356
63357         * lib/version-etc.c (version_etc_copyright): Update the copyright
63358         string used in all --version output.
63359
63360 2000-05-14  Jim Meyering  <meyering@lucent.com>
63361
63362         * lib/closeout.c (close_stdout_set_file_name): New function.
63363         (close_stdout_status): Use new file-scoped global.
63364         Return right away if fstat says the stdout file descriptor is invalid.
63365         * lib/closeout.h (close_stdout_set_file_name): Declare.
63366
63367 2000-05-10  Jim Meyering  <meyering@lucent.com>
63368
63369         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63370         (close_stdout_set_status): New function.
63371         * lib/closeout.h (close_stdout_set_status): Declare.
63372
63373 2000-05-09  Jim Meyering  <meyering@lucent.com>
63374
63375         * m4/gettext.m4: Rename this...
63376         * m4/libintl.m4: ...to this.
63377
63378 2000-05-08  Jim Meyering  <meyering@lucent.com>
63379
63380         * lib/long-options.c: Don't include closeout.h.
63381         (parse_long_options): Don't call close_stdout for --version.
63382
63383 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63384
63385         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63386         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63387         2.1.3 bug.  This avoids a clash when files like regex.c define
63388         _GNU_SOURCE.
63389
63390 2000-05-06  Jim Meyering  <meyering@lucent.com>
63391
63392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63393         (AC_REPLACE_FUNCS): Add strnlen.
63394
63395         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63396         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63397
63398         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63399         AC_SEARCH_LIBS call for nanosleep.
63400         (LIB_NANOSLEEP): Set and AC_SUBST.
63401
63402 2000-05-06  Jim Meyering  <meyering@lucent.com>
63403
63404         * lib/strnlen.c: Undefine __strnlen and strnlen.
63405         [!weak_alias]: Define __strnlen to strnlen.
63406
63407         * lib/atexit.c: New file, from libiberty.
63408
63409 2000-05-06  Jim Meyering  <meyering@lucent.com>
63410
63411         * lib/closeout.c (close_stdout_status): Also check for errors on the
63412         stderr stream.
63413
63414 2000-05-05  Jim Meyering  <meyering@lucent.com>
63415
63416         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63417         AC_SEARCH_LIBS call for clock_gettime.
63418         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63419
63420         * m4/search-libs.m4: Update from autoconf.
63421
63422         su doesn't work on Solaris 2.6.
63423         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63424         <shadow.h>.  Reported by Dragos Harabor.
63425
63426 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63427
63428         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63429         memcpy instead of xmalloc, xrealloc, path_concat.
63430         (locale_charset): Treat empty environment variables as absent.
63431         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63432
63433 2000-05-04  Jim Meyering  <meyering@lucent.com>
63434
63435         * lib/getopt.c: Update from glibc.
63436         * lib/obstack.c: Likewise.
63437         * lib/obstack.h: Likewise.
63438         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63439         file
63440
63441         * lib/regex.h: Likewise.
63442         * lib/strndup.c: Likewise.
63443         * lib/strnlen.c: New file, from glibc.
63444
63445 2000-05-03  Jim Meyering  <meyering@lucent.com>
63446
63447         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63448
63449 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63450
63451         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63452         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63453         compile-time test, rather than inspecting host and OS, to
63454         decide whether to define _LARGEFILE_SOURCE.
63455
63456 2000-05-01  Jim Meyering  <meyering@lucent.com>
63457
63458         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63459
63460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63461         Based on a patch from Bruno Haible.
63462
63463 2000-05-01  Jim Meyering  <meyering@lucent.com>
63464
63465         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63466
63467 2000-04-29  Jim Meyering  <meyering@lucent.com>
63468
63469         * lib/path-concat.c: Declare strdup only if it's not defined.
63470         * lib/canon-host.c: Likewise.
63471
63472 2000-04-28  Jim Meyering  <meyering@lucent.com>
63473
63474         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63475         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63476         is included first, then limits.h is included by locale.h by libintl.h.
63477         From John David Anglin.
63478
63479 2000-04-25  Jim Meyering  <meyering@lucent.com>
63480
63481         * lib/makepath.c (S_IRWXUGO): Define.
63482         (make_path): Always perform explicit chmod if MODE specifies any
63483         of the `special' permission bits.  Prompted by a bug report against
63484         install from Mate Wierdl and Joost van Baal.
63485
63486 2000-04-18  Jim Meyering  <meyering@lucent.com>
63487
63488         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63489         (jm_PREREQ): Use it.
63490
63491 2000-04-18  Jim Meyering  <meyering@lucent.com>
63492
63493         * lib/README: New file.
63494
63495         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63496         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63497
63498 2000-04-17  Jim Meyering  <meyering@lucent.com>
63499
63500         Get it right :-)
63501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63502         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63503         Suggestion from Akim Demaille.
63504
63505 2000-04-17  Jim Meyering  <meyering@lucent.com>
63506
63507         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63508         the definition of it to rpl_strftime also defined-away the system's
63509         declaration.
63510
63511 2000-04-15  Jim Meyering  <meyering@lucent.com>
63512
63513         Use `C' to denote so-called `contiguous' files, the same way
63514         that tar does.
63515         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63516         (ftypelet): Use S_ISCTG.
63517         From Michael Deutschmann.
63518
63519 2000-04-14  Jim Meyering  <meyering@lucent.com>
63520
63521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63522         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63523         clobbered.
63524
63525 2000-04-14  Jim Meyering  <meyering@lucent.com>
63526
63527         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63528
63529 2000-04-13  Jim Meyering  <meyering@lucent.com>
63530
63531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63532         AH_VERBATIM to insert required #ifndef into config.h.in.
63533         Suggestion from Akim Demaille.
63534
63535 2000-04-12  Jim Meyering  <meyering@lucent.com>
63536
63537         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63538         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63539         Christian Krackowizer.
63540
63541         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63542         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63543         (AC_SYS_LARGEFILE): Require.
63544         (AM_C_PROTOTYPES): Require.
63545
63546 2000-04-08  Jim Meyering  <meyering@lucent.com>
63547
63548         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63549         names don't conflict.  Reported by Eli Zaretskii.
63550
63551 2000-04-07  Jim Meyering  <meyering@lucent.com>
63552
63553         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63554         sys/types.h, to work around system header problems on AIX 3.2.5.
63555         From Bruno Haible.
63556
63557 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63558
63559         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63560         bug.  Deal with the different error behavior of Irix iconv.
63561
63562 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63563
63564         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63565         IRIX if the installer said otherwise.
63566
63567 2000-04-05  Jim Meyering  <meyering@lucent.com>
63568
63569         Portability tweaks required for ultrix4.3.
63570         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63571         (jm_CHECK_DECLS): Add getutent to the list of functions.
63572         (_jm_DECL_HEADERS): Add utmpx.h.
63573         From John David Anglin.
63574
63575         * m4/strftime.m4: Back out the 2000-04-02 change.
63576         Instead of that change, simply undefine putenv in the test program.
63577
63578 2000-04-05  Jim Meyering  <meyering@lucent.com>
63579
63580         Portability tweaks required for ultrix4.3.
63581         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63582         getutent.
63583         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63584         * lib/canon-host.c: Declare strdup.
63585         * lib/path-concat.c: Likewise.
63586         From John David Anglin.
63587
63588 2000-04-04  Jim Meyering  <meyering@lucent.com>
63589
63590         Be more DOS 8.3-friendly.
63591         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63592         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63593         * lib/Makefile.am: Reflect renaming.
63594         Reported by Eli Zaretskii.
63595
63596         Use a temporary file name that won't clash with `charset.alias'
63597         in the DOS 8.3 name space.
63598         * lib/Makefile.am (charset_tmp): Define.
63599         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63600         (uninstall-local): Likewise.
63601         Reported by Eli Zaretskii.
63602
63603 2000-04-03  Jim Meyering  <meyering@lucent.com>
63604
63605         * m4/gettext.m4: Fix typo in comment.
63606
63607         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63608         textutils/configure.in).  Suggestion from Paul Eggert.
63609         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63610
63611 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63612
63613         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63614         variable in the shell rather than using putenv, which isn't
63615         portable.  This avoids the configure-time inter-test dependency
63616         on the potentially-renamed putenv function.
63617
63618 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63619
63620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63621         before checking struct stat.st_blksize, so that
63622         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63623
63624 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63625
63626         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63627         since strftime.c uses HAVE_STRFTIME to decide whether to use
63628         the underlying strftime.
63629
63630 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63631
63632         * lib/time/strftime.c (my_strftime): Make sure we call the system
63633         strftime, not ourselves, when invoking the underlying strftime.
63634
63635 2000-03-24  Jim Meyering  <meyering@lucent.com>
63636
63637         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63638         (charset_alias): Define.
63639         (install-exec-local): Factor out common code.
63640         (uninstall-local): Split lines longer than 80.
63641         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63642         (SUFFIXES): Define.
63643         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63644         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63645
63646 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63647
63648         * lib/config.charset: Output a line containing "Packages using this
63649         file".
63650         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63651         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63652         ref-del.sed): New rules.
63653
63654 2000-03-17  Jim Meyering  <meyering@lucent.com>
63655
63656         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63657         Otherwise, include <strings.h>
63658
63659 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63660
63661         * lib/unicodeio.c (utf8_wctomb): New function.
63662         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63663         format instead of in UCS-4 with platform dependent endianness.
63664
63665 2000-03-10  Jim Meyering  <meyering@lucent.com>
63666
63667         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63668         From Marco Franzen.
63669
63670 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63671
63672         * lib/savedir.c (savedir): Work even if directory size is
63673         negative; this can happen with some screwy NFS configurations.
63674
63675 2000-03-06  Jim Meyering  <meyering@lucent.com>
63676
63677         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63678         if it's NULL (because we ran out of memory).  From Bruno Haible.
63679
63680 2000-03-05  Jim Meyering  <meyering@lucent.com>
63681
63682         * lib/localcharset.c ("path-concat.h"): Include.
63683         (get_charset_aliases): Use path_concat instead of ANSI string
63684         concatenation.
63685
63686         * lib/unicodeio.h (PARAMS): Define.
63687         Use it to guard prototype.
63688
63689 2000-03-04  Jim Meyering  <meyering@lucent.com>
63690
63691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63692         for lib/localcharset.c.
63693
63694 2000-03-04  Jim Meyering  <meyering@lucent.com>
63695
63696         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63697         installing into it.
63698         (uninstall-local): Uncomment this rule so `make distcheck' works
63699         once again.
63700
63701         * lib/unicodeio.c (<errno.h>): Include it.
63702         (errno): Declare if not defined.
63703
63704         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63705
63706         * lib/config.charset: New version, incorporating remarks from a linux
63707         i18n mailing list.  From Bruno Haible.
63708
63709 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63710
63711         * m4/codeset.m4: New file.
63712         * m4/iconv.m4: New file.
63713         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63714
63715 2000-03-03  Jim Meyering  <meyering@lucent.com>
63716
63717         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63718
63719 2000-03-02  Jim Meyering  <meyering@lucent.com>
63720
63721         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63722         the messages come out on separate lines.
63723
63724         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63725         rather than jm_CHECK_DECLARATIONS.
63726         * m4/decl.m4: Remove now-unused file.
63727
63728         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63729         geteuid.
63730
63731 2000-03-02  Jim Meyering  <meyering@lucent.com>
63732
63733         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63734
63735 2000-03-01  Jim Meyering  <meyering@lucent.com>
63736
63737         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63738         * lib/unicodeio.c: Likewise.
63739
63740 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63741
63742         * lib/config.charset: New file.
63743         * lib/localcharset.c: New file.
63744         * lib/unicodeio.h, lib/unicodeio.c: New files.
63745         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63746         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63747         (noinst_HEADERS): Add unicodeio.h.
63748         (all-local, install-exec-local, charset.alias): New targets.
63749
63750 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63751
63752         * lib/quotearg.c (ALERT_CHAR): New macro.
63753         (quotearg_buffer_restyled): Use it.
63754
63755 2000-02-27  Jim Meyering  <meyering@lucent.com>
63756
63757         * m4/check-decl.m4: Add getenv to the list.
63758
63759 2000-02-27  Jim Meyering  <meyering@lucent.com>
63760
63761         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63762         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63763
63764         * lib/backupfile.c: Guard inclusion of stdlib.h with
63765         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63766         Declare malloc if needed.
63767
63768         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63769         `#ifndef HAVE_DECL..'
63770         now that autoconf always defines the HAVE_DECL_ symbols.
63771         * lib/human.c: Likewise.
63772         * lib/same.c: Likewise.
63773         * lib/strtoumax.c: Likewise.
63774
63775         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63776         declaration check was not run.
63777         * lib/hash.c: Likewise.
63778         * lib/human.c: Likewise.
63779         * lib/same.c: Likewise.
63780         * lib/strtoumax.c: Likewise.
63781
63782         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63783         `.', then first look up the entire `.'-containing string as a login
63784         name.
63785
63786 2000-02-23  Jim Meyering  <meyering@lucent.com>
63787
63788         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63789         in place of my hack.
63790
63791 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63792
63793         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63794         (textint): New typedef.
63795         (parser_control): Member year changed from int to textint.
63796         All uses changed.
63797         (YYSTYPE): Removed; replaced by %union with int and textint members.
63798         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63799         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63800         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63801         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63802         (date, number, to_year): Use width of number in digits, not its value,
63803         to determine whether it's a 2-digit year, or a 2-digit time.
63804         (yylex): Store number of digits of numeric tokens.
63805         Reported by John Kendall.
63806
63807         (parser_control): Changed from struct parser_control to typedef (for
63808         consistency).  All uses changed.
63809
63810         (tID): Removed; not used.
63811         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63812
63813 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63814
63815         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63816         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63817
63818 2000-02-12  Jim Meyering  <meyering@lucent.com>
63819
63820         * lib/userspec.c (ISDIGIT): Define it.
63821         (isdigit): Remove definition.
63822         (is_number): Use ISDIGIT, not isdigit.
63823         <libintl.h>: Include.
63824         (_ and N_): Define.
63825         (parse_user_spec): Mark translatable strings.
63826
63827 2000-02-10  Jim Meyering  <meyering@lucent.com>
63828
63829         With these changes, nanosleep.[ch] are finally enough like the other
63830         lib/* replacement files to compile on a few more losing systems.
63831
63832         * lib/nanosleep.h: Don't include config.h.
63833         Remove prototype from declaration of nanosleep.
63834         (PARAMS): Remove now-unneeded definition.
63835         * lib/nanosleep.c: #undef nanosleep.
63836         (rpl_nanosleep): Rename from nanosleep.
63837
63838 2000-02-10  Jim Meyering  <meyering@lucent.com>
63839
63840         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63841         gnu_nanosleep to rpl_nanosleep.
63842
63843 2000-02-09  Jim Meyering  <meyering@lucent.com>
63844
63845         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63846         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63847
63848 2000-02-08  Akim Demaille  <akim@epita.fr>
63849
63850         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63851         `[' and `]' and remove uses of `changequote'.
63852         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63853         (AC_SYS_LARGEFILE): Likewise.
63854         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63855         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63856         of changequote.
63857         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63858         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63859         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63860         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63861
63862 2000-02-05  Jim Meyering  <meyering@lucent.com>
63863
63864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63865         Remove explicit use of AC_HEADER_TIME.  It is required by
63866         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63867         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63868         in autoconf whereby the expansion of the latter ended up preceding
63869         the expansion of its prerequisite, AC_HEADER_TIME.
63870         Reported by Volker Borchert.
63871
63872 2000-02-03  Jim Meyering  <meyering@lucent.com>
63873
63874         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63875
63876 2000-02-03  Jim Meyering  <meyering@lucent.com>
63877
63878         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63879         rather than with `#if HAVE_UTMPNAME'.
63880
63881 2000-02-02  Jim Meyering  <meyering@lucent.com>
63882
63883         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63884         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63885         Reported by Eli Zaretskii.
63886
63887 2000-02-01  Jim Meyering  <meyering@lucent.com>
63888
63889         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63890
63891 2000-01-31  Jim Meyering  <meyering@lucent.com>
63892
63893         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63894         functions.  Add the time.h and sys/time.h headers along with the
63895         AC_REQUIRE'ment of AC_HEADER_TIME.
63896
63897 2000-01-31  Jim Meyering  <meyering@lucent.com>
63898
63899         * lib/nanosleep.h (nanosleep): Guard declaration with
63900         `#if ! HAVE_DECL_NANOSLEEP'.
63901         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63902         the declaration in that vendor's sys/timers.h.
63903         Reported by Christian Krackowizer.
63904
63905         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63906         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63907         (ISPRINT): Likewise.
63908         Reported by Tom Tromey.
63909
63910 2000-01-30  Jim Meyering  <meyering@lucent.com>
63911
63912         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63913
63914         * m4/prereq.m4 (utmp_includes): Define.
63915         Check for ut_user and ut_name members in both struct utmpx
63916         and struct utmp.
63917
63918 2000-01-30  Jim Meyering  <meyering@lucent.com>
63919
63920         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63921         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63922         header files where only utmpx.ut_user is declared.
63923
63924         * lib/readutmp.h (UT_USER): Define.
63925
63926 2000-01-29  Jim Meyering  <meyering@lucent.com>
63927
63928         * m4/lib-check.m4: New file containing library-related checks from
63929         fileutils and sh-utils (textutils had none).
63930
63931 2000-01-28  Jim Meyering  <meyering@lucent.com>
63932
63933         * m4/perl.m4: Change format of warning message to look more like that
63934         from the missing script.  Suggestion from François Pinard.
63935
63936 2000-01-25  Jim Meyering  <meyering@lucent.com>
63937
63938         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63939         well as time.h in the compile check.
63940         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63941         Fix typo in cross-compiling case: s/yes/no/.
63942
63943 2000-01-23  Jim Meyering  <meyering@lucent.com>
63944
63945         * m4/jm-macros.m4: Move df-related tests here from
63946         fileutils/configure.in
63947
63948         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63949         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63950
63951         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63952         s/space/ac_fsusage_space/.
63953         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63954
63955         * m4/ftruncate.m4: New file (derived from part of
63956         fileutils/configure.in).
63957         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63958         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63959
63960         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63961         AC_SUBST these here, rather than just in sh-util/configure.in, so
63962         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63963         all the same.
63964         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63965         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63966         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63967         (AC_SUBST(POW_LIBM)): Likewise.
63968         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63969
63970 2000-01-23  Jim Meyering  <meyering@lucent.com>
63971
63972         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63973         obstack.c.
63974
63975 2000-01-22  Jim Meyering  <meyering@lucent.com>
63976
63977         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63978
63979         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63980
63981         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63982         configure.in
63983         (AC_CHECK_HEADERS): Likewise for sh-utils.
63984         (AC_CHECK_HEADERS): Likewise for textutils.
63985         Merge the three lists of headers.
63986
63987         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63988         from fileutils' configure.in.
63989
63990         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63991         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63992         check-decl.m4.
63993
63994         * m4/check-decl.m4: Use #if rather than #ifdef.
63995         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63996         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63997         (_jm_DECL_HEADERS): Define new function.
63998         (jm_CHECK_DECLARATIONS): Require it.
63999
64000 2000-01-22  Jim Meyering  <meyering@lucent.com>
64001
64002         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64003         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64004         Required for some AIX systems.  Reported by Christian Krackowizer.
64005         [TESTING] (main): New function.
64006
64007         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64008         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64009         letters.
64010
64011         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64012         iswprint.
64013
64014         * lib/strverscmp.c (ISDIGIT): Define.
64015         (strverscmp): Use ISDIGIT, not isdigit.
64016
64017 2000-01-19  Jim Meyering  <meyering@lucent.com>
64018
64019         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64020         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64021         defines `struct timespec' in <sys/time.h>
64022
64023         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64024         Thanks to Akim for explaining.
64025
64026 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64027
64028         * lib/nanosleep.c (nanosleep):
64029         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64030         POSIX.1 doesn't require SA_INTERRUPT and some systems
64031         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64032         it's been part of POSIX.1 since day 1 (in 1988).
64033
64034 2000-01-17  Jim Meyering  <meyering@lucent.com>
64035
64036         * lib/interlock: Remove unused file.  Reported by François Pinard.
64037
64038 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64039
64040         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64041         alert, backslash, formfeed, and vertical tab unnecessarily in
64042         shell quoting style.
64043
64044 2000-01-16  Jim Meyering  <meyering@lucent.com>
64045
64046         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64047         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64048         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64049         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64050
64051 2000-01-16  Jim Meyering  <meyering@lucent.com>
64052
64053         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64054         because the latter didn't work.
64055
64056 2000-01-15  Jim Meyering  <meyering@lucent.com>
64057
64058         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64059         (AC_REPLACE_FUNCS): Add memcpy and memset.
64060         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64061         Add strpbrk.
64062         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64063
64064 2000-01-12  Jim Meyering  <meyering@lucent.com>
64065
64066         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64067         (jm_PREREQ): Use it.
64068         (jm_PREREQ_READUTMP): New macro.
64069         (jm_PREREQ): Use it.
64070
64071 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64072
64073         Quote multibyte characters correctly.
64074         * m4/c-bs-a.m4: New file.
64075         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64076         (jm_PREREQ): Use it.
64077
64078 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64079
64080         * m4/uintmax_t.m4: Port to autoconf 2.13.
64081
64082 2000-01-08  Jim Meyering  <meyering@ascend.com>
64083
64084         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64085         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64086
64087 2000-01-04  Jim Meyering  <meyering@ascend.com>
64088
64089         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64090         jm_STRUCT_DIRENT_D_TYPE.
64091         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64092         jm_STRUCT_DIRENT_D_INO.
64093         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64094         jm_STRUCT_UTIMBUF.
64095         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64096         renamings.
64097         * m4/utime.m4: Likewise.
64098
64099         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64100         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64101
64102 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64103
64104         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64105         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64106
64107 2000-01-02  Jim Meyering  <meyering@ascend.com>
64108
64109         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64110         remember if this is necessary.
64111
64112 1999-12-26  Jim Meyering  <meyering@ascend.com>
64113
64114         * m4/jm-macros.m4: Use it here.
64115         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64116
64117 1999-12-23  Jim Meyering  <meyering@ascend.com>
64118
64119         * m4/jm-macros.m4: Check for clock_gettime (moved from
64120         fileutils/configure.in)
64121         Check for gettimeofday.
64122
64123 1999-12-20  Jim Meyering  <meyering@ascend.com>
64124
64125         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64126         autoconf-2.14a-1999-12-20.
64127
64128 1999-12-19  Jim Meyering  <meyering@ascend.com>
64129
64130         * m4/lstat-slash.m4: New file.
64131         * m4/jm-macros.m4: Use the new macro:
64132         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64133
64134 1999-12-07  Jim Meyering  <meyering@ascend.com>
64135
64136         * m4/perl.m4: Require that File::Compare be available, too.
64137         Too many systems seem to lack it.
64138
64139         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64140         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64141
64142 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64143
64144         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64145         problem with the QNX 4.25 shell, which doesn't propagate exit
64146         status of failed commands inside shell assignments.
64147
64148 1999-11-17  Jim Meyering  <meyering@ascend.com>
64149
64150         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64151
64152 1999-11-07  Jim Meyering  <meyering@ascend.com>
64153
64154         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64155
64156 1999-11-06  Jim Meyering  <meyering@ascend.com>
64157
64158         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64159         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64160
64161 1999-11-05  Jim Meyering  <meyering@ascend.com>
64162
64163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64164         configure.in of textutils, fileutils, and sh-utils into this one
64165         (shared between those packages) file.
64166         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64167         AC_STRUCT_ST_BLKSIZE.
64168
64169 1999-11-03  Jim Meyering  <meyering@ascend.com>
64170
64171         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64172         of AC_CHECK_TYPE checks includes unistd.h.
64173         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64174         Suggestion from Akim Demaille.
64175
64176 1999-10-30  Jim Meyering  <meyering@ascend.com>
64177
64178         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64179         m4-quoted string.
64180         * m4/ls-mntd-fs.m4: Likewise.
64181         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64182         * m4/jm-winsz1.m4: Likewise.
64183
64184         * m4/const.m4: Remove file, since the fix made it into the experimental
64185         version of autoconf.
64186         * m4/mktime.m4: Likewise.
64187
64188         * m4/check-type.m4: Remove file, now that the latest version of
64189         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64190
64191         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64192         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64193         AC_CHECK_TYPE.
64194
64195 1999-10-04  Jim Meyering  <meyering@ascend.com>
64196
64197         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64198
64199 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64200
64201         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64202         2.95.1 bug with HP-UX 10.20.
64203
64204 1999-09-17  Jim Meyering  <meyering@ascend.com>
64205
64206         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64207         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64208         due to missing strdup (against sh-utils-2.0).
64209
64210 1999-08-29  Jim Meyering  <meyering@ascend.com>
64211
64212         * m4/jm-macros.m4: Require jm_BISON.
64213         * m4/bison.m4: New file.
64214
64215 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64216
64217         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64218         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64219
64220 1999-08-05  Jim Meyering  <meyering@ascend.com>
64221
64222         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64223         to avoid conflicts with `conftest' on 8+3 filesystems.
64224         Suggestion from Eli Zaretskii.
64225
64226 1999-08-04  Jim Meyering  <meyering@ascend.com>
64227
64228         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64229         fileutils and sh-utils (textutils's getline test was inadequate).
64230         (AM_FUNC_GETLINE): Run this test.
64231         (AC_CHECK_FUNCS): Check for getdelim.
64232         Reported by Bob Proulx.
64233
64234 1999-08-02  Jim Meyering  <meyering@ascend.com>
64235
64236         * m4/jm-macros.m4: Add a comment.
64237
64238 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64239
64240         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64241         <inttypes.h> defines strtoumax as a macro (and not as a
64242         function).
64243
64244 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64245
64246         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64247         that we can shift, multiply and divide unsigned long long
64248         values; Ultrix cc can't do it.
64249
64250 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64251
64252         * m4/mktime.m4: New file, which is a preview of what should appear
64253         in the next public autoconf release.
64254
64255 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64256
64257         * m4/lfs.m4: Remove this file.
64258         * m4/largefile.m4: New file.  It contains the old contents of
64259         lfs.m4, except that all names with prefix AC_LFS have been
64260         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64261         compatible with future autoconf versions.  Also, some minor m4
64262         quoting problems have been fixed.
64263
64264 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64265
64266         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64267         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64268         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64269         and simplify the shell code.
64270
64271 1999-08-01  Jim Meyering  <meyering@ascend.com>
64272
64273         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64274         m4.
64275
64276 1999-07-20  Jim Meyering  <meyering@ascend.com>
64277
64278         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64279
64280 1999-07-15  Jim Meyering  <meyering@ascend.com>
64281
64282         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64283
64284 1999-05-22  Jim Meyering  <meyering@ascend.com>
64285
64286         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64287
64288 1999-05-20  Jim Meyering  <meyering@ascend.com>
64289
64290         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64291         Add a colon after each `then' in case $4 is empty.
64292
64293 1999-05-16  Jim Meyering  <meyering@ascend.com>
64294
64295         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64296
64297 1999-05-10  Jim Meyering  <meyering@ascend.com>
64298
64299         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64300
64301         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64302         AC_FUNC_MKTIME.
64303
64304 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64305
64306         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64307
64308 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64309
64310         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64311         not CPPFLAGS, so that linking works correctly in IRIX.
64312
64313 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64314
64315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64316
64317 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64318
64319         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64320         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64322         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64323         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64324
64325         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64326
64327 1999-04-20  Jim Meyering  <meyering@ascend.com>
64328
64329         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64330         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64331         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64332
64333 1999-04-18  Jim Meyering  <meyering@ascend.com>
64334
64335         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64336         * m4/jm-macros.m4: Use it.
64337
64338 1999-04-06  Jim Meyering  <meyering@ascend.com>
64339
64340         * m4/strftime.m4: Remove test for %f.
64341
64342 1999-03-29  Jim Meyering  <meyering@ascend.com>
64343
64344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64345         superset of the AC_TYPE_* checks in the textutils, fileutils,
64346         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64347         AC_TYPE_PID_T.
64348
64349 1999-03-28  Jim Meyering  <meyering@ascend.com>
64350
64351         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64352         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64353         replaced e.g., in the *.sh files of the sh-utils.
64354
64355 1999-03-20  Jim Meyering  <meyering@ascend.com>
64356
64357         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64358         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64359         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64360
64361 1999-03-19  Jim Meyering  <meyering@ascend.com>
64362
64363         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64364
64365 1999-03-12  Jim Meyering  <meyering@ascend.com>
64366
64367         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64368
64369 1999-03-07  Jim Meyering  <meyering@ascend.com>
64370
64371         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64372         declared.
64373
64374 1999-02-17  Jim Meyering  <meyering@ascend.com>
64375
64376         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64377         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64378
64379 1999-02-07  Jim Meyering  <meyering@ascend.com>
64380
64381         * m4/group-member.m4: New file -- extracted from sh-utils'
64382         configure.in.
64383
64384         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64385         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64386
64387 1999-02-06  Jim Meyering  <meyering@ascend.com>
64388
64389         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64390         * m4/fnmatch.m4: Likewise.
64391         * m4/getgroups.m4: Likewise.
64392         * m4/lstat.m4: Likewise.
64393         * m4/malloc.m4: Likewise.
64394         * m4/putenv.m4: Likewise.
64395         * m4/realloc.m4: Likewise.
64396         * m4/regex.m4: Likewise.
64397         * m4/stat.m4: Likewise.
64398         * m4/strftime.m4: Likewise.
64399         Suggestion from Alain Magloire.
64400
64401         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64402         * m4/fnmatch.m4: Likewise.
64403         * m4/getgroups.m4: Likewise.
64404         * m4/getline.m4: Likewise.
64405         * m4/lstat.m4: Likewise.
64406         * m4/malloc.m4: Likewise.
64407         * m4/memcmp.m4: Likewise.
64408         * m4/putenv.m4: Likewise.
64409         * m4/realloc.m4: Likewise.
64410         * m4/regex.m4: Likewise.
64411         * m4/stat.m4: Likewise.
64412         * m4/strftime.m4: Likewise.
64413         Suggestion from Alain Magloire.
64414
64415         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64416         an argument.
64417
64418         * m4/regex.m4: Add a run-time Test for proper operation of
64419         re_compile_pattern.
64420
64421 1999-01-31  Jim Meyering  <meyering@ascend.com>
64422
64423         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64424
64425 1999-01-30  Jim Meyering  <meyering@ascend.com>
64426
64427         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64428
64429         * m4/jm-mktime.m4: Make this a wrapper around the official
64430         AM_FUNC_MKTIME rather than my private copy, now that the official one
64431         is up to date.
64432         * m4/mktime.m4: Remove file.
64433
64434         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64435         * m4/uptime.m4: Likewise.
64436         * m4/uintmax_t.m4: Likewise.
64437
64438 1999-01-28  Jim Meyering  <meyering@ascend.com>
64439
64440         * m4/jm-macros.m4: Use jm_AFS.
64441         * m4/afs.m4: New file (from fileutils' configure.in).
64442
64443         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64444         * m4/chown.m4: Likewise.
64445         * m4/d-ino.m4: Likewise.
64446         * m4/d-type.m4: Likewise.
64447         * m4/fnmatch.m4: Likewise.
64448         * m4/getgroups.m4: Likewise.
64449         * m4/gettext.m4: Likewise.
64450         * m4/jm-mktime.m4: Likewise.
64451         * m4/jm-winsz2.m4: Likewise.
64452         * m4/lcmessage.m4: Likewise.
64453         * m4/ls-mntd-fs.m4: Likewise.
64454         * m4/malloc.m4: Likewise.
64455         * m4/memcmp.m4: Likewise.
64456         * m4/putenv.m4: Likewise.
64457         * m4/realloc.m4: Likewise.
64458         * m4/st_mtim.m4: Likewise.
64459         * m4/strftime.m4: Likewise.
64460
64461 1999-01-16  Jim Meyering  <meyering@ascend.com>
64462
64463         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64464         (ARGMATCH_DIE_DECL): Define.
64465
64466 1999-01-12  Jim Meyering  <meyering@ascend.com>
64467
64468         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64469         Reported by Lars Hecking.
64470
64471 1999-01-10  Jim Meyering  <meyering@ascend.com>
64472
64473         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64474         gross kludge.
64475         * m4/inttypes_h.m4: Likewise.
64476         * m4/lstat.m4: Likewise.
64477         * m4/malloc.m4: Likewise.
64478         * m4/readdir.m4: Likewise.
64479         * m4/realloc.m4: Likewise.
64480         * m4/st_dm_mode.m4: Likewise.
64481         * m4/stat.m4: Likewise.
64482         * m4/utimbuf.m4: Likewise.
64483         * m4/utimes.m4: Likewise.
64484
64485         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64486         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64487         comments in config.h.in are meaningful.
64488
64489         * m4/jm-macros.m4: Require autoconf-2.13 here.
64490
64491         * m4/regex.m4: By default, don't use the included regex.c on systems
64492         with glibc 2.  Suggestion from Uli Drepper.
64493
64494 1999-01-02  Jim Meyering  <meyering@ascend.com>
64495
64496         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64497
64498 1998-12-18  Jim Meyering  <meyering@ascend.com>
64499
64500         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64501         Based on a suggestion from Lars Hecking.
64502
64503 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64504
64505         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64506
64507 1998-11-16  Jim Meyering  <meyering@ascend.com>
64508
64509         * m4/lfs.m4: Double-quote the `uname...` expression.
64510
64511 1998-11-14  Jim Meyering  <meyering@ascend.com>
64512
64513         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64514         * m4/stat.m4: Likewise.
64515
64516 1998-11-03  Jim Meyering  <meyering@ascend.com>
64517
64518         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64519         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64520
64521 1998-10-18  Jim Meyering  <meyering@ascend.com>
64522
64523         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64524
64525 1998-10-17  Jim Meyering  <meyering@ascend.com>
64526
64527         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64528         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64529         calls for those previously hard-coded headers.  Instead, take a new
64530         parameter.
64531         (jm_CHECK_DECLARATIONS): Reflect interface change.
64532         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64533         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64534
64535         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64536
64537 1998-10-14  Jim Meyering  <meyering@ascend.com>
64538
64539         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64540         instead of "TZ=America/Vancouver".  From Paul Eggert.
64541
64542 1998-10-11  Jim Meyering  <meyering@ascend.com>
64543
64544         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64545         This adds a test for a recently added compatibility fix for mktime.c.
64546         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64547
64548 1998-09-27  Jim Meyering  <meyering@ascend.com>
64549
64550         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64551
64552         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64553         ../configure.in, including a change from Gordon Matzigkeit to allow
64554         cross-compiling for the Hurd.
64555
64556         * m4/glibc.m4: New file/macro to test for the GNU C Library
64557         versions 1 and 2.  From Gordon Matzigkeit.
64558         Indent.
64559
64560 1998-09-21  Jim Meyering  <meyering@ascend.com>
64561
64562         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64563
64564 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64565
64566         Port nanosecond-resolution times to UnixWare 2.1.2 and
64567         pedantic Solaris 2.6.
64568
64569         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64570         AC_STRUCT_ST_MTIM.
64571         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64572         Generate name of ns member, instead of just 1 or undef.
64573         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64574
64575 1998-08-15  Jim Meyering  <meyering@ascend.com>
64576
64577         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64578         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64579         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64580         instead of jm_TYPE_SSIZE_T.
64581
64582 1998-08-12  Jim Meyering  <meyering@ascend.com>
64583
64584         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64585
64586 1998-08-02  Jim Meyering  <meyering@ascend.com>
64587
64588         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64589         in acconfig.h manually.
64590
64591 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64592
64593         * m4/st_mtim.m4: New file.
64594
64595 1998-07-28  Jim Meyering  <meyering@ascend.com>
64596
64597         * m4/utimes.m4: Undef stat.
64598
64599 1998-07-25  Jim Meyering  <meyering@ascend.com>
64600
64601         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64602         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64603
64604 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64605
64606         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64607         uid and gid actually remain unchanged.
64608
64609 1998-07-07  Jim Meyering  <meyering@ascend.com>
64610
64611         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64612
64613 1998-07-04  Jim Meyering  <meyering@ascend.com>
64614
64615         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64616         to prove that this macro can be used in packages without regex.c.
64617
64618 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64619
64620         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64621         is to be used.
64622
64623 1998-07-03  Jim Meyering  <meyering@ascend.com>
64624
64625         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64626
64627         * m4/gettext.m4: New file -- from gettext-0.10.35.
64628         * m4/lcmessage.m4: Likewise.
64629         * m4/progtest.m4: Likewise.
64630
64631         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64632         * m4/jm-macros.m4: Require the new macro.
64633
64634 1998-06-29  Jim Meyering  <meyering@ascend.com>
64635
64636         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64637         for the definition of NGROUPS (used in a system header included
64638         by sys/mount.h).
64639
64640 1998-06-28  Jim Meyering  <meyering@ascend.com>
64641
64642         * m4/ls-mntd-fs.m4: New file.
64643         * m4/fstypename.m4: New file.
64644
64645         * m4/jm-macros.m4: Require the new macro.
64646         * m4/jm-glibc-io.m4: New file.
64647
64648 1998-05-19  Jim Meyering  <meyering@ascend.com>
64649
64650         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64651         * m4/lchown.m4: New file.
64652
64653         * m4/Makefile.am.in: New file.
64654         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64655
64656 1998-05-14  Jim Meyering  <meyering@ascend.com>
64657
64658         * m4/Makefile.am (EXTRA_DIST): Add them.
64659         * m4/jm-macros.m4: New file.
64660         * m4/utimbuf.m4: New file.
64661
64662 1998-05-12  Jim Meyering  <meyering@ascend.com>
64663
64664         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64665
64666 1998-05-11  Jim Meyering  <meyering@ascend.com>
64667
64668         * m4/isc-posix.m4: New file.
64669
64670 1998-05-10  Jim Meyering  <meyering@ascend.com>
64671
64672         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64673
64674 1998-05-09  Jim Meyering  <meyering@ascend.com>
64675
64676         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64677         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64678         with automake.
64679
64680         * m4/ssize_t.m4: New file.
64681         * m4/mktime.m4: Remove file -- the new automake has this now.
64682
64683 1998-04-26  Jim Meyering  <meyering@ascend.com>
64684
64685         * m4/assert.m4: New file.
64686         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64687
64688 1998-04-05  Jim Meyering  <meyering@ascend.com>
64689
64690         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64691         (jm_PREREQ): Use it here.
64692
64693 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64694
64695         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64696         in acconfig.h.
64697
64698 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64699
64700         * m4/prereq.m4: New file.
64701         * m4/error.m4: New file.
64702         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64703
64704 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64705
64706         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64707         cache-check for the same variable -- that defeated the purpose of
64708         the test; the test program was never run.  This was a problem only
64709         on systems with losing getline functions -- HP-UX 10.20 is one.
64710         Reported by Bjorn Helgaas.
64711
64712 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64713
64714         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64715
64716 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64717
64718         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64719
64720         * m4/const.m4: New file.  Use an initializer in this declaration
64721         typedef int charset[2]; const charset x;
64722         Reported by Bob Glickstein.
64723
64724 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64725
64726         * m4/chown.m4: Fix reversed types on -1 args to chown.
64727         From Kaveh Ghazi.
64728
64729 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64730
64731         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64732         Add lseek and memchr.
64733
64734         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64735         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64736         have a 20-character limit on names.
64737
64738 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64739
64740         * m4/inttypes_h.m4: New file.
64741         * m4/uintmax_t.m4: New file.
64742         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64743
64744
64745         -----
64746
64747         Local Variables:
64748         coding: utf-8
64749         End:
64750
64751         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64752
64753         Copying and distribution of this file, with or without
64754         modification, are permitted provided the copyright notice
64755         and this notice are preserved.